@charset "UTF-8";
/* ==========================================================================
   TMScience · Landing
   Mezcla: hero oscuro con verde neón (estilo Platzi) + bloques vivos
   amarillo / azul marino / blanco con cuadrícula (estilo CrunchLabs).
   Tipografía: Bricolage Grotesque (títulos) · Plus Jakarta Sans (texto)
               Montserrat 800 en mayúsculas (botones y etiquetas).
   ========================================================================== */

:root {
    --night: #0f1412;
    --night-2: #171e1b;
    --night-3: #222b27;
    --line-dark: rgba(255, 255, 255, .1);
    --txt-dark: #e4ece7;
    --txt-dark-2: #a9b8b0;

    --neon: #a8e03c;
    --neon-2: #c2f05a;
    --neon-ink: #1d3304;
    --green: #2f7d32;

    --yellow: #ffd23f;
    --yellow-ink: #3a2c00;
    --coral: #ff8f6b;
    --coral-ink: #3d1408;
    --navy: #0c3a5e;
    --navy-2: #0a2f4c;
    --sky: #5cc8f0;

    --white: #ffffff;
    --paper: #f6f8f5;
    --ink: #17201c;
    --ink-2: #48554f;
    --ink-3: #66726c;
    --line: #e2e8e4;
    --grid: rgba(12, 58, 94, .07);

    --title: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
    --text: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --label: 'Montserrat', 'Plus Jakarta Sans', system-ui, sans-serif;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --r: 14px;
    --r-lg: 22px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
body {
    margin: 0;
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--title); margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--neon); color: var(--neon-ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: 12px; top: -60px; z-index: 300;
    background: var(--neon); color: var(--neon-ink); padding: 10px 16px; border-radius: 10px;
    font-family: var(--label); font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* Etiqueta en mayúsculas (Montserrat) */
.eyebrow {
    display: inline-block;
    font-family: var(--label);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
}
.on-dark .eyebrow, .eyebrow.neon { color: var(--neon); }

/* ── Botones ── */
.btn {
    --bg: var(--neon);
    --fg: var(--neon-ink);
    --bd: var(--neon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 12px;
    border: 2px solid var(--bd);
    background: var(--bg);
    color: var(--fg);
    font-family: var(--label);
    font-weight: 800;
    font-size: 14.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition-property: transform, background-color, border-color, color, box-shadow;
    transition-duration: .16s;
    transition-timing-function: var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--glow, rgba(168, 224, 60, .7)); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn-ghost-dark { --bg: transparent; --fg: var(--txt-dark); --bd: rgba(255, 255, 255, .28); --glow: transparent; }
.btn-ghost-dark:hover { --bd: var(--txt-dark); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: #cfd8d3; --glow: transparent; }
.btn-ghost:hover { --bd: var(--ink); }
.btn-yellow { --bg: var(--yellow); --fg: var(--yellow-ink); --bd: var(--yellow); --glow: rgba(255, 210, 63, .7); }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); --glow: rgba(23, 32, 28, .5); }
.btn-white { --bg: #fff; --fg: var(--navy); --bd: #fff; --glow: rgba(255, 255, 255, .4); }
.btn-wa { --bg: #25d366; --fg: #06311a; --bd: #25d366; --glow: rgba(37, 211, 102, .6); }
.btn-block { width: 100%; }

/* ==========================================================================
   Navegación (oscuro)
   ========================================================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 20, 18, .92);
    border-bottom: 1px solid var(--line-dark);
    color: var(--txt-dark);
}
@supports (backdrop-filter: blur(8px)) {
    .nav { background: rgba(15, 20, 18, .9); backdrop-filter: blur(14px) saturate(1.3); }
}
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--night); opacity: .55; }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand b { font-family: var(--title); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }

.nav-search {
    flex: 1;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    transition: border-color .16s, background-color .16s;
}
.nav-search:focus-within { border-color: var(--neon); background: rgba(255, 255, 255, .07); }
.nav-search svg { width: 18px; height: 18px; color: var(--txt-dark-2); flex-shrink: 0; }
.nav-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font-size: 15px; }
.nav-search input::placeholder { color: var(--txt-dark-2); }
.nav-search input:focus { outline: none; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--txt-dark);
    transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .login { font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 8px; color: #fff; }
.nav-actions .login:hover { color: var(--neon); }

.menu-btn {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition: transform .22s var(--ease), background-color .22s;
}
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.sheet {
    display: none;
    position: fixed;
    inset: var(--sheet-top, 72px) 0 0 0;
    z-index: 99;
    background: var(--night);
    color: #fff;
    padding: 18px var(--gutter) 32px;
    overflow-y: auto;
}
.sheet .nav-search { max-width: none; margin-bottom: 10px; }
.sheet ul { list-style: none; margin: 0 0 22px; padding: 0; }
.sheet li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
    font-family: var(--title);
    font-weight: 700;
    font-size: 26px;
    text-decoration: none;
}
/* Flecha con código Unicode: funciona aunque el servidor no envíe UTF-8 */
.sheet li a::after { content: '\2192'; color: var(--neon); font-size: 20px; }
.sheet .btn { width: 100%; margin-top: 10px; }
.menu-open .sheet { display: block; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 1080px) { .nav-search { display: none; } .sheet .nav-search { display: flex; } }
@media (max-width: 900px) {
    .nav-links, .nav-actions { display: none; }
    .menu-btn { display: inline-flex; }
}

/* ==========================================================================
   Hero (oscuro)
   ========================================================================== */
.hero {
    position: relative;
    background:
        radial-gradient(60% 55% at 50% 100%, rgba(168, 224, 60, .16), transparent 70%),
        radial-gradient(40% 40% at 50% 0%, rgba(92, 200, 240, .08), transparent 70%),
        var(--night);
    color: var(--txt-dark);
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    display: grid;
    align-items: center;
    padding: clamp(40px, 6vw, 80px) 0;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 30%, transparent 80%);
    mask-image: radial-gradient(70% 70% at 50% 45%, #000 30%, transparent 80%);
}
.hero-center { position: relative; z-index: 2; text-align: center; max-width: 860px; margin-inline: auto; }
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-dark);
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-dark);
    margin-bottom: 26px;
}
.hero-chip b {
    font-family: var(--label);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--neon);
    color: var(--neon-ink);
    padding: 4px 9px;
    border-radius: 999px;
}
.hero h1 {
    font-weight: 800;
    font-size: clamp(46px, 7.6vw, 104px);
    line-height: .98;
    letter-spacing: -.035em;
    color: #f2f7f3;
}
.hero h1 em {
    font-style: normal;
    color: var(--neon);
    position: relative;
    white-space: nowrap;
}
.hero h1 em::after {
    content: '';
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: .02em;
    height: .09em;
    border-radius: 999px;
    background: var(--neon);
    opacity: .35;
    transform-origin: left;
    animation: grow .8s .5s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } }
.hero-lead {
    max-width: 36em;
    margin: 24px auto 34px;
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--txt-dark-2);
}
.hero-lead strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--txt-dark-2); }

/* Tarjetas inclinadas con fotos */
.float {
    position: absolute;
    z-index: 1;
    width: clamp(170px, 17vw, 250px);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--night-3);
    border: 1px solid var(--line-dark);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    animation: drift 9s ease-in-out infinite;
}
.float .slot { aspect-ratio: 4 / 5; border-radius: 0; border: 0; }
.float figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 16px 14px;
    background: linear-gradient(transparent, rgba(10, 14, 12, .92));
    font-family: var(--title);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.15;
    color: #fff;
}
.float figcaption small { display: block; margin-top: 4px; font-family: var(--text); font-weight: 500; font-size: 12.5px; color: var(--txt-dark-2); }
.f1 { left: -2%; top: 9%; transform: rotate(-10deg); --r0: -10deg; }
.f2 { left: 6%; bottom: -6%; transform: rotate(7deg); --r0: 7deg; animation-delay: -3s; width: clamp(150px, 14vw, 210px); }
.f3 { right: -2%; top: 12%; transform: rotate(9deg); --r0: 9deg; animation-delay: -5s; }
.f4 { right: 7%; bottom: -8%; transform: rotate(-6deg); --r0: -6deg; animation-delay: -1.5s; width: clamp(150px, 14vw, 210px); }
@keyframes drift { 50% { transform: rotate(var(--r0)) translateY(-10px); } }
@media (max-width: 1180px) { .f2, .f4 { display: none; } .f1 { left: -6%; } .f3 { right: -6%; } }
@media (max-width: 900px) { .float { display: none; } }
@media (max-width: 520px) { .hero-chip { font-size: 13px; text-align: left; } }

/* Entrada orquestada */
.rise { animation: rise .7s var(--ease) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .14s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } }

/* ==========================================================================
   Espacio para foto (slot)
   ========================================================================== */
