/* ===== SECCIÓN DE ENTRENADORAS ===== */

.coaches-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.coaches-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(163, 134, 177, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(144, 212, 189, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.coaches-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.coaches-header {
    text-align: center;
    margin-bottom: 4rem;
}

.coaches-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Quicksand', sans-serif;
    position: relative;
}

.coaches-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #a386b1, #90d4bd);
    border-radius: 2px;
}

.coaches-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Diseño 3-2: 3 arriba, 2 abajo centradas */
.coach-card:nth-child(1) {
    grid-column: 1 / 3;
}

.coach-card:nth-child(2) {
    grid-column: 3 / 5;
}

.coach-card:nth-child(3) {
    grid-column: 5 / 7;
}

.coach-card:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.coach-card:nth-child(5) {
    grid-column: 4 / 6;
    grid-row: 2;
}

.coach-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.08),
        0 6px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    /* Optimizar rendering para animaciones suaves */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    /* Hacer que todas las tarjetas tengan la misma altura */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coach-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 10px 35px rgba(0, 0, 0, 0.06);
    /* Asegurar que el border-radius se mantenga durante la animación */
    border-radius: 24px;
}

.coach-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 24px 24px 0 0; /* Redondear solo la parte superior */
}

.coach-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.4s ease;
    border-radius: 24px 24px 0 0; /* Mantener border-radius durante la animación */
}

.coach-card:hover .coach-image {
    transform: scale(1.05);
    /* Asegurar que el border-radius se mantenga durante el scale */
    border-radius: 24px 24px 0 0;
}

.coach-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    transition: all 0.3s ease;
}

.coach-card:hover .coach-image-overlay {
    background: linear-gradient(
        to bottom,
        rgba(163, 134, 177, 0.1) 0%,
        rgba(144, 212, 189, 0.15) 50%,
        rgba(163, 134, 177, 0.3) 100%
    );
}

/* Fallback para imágenes que no existen */
.coach-image.no-image {
    background: linear-gradient(135deg, #a386b1, #90d4bd);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coach-image.no-image::before {
    content: '👩‍🏫';
    font-size: 4rem;
    opacity: 0.7;
}

.coach-specialties {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.specialty-tag {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #a386b1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.coach-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.coach-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-family: 'Quicksand', sans-serif;
}

.coach-title {
    font-size: 1rem;
    color: #a386b1;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coach-description {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1; /* Esto hará que la descripción ocupe el espacio disponible */
}

.coach-achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(163, 134, 177, 0.05), rgba(144, 212, 189, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(163, 134, 177, 0.1);
    margin-top: auto; /* Esto empujará la sección achievements hacia abajo */
}

.achievement {
    text-align: center;
    padding: 0.5rem 0.1rem;
}

.achievement-number {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: #a386b1;
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 0.3rem;
    text-align: center;
    line-height: 1;
}

.achievement-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-wrap: break-word;
    max-height: 2.4em; /* Aproximadamente 2 líneas */
}

.coach-contact {
    display: flex;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #a386b1, #90d4bd);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(163, 134, 177, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(163, 134, 177, 0.4);
    background: linear-gradient(135deg, #90d4bd, #a386b1);
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover svg {
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .coaches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }
    
    /* Reset positioning y crear diseño 2-2-1 para tablets */
    .coach-card:nth-child(1),
    .coach-card:nth-child(2),
    .coach-card:nth-child(3),
    .coach-card:nth-child(4),
    .coach-card:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
    }
    
    /* Centrar el 5to elemento en su propia fila */
    .coach-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .coaches-section {
        padding: 4rem 0;
    }
    
    .coaches-container {
        padding: 0 1.5rem;
    }
    
    .coaches-title {
        font-size: 2.5rem;
    }
    
    .coaches-subtitle {
        font-size: 1.1rem;
    }
    
    .coaches-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
        max-width: 600px;
    }
    
    /* Reset completo para móvil - diseño en columna */
    .coach-card:nth-child(1),
    .coach-card:nth-child(2),
    .coach-card:nth-child(3),
    .coach-card:nth-child(4),
    .coach-card:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }
    
    .coach-image-container {
        height: 250px;
    }
    
    .coach-content {
        padding: 1.5rem;
    }
    
    .coach-name {
        font-size: 1.6rem;
    }
    
    .coach-achievements {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem 2rem;
    }
    
    .achievement-number {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }
    
    .achievement-text {
        font-size: 0.75rem;
        line-height: 1.1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        max-height: 2.2em; /* Aproximadamente 2 líneas con fuente más pequeña */
    }
}

@media (max-width: 480px) {
    .coaches-section {
        padding: 3rem 0;
    }
    
    .coaches-container {
        padding: 0 1rem;
    }
    
    .coaches-title {
        font-size: 2rem;
    }
    
    .coaches-header {
        margin-bottom: 3rem;
    }
    
    .coach-image-container {
        height: 200px;
    }
    
    .coach-content {
        padding: 1.2rem;
    }
    
    .coach-name {
        font-size: 1.4rem;
    }
    
    .coach-description {
        font-size: 0.95rem;
    }
    
    .coach-achievements {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .achievement {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(163, 134, 177, 0.1);
    }
    
    .achievement:last-child {
        border-bottom: none;
    }
    
    .achievement-number {
        font-size: 1.4rem;
    }
    
    .achievement-text {
        font-size: 0.85rem;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
    
    .specialty-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}