/* ============================================================
   FAMILIA FLIPPERS v2  |  TheCodeCrack Solutions
   Paleta: negro marino · navy profundo · acento océano
   Filosofía: elegancia angular, sin bordes redondeados
   ============================================================ */

/* ======== 1. VARIABLES ======== */
:root {
    --ink:        #020b18;
    --navy-1:     #050f22;
    --navy-2:     #080f1e;
    --navy-3:     #0c1a2e;
    --navy-4:     #101f38;
    --navy-5:     #162844;

    --ocean:      #0088ab;
    --ocean-hi:   #00c2de;
    --ocean-glow: rgba(0, 194, 222, 0.10);

    --white:      #edf6fb;
    --text:       #c4dcea;
    --text-dim:   #6a98b0;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Poppins', sans-serif;

    --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --t:        0.35s;
    --t-slow:   0.75s;

    --border-subtle: 1px solid rgba(0, 194, 222, 0.10);
    --border-mid:    1px solid rgba(0, 194, 222, 0.22);

    --shadow-card: 0 8px 32px rgba(2, 11, 24, 0.55);

    --preloader-duration: 4s;
    --logo-animation-duration: 1.2s;
}

/* ======== 2. RESET & BASE ======== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--navy-2);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; overflow: hidden; }
.text-center { text-align: center; }

/* ======== 3. TIPOGRAFÍA ======== */
.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
}
.section__subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}
.section__title::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--ocean-hi);
    margin-top: 1.1rem;
    transition: width 0.9s var(--ease-out) 0.2s;
}
.text-center .section__title::after { margin-left: auto; margin-right: auto; }
.fade-in.visible .section__title::after,
.slide-in-left.visible .section__title::after,
.slide-in-right.visible .section__title::after { width: 64px; }

/* ======== 4. BOTONES ======== */
.btn {
    display: inline-block;
    padding: 14px 38px;
    border: 1px solid currentColor;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--t) var(--ease), color var(--t) var(--ease),
                border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn--primary { background: var(--ocean); color: var(--white); border-color: var(--ocean); }
.btn--primary:hover {
    background: transparent; color: var(--ocean-hi);
    border-color: var(--ocean-hi); transform: translateY(-2px);
}
.btn--secondary {
    background: transparent; color: var(--ocean-hi);
    border-color: var(--ocean-hi); margin-top: 1.75rem;
}
.btn--secondary:hover {
    background: var(--ocean-hi); color: var(--ink); transform: translateY(-2px);
}
.btn--ghost {
    background: transparent;
    color: rgba(237, 246, 251, 0.85);
    border-color: rgba(237, 246, 251, 0.35);
}
.btn--ghost:hover {
    background: rgba(237, 246, 251, 0.08);
    border-color: var(--white); color: var(--white); transform: translateY(-2px);
}

/* ======== 5. PRELOADER ======== */
.preloader {
    position: fixed; inset: 0;
    background: var(--ink);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s var(--ease);
    overflow: hidden;
}
.preloader::before {
    content: '';
    position: absolute; inset: -50%;
    background: repeating-linear-gradient(
        -28deg, transparent, transparent 55px,
        rgba(0, 194, 222, 0.03) 55px, rgba(0, 194, 222, 0.03) 56px
    );
    animation: causticDrift 14s linear infinite;
    pointer-events: none;
}
.preloader::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 35%, transparent 30%, rgba(2, 11, 24, 0.70) 100%);
    pointer-events: none;
}
@keyframes causticDrift {
    from { transform: translate3d(0, 0, 0) rotate(0deg); }
    to   { transform: translate3d(80px, 32px, 0) rotate(3deg); }
}
.preloader__logo {
    width: 160px; margin-bottom: 2.5rem;
    position: relative; z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
    transition:
        top var(--logo-animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
        left var(--logo-animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
        width var(--logo-animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
        height var(--logo-animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.8s var(--ease);
    filter: drop-shadow(0 0 40px rgba(0, 194, 222, 0.28)) drop-shadow(0 16px 32px rgba(2, 11, 24, 0.5));
}
.preloader__logo img { width: 100%; }
@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-12px) scale(1.02); }
}
.preloader__progress {
    width: 200px; height: 2px;
    background: rgba(255, 255, 255, 0.07);
    position: relative; z-index: 2;
}
.preloader__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ocean), var(--ocean-hi));
    transform: scaleX(0); transform-origin: left;
    animation: load var(--preloader-duration) var(--ease) forwards;
}
@keyframes load { to { transform: scaleX(1); } }
body.loading-complete .preloader { opacity: 0; pointer-events: none; }

