/*
 * 3er Round Fit - Brutalist / Urban Design
 */

:root {
    --bg-color: #000000;
    --bg-alt: #050505;
    --text-color: #ffffff;
    --text-muted: #b3b3b3;
    --line-soft: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.3);
    --accent-color: #FF6600;
    --accent-ink: #000000;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --gap-sm: 20px;
    --gap-md: 50px;
    --gap-lg: 100px;
    --gap-xl: 150px;

    --nav-h: 96px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Tambien en html y no solo en body: en movil (iOS/Android) el
       overflow del body no basta y el marquee inclinado, que sobresale
       ~9px por lado, ensanchaba el viewport y sacaba el hamburguesa
       de pantalla. clip (no hidden) para no romper position:sticky. */
    overflow-x: clip;
    scroll-behavior: smooth;
    /* Los anclas no quedan tapadas por la navbar fija */
    scroll-padding-top: var(--nav-h);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: clip; /* clip, no hidden: hidden rompe position:sticky */
}

img, video {
    max-width: 100%;
}

/* Foco visible para navegación por teclado (WCAG 2.4.7) */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/*
 * Patrón "visually hidden": oculto para la vista pero accesible al tabular.
 * No usa left:-9999px (genera overflow horizontal) ni transform.
 */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    background: var(--accent-color);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 12px 20px;
    text-decoration: none;
}

/* Typography Utilities */
/* Etiquetas pequenas en mayusculas (nav, badges, flags): 0.75rem = 12px
   es el minimo; por debajo se leian mal en movil. */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
}
.accent {
    color: var(--accent-color);
}
.huge-text {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 10rem);
    line-height: 0.85;
    text-transform: uppercase;
}
.massive-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.8;
    text-transform: uppercase;
    margin-bottom: var(--gap-md);
}
.body-text {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 60ch;
    color: #f0f0f0;
}
.highlight-text {
    color: var(--accent-color);
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    isolation: isolate;
}

/* Al hacer scroll solo cambia el fondo, con opacity: la barra no cambia
   de tamaño (antes animaba padding y la altura del logo). */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #0a0a0a;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.navbar.scrolled::before {
    opacity: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.brand-logo:hover {
    transform: scale(1.05);
}

.brand-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* ============================================================
   Barra horizontal (patrón SPGA: links fuera del hamburguesa).
   El hamburguesa y el menú fullscreen solo viven bajo --nav-bp.
   ============================================================ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0 auto;
}

.nav-links a {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible { border-bottom-color: var(--accent-color); }

/* Scroll spy: marca la sección que se está viendo */
.nav-links a.is-active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: none;
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    padding: 9px 18px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--accent-ink);
}

/* Hamburguesa: <button> real, accesible por teclado */
.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    flex: none;
}

/* Por debajo de 1080px no caben seis links: vuelve el hamburguesa */
@media (max-width: 1080px) {
    .nav-links,
    .nav-actions { display: none; }
    .menu-btn { display: block; }
}

.menu-btn-lines,
.menu-btn-lines::before,
.menu-btn-lines::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.menu-btn-lines { top: 50%; transform: translateY(-50%); }
.menu-btn-lines::before { top: -12px; }
.menu-btn-lines::after { top: 12px; }

.menu-btn.open .menu-btn-lines { background-color: transparent; }
.menu-btn.open .menu-btn-lines::before { top: 0; transform: rotate(45deg); }
.menu-btn.open .menu-btn-lines::after { top: 0; transform: rotate(-45deg); }

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background-color: var(--accent-color);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}
.fullscreen-menu.active {
    clip-path: circle(150% at 100% 0%);
}

.menu-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.menu-link {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 8rem);
    color: var(--accent-ink);
    text-decoration: none;
    line-height: 0.9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.menu-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    width: 0%;
    overflow: hidden;
    transition: width 0.4s ease;
    white-space: nowrap;
}