.slot {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--r);
    background: #eef3f0;
}
.slot > img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; }
.slot.empty {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
    border: 2px dashed #c3cfc8;
    background:
        repeating-linear-gradient(135deg, rgba(12, 58, 94, .035) 0 12px, transparent 12px 24px),
        #f1f5f2;
    color: var(--ink-3);
}
.slot.empty.dark {
    border-color: rgba(255, 255, 255, .18);
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px),
        var(--night-3);
    color: var(--txt-dark-2);
}
.slot-inner { display: grid; justify-items: center; gap: 8px; max-width: 24ch; }
.slot-inner svg { width: 30px; height: 30px; opacity: .7; }
.slot-inner b { font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.slot-inner span { font-size: 13.5px; line-height: 1.35; }
.slot-inner code { font-size: 11px; opacity: .8; word-break: break-all; }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.head h2 { font-weight: 800; font-size: clamp(36px, 5vw, 62px); letter-spacing: -.03em; margin-top: 12px; }
.head p { margin-top: 16px; font-size: 18.5px; color: var(--ink-2); }
.on-dark .head p { color: var(--txt-dark-2); }
.on-dark .head h2 { color: #fff; }

.graph {
    background-color: var(--white);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Mini agenda visual */
.agenda {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 26px;
}
.agenda-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--label);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b9d3e6;
}
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.day {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 10px 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid transparent;
    font-size: 12px;
    color: #b9d3e6;
}
.day b { font-family: var(--title); font-size: 22px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.day.on { background: var(--sky); color: #04263d; }
.day.on b { color: #04263d; }
.slots-row { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13.5px;
    font-weight: 600;
    color: #e7f1f8;
    font-variant-numeric: tabular-nums;
}
.time.on { background: #fff; color: var(--navy); border-color: #fff; }
.topic-chip { margin-left: auto; font-size: 13px; color: #b9d3e6; }
.topic-chip b { color: #fff; }

/* Mini planes */
.mini-plans { display: grid; gap: 10px; margin-bottom: 26px; }
.mini-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--night-3);
    border: 1px solid var(--line-dark);
    text-decoration: none;
    transition: border-color .16s, transform .16s var(--ease);
}
.mini-plan:hover { border-color: var(--neon); transform: translateX(3px); }
.mini-plan .n { font-family: var(--label); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-dark-2); }
.mini-plan .d { font-size: 14px; color: var(--txt-dark-2); grid-column: 1; }
.mini-plan .p { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-family: var(--title); font-weight: 800; font-size: 30px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.mini-plan .p small { font-size: 15px; font-weight: 700; margin-left: 3px; }
.mini-plan .p s { display: block; font-family: var(--text); font-size: 12.5px; font-weight: 500; color: var(--txt-dark-2); }
.mini-plan.best { background: var(--neon); border-color: var(--neon); }
.mini-plan.best .n, .mini-plan.best .d, .mini-plan.best .p, .mini-plan.best .p s { color: var(--neon-ink); }
.mini-plan .flag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--yellow-ink);
    font-size: 10.5px;
    letter-spacing: .06em;
    vertical-align: 1px;
}

@media (max-width: 420px) {
    .day { padding: 8px 2px; }
    .day b { font-size: 18px; }
    .topic-chip { margin-left: 0; width: 100%; }
}

/* ── Tarjetas por edad ── */
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.age {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: var(--r-lg);
    overflow: visible;
    transition: transform .2s var(--ease);
}
.age:hover { transform: translateY(-6px); }
.age-tag {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    font-family: var(--label);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--c);
    color: var(--ci);
}
.age-body { padding: 34px 24px 20px; text-align: center; }
.age h3 { font-weight: 800; font-size: 32px; letter-spacing: -.02em; }
.age-sub {
    margin: 6px 0 12px;
    font-family: var(--label);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.age-body p { color: var(--ink-2); font-size: 16px; }
.age .slot { aspect-ratio: 4 / 3; border-radius: 0; border-left: 0; border-right: 0; margin-top: auto; }
.age-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    background: var(--c);
    color: var(--ci);
    border-top: 3px solid var(--ink);
    border-radius: 0 0 calc(var(--r-lg) - 3px) calc(var(--r-lg) - 3px);
    font-family: var(--label);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: filter .16s;
}
.age-cta:hover { filter: brightness(1.06); }
.age.kids { --c: var(--yellow); --ci: var(--yellow-ink); }
.age.teens { --c: var(--neon); --ci: var(--neon-ink); }
.age.uni { --c: var(--sky); --ci: #04263d; }
.ages-note { text-align: center; margin-top: 30px; color: var(--ink-2); }
.ages-note a { font-weight: 700; color: var(--green); }
@media (max-width: 960px) { .ages { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 34px; } }

/* ── Cómo funciona ── */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; text-align: center; counter-reset: s; padding: 0; margin: 0; }
.how li { list-style: none; position: relative; }
.how li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 40px);
    right: calc(-50% + 40px);
    border-top: 3px dotted #b7c4bd;
}
.how .num {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 3px solid var(--ink);
    font-family: var(--title);
    font-weight: 800;
    font-size: 22px;
}
.how h3 { font-weight: 800; font-size: 24px; margin-bottom: 8px; }
.how p { color: var(--ink-2); max-width: 26ch; margin-inline: auto; }
.how a { color: var(--green); font-weight: 700; }
@media (max-width: 760px) {
    .how { grid-template-columns: 1fr; gap: 36px; }
    .how li::after { display: none; }
}