/* ======== 6. HEADER & NAVBAR ======== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 100; padding: 0 5%;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-header.scrolled {
    background: rgba(5, 15, 34, 0.95);
    backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: var(--border-subtle);
}
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1280px; margin: 0 auto; height: 80px;
    position: relative;
}
.navbar__logo-placeholder {
    height: 68px; opacity: 0; flex-shrink: 0;
    transition: opacity var(--t) var(--ease);
}
body.loading-complete .navbar__logo-placeholder {
    opacity: 1; transition-delay: var(--logo-animation-duration);
}
.navbar__logo-placeholder img { height: 100%; width: auto; }
.navbar__links { display: none; gap: 32px; align-items: center; }

/* Links — override chip styles from HTML */
.navbar__link,
.navbar__link.nav-chip {
    color: rgba(196, 220, 234, 0.72) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    position: relative;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transition: color var(--t) var(--ease);
}
.navbar__link::after,
.navbar__link.nav-chip::after {
    content: '';
    position: absolute; bottom: -5px; left: 0;
    width: 0; height: 1px;
    background: var(--ocean-hi);
    transition: width var(--t) var(--ease);
}
.navbar__link:hover,
.navbar__link.nav-chip:hover { color: var(--white) !important; }
.navbar__link:hover::after,
.navbar__link.nav-chip:hover::after { width: 100%; }
.navbar__link.is-active,
.navbar__link.nav-chip.is-active { color: var(--white) !important; box-shadow: none !important; }
.navbar__link.is-active::after,
.navbar__link.nav-chip.is-active::after { width: 100%; }

/* Admin link — exception: keeps border treatment */
.navbar__link--admin,
.navbar__link.nav-chip.navbar__link--admin {
    background: transparent !important;
    color: var(--ocean-hi) !important;
    border: 1px solid rgba(0, 194, 222, 0.40) !important;
    padding: 8px 18px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.18em !important;
}
.navbar__link--admin::after,
.navbar__link.nav-chip.navbar__link--admin::after { display: none; }
.navbar__link--admin:hover,
.navbar__link.nav-chip.navbar__link--admin:hover {
    background: var(--ocean-hi) !important;
    color: var(--ink) !important;
    border-color: var(--ocean-hi) !important;
}

/* Hamburger */
.navbar__toggle { display: block; background: transparent; border: none; cursor: pointer; z-index: 200; padding: 10px; }
.hamburger { display: block; position: relative; width: 26px; height: 2px; background: var(--white); transition: background var(--t) var(--ease); }
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; width: 26px; height: 2px;
    background: var(--white); transition: all var(--t) var(--ease);
}
.hamburger::before { transform: translateY(-9px); }
.hamburger::after  { transform: translateY(9px); }
.navbar__toggle.active .hamburger { background: transparent; }
.navbar__toggle.active .hamburger::before { transform: rotate(45deg); }
.navbar__toggle.active .hamburger::after  { transform: rotate(-45deg); }