.menu-link:hover::before,
.menu-link:focus-visible::before {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh; /* evita el corte por la barra de Safari iOS */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--nav-h) 5% 140px;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #000;
    background-image: url('assets/hero-poster.jpg');
    background-size: cover;
    background-position: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Garantiza contraste AA del texto blanco sobre el video */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.5) 65%, rgba(0,0,0,0.9) 100%),
        linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 15rem);
    line-height: 0.85;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-title .line {
    display: block;
}

/* El trazo del hero baja de 2px a 1px (peticion del entrenador).
   Mas especifico que .outline-text, asi que tambien gana sobre el
   1.5px del breakpoint movil.
   Nunca por debajo de 1px: Windows (pantalla 1x) redondea un trazo
   de 0.1px a un pixel entero, pero Mac/iPhone (Retina 2x-3x) lo pintan
   casi literal y el texto desaparece. */
.hero-title .outline-text {
    -webkit-text-stroke-width: 1px;
}

.hero-badge {
    margin-top: 25px;
    font-size: clamp(0.75rem, 1.6vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    max-width: 34ch;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 35px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 30px;
}
.hero-actions .btn-brutal {
    flex: 0 0 auto;
    font-size: 1.6rem;
}
.hero-link {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding: 6px 0;
}
.hero-link:hover { color: var(--accent-color); }

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 5%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
}

.scroll-down svg {
    animation: bounceY 2s infinite;
}

@keyframes bounceY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Marquee */
.marquee-wrapper {
    background-color: var(--accent-color);
    padding: 15px 0;
    transform: rotate(-2deg) scale(1.05);
    margin: 50px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--accent-ink);
    letter-spacing: 2px;
}

.marquee span { padding-right: 50px; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Philosophy Section */
.philosophy {
    padding: var(--gap-xl) 5%;
}

/* flex-start, no center: el H2 debe empezar a la altura del tope de la foto */
.philosophy-container {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-lg);
}

.philosophy-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

/* ============================================================
   Disciplinas, claim y avales (sección Filosofía)
   ============================================================ */
.philosophy-claim {
    font-size: 1.18rem;
    line-height: 1.6;
    color: #fff;
    max-width: 54ch;
    border-left: 4px solid var(--accent-color);
    padding-left: 18px;
    margin-top: var(--gap-sm);
}

.disciplinas {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -6px;
}
.disciplinas li {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid var(--line-strong);
    padding: 7px 16px 5px;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.disciplinas li:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Bloque de avales: el argumento mas fuerte del club, fuera del parrafo */
.avales {
    margin-top: var(--gap-sm);
    border-top: 2px solid var(--accent-color);
    padding-top: 20px;
}

.avales-kicker {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.avales-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.aval {
    flex: 1 1 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 18px 16px;
    transition: border-color 0.25s ease;
}
.aval:hover { border-color: var(--line-strong); }

/*
 * Los logos oficiales de IBA y WBC son oscuros sobre transparente:
 * sobre el fondo negro no se leerian. Van sobre una placa gris clara
 * con trama diagonal, que los hace legibles sin alterar las marcas y
 * encaja mejor con el sistema que un blanco puro.
 * La caja fija + object-fit iguala opticamente un logo cuadrado (WBC)
 * con uno muy apaisado (IBA).
 */
.aval-logo {
    width: 100%;
    max-width: 210px;
    height: 92px;
    object-fit: contain;
    display: block;
    background-color: #d7d7d7;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.055) 0 2px,
        rgba(0, 0, 0, 0) 2px 7px
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 14px;
    margin-bottom: 8px;
}

/* Respaldo tipografico: si el logo no esta, esto sostiene el bloque */
.aval-sigla {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 0.9;
    letter-spacing: 2px;
    color: #fff;
}
/* Con logo presente, la sigla sobra */
.aval-logo + .aval-sigla { display: none; }

.aval-nombre {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.link-btn {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--gap-md);
    cursor: pointer;
    transition: transform 0.3s ease;
    align-self: flex-start;
}

.link-btn:hover {
    transform: translateX(15px);
}

.philosophy-img {
    flex: 1;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.philosophy-img img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.05);
    transition: filter 0.5s;
    display: block;
}

.philosophy-img:hover img {
    filter: brightness(1) contrast(1.05);
}

.img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--accent-color);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 1.5rem;
    padding: 5px 15px;
    transform: rotate(-5deg);
}

