
/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a,
a:visited,
a:active,
a:focus {
    
    text-decoration: none;
    outline: none;
}

/* Variables de color */
:root {
    --primary-color: #58AF31;
    --dark-color: #000000;
    --light-color: #fff;
    --gray-color: #f4f4f4;
}

/* Contenedores */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Navegación */
header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-color);
}

.logo span {
    color: var(--primary-color)
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

button {
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Estilos para usuario logueado */
/* Estilos para usuario logueado */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-options {
    display: flex;
    gap: 15px;
}

.nav-option {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-option:hover {
    color: var(--primary-color);
}

/* Dropdown de Registro */
.register-dropdown-container {
    position: relative;
}

.register-dropdown-container .btn-register {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.register-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark-color);
    border: 1px solid black;
    border-radius: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.register-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.register-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--light-color);
    cursor: pointer;
    transition: background-color 0.3s;

}

.register-dropdown-item:last-child {
    border-bottom: none;
}

.register-dropdown-item:hover {

    color: var(--primary-color);
}

.register-dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

/* Dropdown de Comunidad en desktop */
.nav-dropdown-container {
    position: relative;
}

.dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

/* Estados activos de dropdowns */
.dropdown-trigger.dropdown-active,
.user-profile-btn.dropdown-active {
    color: var(--light-color) !important;
}

.dropdown-trigger.dropdown-active .dropdown-arrow-small,
.user-profile-btn.dropdown-active .dropdown-arrow {
    color: var(--light-color) !important;
}


.dropdown-arrow-small {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-arrow-small.rotated {
    transform: rotate(180deg);
}

/* Asegurar que el texto del saludo se mantenga blanco cuando está activo */
.user-profile-btn.dropdown-active .user-greeting {
    color: var(--light-color) !important;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-color);
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--light-color);
    cursor: pointer;
    transition: background-color 0.3s;
    border-bottom: 1px solid #333;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background-color: #333;
}


/* Dropdown de usuario en desktop */
.user-dropdown-container {
    position: relative;
}

/* Dropdown de usuario en desktop */
.user-dropdown-container {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 25px;
    transition: background-color 0.3s;
    border: none;
    background: none;
}

.user-profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 1.5rem;
}

.user-greeting {
    color: var(--light-color);
    font-size: 1rem;
    font-weight: bold;
}

.dropdown-arrow {
    color: var(--light-color);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark-color);
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--light-color);
    cursor: pointer;
    transition: background-color 0.3s;
    border-bottom: 1px solid #333;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #333;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.logout-dropdown {
    color: #ff6b6b;
}

.logout-dropdown:hover {
    background-color: #2a0000;
}