/* Mobile menu — full screen overlay */
.mobile-menu {
    position: fixed; inset: 0;
    background: var(--ink);
    z-index: 99;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu__link {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    font-weight: 300;
    color: rgba(237, 246, 251, 0.72);
    padding: 0.65rem 2rem;
    width: 100%; text-align: center;
    border-bottom: 1px solid rgba(0, 194, 222, 0.07);
    transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.mobile-menu__link:hover {
    color: var(--white);
    background: rgba(0, 194, 222, 0.04);
}
.mobile-menu__link--admin {
    font-family: var(--font-body) !important;
    font-style: normal !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--ocean-hi) !important;
    background: transparent !important;
    border: 1px solid rgba(0, 194, 222, 0.40) !important;
    margin-top: 1.5rem;
    width: auto !important;
    padding: 12px 28px !important;
}
.mobile-menu__link--admin:hover {
    background: var(--ocean-hi) !important;
    color: var(--ink) !important;
}

/* ======== 7. HERO ======== */
.hero {
    position: relative; height: 100vh; min-height: 560px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); overflow: hidden;
}
.hero__video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
    filter: brightness(0.62) saturate(1.1);
}
.hero__overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse 110% 80% at 50% 110%, rgba(5, 15, 34, 0.98) 0%, transparent 55%),
        radial-gradient(ellipse 80% 70% at 15% 20%,  rgba(0, 136, 171, 0.18), transparent 55%),
        linear-gradient(185deg, rgba(5, 15, 34, 0.18) 0%, rgba(5, 15, 34, 0.70) 100%);
}
/* Scan lines — profundidad submarina */
.hero__overlay::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 3px,
        rgba(0, 0, 0, 0.04) 3px, rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
}
.hero__content {
    position: relative; z-index: 2;
    max-width: 900px; padding: 0 24px;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.34em; text-transform: uppercase;
    color: rgba(0, 194, 222, 0.90);
    margin-bottom: 1.5rem;
    animation: heroFadeUp 0.9s var(--ease-out) 0.2s both;
}
.hero__eyebrow::before,
.hero__eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--ocean-hi); }
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7.5vw, 5.8rem);
    font-weight: 300; font-style: italic;
    line-height: 1.04; color: var(--white);
    text-shadow: 0 8px 40px rgba(2, 11, 24, 0.55);
    margin-bottom: 1.25rem;
    animation: heroFadeUp 0.9s var(--ease-out) 0.38s both;
}
.hero__subtitle {
    font-size: clamp(0.92rem, 2vw, 1.12rem);
    max-width: 560px; margin: 0 auto 2rem;
    font-weight: 300; line-height: 1.75;
    color: rgba(196, 220, 234, 0.82);
    animation: heroFadeUp 0.9s var(--ease-out) 0.54s both;
}
.hero__actions {
    display: flex; flex-wrap: wrap; gap: 14px;
    justify-content: center; margin-bottom: 3rem;
    animation: heroFadeUp 0.9s var(--ease-out) 0.68s both;
}
.hero__stats {
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; padding: 0;
    animation: heroFadeUp 0.9s var(--ease-out) 0.82s both;
}
.hero__stats li {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    background: rgba(5, 15, 34, 0.50);
    border: var(--border-subtle);
    font-size: 0.78rem; font-weight: 500;
    color: var(--text); letter-spacing: 0.04em;
}
.hero__stats li i { color: var(--ocean-hi); font-size: 0.9rem; }
.hero__waves {
    position: absolute; bottom: 0; left: 0;
    width: 100%; z-index: 2; line-height: 0; pointer-events: none;
}
.hero__waves svg { display: block; width: 100%; height: auto; min-height: 50px; }
.hero__wave-motion .wave-path { animation: waveShift 10s ease-in-out infinite alternate; }
.hero__wave-motion .wave-path--2 { animation-duration: 13s; animation-delay: -2s; }
@keyframes waveShift {
    from { transform: translateX(-14px); }
    to   { transform: translateX(14px); }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ======== 8. ABOUT (Familia Flippers / Más que natación) ======== */
.about { background: var(--ink); border-top: var(--border-subtle); }
.about.about--alt { background: var(--navy-1); border-top: none; }
.about__container { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; }
.about__text p { line-height: 1.85; margin-bottom: 1.5rem; font-size: 0.97rem; }
.about__highlight {
    font-weight: 600; color: var(--white);
    border-left: 2px solid var(--ocean-hi);
    padding-left: 1.1rem; font-size: 0.95rem;
}
.about__image img {
    width: 100%; border-radius: 0; display: block;
    filter: brightness(0.92) saturate(0.95);
    transition: filter var(--t-slow) var(--ease);
}
.about__image img:hover { filter: brightness(1) saturate(1.05); }

/* ======== 9. CTA ======== */
.cta {
    position: relative;
    background-image: url('../assets/images/seccion.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    padding: 130px 0; text-align: center; color: var(--white);
    border-top: var(--border-subtle); border-bottom: var(--border-subtle);
}
.cta__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 15, 34, 0.90) 0%, rgba(2, 8, 24, 0.82) 100%);
    pointer-events: none;
}
.cta__content { position: relative; z-index: 1; }
.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 300; font-style: italic;
    color: var(--white); margin-bottom: 1.25rem; line-height: 1.08;
}
.cta__title::after {
    content: '';
    display: block; width: 0; height: 1px;
    background: var(--ocean-hi);
    margin: 0.9rem auto 0;
    transition: width 0.9s var(--ease-out) 0.2s;
}
.fade-in.visible .cta__title::after { width: 64px; }
.cta__text {
    max-width: 680px; margin: 0 auto;
    font-size: 1.02rem; line-height: 1.78;
    color: rgba(196, 220, 234, 0.82); font-weight: 300;
}