/* ── Planes ── */
.dark { background: var(--night); color: var(--txt-dark); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan {
    display: flex;
    flex-direction: column;
    padding: 30px 28px 28px;
    border-radius: var(--r-lg);
    background: var(--night-2);
    border: 1px solid var(--line-dark);
    position: relative;
    transition: transform .2s var(--ease), border-color .2s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(168, 224, 60, .5); }
.plan.best {
    background: linear-gradient(160deg, #22331a, var(--night-2) 60%);
    border: 2px solid var(--neon);
    box-shadow: 0 30px 70px -30px rgba(168, 224, 60, .45);
}
.plan .flag {
    position: absolute;
    top: -14px;
    left: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--yellow-ink);
    font-family: var(--label);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.plan h3 { font-weight: 700; font-size: 22px; color: #fff; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 2px; color: #fff; }
.plan .price b { font-family: var(--title); font-weight: 800; font-size: 60px; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .price span { font-weight: 700; font-size: 20px; }
.plan .was { font-size: 15px; color: var(--txt-dark-2); }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--neon); flex-shrink: 0; }
.plans-foot { text-align: center; margin-top: 30px; color: var(--txt-dark-2); }
.plans-foot a { color: var(--neon); font-weight: 700; }
@media (max-width: 900px) {
    .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .plan.best { order: -1; }
}

/* ── Cursos ── */
.search {
    display: flex;
    gap: 10px;
    max-width: 680px;
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--ink);
    transition: box-shadow .18s;
}
.search:focus-within { box-shadow: 6px 6px 0 var(--green); }
.search svg { width: 22px; height: 22px; align-self: center; margin-left: 10px; color: var(--ink-3); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 4px; font-size: 17px; background: none; }
.search input:focus { outline: none; }
.search input::placeholder { color: #8a958f; }
.search-meta { text-align: center; margin-top: 16px; color: var(--ink-2); }
.search-meta a { color: var(--green); font-weight: 700; }

.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-top: 44px; }
.course {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.course:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 0 22px 40px -22px rgba(23, 32, 28, .45); }
.course-img { position: relative; aspect-ratio: 16 / 10; background: #eaf3e2; }
.course-img img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; }
.course-img .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.course-img .ph img { width: 64px; opacity: .8; }
.course .price-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 5px 11px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--ink);
    font-family: var(--label);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}