/* Interactive Training Section */
/*
 * La seccion es mas alta que la pantalla, asi que un fondo anclado a ella
 * se desplaza al hacer scroll: al llegar a la ultima modalidad, el motivo
 * de la imagen ya habia salido por arriba.
 * Fondo y velo van sticky con margin-bottom negativo: no ocupan sitio en el
 * flujo pero se quedan pegados a la pantalla mientras la seccion esta a la
 * vista, asi la imagen se ve entera en cualquier punto del scroll.
 * Por eso la seccion deja de ser flex: los sticky deben estar en flujo.
 */
.training-section {
    /* Sin padding propio: el fondo sticky debe arrancar en el borde mismo
       de la seccion, o el primer tramo se ve sin imagen. El aire lo pone
       .training-content. */
    padding: 0;
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    /* Recorta el fondo sticky al borde de la seccion: sin esto seguia
       pintado sobre la seccion siguiente (El equipo). clip y no hidden,
       que hidden crearia contenedor de scroll y romperia el sticky. */
    overflow: clip;
}

.training-bg,
.training-scrim {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    /* La resta tiene que usar la MISMA unidad que la altura. En iOS Safari
       100vh (sin barras) es ~90px mas alto que 100svh (con barras): con
       height:100svh y margin:-100vh cada capa subia el contenido esos px,
       y entre fondo y velo la lista acababa encima de "NUESTROS ROUNDS". */
    margin-bottom: -100vh;
    margin-bottom: -100svh;
    pointer-events: none;
}

.training-bg {
    z-index: 0;
    background-color: #000;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
}

.training-scrim {
    z-index: 1;
    background: rgba(0, 0, 0, 0.72);
}

/* Cabecera fuera del fondo sticky: el titulo se lee sobre negro y la imagen
   empieza justo en la linea superior de la lista. */
.training-head {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--gap-xl) 5% var(--gap-md);
}

.training-head .section-title {
    /* El aire lo pone el padding de .training-head: con el margen del titulo
       se sumaban los dos y la imagen bajaba de mas. */
    margin-bottom: 0;
}

.training-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Sin padding arriba: el borde de .training-list debe caer exactamente
       sobre el canto superior de la imagen. */
    padding: 0 5% var(--gap-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 8rem);
    line-height: 1;
    margin-bottom: var(--gap-md);
}

.training-list {
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.training-item {
    border-bottom: 1px solid var(--line-strong);
    padding: 40px 0;
    cursor: pointer;
}

.item-media { display: none; }

.item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.item-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 5rem);
    line-height: 1.05;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease, transform 0.3s ease;
}

.item-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    text-align: right;
    /* Siempre visible: antes solo salía con :hover y quien no pasaba el
       ratón (o navegaba con teclado) nunca leía qué es cada modalidad. */
    color: rgba(255, 255, 255, 0.85);
}

/* Credencial de cada modalidad, destacada del parrafo */
.item-flag {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
    line-height: 1.5;
}

.training-item:hover .item-title {
    transform: translateX(12px);
    color: #fff;
    -webkit-text-stroke: 1px var(--accent-color);
}
.training-item:hover .item-desc {
    color: #fff;
}

/*
 * En pantallas táctiles no existe :hover.
 * Sin esto la descripción de cada modalidad NUNCA se ve en móvil.
 */
@media (hover: none) {
    /* Fondo más oscuro: en móvil el texto compite con una foto muy cargada */
    .training-scrim {
        background: rgba(0, 0, 0, 0.84);
    }

    .training-item {
        display: flex;
        align-items: flex-start;
        gap: 18px;
        padding: 25px 0;
    }

    .item-media {
        display: block;
        flex: 0 0 110px;
        width: 110px;
        height: 110px;
        overflow: hidden;
    }
    .item-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .item-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .item-desc {
        text-align: left;
        font-size: 1rem;
        max-width: none;
    }
}