/* ======== 10. PROGRAMAS ======== */
.programs { background: var(--navy-1); border-top: var(--border-subtle); }

/* Lista elegante de programas */
.programs-list {
    margin-top: 3rem;
    border: var(--border-subtle);
}
.programs-list__item {
    display: grid;
    grid-template-columns: 52px 44px 1fr auto;
    gap: 0 1.5rem;
    align-items: center;
    padding: 1.75rem 2rem;
    background: var(--navy-3);
    border-bottom: var(--border-subtle);
    border-left: 2px solid transparent;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.programs-list__item:last-child { border-bottom: none; }
.programs-list__item:hover {
    background: var(--navy-4);
    border-left-color: var(--ocean-hi);
}
.programs-list__num {
    font-family: var(--font-display);
    font-size: 1.9rem; font-weight: 300; font-style: italic;
    color: rgba(0, 194, 222, 0.18);
    line-height: 1; user-select: none;
}
.programs-list__icon {
    color: var(--ocean-hi); font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--t) var(--ease-out);
}
.programs-list__item:hover .programs-list__icon { transform: scale(1.15); }
.programs-list__info { min-width: 0; }
.programs-list__title {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 400; font-style: italic;
    color: var(--white); margin-bottom: 0.25rem; line-height: 1.2;
}
.programs-list__desc {
    font-size: 0.86rem; color: var(--text-dim); line-height: 1.6;
}
.programs-list .btn {
    white-space: nowrap; margin-top: 0;
    font-size: 0.64rem; padding: 10px 22px; flex-shrink: 0;
}

@media (max-width: 767px) {
    .programs-list__item {
        grid-template-columns: 40px 36px 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.75rem;
        padding: 1.25rem 1rem;
    }
    .programs-list__item .btn {
        grid-column: 1 / -1; margin-top: 0.75rem;
        text-align: center; justify-self: start;
    }
}

/* ======== 11. GALERÍA ======== */
.gallery { background: var(--ink); border-top: var(--border-subtle); }
.gallery-frame, .gallery-frame__inner {
    background: none !important; border: none !important;
    border-radius: 0 !important; padding: 0 !important;
    backdrop-filter: none !important;
}
.gallery-grid { column-count: 3; column-gap: 6px; margin-top: 2.5rem; }
.gallery-item {
    break-inside: avoid; margin-bottom: 6px;
    position: relative; overflow: hidden; cursor: zoom-in;
}
.gallery-item img {
    width: 100%; height: auto; display: block; border-radius: 0;
    filter: brightness(0.88) saturate(0.85);
    transition: transform 0.65s var(--ease-out), filter 0.65s var(--ease);
}
/* Overlay oscuro + icono lupa en hover */
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(2, 11, 24, 0.45);
    opacity: 0;
    transition: opacity var(--t) var(--ease);
    pointer-events: none;
}
.gallery-item::before {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: rgba(237, 246, 251, 0.90);
    opacity: 0;
    transform: scale(0.75);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out);
    pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(0.92) saturate(1.1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover::before { opacity: 1; transform: scale(1); }
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 540px) { .gallery-grid { column-count: 1; } }

/* ======== 12. FUNDADOR ======== */
.founder { background: var(--navy-3); border-top: var(--border-subtle); }

/* Grid: video portrait + historia lateral */
.founder__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 768px) {
    .founder__layout {
        grid-template-columns: minmax(0, 360px) 1fr;
        gap: 4rem;
        align-items: start;
    }
}
@media (min-width: 1024px) {
    .founder__layout { grid-template-columns: minmax(0, 420px) 1fr; gap: 5rem; }
}

/* Video portrait — respeta el 9:16 sin cortar */
.founder__video-wrap {
    position: relative;
    width: 100%;
    /* Portrait: el video se muestra en su ratio vertical natural */
    aspect-ratio: 9 / 16;
    max-height: 75vh;
    overflow: hidden;
    /* Glow oceánico — hace que "brille" */
    box-shadow:
        0 0 0 1px rgba(0, 194, 222, 0.25),
        0 0 60px rgba(0, 194, 222, 0.12),
        0 28px 70px rgba(2, 11, 24, 0.75);
}
.founder__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--ink);
}

/* Acentos angulares en las 4 esquinas */
.founder__corner {
    position: absolute;
    width: 22px; height: 22px;
    z-index: 3; pointer-events: none;
}
.founder__corner--tl { top: 12px; left: 12px;
    border-top: 1px solid rgba(0, 194, 222, 0.60);
    border-left: 1px solid rgba(0, 194, 222, 0.60); }