.course .price-tag.free { background: var(--neon); }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.course h3 { font-weight: 700; font-size: 21px; letter-spacing: -.01em; margin-bottom: 8px; }
.course p { flex: 1; color: var(--ink-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.course-meta .go { font-family: var(--label); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.course:hover .go { color: var(--green); }
.empty { max-width: 560px; margin: 40px auto 0; text-align: center; padding: 40px 24px; border: 2px dashed #c3cfc8; border-radius: var(--r-lg); }
.empty h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.empty p { color: var(--ink-2); margin-bottom: 18px; }

/* ── Aliados ── */
.allies { background: var(--paper); border-block: 1px solid var(--line); padding: 44px 0; }
.allies .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 48px; }
.allies p { font-family: var(--label); font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ally { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.ally svg { height: 48px; width: auto; }
.ally-logo { height: 64px; width: auto; max-width: 240px; object-fit: contain; }
.ally span { font-size: 14px; color: var(--ink-2); line-height: 1.3; max-width: 18ch; }

/* ── Preguntas ── */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 2px solid var(--line); border-radius: 18px; background: #fff; transition: border-color .16s; }
.faq details[open] { border-color: var(--ink); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-family: var(--title);
    font-weight: 700;
    font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2.5px 12px no-repeat,
        var(--paper);
    transition: transform .25s var(--ease), background-color .2s;
}
.faq details[open] summary::after {
    transform: rotate(45deg);
    background:
        linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2.5px 12px no-repeat,
        var(--neon);
}
.faq .answer { padding: 0 22px 22px; color: var(--ink-2); }
.faq .answer a { color: var(--green); font-weight: 700; }

/* ── Cierre ── */
.closing {
    position: relative;
    overflow: hidden;
    background: var(--neon);
    color: var(--neon-ink);
    padding: clamp(64px, 8vw, 100px) 0;
    text-align: center;
    isolation: isolate;
}
.closing::before, .closing::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    background: url('../images/tms-mark-192.png') center / contain no-repeat;
    opacity: .14;
}
.closing::before { left: -90px; top: -80px; transform: rotate(-14deg); }
.closing::after { right: -90px; bottom: -110px; transform: rotate(18deg); }
.closing h2 { font-weight: 800; font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.035em; color: #10220a; }
.closing p { margin: 16px auto 30px; max-width: 32em; font-size: 19px; color: #2a4410; }
.closing .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.closing .btn-ghost { --fg: #10220a; --bd: rgba(16, 34, 10, .45); }

/* ── Pie ── */
.footer { background: var(--night); color: var(--txt-dark-2); padding: 64px 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer p { max-width: 30ch; }
.footer h2 { font-family: var(--label); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--neon); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--txt-dark); text-decoration: none; }
.footer a:hover { color: var(--neon); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── WhatsApp flotante y barra móvil ── */
.wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
    transition: transform .18s var(--ease);
}
.wa:hover { transform: scale(1.07); }
.wa svg { width: 30px; height: 30px; }
.mbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 20, 18, .96);
    border-top: 1px solid var(--line-dark);
    transform: translateY(110%);
    transition: transform .25s var(--ease);
}
.mbar .btn { flex: 1; min-height: 48px; padding: 0 10px; font-size: 13px; }
@media (max-width: 720px) {
    .wa { display: none; }
    .mbar { display: flex; }
    .show-bar .mbar { transform: none; }
    body { padding-bottom: 74px; }
}

/* ── Revelado al hacer scroll ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media print {
    .nav, .wa, .mbar, .sheet, .float { display: none !important; }
}

/* ==========================================================================
   Impulsados por UPSA — fotos de los fundadores
   ========================================================================== */
.backed {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    --p: 1;
    clip-path: inset(calc((1 - var(--p)) * 9%) calc((1 - var(--p)) * 12%) round calc((1 - var(--p)) * 48px));
    will-change: clip-path;
}
.backed-photos {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100%;
}
.backed-photos:has(> video:first-child) { grid-template-columns: 1.35fr 1fr; }
.backed-photos img,
.backed-photos video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(calc(1 - var(--p, 1))) saturate(.9) contrast(1.05);
    transform: scale(calc(1.18 - var(--p, 1) * .18));
}
.backed::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(15, 20, 18, .55) 0%, rgba(15, 20, 18, 0) 22%, rgba(15, 20, 18, 0) 70%, rgba(15, 20, 18, .55) 100%),
        radial-gradient(34% 30% at 50% 42%, rgba(10, 18, 14, .72), rgba(10, 18, 14, 0) 100%);
}
.backed-inner { text-align: center; padding-block: 64px; align-self: start; margin-top: clamp(40px, 9vh, 110px); }
.backed .eyebrow { font-size: 14px; letter-spacing: .22em; }
.backed-logo {
    width: clamp(220px, 30vw, 360px);
    height: auto;
    margin: 18px auto 22px;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45));
}
.backed-text {
    max-width: 34em;
    margin-inline: auto;
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 500;
    color: #eef4ef;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.backed-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    font-family: var(--label);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
.backed-caption::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); }