/* ============================================================
   Entrenadores
   ============================================================ */
.coaches-section {
    padding: var(--gap-xl) 5%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--line-soft);
}

.coaches-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: var(--gap-lg);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 20px;
}

.coaches-header p {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Son 3 entrenadores: con auto-fit, en tablet quedaban 2 + 1 huerfano.
   3 columnas fijas desde tablet; en movil una sola, con tope de ancho
   para que la foto 3:4 no ocupe varias pantallas. */
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}
/* Tablet: 3 columnas de ~210px partían nombres y cargos en 2-3 líneas.
   Mismo patrón que los testimonios: una columna, foto al lado. */
@media (max-width: 999px) and (min-width: 761px) {
    /* .coaches-grid delante: estas reglas van antes que las base de la
       tarjeta en el archivo y sin él las pisaban */
    .coaches-grid { grid-template-columns: minmax(0, 1fr); }
    .coaches-grid .coach-card { flex-direction: row; }
    .coaches-grid .coach-photo {
        flex: 0 0 40%;
        aspect-ratio: auto;
        min-height: 320px;
    }
    .coaches-grid .coach-body { align-self: center; }
}
@media (max-width: 760px) {
    .coaches-grid {
        grid-template-columns: minmax(0, 420px);
        justify-content: center;
    }
}

.coach-card {
    border: 1px solid var(--line-soft);
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.coach-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-6px);
}

.coach-photo {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111;
}
.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.35) brightness(0.9) contrast(1.08);
    transition: filter 0.5s ease, transform 0.6s ease;
}
.coach-card:hover .coach-photo img {
    filter: grayscale(0) brightness(1) contrast(1.08);
    transform: scale(1.04);
}

/* Segunda foto (accion): aparece encima con fundido al pasar el raton,
   al enfocar con teclado o al tocar la tarjeta en movil (.is-alt, main.js) */
.coach-photo .coach-photo-alt {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s ease;
}
.coach-card--alt:hover .coach-photo-alt,
.coach-card--alt:focus-within .coach-photo-alt,
.coach-card--alt.is-alt .coach-photo-alt {
    opacity: 1;
}
.coach-card--alt.is-alt .coach-photo img {
    filter: grayscale(0) brightness(1) contrast(1.08);
}
.coach-card--alt { cursor: pointer; }

/* Hueco visible cuando aún falta la foto de un entrenador */
.coach-photo--vacia {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed var(--accent-color);
    background: repeating-linear-gradient(
        45deg, #0d0d0d, #0d0d0d 12px, #121212 12px, #121212 24px
    );
}
.coach-photo--vacia span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    border: 2px dashed var(--accent-color);
    padding: 10px 18px;
}

.coach-body {
    padding: 22px 20px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.coach-name {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.coach-role {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.coach-facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.coach-facts li {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-muted);
}
.coach-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 10px;
    height: 2px;
    background: var(--accent-color);
}

/* Daniel es el unico con aval IBA/WBC: se destaca */
.coach-card--cert { border-color: var(--accent-color); }

.coach-cert {
    align-self: flex-start;
    background: var(--accent-color);
    color: var(--accent-ink);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 4px 9px;
    margin-bottom: 4px;
}

/* ============================================================
   Horarios
   ============================================================ */
.schedule-section {
    position: relative;
    isolation: isolate;
    padding: var(--gap-xl) 5%;
    border-top: 1px solid var(--line-soft);
    overflow: hidden;
}

.schedule-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #050505 url('assets/train-recreativo.jpg') center 40% / cover no-repeat;
}
.schedule-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 40%, rgba(0,0,0,.96) 100%);
}
.schedule-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 22px;
    margin-bottom: var(--gap-md);
}

.schedule-meta { text-align: right; }

.schedule-kicker {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Indicador en vivo: se calcula con la hora del visitante */
.next-class {
    display: inline-block;
    margin-top: 10px;
    background: var(--accent-color);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    padding: 6px 14px;
}

/* 210px hace que las tres columnas aguanten juntas desde ~700px:
   con 260px el sabado caia solo a una segunda fila y volvia el hueco. */
.schedule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 18px;
    align-items: stretch;
}