.founder__corner--tr { top: 12px; right: 12px;
    border-top: 1px solid rgba(0, 194, 222, 0.60);
    border-right: 1px solid rgba(0, 194, 222, 0.60); }
.founder__corner--bl { bottom: 12px; left: 12px;
    border-bottom: 1px solid rgba(0, 194, 222, 0.60);
    border-left: 1px solid rgba(0, 194, 222, 0.60); }
.founder__corner--br { bottom: 12px; right: 12px;
    border-bottom: 1px solid rgba(0, 194, 222, 0.60);
    border-right: 1px solid rgba(0, 194, 222, 0.60); }

/* Historia lateral */
.founder__story { display: flex; flex-direction: column; }
.founder__eyebrow {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ocean-hi); margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.founder__eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--ocean-hi); flex-shrink: 0; }
.founder__story .section__title { margin-bottom: 1.25rem; }
.founder__blockquote {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.25rem 1.1rem 1.4rem;
    border-left: 2px solid var(--ocean-hi);
    background: rgba(0, 194, 222, 0.04);
    font-family: var(--font-display);
    font-style: italic; font-size: 1.15rem; line-height: 1.6; color: var(--white);
}
.founder__story p { font-size: 0.96rem; line-height: 1.85; color: var(--text); margin-bottom: 1rem; }

/* Móvil: video portrait — se limita el ancho, no el alto,
   para que aspect-ratio 9/16 calcule la altura correctamente */
@media (max-width: 767px) {
    .founder__video-wrap {
        width: 62vw;          /* ~232px en un 375px de pantalla */
        max-width: 280px;
        max-height: none;     /* sin cap de altura — el ratio lo controla */
        margin-left: auto;
        margin-right: auto;
    }
    .founder__corner { width: 16px; height: 16px; }
}