/* Clases de color y "En vivo" compartidas */
.c-sky { --c: var(--sky); --ci: #04263d; }
.c-neon { --c: var(--neon); --ci: var(--neon-ink); }
.c-yellow { --c: var(--yellow); --ci: var(--yellow-ink); }
.agenda-topic {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 13.5px;
    color: #b9d3e6;
}
.agenda-topic b { color: #fff; }
.agenda-topic em {
    margin-left: auto;
    font-style: normal;
    font-family: var(--label);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--sky);
    color: #04263d;
    padding: 8px 12px;
    border-radius: 10px;
}
.live-badge {
    position: absolute;
    top: 34px;
    left: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #e5281a;
    color: #fff;
    font-family: var(--label);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Transición del hero a las fotos de los fundadores */
.backed-wrap { background: var(--night); border-bottom: 3px solid var(--ink); }
.hero-center { opacity: calc(1 - var(--hp, 0) * 1.1); transform: translateY(calc(var(--hp, 0) * -60px)) scale(calc(1 - var(--hp, 0) * .04)); }
.float { opacity: calc(1 - var(--hp, 0) * 1.2); }
.backed-inner { opacity: calc(var(--p, 1) * 1.4 - .4); transform: translateY(calc((1 - var(--p, 1)) * 40px)); }
@media (prefers-reduced-motion: reduce) {
    .backed { --p: 1 !important; }
    .hero-center, .float { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
    .backed { min-height: 0; display: flex; flex-direction: column-reverse; background: var(--night); }
    .backed::before { display: none; }
    .backed-photos { position: static; z-index: auto; grid-template-columns: 1fr 1fr !important; grid-template-rows: auto; gap: 3px; }
    .backed-photos img, .backed-photos video { aspect-ratio: 3 / 4; height: auto; }
    .backed-photos video:first-child { object-position: 48% 50% !important; }
    .backed-inner { margin-top: 0; padding-block: 44px 32px; }
    .backed-logo { width: min(240px, 70vw); }
}
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
    .backed { clip-path: inset(calc((1 - var(--p)) * 5%) calc((1 - var(--p)) * 6%) round calc((1 - var(--p)) * 28px)); }
}

/* ==========================================================================
   Nunca pares de aprender — accesos uno por uno y al final en columnas
   ========================================================================== */
.reel {
    position: relative;
    height: 540vh;
    background-color: var(--white);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 32px 32px;
}
.reel-sticky {
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    height: calc(100svh - 72px);
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 3vh, 34px) 0 clamp(16px, 2.5vh, 26px);
    overflow: hidden;
}
.reel-head { text-align: center; flex-shrink: 0; }
.reel-head h2 {
    font-weight: 800;
    font-size: clamp(34px, 4.6vw, 64px);
    letter-spacing: -.035em;
    margin-top: 8px;
}
.reel-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    width: min(1720px, 100% - 2 * clamp(16px, 2.6vw, 48px));
    margin: clamp(14px, 2.6vh, 28px) auto 0;
}