.sch-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-strong);
    background: rgba(8, 8, 8, 0.86);
    padding: 26px 22px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.sch-card:hover { border-color: var(--accent-color); transform: translateY(-5px); }

.sch-card--sabado { border-color: var(--accent-color); }

.sch-card-head {
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.sch-card-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.sch-card-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.95;
    letter-spacing: 1.5px;
}

.sch-slots {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sch-slots li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sch-slots li:last-child { border-bottom: none; }

.sch-slots b {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: 1px;
    min-width: 3.6ch;
}

.sch-slots span {
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sch-slots .is-kids b,
.sch-slots .is-special b { color: var(--accent-color); }
.sch-slots .is-kids span { color: var(--accent-color); }

.sch-card-note {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.schedule-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: var(--gap-md);
    border-top: 1px solid var(--line-soft);
    padding-top: 28px;
}
.schedule-cta p {
    font-size: 1.05rem;
    color: #f0f0f0;
    max-width: 46ch;
}
.schedule-cta .btn-brutal { flex: 0 0 auto; }

@media (max-width: 700px) {
    .schedule-header { align-items: flex-start; }
    .schedule-meta { text-align: left; }
    .schedule-cta { flex-direction: column; align-items: stretch; }
    .schedule-cta .btn-brutal { width: 100%; }
}

.accent-link {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}
.accent-link:hover {
    text-decoration: underline;
}

/* ============================================================
   Marcador de contenido pendiente
   Cualquier texto real que falte se ve así hasta que se rellene.
   Objetivo: que sea imposible publicarlo por descuido.
   ============================================================ */
/* Fondo propio opaco: debe leerse tanto sobre negro como sobre el bloque naranja */
.pendiente {
    outline: 2px dashed var(--accent-color);
    outline-offset: 4px;
    background: #0a0a0a;
    color: var(--accent-color) !important;
    -webkit-text-stroke: 0 !important;
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 2px 8px;
}
.pendiente::after {
    content: "PENDIENTE";
    position: absolute;
    top: -10px;
    right: -6px;
    background: var(--accent-color);
    color: var(--accent-ink);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    line-height: 1;
}

/* ============================================================
   Precios
   ============================================================ */
/* Preguntas frecuentes: <details> nativo, accesible sin JS.
   Escritorio: titulo y CTA fijos a la izquierda, acordeon a la derecha
   (antes la lista de 900px dejaba media pantalla vacia).
   Movil: una columna y el CTA al final, despues de las preguntas. */
.faq-section {
    padding: var(--gap-xl) 5%;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--gap-md) var(--gap-lg);
    align-items: start;
}

.faq-aside {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* En la columna estrecha "FRECUENTES" a 10vw se salía entre 900 y 1200px */
.faq-head .huge-text {
    margin-bottom: 24px;
    font-size: clamp(3.5rem, 7vw, 8rem);
}

.faq-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 36ch;
}

.faq-cta {
    border-top: 2px solid var(--accent-color);
    padding-top: 24px;
}
.faq-cta p {
    font-weight: 600;
    margin-bottom: 16px;
}

/* Acción secundaria: el naranja relleno se reserva para el pie */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid #fff;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-decoration: none;
}
.btn-outline:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--accent-ink);
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-item {
    border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    flex: none;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-color); }

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 40px 24px 0;
    max-width: 70ch;
}

/* Enlaces dentro de las respuestas: subrayados, no solo por color */
.faq-item a,
.pricing-more a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-item a:hover,
.pricing-more a:hover { color: #fff; }

@media (max-width: 900px) {
    .faq-section {
        grid-template-columns: minmax(0, 1fr);
    }
    /* El aside se deshace para poder mandar el CTA al final */
    .faq-aside { display: contents; }
    .faq-cta { order: 1; }
    .faq-head .huge-text { font-size: clamp(3.5rem, 10vw, 10rem); }
    .faq-item p { padding-right: 0; }
}

.pricing-section {
    padding: var(--gap-xl) 5%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--line-soft);
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: var(--gap-md);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 20px;
}