/* Menú móvil para usuario logueado */
.mobile-menu-container {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

.hamburger-btn.active {
    transform: rotate(90deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--dark-color);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-section {
    padding: 20px;
}

.menu-options {
    flex: 1;
    border-bottom: 1px solid #333;
}

.menu-item {
    padding: 15px 0;
    color: var(--light-color);
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.menu-item:hover {
    background-color: #333;
    padding-left: 10px;
}

.menu-item:last-child {
    border-bottom: none;
}

.user-section {
    background-color: #111;
    margin-top: auto;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.user-actions {
    width: 100%;
}

.logout-item {
    color: #ff6b6b;
    font-weight: bold;
}

.logout-item:hover {
    background-color: #2a0000;
}

/* Visibilidad responsive */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* Sección de imagen principal */
.hero-image {
    width: 100%;
    margin-bottom: 20px;
}

.image-container {
    width: 100%;
    height: 400px !important;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    border: 1px solid #ccc;
}

.placeholder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Secciones comunes */
section {
    margin-bottom: 20px;
    padding: 0 15px;
}

.section-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: normal;
}

/* Sección de jugadores para entrenadores */
.players-section {
    margin-bottom: 20px;
    padding: 0 15px;
    display: none;
}

.players-container {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.player-card {
    background-color: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.player-photo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    background-color: #166849;
    color: var(--light-color);
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.player-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--light-color);
    line-height: 1.2;
}

.player-position {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    opacity: 0.9;
    line-height: 1.2;
}

.player-status {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    flex-shrink: 0;
}

.player-attendance {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: var(--light-color);
    line-height: 1.2;
}

/* Navegación de jugadores */
.players-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.nav-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.players-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: var(--primary-color);
    opacity: 0.7;
}

/* Media Queries */
@media (min-width: 768px) {
    .players-section {
        padding: 0 30px;
    }

    .players-container {
        padding: 30px;
    }

    .players-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        margin-bottom: 25px;
    }

    .player-card {
        min-height: 360px;
    }

    .player-photo {
        height: 200px;
    }

    .player-info {
        padding: 20px;
    }

    .player-name {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .player-position {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .player-status {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .player-attendance {
        font-size: 1.1rem;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .indicator {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .player-card {
        min-height: 280px;
    }

    .player-photo {
        height: 140px;
    }

    .player-info {
        padding: 12px;
    }

    .player-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .player-position {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .player-status {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .status-indicator {
        width: 6px;
        height: 6px;
    }

    .player-attendance {
        font-size: 0.9rem;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .players-navigation {
        gap: 15px;
    }
}

/* Sección de entrenamiento */
/* Sección de entrenamiento */
.training-details {
    padding: 20px;
    background-color: var(--light-color);
}



.training-main-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.training-header-info {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.training-header-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.training-basic-info {
    flex: 1;
    padding: 15px;
    background-color: rgba(88, 175, 49, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.training-location-info {
    flex: 1;
    padding: 15px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.location-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.location-address {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.location-details {
    color: #888;
    font-size: 0.85rem;
}

/* Media queries para desktop - layout horizontal */
@media (min-width: 768px) {
    .training-header-content {
        flex-direction: row;
        gap: 25px;
        align-items: stretch;
    }
    
    
    .training-location-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }
}

.training-content-horizontal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Media queries para desktop - layout horizontal */
@media (min-width: 768px) {
    .training-content-horizontal {
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
    }
    
        .training-sessions {
        flex: 1; /* Cambiado de flex: 2 a flex: 1 para 50/50 */
        margin: 0;
        background-color: transparent;
        border: none;
        padding: 0;
    }
    
    
    
    .training-basic-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.training-actions-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
.training-time {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Sección de ubicación */
.location-details {
    padding: 15px;
    background-color: var(--light-color);
    min-height: 50px;
}

.location h2 {
    text-align: center;
    font-size: 1.2rem;
}

/* Botones de ubicación para entrenadores */
.location-coach-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.btn-location-action {
    background-color: transparent;
    border: 2px solid #B4B4B4;
    color: #B4B4B4;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-location-action:hover {
    border-color: #999999;
    color: #999999;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(180, 180, 180, 0.2);
}

.btn-location-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(180, 180, 180, 0.2);
}

/* Media Queries */
@media (min-width: 768px) {
    .location-coach-actions {
        padding: 30px;
        gap: 20px;
    }

    .btn-location-action {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .location-coach-actions {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .btn-location-action {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Sección de noticias */
.news-container {
    background-color: var(--light-color);
    padding: 15px;
}

.news-text {
    margin-bottom: 15px;
}
.news-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-color);
}
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.news-image {
    overflow: hidden;
    border-radius: 8px;
}  	
.news-container.loading {
    opacity: 0.6;
    pointer-events: none;
}
.news-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
}

.news-nav-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.news-nav-btn:hover:not(:disabled) {
    background-color: #6ba644;
    transform: scale(1.1);
}

.news-nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.news-indicators {
    display: flex;
    gap: 8px;
}

.news-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.news-indicator:hover {
    background-color: #999;
}

.news-count {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 20px 15px;
    font-size: 12px;
}

.footer-content {
    display: flex;
    gap: 5px;
    justify-content: space-evenly;
}

.contact-info,
.nosotros,
.terms {
    margin-bottom: 15px;

}

.terms {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    color: var(--light-color);
    height: 30px;
    width: 30px;
}

.social-icon img {
    height: 100%;
    width: 100%;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rugby-ball-icon {
    width: 50px;
    height: 50px;
}

.rugby-ball-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dropdown de Comunidad en desktop */
.nav-dropdown-container {
    position: relative;
}

.dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow-small {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-arrow-small.rotated {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-color);
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--light-color);
    cursor: pointer;
    transition: background-color 0.3s;
    border-bottom: 1px solid #333;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background-color: #333;
}

.nav-dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Dropdown de usuario en desktop */
.user-dropdown-container {
    position: relative;
}

/* Estilos para FAB (Floating Action Button) y Modal de Entrenador */

/* Estilos para FAB (Floating Action Button) y Modal de Entrenador */

/* FAB - Botón flotante */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;

}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(88, 175, 49, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-btn img {
    width: 100%;
    height: 100%;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(88, 175, 49, 0.6);
}

.fab-btn:active {
    transform: scale(0.95);
}

.fab-btn i {
    transition: transform 0.3s ease;
}

.fab-btn:hover i {
    transform: rotate(135deg);
}

/* Modal Overlay */
.coach-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.coach-modal-overlay.modal-opening {
    opacity: 1;
}

.coach-modal-overlay.modal-closing {
    opacity: 0;
}

/* Modal Container */
.coach-modal {
    background: linear-gradient(135deg, #8BC34A, #4CAF50);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1) translateY(0);
    transition: all 0.3s ease;
    overflow: hidden;
}

.coach-modal-overlay.modal-opening .coach-modal {
    transform: scale(1) translateY(0);
}

.coach-modal-overlay.modal-closing .coach-modal {
    transform: scale(0.8) translateY(20px);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px 0 20px;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Modal Content */
.modal-content {
    padding: 20px 30px 40px 30px;
}

.modal-options {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

/* Modal Options */
.modal-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.modal-option:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.modal-option:active {
    transform: translateY(-2px);
}

/* Option Icons */
.option-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.option-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.modal-option:hover .option-icon {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Option Labels */
.option-label {
    color: var(--light-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-btn {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .coach-modal {
        width: 95%;
        max-width: 350px;
        margin: 20px;
    }

    .modal-content {
        padding: 15px 20px 30px 20px;
    }

    .modal-options {
        gap: 15px;
    }

    .modal-option {
        padding: 15px 10px;
        min-width: 80px;
    }

    .option-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .option-label {
        font-size: 0.85rem;
    }
}

/* Responsive - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .fab-container {
        bottom: 25px;
        right: 25px;
    }

    .fab-btn {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
    }

    .coach-modal {
        max-width: 380px;
    }

    .modal-options {
        gap: 18px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .fab-container {
        bottom: 40px;
        right: 40px;
    }

    .fab-btn {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .coach-modal {
        max-width: 600px;
    }

    .modal-content {
        padding: 25px 35px 45px 35px;
    }

    .modal-options {
        gap: 25px;
    }

    .modal-option {
        padding: 25px 18px;
        min-width: 120px;
    }

    .option-icon {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .option-label {
        font-size: 1rem;
    }
}

/* Animaciones adicionales */
@keyframes fabPulse {
    0% {
        box-shadow: 0 4px 20px rgba(88, 175, 49, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(88, 175, 49, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(88, 175, 49, 0.4);
    }
}

.fab-btn {
    animation: fabPulse 3s ease-in-out infinite;
}

/* Estados activos */
.fab-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 175, 49, 0.3);
}

.modal-option:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Efectos de glassmorphism mejorados */
.coach-modal {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-option {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-option:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Transiciones suaves para todas las interacciones */
* {
    -webkit-tap-highlight-color: transparent;
}

.modal-option,
.fab-btn,
.modal-close-btn {
    user-select: none;
    -webkit-user-select: none;
}
.news-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Media Queries para desktop */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    nav {
        padding: 10px 30px;
    }

    .image-container {
        height: 300px;
    }

    main {
        padding: 0 30px;
    }

    /* Para la sección de noticias en desktop, texto e imagen en la misma fila */
    .news-container {
        display: flex;
        gap: 20px;
        flex-direction:column;
    }
	
    .news-text {
        flex: 2;
        margin-bottom: 0;
    }
  .news-image {
        flex: 1;
        height: 350px;
    }	

    /* Footer en desktop */
    .footer-content {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        flex-wrap: wrap;
        font-size: 16px;
    }

    .terms {

        text-align: center;
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .social-media {
        justify-content: flex-end;
        align-items: center;
        margin-top: 0;
    }


    .social-icon {
        height: 50px;
        width: 50px;
    }

    .rugby-ball-icon {
        width: 100px;
        height: 100px;
    }

    .footer-logo {
        margin-top: 30px;
    }

    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: flex;
    }
}

.players-section {
    margin-bottom: 20px;
    padding: 0 15px;
}

.section-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: normal;
}

.players-container {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    /* Importante para el carrusel */
}

/* Indicador de hover */
.players-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(88, 175, 49, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.players-container:hover::before {
    opacity: 1;
}

/* ========================================
           ESTILOS PARA FILTRO DE JUGADORES
           ======================================== */

.players-filter {
    margin-bottom: 20px;
    padding: 0 5px;
    ;
}

.filter-container {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.filter-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 175, 49, 0.1);
}

.search-input-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 175, 49, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2px;
    border-radius: 50%;
}

.clear-search:hover {
    color: #dc3545;
    background-color: #f8d7da;
}

.clear-search.visible {
    opacity: 1;
}

.filter-counter {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ========================================
           ESTILOS PARA CARRUSEL DE JUGADORES
           ======================================== */

.players-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    transition: none;
    width: calc(160px * 20 + 15px * 19);
    animation: autoScroll 30s linear infinite;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-160px * 10 - 15px * 9));
    }
}

.player-card {
    background-color: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    flex-shrink: 0;
    width: 160px;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.player-photo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    background-color: #166849;
    color: var(--light-color);
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.player-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--light-color);
    line-height: 1.2;
}

.player-position {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    opacity: 0.9;
    line-height: 1.2;
}

.player-status {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    flex-shrink: 0;
}

.player-attendance {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: var(--light-color);
    line-height: 1.2;
}

/* Navegación de jugadores - Solo indicadores */
.players-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.players-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: var(--primary-color);
    opacity: 0.7;
}

/* Indicador de estado del carrusel */
.carousel-status {
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(88, 175, 49, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-status.visible {
    opacity: 1;
}

/* Animación de pausa cuando se hace hover */
.players-container:hover .players-grid {
    animation-play-state: paused !important;
}

.players-container:hover {
    background-color: #fafafa;
}

/* ========================================
           MEDIA QUERIES RESPONSIVE
           ======================================== */

@media (min-width: 768px) {
    .players-section {
        padding: 0 30px;
    }

    .players-container {
        padding: 30px;
    }

    .players-filter {
        margin-bottom: 25px;
    }

    .filter-container {
        padding: 20px;
        gap: 20px;
        justify-content: center;
    }

    .search-input-container {
        max-width: 500px;
    }

    .search-input {
        font-size: 1.1rem;
        padding: 15px 20px 15px 50px;
    }

    .search-icon {
        left: 18px;
        font-size: 1.1rem;
    }

    .clear-search {
        right: 18px;
        font-size: 1.2rem;
    }

    .filter-counter {
        padding: 12px 16px;
        font-size: 1rem;
        min-width: 120px;
    }

    @keyframes autoScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-180px * 10 - 20px * 9));
        }
    }

    .players-grid {
        width: calc(180px * 20 + 20px * 19);
        animation: autoScroll 40s linear infinite;
        gap: 20px;
        margin-bottom: 25px;
    }

    .player-card {
        min-height: 360px;
        width: 180px;
    }

    .player-photo {
        height: 200px;
    }

    .player-info {
        padding: 20px;
    }

    .player-name {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .player-position {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .player-status {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .player-attendance {
        font-size: 1.1rem;
    }

    .indicator {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .filter-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .search-input-container {
        max-width: none;
    }

    .filter-counter {
        width: 100%;
    }

    .players-navigation {
        gap: 15px;
    }
}

.player-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.player-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: white;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(88, 175, 49, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-fab-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(88, 175, 49, 0.6);
}

.player-fab-btn:active {
    transform: scale(0.95);
}

/* Modal para jugadores */
.player-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.player-modal-overlay.modal-opening {
    opacity: 1;
}

.player-modal-overlay.modal-closing {
    opacity: 0;
}

/* Modal container para jugadores */
.player-modal {
    background: linear-gradient(135deg, #8BC34A, #4CAF50);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1) translateY(0);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-modal-overlay.modal-opening .player-modal {
    transform: scale(1) translateY(0);
}

.player-modal-overlay.modal-closing .player-modal {
    transform: scale(0.8) translateY(20px);
}

/* Modal header para jugadores */
.player-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px 0 20px;
}

.player-modal-close-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.player-modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Modal content para jugadores */
.player-modal-content {
    padding: 20px 30px 40px 30px;
}

.player-modal-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Modal options para jugadores - estilo lista vertical */
.player-modal-option {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 18px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 70px;
}

.player-modal-option:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.player-modal-option:active {
    transform: translateX(2px);
}

/* Option icons para jugadores */
.player-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.player-option-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.player-modal-option:hover .player-option-icon {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Option labels para jugadores */
.player-option-label {
    color: var(--light-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex: 1;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .player-fab-container {
        bottom: 20px;
        right: 20px;
    }

    .player-fab-btn {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .player-modal {
        width: 95%;
        max-width: 350px;
        margin: 20px;
    }

    .player-modal-content {
        padding: 15px 20px 30px 20px;
    }

    .player-modal-options {
        gap: 12px;
    }

    .player-modal-option {
        padding: 15px 18px;
        min-height: 60px;
    }

    .player-option-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .player-option-label {
        font-size: 0.95rem;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .player-fab-container {
        bottom: 40px;
        right: 40px;
    }

    .player-fab-btn {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .player-modal {
        max-width: 450px;
    }

    .player-modal-content {
        padding: 25px 35px 45px 35px;
    }

    .player-modal-options {
        gap: 18px;
    }

    .player-modal-option {
        padding: 20px 25px;
        min-height: 75px;
    }

    .player-option-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .player-option-label {
        font-size: 1.1rem;
    }
}

/* Animaciones */
@keyframes playerFabPulse {
    0% {
        box-shadow: 0 4px 20px rgba(88, 175, 49, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(88, 175, 49, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(88, 175, 49, 0.4);
    }
}

.player-fab-btn {
    animation: playerFabPulse 3s ease-in-out infinite;
}

/* Estilos para la vista de intensidad */
.intensity-view {
    display: none;
    padding: 20px 0;
}

.intensity-view.active {
    display: block;
}

.intensity-title {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.intensity-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    padding: 15px 20px;
}

.intensity-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    user-select: none;
}

.intensity-number:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.intensity-number.selected {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-color: var(--light-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.intensity-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.intensity-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.intensity-cancel {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.intensity-cancel:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.intensity-submit {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--light-color);
}

.intensity-submit:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.intensity-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Estados de foco */
.player-fab-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 175, 49, 0.3);
}

.player-modal-option:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Efectos de interacción */
* {
    -webkit-tap-highlight-color: transparent;
}

.player-modal-option,
.player-fab-btn,
.player-modal-close-btn {
    user-select: none;
    -webkit-user-select: none;
}

/* Estilos para la sección de entrenamiento mejorada */
.training-main-info {
    text-align: center;
    margin-bottom: 20px;
}



.session-info {
    flex: 1;
}

.session-area {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.training-sessions {
    padding: 15px;
    background-color: rgba(88, 175, 49, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    height: fit-content; /* Añadir esta línea */
}

.sessions-title {
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--light-color);
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Media queries para desktop - mantener vertical pero más compacto */
@media (min-width: 768px) {
    .sessions-title {
        font-size: 1.1rem;
    }
    
    .session-item {
        padding: 10px 15px;
    }
}
/* Estilos mejorados para desktop */
@media (min-width: 768px) {
   
      .training-additional-info {
        flex: 1;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
.training-additional-info > div {
        margin: 0;
        padding: 15px;
        border-radius: 8px;
    }
    

    .session-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .sessions-list {
        grid-template-columns: 1fr;
    }
    
    .session-item {
        padding: 15px 20px;
    }
    
    .session-area {
        font-size: 1.1rem;
    }
}

.session-time {
    font-size: 0.9rem;
    color: #666;
}

.session-duration {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.training-additional-info {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: fit-content; /* Añadir esta línea */
  background-color: rgba(0, 123, 255, 0.1);
  padding: 15px;
border-radius: 8px;
    border-left: 4px solid #007bff;
}
}


.training-description {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #e8f5e8;
    border-radius: 6px;
    font-style: italic;
}

.training-notes {
    padding: 10px;
    border-radius: 6px;
 
}

.training-notes::before {
    content: "Notas: ";
    font-weight: 600;
}

/* Responsive para móviles */
@media (max-width: 767px) {
    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .session-duration {
        align-self: flex-end;
    }
}

/* Animaciones para el carrusel de noticias */
.news-content-wrapper {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
    transform: translateX(0);
}

.news-content-wrapper.news-transitioning {
    opacity: 0;
    transform: translateX(20px);
}

.news-container {
    position: relative;
    overflow: hidden;
}

/* Indicador de progreso para el autoplay */
.news-autoplay-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.1s linear;
    z-index: 2;
}

/* Pausa visual cuando se hace hover */
.news-container:hover .news-autoplay-progress {
    animation-play-state: paused;
}

.news-container:hover .news-navigation .news-counter::after {
    content: " (pausado)";
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}