.rcard {
    --c: var(--sky);
    --ci: #04263d;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: 3px solid var(--ink);
    background: var(--c);
    color: var(--ci);
    overflow: hidden;
    isolation: isolate;
    transform-origin: 50% 0;
    box-shadow: 0 -18px 50px -20px rgba(15, 20, 18, .35);
    will-change: transform, width;
}
.rcard.c-sky { --c: var(--sky); --ci: #04263d; }
.rcard.c-neon { --c: var(--neon); --ci: var(--neon-ink); }
.rcard.c-yellow { --c: var(--yellow); --ci: var(--yellow-ink); }
.rcard.c-coral { --c: var(--coral); --ci: var(--coral-ink); }

.rtag {
    display: inline-block;
    font-family: var(--label);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    border: 2px solid var(--ink);
    color: var(--ink);
}

/* Vista completa */
.rfull {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--fw, 100%);
    height: var(--fh, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(26px, 4vw, 60px);
    opacity: var(--fo, 1);
}
.rfull-text h3 {
    font-weight: 800;
    font-size: clamp(40px, 5.4vw, 86px);
    line-height: .95;
    letter-spacing: -.04em;
    margin: 18px 0 16px;
    color: var(--ink);
}
.rfull-text p { font-size: clamp(16.5px, 1.4vw, 20px); max-width: 30em; color: var(--ink); opacity: .85; }
.rchecks { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 10px; }
.rchecks li { display: flex; gap: 10px; font-weight: 600; font-size: 16px; color: var(--ink); }
.rchecks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.rfull-visual {
    background: var(--night);
    border: 3px solid var(--ink);
    border-radius: 24px;
    padding: clamp(16px, 2vw, 26px);
    box-shadow: 10px 10px 0 var(--ink);
    transform: rotate(1.5deg);
}
.c-neon .rfull-visual { transform: rotate(-1.5deg); }
.rfull-visual .agenda { margin: 0; background: #12314c; border-color: rgba(92, 200, 240, .25); }
.rfull-visual .mini-plans { margin: 0; }
.rphoto { position: relative; }
.rphoto .slot { aspect-ratio: 16 / 10; border-radius: 14px; }
.rphoto .live-badge { top: 14px; left: 14px; }

/* Acceso institucional (maqueta decorativa) */
.c-coral .rfull-visual { transform: rotate(-1.2deg); }
.inst { display: grid; gap: 12px; color: #f3e6e1; }
.inst-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--label);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f5b8a4;
}
.inst-crest { display: flex; align-items: center; gap: 12px; padding: 4px 0 6px; }
.inst-crest svg {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 14px;
    background: var(--coral);
    color: var(--coral-ink);
}
.inst-crest b { font-family: var(--title); font-size: 24px; letter-spacing: -.02em; color: #fff; }
.inst-field {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 143, 107, .4);
    background: rgba(255, 255, 255, .05);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .06em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.inst-field small { font-weight: 600; font-size: 12px; letter-spacing: 0; color: #c9b3ab; }
.inst-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    color: #1f1f1f;
    font-weight: 700;
    font-size: 15px;
}
.inst-google svg { width: 20px; height: 20px; }
.inst-list { display: grid; gap: 8px; margin-top: 4px; }
.inst-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    font-size: 14.5px;
    font-weight: 600;
}
.inst-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.inst-list i.ok { background: var(--neon); }
.inst-list em { margin-left: auto; font-style: normal; font-size: 12.5px; color: #c9b3ab; }

/* Vista de columna (estado final) */
.rcol {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--cw, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(20px, 2.2vw, 30px);
    opacity: var(--co, 0);
    pointer-events: none;
}
.reel.is-grid .rcol { pointer-events: auto; }
.reel.is-grid .rfull { pointer-events: none; }
.rnum {
    font-family: var(--title);
    font-weight: 800;
    font-size: clamp(56px, 6vw, 92px);
    line-height: .85;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
}
/* Sin íconos grandes: el texto baja y se ve la foto de fondo */
.rcol .rtag { margin-top: auto; }
.rcol h3 { font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1; letter-spacing: -.025em; margin: 12px 0 8px; color: var(--ink); }
.rcol p { font-size: 15.5px; color: var(--ink); opacity: .85; margin-bottom: 18px; }

/* Progreso */
.reel-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-shrink: 0;
}
.reel-progress i {
    width: 36px;
    height: 5px;
    border-radius: 5px;
    background: #d5ddd8;
    transition: background-color .3s, width .3s var(--ease);
}
.reel-progress i.on { background: var(--ink); width: 54px; }

/* Imagen de fondo en cada acceso (rutas relativas a assets/css/) */
.rcard.c-sky    { --rimg: url('../images/landing/programa.jpeg'); }
.rcard.c-neon   { --rimg: url('../images/landing/sus.jpeg'); }
.rcard.c-yellow { --rimg: url('../images/landing/vivo.jpeg'); }
.rcard.c-coral  { --rimg: url('../images/landing/insti.jpeg'); }

/* Foto en duotono con el color de la tarjeta */
.rcard::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--rimg, none) center / cover no-repeat;
    filter: grayscale(1) contrast(1.1);
    mix-blend-mode: multiply;
    opacity: var(--rimg-o, .55);
    transition: scale .9s var(--ease), opacity .5s ease;
    pointer-events: none;
}
/* Velo del color de la tarjeta del lado del texto */
.rcard::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--c) 0%, var(--c) 30%, transparent 75%);
    opacity: .85;
    pointer-events: none;
}
.rcard:hover::before { scale: 1.04; opacity: calc(var(--rimg-o, .55) + .1); }
.reel.is-grid .rcard::after,
.reel.is-static .rcard::after {
    background: linear-gradient(180deg, var(--c) 0%, transparent 35%, transparent 55%, var(--c) 85%);
}

/* Móvil: lista vertical sin fijar el scroll */
@media (max-width: 860px) {
    .reel { height: auto; padding: 64px 0; }
    .reel-sticky { position: static; height: auto; overflow: visible; padding: 0; }
    .reel-stage { display: grid; gap: 20px; margin-top: 28px; }
    .rcard { position: relative; width: auto !important; height: auto; transform: none !important; box-shadow: 6px 6px 0 var(--ink); }
    .rcard::after { background: linear-gradient(180deg, transparent 0%, var(--c) 55%); }
    .rfull { position: relative; width: auto; height: auto; opacity: 1; grid-template-columns: minmax(0, 1fr); padding: 26px 22px 30px; gap: 24px; }
    .rfull-text h3 { font-size: clamp(36px, 10vw, 48px); }
    .rfull-text .btn { width: 100%; }
    .rfull-visual { order: -1; transform: none !important; box-shadow: 5px 5px 0 var(--ink); }
    .rcol, .reel-progress { display: none; }
    .inst-top span + span { display: none; }
}
@media (min-width: 861px) {
    .reel.is-static { height: auto; padding: 72px 0; }
    .reel.is-static .reel-sticky { position: static; height: auto; }
    .reel.is-static .reel-stage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; height: 460px; flex: none; }
    .reel.is-static .rcard { position: relative; width: auto; transform: none; }
    .reel.is-static .rfull { display: none; }
    .reel.is-static .rcol { opacity: 1; width: 100%; pointer-events: auto; }
    .reel.is-static .reel-progress { display: none; }
}