.pricing-header p {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.pricing-more {
    margin-top: 32px;
    color: var(--text-muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 34px 26px 30px;
    border: 1px solid var(--line-strong);
    background: var(--bg-alt);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.plan:hover { border-color: var(--accent-color); transform: translateY(-6px); }

.plan--destacado {
    border: 2px solid var(--accent-color);
    background: #0b0b0b;
}

.plan-flag {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--accent-color);
    color: var(--accent-ink);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 5px 10px;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 1.5px;
    line-height: 1;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 3.6rem;
    line-height: 0.9;
    color: var(--accent-color);
}
.plan-price span { font-size: 0.45em; vertical-align: super; margin-left: 2px; }

.plan-period {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: -6px;
}

.plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 22px;
    flex: 1;
}
.plan-list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #e8e8e8;
}
.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 12px;
    height: 2px;
    background: var(--accent-color);
}

.plan-cta {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    padding: 13px 18px;
    background: transparent;
    color: #fff;
    border: 2px solid var(--line-strong);
    transition: all 0.2s ease;
    margin-top: auto;
}
.plan-cta:hover { border-color: #fff; box-shadow: 4px 4px 0 var(--accent-color); }
.plan--destacado .plan-cta { background: var(--accent-color); color: var(--accent-ink); border-color: var(--accent-color); }
.plan--destacado .plan-cta:hover { box-shadow: 4px 4px 0 #fff; }

/* ============================================================
   Testimonios
   ============================================================ */
.testimonials-section {
    padding: var(--gap-xl) 5%;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--line-soft);
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: var(--gap-md);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 20px;
}
.testimonials-header p {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* 3 columnas en escritorio. En tablet 3 columnas quedan demasiado
   estrechas para las citas y auto-fit dejaba 2 + 1 huerfano: ahi cada
   tarjeta pasa a horizontal (foto a la izquierda). En movil, una
   columna con tope de ancho. */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: #0f0f0f;
    border: 1px solid var(--line-soft);
    border-bottom: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-6px);
}

.testimonial-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}
.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.35) brightness(0.9) contrast(1.08);
    transition: filter 0.5s ease, transform 0.6s ease;
}
.testimonial-card:hover .testimonial-photo img {
    filter: grayscale(0) brightness(1) contrast(1.08);
    transform: scale(1.04);
}

/* Foto en el gimnasio: mismo fundido que en los entrenadores */
.testimonial-photo .testimonial-photo-alt {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s ease;
}
.testimonial-card--alt:hover .testimonial-photo-alt,
.testimonial-card--alt:focus-within .testimonial-photo-alt,
.testimonial-card--alt.is-alt .testimonial-photo-alt {
    opacity: 1;
}
.testimonial-card--alt.is-alt .testimonial-photo img {
    filter: grayscale(0) brightness(1) contrast(1.08);
}
.testimonial-card--alt { cursor: pointer; }

.testimonial-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--accent-color);
    color: var(--accent-ink);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 6px 12px;
}

.testimonial-body {
    padding: 28px 26px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
}

.testimonial-quote {
    overflow-wrap: anywhere; /* una palabra larga no ensancha la tarjeta */
    font-size: 1.05rem;
    line-height: 1.6;
    color: #f0f0f0;
    flex: 1;
}

@media (max-width: 999px) {
    .testimonials-grid { grid-template-columns: minmax(0, 1fr); }
    .testimonial-card { flex-direction: row; }
    .testimonial-photo {
        flex: 0 0 40%;
        aspect-ratio: auto;
        min-height: 300px;
    }
}
@media (max-width: 599px) {
    .testimonials-grid {
        grid-template-columns: minmax(0, 480px);
        justify-content: center;
    }
    .testimonial-card { flex-direction: column; }
    .testimonial-photo {
        flex: none;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }
}