/* ======== 13. AGENDAR ======== */
.schedule { background: var(--ink); border-top: var(--border-subtle); }
.schedule__container { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.schedule__steps { list-style: none; }
.schedule__steps li {
    display: flex; align-items: flex-start;
    margin-bottom: 1.5rem; font-size: 0.96rem; line-height: 1.7;
}
.schedule__steps li span:first-child {
    display: flex; justify-content: center; align-items: center;
    width: 38px; height: 38px; min-width: 38px; flex-shrink: 0;
    border-radius: 0; background: transparent;
    border: 1px solid var(--ocean-hi);
    color: var(--ocean-hi); font-weight: 700;
    font-size: 0.85rem; margin-right: 1.25rem;
}
.schedule__steps li span:last-child {
    flex: 1;
    line-height: 1.7;
}
.schedule__image img { width: 100%; border-radius: 0; display: block; filter: brightness(0.9) saturate(0.88); }

/* ======== 14. FAQ ======== */
.faq { background: var(--navy-2); border-top: var(--border-subtle); }
.faq-list {
    margin-top: 2.5rem;
    border: var(--border-subtle);
}
.faq-item {
    background: var(--navy-3);
    border-bottom: var(--border-subtle);
    border-left: 2px solid transparent;
    overflow: hidden;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.faq-item:last-child { border-bottom: none; }
.faq-item[open] {
    background: var(--navy-4);
    border-left-color: var(--ocean-hi);
}
.faq-item__q {
    list-style: none; cursor: pointer;
    padding: 1.5rem 2rem;
    font-size: 0.95rem; font-weight: 600; color: var(--white);
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    user-select: none;
    transition: color var(--t) var(--ease);
}
.faq-item__q::-webkit-details-marker,
.faq-item__q::marker { display: none; content: ''; }
.faq-item__q::after {
    content: '+';
    font-size: 1.5rem; font-weight: 300; line-height: 1;
    color: var(--ocean-hi); flex-shrink: 0;
    transition: transform var(--t) var(--ease-out), color var(--t) var(--ease);
}
.faq-item[open] .faq-item__q::after {
    transform: rotate(45deg);
    color: var(--white);
}
.faq-item__a {
    padding: 0 2rem 1.5rem;
    font-size: 0.9rem; line-height: 1.8; color: var(--text);
    animation: faqOpen 0.32s var(--ease-out) both;
}
.faq-item__a strong { color: var(--white); font-weight: 600; }
.faq-item__a em { color: var(--ocean-hi); font-style: normal; }
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
    .faq-item__q { padding: 1.25rem 1.25rem; font-size: 0.88rem; }
    .faq-item__a { padding: 0 1.25rem 1.25rem; }
}

/* ======== 16. CONTACTO ======== */
.contact { background: var(--ink); border-top: var(--border-subtle); }
.contact__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px; margin-top: 3rem;
    background: rgba(0, 194, 222, 0.07);
    border: var(--border-subtle);
    max-width: 820px; margin-left: auto; margin-right: auto;
}
.contact-card {
    position: relative; background: var(--navy-3);
    padding: 2.5rem 1.5rem; border-radius: 0;
    color: var(--text); font-weight: 600;
    font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    border-top: 2px solid transparent; overflow: hidden;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.contact-card:hover {
    background: var(--navy-4); color: var(--white);
    border-top-color: var(--ocean-hi);
}
.contact-card i { font-size: 2rem; color: var(--ocean-hi); transition: color var(--t), transform var(--t) var(--ease-out); }
.contact-card:hover i { color: var(--white); transform: scale(1.14); }
.contact-card span { position: relative; z-index: 1; }
.contact-card--wide {
    grid-column: 1 / -1;
    /* Centrado: ancho de 1 tarjeta equivalente dentro del grid de 4 */
    max-width: calc(25% - 1px);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (max-width: 640px) {
    .contact__grid { grid-template-columns: repeat(2, 1fr); }
    .contact-card--wide { max-width: 50%; }
}

/* ======== 15. LIGHTBOX ======== */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(2, 11, 24, 0.95);
    display: none; align-items: center; justify-content: center;
    z-index: 1100; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 90vh; border-radius: 0; box-shadow: 0 28px 80px rgba(0,0,0,0.7); display: block; }
.lightbox__close {
    position: absolute; top: 20px; right: 20px;
    width: 44px; height: 44px; border-radius: 0;
    border: 1px solid rgba(237, 246, 251, 0.25);
    background: transparent; color: var(--white);
    cursor: pointer; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color var(--t), background var(--t);
}
.lightbox__close:hover { background: rgba(237, 246, 251, 0.1); border-color: var(--white); }

/* ======== 16. WHATSAPP FLOAT ======== */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 100px;
    z-index: 104; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; filter: drop-shadow(0 12px 28px rgba(0,0,0,0.40));
}
.whatsapp-float__pulse {
    position: absolute; left: 50%; top: 50%;
    width: 56px; height: 56px; margin-left: -28px; margin-top: -28px;
    border-radius: 50%;
    border: 1px solid rgba(37, 211, 102, 0.50);
    animation: waPing 2.5s cubic-bezier(0,0,0.2,1) infinite;
    pointer-events: none;
}
.whatsapp-float__pulse--delay {
    animation-delay: 0.85s; width: 72px; height: 72px;
    margin-left: -36px; margin-top: -36px;
    border-color: rgba(37, 211, 102, 0.25);
}
@keyframes waPing {
    0%   { transform: scale(0.88); opacity: 0.65; }
    100% { transform: scale(1.60); opacity: 0; }
}
.whatsapp-float__btn {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 50px; min-width: 50px; padding: 0 0.9rem 0 0.8rem;
    border-radius: 999px;
    background: linear-gradient(150deg, #2dd36f 0%, #22c55e 55%, #16a34a 100%);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.40);
    transition: transform 0.3s var(--ease-out), box-shadow 0.28s var(--ease);
}
.whatsapp-float:hover .whatsapp-float__btn { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22,163,74,0.52); }
.whatsapp-float__logo { flex-shrink: 0; }
.whatsapp-float__text {
    display: none; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
@media (min-width: 420px) {
    .whatsapp-float__text { display: inline; }
    .whatsapp-float__btn { padding-right: 1.1rem; }
}

/* ======== 17. SCROLL TO TOP ======== */
.scroll-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 46px; height: 46px; border-radius: 0;
    background: var(--navy-4);
    border: 1px solid rgba(0, 194, 222, 0.25);
    color: var(--ocean-hi); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 999; opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity var(--t), visibility var(--t), transform var(--t) var(--ease),
                background var(--t), border-color var(--t), color var(--t);
}
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: var(--ocean); border-color: var(--ocean-hi); color: var(--white); transform: translateY(-4px); }
@media (max-width: 768px) { .scroll-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; } }