/* Pantallas bajas (laptops) */
@media (min-width: 861px) and (max-height: 860px) {
    .rfull { padding-block: clamp(20px, 3.5vh, 40px); }
    .rfull-text h3 { font-size: clamp(36px, 7.4vh, 72px); margin: 12px 0 10px; }
    .rfull-text p { font-size: 16.5px; }
    .rchecks { margin: 12px 0 18px; gap: 6px; }
    .rchecks li { font-size: 15px; }
    .rfull-visual { padding: 16px; }
    .inst { gap: 9px; }
    .inst-crest { padding: 0; }
    .inst-field, .inst-google { padding-block: 9px; }
    .inst-list span:nth-child(2) { display: none; }
}
@media (min-width: 861px) and (max-height: 720px) {
    .rchecks { display: none; }
    .inst-list { display: none; }
    .rphoto .slot { aspect-ratio: auto; height: 44vh; }
}

/* ==========================================================================
   Estilos de imágenes
   ========================================================================== */

/* Hero: tarjetas flotantes con marco de color y sombra sólida */
.f1 { --fc: var(--sky); }
.f2 { --fc: var(--yellow); }
.f3 { --fc: var(--neon); }
.f4 { --fc: var(--coral); }

.float {
    border: 3px solid var(--fc, var(--neon));
    box-shadow: 7px 7px 0 var(--fc, var(--neon)), 0 30px 60px -20px rgba(0, 0, 0, .7);
    transition: scale .45s var(--ease), box-shadow .45s var(--ease);
}
.float:hover {
    z-index: 3;
    scale: 1.07;
    box-shadow: 12px 12px 0 var(--fc, var(--neon)), 0 40px 70px -20px rgba(0, 0, 0, .8);
}
.hero-img {
    filter: saturate(1.1) contrast(1.05);
    transition: scale .7s var(--ease), filter .4s;
}
.float:hover .hero-img { scale: 1.1; filter: saturate(1.3) contrast(1.08); }

/* Brillo diagonal */
.float .slot::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, .35) 50%, transparent 56%);
    translate: -100% 0;
    animation: shine 8s ease-in-out infinite;
    pointer-events: none;
}
.f2 .slot::after { animation-delay: -2s; }
.f3 .slot::after { animation-delay: -4s; }
.f4 .slot::after { animation-delay: -6s; }
@keyframes shine {
    0%, 75% { translate: -100% 0; }
    100% { translate: 100% 0; }
}
.float figcaption::before {
    content: '';
    display: block;
    width: 28px;
    height: 4px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: var(--fc, var(--neon));
    transition: width .35s var(--ease);
}
.float:hover figcaption::before { width: 48px; }

/* Por edad: tinte del color de cada nivel que se revela al hover */
.age .slot {
    isolation: isolate;
    border-top: 3px solid var(--ink);
    background: var(--c);
}
.age-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(.7) contrast(1.1);
    transition: scale .7s var(--ease), filter .5s ease;
}
.age .slot::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--c);
    mix-blend-mode: multiply;
    opacity: .55;
    transition: opacity .5s ease;
    pointer-events: none;
}
.age .slot::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
    translate: -120% 0;
    transition: translate .9s var(--ease);
    pointer-events: none;
}
.age { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.age:hover { box-shadow: 8px 8px 0 var(--ink); }
.age:hover .slot::before { opacity: 0; }
.age:hover .slot::after { translate: 120% 0; }
.age:hover .age-img { scale: 1.08; filter: grayscale(0) contrast(1.05) saturate(1.15); }
@media (hover: none) {
    .age .slot::before { opacity: .18; }
    .age-img { filter: saturate(1.05); }
}

/* Fundadores: zoom lento continuo */
.backed-photos img { animation: kenburns 22s ease-in-out infinite alternate; }
.backed-photos img:nth-child(2) { animation-delay: -11s; }
@keyframes kenburns {
    from { scale: 1; }
    to { scale: 1.07; }
}

/* Clases en vivo: zoom suave */
.rphoto .slot > img { transition: scale .7s var(--ease); }
.rcard:hover .rphoto .slot > img { scale: 1.05; }

/* Aliados: logo en gris que se enciende al hover */
.ally-logo {
    filter: grayscale(1) opacity(.7);
    transition: filter .35s ease, scale .35s var(--ease);
}
.ally:hover .ally-logo { filter: none; scale: 1.05; }

/* Movimiento reducido al final para que gane sobre todo lo anterior */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}