/* Tarjeta sin cita (Linares): el logro ocupa el sitio de la cita */
.testimonial-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f0f0f0;
}
.testimonial-stat strong {
    font-size: 5.5em;
    font-weight: 400;
    line-height: 0.8;
    color: var(--accent-color);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-name {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.testimonial-meta {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* Footer */
.footer {
    padding: var(--gap-xl) 5% var(--gap-md);
    background-color: var(--bg-alt);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: var(--gap-lg);
    margin-bottom: var(--gap-lg);
}

.footer-title {
    color: #fff;
    font-size: clamp(3.5rem, 8vw, 7rem);
}

.footer-lead {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.footer-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-brutal {
    font-family: var(--font-display);
    font-size: 1.8rem;
    background-color: var(--accent-color);
    color: var(--accent-ink);
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    flex: 1;
    text-align: center;
}

.btn-light {
    background-color: #fff;
    color: #000;
}

.btn-brutal:hover {
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0 #fff;
}
.btn-light:hover {
    box-shadow: 5px 5px 0 var(--accent-color);
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap-md);
}

.info-block h3 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* #b3b3b3 sobre #050505 = 9.4:1 — cumple WCAG AA con holgura */
.info-block p,
.info-block a {
    color: var(--text-muted);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.info-block a:hover {
    color: #fff;
    text-decoration: underline;
}

.info-block .accent-link {
    color: var(--accent-color);
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Barra fija de WhatsApp (móvil/tablet). Debajo del menú fullscreen (999). */
.sticky-cta {
    display: none;
}
@media (max-width: 1080px) {
    .sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
        background: var(--accent-color);
        color: var(--accent-ink);
        font-family: var(--font-display);
        font-size: 1.4rem;
        text-decoration: none;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
        transform: translateY(110%);
        transition: transform 0.3s ease;
    }
    .sticky-cta.is-visible {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    :root {
        --gap-xl: 90px;
        --gap-lg: 60px;
    }

    .philosophy-container {
        flex-direction: column;
    }
    .philosophy-img {
        clip-path: none;
        width: 100%;
    }
    .philosophy-img img {
        height: 460px;
    }

    .btn-brutal {
        font-size: 1.4rem;
        padding: 15px;
        flex-basis: 100%;
    }

    /* El trazo de 2px hace ilegible el texto grande en pantallas pequeñas */
    .outline-text {
        -webkit-text-stroke-width: 1.5px;
    }
}

@media (max-width: 600px) {
    .hero-badge {
        letter-spacing: 0.12em;
    }
    .footer-actions {
        flex-direction: column;
    }
}

/* Respeta la preferencia del sistema (WCAG 2.3.3 / 2.2.2) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .marquee {
        animation: none;
        transform: none;
    }
}

/* ============================================================
   iPHONE Y MÓVIL
   Va al final para ganar a las reglas anteriores sin tocarlas.
   1) Correcciones de Safari en iOS (valen para cualquier ancho).
   2) Diseño de móvil (<= 600px): menos scroll y más fácil al tacto.
   ============================================================ */

/* iOS: sin esto, al girar el iPhone Safari agranda el texto solo */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* iOS: el recuadro gris al tocar un enlace se ve sucio en fondo negro.
   A cambio, los botones responden al toque con :active. */
a, button, summary {
    -webkit-tap-highlight-color: transparent;
}
.btn-brutal:active,
.btn-outline:active,
.plan-cta:active,
.nav-cta:active,
.sticky-cta:active {
    opacity: 0.8;
}

/* Notch y barra de inicio (viewport-fit=cover en el <meta viewport>):
   en horizontal el contenido no queda debajo de la isla dinámica. */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.navbar {
    padding-left: max(4%, env(safe-area-inset-left));
    padding-right: max(4%, env(safe-area-inset-right));
    padding-top: max(14px, env(safe-area-inset-top));
}

/* Cinta naranja inclinada: se recorta aquí y no en html/body, porque
   overflow-x:clip no existe en iOS < 16 y hidden rompe el sticky. */
.marquee-clip {
    overflow: hidden;
}

/* iOS en modo ahorro de batería no reproduce el video y pinta encima un
   botón de play enorme: se oculta y queda el póster. */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
}

/* Pantallas táctiles (iPhone): Safari deja el :hover "pegado" tras tocar.
   Las tarjetas se quedaban levantadas y la segunda foto de entrenadores
   y testimonios no volvía a la primera al tocar otra vez. */
@media (hover: none) {
    .plan:hover,
    .sch-card:hover,
    .coach-card:hover,
    .testimonial-card:hover,
    .brand-logo:hover {
        transform: none;
    }
    .btn-brutal:hover {
        transform: none;
        box-shadow: none;
    }
    .philosophy-img:hover img,
    .coach-card:hover .coach-photo img,
    .testimonial-card:hover .testimonial-photo img {
        transform: none;
    }
    /* La segunda foto solo con el toque (.is-alt, main.js), no con :hover */
    .coach-card--alt:not(.is-alt):hover .coach-photo-alt,
    .coach-card--alt:not(.is-alt):focus-within .coach-photo-alt,
    .testimonial-card--alt:not(.is-alt):hover .testimonial-photo-alt,
    .testimonial-card--alt:not(.is-alt):focus-within .testimonial-photo-alt {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    /* Menos aire entre secciones: la página pasaba de 20 pantallas */
    :root {
        --gap-xl: 64px;
        --gap-lg: 48px;
        --gap-md: 32px;
    }

    /* Zonas táctiles de al menos 44px (antes 24-30px) */
    .scroll-down,
    .link-btn {
        min-height: 44px;
    }
    .hero-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .info-block a,
    .info-block .accent-link {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    /* Avales IBA y WBC uno al lado del otro, no dos bloques enormes */
    .avales-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .aval {
        padding: 14px 12px 12px;
    }
    .aval-nombre {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    /* Entrenadores y testimonios: carrusel horizontal que se desliza con
       el dedo. Antes cada tarjeta ocupaba una pantalla entera (6 pantallas
       entre las dos secciones). Se ve el borde de la siguiente tarjeta
       para que se entienda que hay más. */
    .coaches-grid,
    .testimonials-grid {
        display: flex;
        /* Las reglas de <=760px y <=599px centran la rejilla: en un
           carrusel eso deja la primera tarjeta fuera de alcance */
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-inline: -5vw;
        padding-inline: 5vw;
        scroll-padding-inline: 5vw;
        padding-bottom: 4px;
    }
    .coaches-grid::-webkit-scrollbar,
    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }
    .coach-card,
    .testimonial-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
    .coach-photo {
        aspect-ratio: 4 / 5;
    }
    .testimonial-card { flex-direction: column; }
    .testimonial-photo {
        flex: none;
        aspect-ratio: 4 / 3;
        min-height: 0;
    }
    .testimonial-body {
        padding: 20px 18px 22px;
        gap: 16px;
    }
    .testimonial-quote {
        font-size: 0.98rem;
    }
    .coaches-header p::after,
    .testimonials-header p::after {
        content: "Desliza para ver más";
        display: block;
        margin-top: 10px;
        color: var(--text-muted);
        font-weight: 600;
        letter-spacing: 0.08em;
        font-size: 0.8rem;
        text-transform: none;
    }

    /* Horarios: las horas en fila como fichas, no una por renglón */
    .sch-card {
        padding: 20px 18px;
    }
    .sch-card-head {
        padding-bottom: 10px;
        margin-bottom: 14px;
    }
    .sch-slots {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sch-slots li {
        padding: 8px 12px;
        border: 1px solid var(--line-soft);
        gap: 6px;
    }
    .sch-slots li:last-child {
        border-bottom: 1px solid var(--line-soft);
    }
    .sch-slots b {
        font-size: 1.5rem;
        min-width: 0;
    }

    /* Precios: tarjetas más compactas */
    .plan {
        padding: 26px 20px 22px;
        gap: 6px;
    }
    .plan-price {
        font-size: 3rem;
    }
    .plan-list {
        gap: 6px;
        margin: 10px 0 16px;
    }
}