/* ======== 18. SWITCHER DE IDIOMA ======== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border: 1px solid rgba(0, 194, 222, 0.30);
    overflow: hidden;
}
.lang-sep { display: none; }
.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid rgba(0, 194, 222, 0.20);
    transition: background var(--t) var(--ease), opacity var(--t) var(--ease);
    opacity: 0.55;
}
.lang-btn:last-child { border-right: none; }
.lang-btn img {
    width: 26px; height: 18px;
    object-fit: cover;
    display: block;
}
.lang-btn:hover { opacity: 0.85; background: rgba(0, 194, 222, 0.08); }
.lang-btn.is-active {
    opacity: 1;
    background: rgba(0, 194, 222, 0.15);
}

/* Móvil — más grande y centrado en el menú lateral */
.lang-switcher--mobile {
    margin-top: 2rem;
    border: 1px solid rgba(0, 194, 222, 0.35);
}
.lang-switcher--mobile .lang-btn {
    padding: 14px 24px;
}
.lang-switcher--mobile .lang-btn img {
    width: 40px; height: 28px;
}
.lang-switcher--mobile .lang-btn.is-active {
    background: rgba(0, 194, 222, 0.20);
    opacity: 1;
}

/* Switcher centrado en la barra de navegación móvil */
.navbar__lang-mobile {
    display: none;
}
/* Ocultar el switcher del navbar cuando el menú móvil está abierto */
body.menu-open .navbar__lang-mobile {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
@media (max-width: 767px) {
    .navbar__lang-mobile {
        display: flex;
        align-items: center;
        gap: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        border: 1px solid rgba(0, 194, 222, 0.35);
        overflow: hidden;
        z-index: 5;
        transition: opacity 0.2s ease;
    }
    .navbar__lang-mobile .lang-btn {
        padding: 6px 10px;
        background: transparent;
        border: none;
        border-right: 1px solid rgba(0, 194, 222, 0.20);
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        opacity: 0.55;
        transition: background var(--t) var(--ease), opacity var(--t) var(--ease);
    }
    .navbar__lang-mobile .lang-btn img { width: 28px; height: 20px; object-fit: cover; }
    .navbar__lang-mobile .lang-btn:last-child { border-right: none; }
    .navbar__lang-mobile .lang-btn.is-active {
        opacity: 1;
        background: rgba(0, 194, 222, 0.15);
    }
    .navbar__lang-mobile .lang-btn:hover:not(.is-active) {
        opacity: 0.85;
        background: rgba(0, 194, 222, 0.08);
    }
}

/* ======== 19. CRÉDITOS ======== */
.credit-text {
    margin: 20px 0 10px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.7;
}
.credit-link {
    color: var(--color-primary-dark, hsl(217, 91%, 35%));
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: #61DAFB;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    transform: translateY(-3px);
    display: inline-block;
}
.credit-link:hover {
    color: #000;
    background-color: transparent;
    box-shadow: none;
    transform: translateY(0);
    border: 2px solid #61DAFB;
}
.credit-link::after {
    content: '🚀';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.credit-link:hover::after {
    transform: translateX(3px) translateY(-2px);
}

/* ======== 19. ANIMACIONES ======== */
.fade-in, .slide-in-left, .slide-in-right {
    opacity: 0;
    transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out), filter 0.7s var(--ease);
    filter: blur(5px);
}
.fade-in       { transform: translateY(30px); }
.slide-in-left  { transform: translateX(-48px); }
.slide-in-right { transform: translateX(48px); }
.fade-in.visible, .slide-in-left.visible, .slide-in-right.visible {
    opacity: 1; transform: translate(0); filter: blur(0);
}

/* Stagger base */
.reveal-stagger > * {
    opacity: 0; transform: translateY(28px); filter: blur(4px);
    transition: opacity 0.68s var(--ease-out), transform 0.68s var(--ease-out), filter 0.52s var(--ease);
}
.reveal-stagger.is-revealed > * { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger.is-revealed > *:nth-child(1)  { transition-delay: 0.04s; }
.reveal-stagger.is-revealed > *:nth-child(2)  { transition-delay: 0.10s; }
.reveal-stagger.is-revealed > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger.is-revealed > *:nth-child(4)  { transition-delay: 0.22s; }
.reveal-stagger.is-revealed > *:nth-child(5)  { transition-delay: 0.28s; }
.reveal-stagger.is-revealed > *:nth-child(6)  { transition-delay: 0.34s; }
.reveal-stagger.is-revealed > *:nth-child(7)  { transition-delay: 0.40s; }
.reveal-stagger.is-revealed > *:nth-child(8)  { transition-delay: 0.46s; }

/* Galería: entrada con escala desde abajo */
.gallery-grid.reveal-stagger > .gallery-item {
    transform: scale(0.88) translateY(24px);
    filter: blur(8px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), filter 0.55s var(--ease);
}
.gallery-grid.is-revealed > .gallery-item {
    transform: scale(1) translateY(0);
    filter: blur(0);
}

/* Programas: entrada deslizando desde la izquierda (refuerza el borde izquierdo) */
.programs-list.reveal-stagger > .programs-list__item {
    transform: translateX(-36px) translateY(0);
    filter: blur(3px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out), filter 0.45s var(--ease),
                background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.programs-list.is-revealed > .programs-list__item {
    transform: translateX(0);
    filter: blur(0);
}
/* Delays más largos para que cada fila se vea entrar */
.programs-list.is-revealed > *:nth-child(1) { transition-delay: 0.06s; }
.programs-list.is-revealed > *:nth-child(2) { transition-delay: 0.14s; }
.programs-list.is-revealed > *:nth-child(3) { transition-delay: 0.22s; }
.programs-list.is-revealed > *:nth-child(4) { transition-delay: 0.30s; }
.programs-list.is-revealed > *:nth-child(5) { transition-delay: 0.38s; }

/* Schedule steps: cada paso entra escalonado */
.schedule__steps.reveal-stagger > li {
    transform: translateX(-24px) translateY(0);
    filter: blur(3px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.4s var(--ease);
}
.schedule__steps.is-revealed > li { transform: translateX(0); filter: blur(0); }
.schedule__steps.is-revealed > li:nth-child(1) { transition-delay: 0.06s; }
.schedule__steps.is-revealed > li:nth-child(2) { transition-delay: 0.14s; }
.schedule__steps.is-revealed > li:nth-child(3) { transition-delay: 0.22s; }
.schedule__steps.is-revealed > li:nth-child(4) { transition-delay: 0.30s; }

/* ======== 20. RESPONSIVE ======== */
@media (min-width: 768px) {
    .navbar__toggle { display: none; }
    .navbar { display: grid; grid-template-columns: 1fr auto 1fr; }
    .navbar__links { display: flex; }
    .navbar__links--left  { justify-content: flex-end; }
    .navbar__links--right { justify-content: flex-start; }
    .navbar__logo-placeholder { grid-column: 2; }

    .about__container { grid-template-columns: 1fr 1fr; }
    .schedule__container { grid-template-columns: 1.2fr 1fr; }
    .schedule__image { order: 2; }
    .schedule__content { order: 1; }
}

/* Programas: en desktop ampliar las columnas del grid de la lista */
@media (min-width: 860px) {
    .programs-list__item {
        grid-template-columns: 60px 52px 1fr auto;
        gap: 0 2rem;
        padding: 2rem 2.5rem;
    }
}


/* Tablets: nav más compacto */
@media (min-width: 768px) and (max-width: 1099px) {
    .navbar__links { gap: 20px !important; }
    .navbar__link, .navbar__link.nav-chip { font-size: 0.62rem !important; letter-spacing: 0.14em !important; }
}

/* Móvil general */
@media (max-width: 767px) {
    .section { padding: 72px 0; }
    /* El hero necesita padding-top = altura del navbar (80px) para que el
       título no quede oculto bajo la barra de navegación fija */
    .hero { padding-top: 80px; box-sizing: border-box; }
    .hero__title { line-height: 1.1; }
    .hero__stats { gap: 8px; }
    .hero__stats li { font-size: 0.72rem; padding: 0.5rem 0.85rem; }
    .about__container { gap: 32px; }
    .founder__grid { gap: 36px; }
    .schedule__container { gap: 36px; }
    .cta { background-attachment: scroll; padding: 90px 0; }
    .contact__grid { margin-top: 2rem; }
    .programs-list { margin-top: 2rem; }
}

/* ======== 21. ACCESIBILIDAD ======== */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .slide-in-left, .slide-in-right { filter: none; transition-duration: 0.01ms; }
    .reveal-stagger > * { filter: none; transition-duration: 0.01ms; }
    .whatsapp-float__pulse { animation: none; opacity: 0; }
    .hero__wave-motion .wave-path,
    .hero__wave-motion .wave-path--2 { animation: none; }
    .preloader__logo { animation: none; }
}
@media (scripting: none) {
    .reveal-stagger > *, .fade-in, .slide-in-left, .slide-in-right {
        opacity: 1; transform: none; filter: none;
    }
}
