/* =========================================================
   kora.css
   La identidad de Kora, tomada de su logo:
     azul marino #0a1633 · azul marca #1a4fd0 · cielo #2f7fea
   - Tema claro (el natural de Kora): lienzo claro, texto marino.
   - Tema oscuro: la noche en azul marino.
   - Las maquetas (.keep-light) se ven siempre como la
     plataforma real, en claro.
   - Letras: Montserrat (títulos), IBM Plex Sans (texto) y
     IBM Plex Mono (cifras).
   ========================================================= */

:root {
  --navy: #0a1633;
  --brand: #1a4fd0;
  --brand-hover: #143fae;
  --cielo: #2f7fea;
  --petroleo: #123a9c;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Tema claro ---------- */
:root, :root[data-theme="light"], .keep-light {
  --theme-color: #f4f7fc;
  --canvas: #f4f7fc;
  --canvas-2: #eaf0fb;
  --surface: #ffffff;
  --line: #e1e7f2;
  --line-strong: #c9d3e6;
  --ink: #0b1633;
  --ink-soft: #2e3b5c;
  --muted: #5d6a86;
  --heading: #0a1633;
  --brand-text: #1a4fd0;
  --brand-soft: #eaf0fd;
  --grad-a: #1a4fd0; --grad-b: #2f7fea;
  --switch-track: #e6ebf5;
  --tab-on: #0a1633;
  --nav-bg: rgba(244, 247, 252, .95);
  --switch-bg: #0a1633; --switch-ink: #ffffff;
  --ok: #047857; --ok-soft: #ecfdf5;
  --warn: #b45309; --warn-soft: #fffbeb; --warn-line: #fde68a;
  --bad: #b91c1c; --bad-soft: #fef2f2;
  --sup: #123a9c; --sup-soft: #e6f0fe;
  --shadow: 0 1px 2px rgba(11, 22, 51, .06), 0 12px 32px -12px rgba(11, 22, 51, .18);
  --focus: #1a4fd0;
  --selection: rgba(47, 127, 234, .25);
}
:root, :root[data-theme="light"] { color-scheme: light; }
.keep-light { color-scheme: light; color: var(--ink); }

/* ---------- Tema oscuro ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --theme-color: #070f24;
  --canvas: #070f24;
  --canvas-2: #0a1530;
  --surface: #0e1a3a;
  --line: #1c2b52;
  --line-strong: #2c3f70;
  --ink: #e8eefc;
  --ink-soft: #b8c5e6;
  --muted: #8a9ac0;
  --heading: #ffffff;
  --brand-text: #8db0ff;
  --brand-soft: rgba(77, 124, 255, .16);
  --grad-a: #7aa2ff; --grad-b: #5fc0ff;
  --switch-track: #0a1530;
  --tab-on: #1a4fd0;
  --nav-bg: rgba(7, 15, 36, .95);
  --switch-bg: #ffffff; --switch-ink: #0a1633;
  --ok: #34d399; --ok-soft: rgba(16, 185, 129, .16);
  --warn: #fbbf24; --warn-soft: rgba(245, 158, 11, .14); --warn-line: rgba(251, 191, 36, .4);
  --bad: #f87171; --bad-soft: rgba(239, 68, 68, .16);
  --sup: #9cc0ff; --sup-soft: rgba(77, 124, 255, .18);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .7);
  --focus: #8db0ff;
  --selection: rgba(77, 124, 255, .35);
}

body { background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: clamp(1rem, .96rem + .2vw, 1.08rem); line-height: 1.6; }
strong { font-weight: 700; color: var(--heading); }
.grad { background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Intro ---------- */
.intro { display: none; }
.intro-on .intro { display: grid; place-content: center; justify-items: center; position: fixed; inset: 0; z-index: 600; background: var(--canvas); overflow: hidden; }
.intro-on body { overflow: hidden; }
.intro.is-leaving { pointer-events: none; background: transparent; transition: background 0s .5s; }
.intro.is-leaving > :not(.intro__panels) { opacity: 0; transform: translateY(-20px); transition: opacity .35s, transform .5s var(--ease); }
.intro__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at center, #000, transparent 65%); mask-image: radial-gradient(circle at center, #000, transparent 65%); opacity: 0; animation: k-fade .8s ease forwards; }
.intro__mark { position: relative; width: min(46vmin, 260px); aspect-ratio: 1; display: grid; place-items: center; }
.intro__orbit { position: absolute; inset: -10%; width: 120%; height: 120%; fill: none; stroke: var(--cielo); stroke-width: 2; opacity: .55; transform: rotate(56deg); stroke-linecap: round; stroke-dasharray: 720; stroke-dashoffset: 720; animation: k-draw 1.3s var(--ease) .15s forwards; }
.intro__emblem { width: 78%; height: auto; opacity: 0; transform: scale(.6) rotate(-8deg); animation: k-pop .9s var(--ease) .6s forwards; }
.intro__name { position: relative; display: flex; gap: .04em; margin-top: 10px; overflow: hidden; font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 9vmin, 5rem); letter-spacing: .06em; line-height: 1.05; color: var(--heading); }
.intro__name span { display: inline-block; transform: translateY(110%); animation: k-up .7s var(--ease) forwards; }
.intro__name span:nth-child(1) { animation-delay: 1s; } .intro__name span:nth-child(2) { animation-delay: 1.07s; } .intro__name span:nth-child(3) { animation-delay: 1.14s; } .intro__name span:nth-child(4) { animation-delay: 1.21s; }
.intro__sub { position: relative; font-weight: 500; letter-spacing: .12em; color: var(--muted); font-size: clamp(.8rem, 2.4vmin, 1rem); opacity: 0; animation: k-fade .7s ease 1.45s forwards; }
.intro__panels { position: absolute; inset: 0; display: flex; pointer-events: none; }
.intro__panels span { flex: 1; background: var(--navy); transform: translateY(100%); }
.intro__panels span:nth-child(2) { background: var(--brand); }
.intro__panels span:nth-child(3) { background: var(--cielo); }
.intro.is-leaving .intro__panels span { animation: k-panels 1s cubic-bezier(.7, 0, .25, 1) forwards; }
.intro.is-leaving .intro__panels span:nth-child(2) { animation-delay: .06s; }
.intro.is-leaving .intro__panels span:nth-child(3) { animation-delay: .12s; }
.intro.is-leaving .intro__grid { opacity: 0 !important; transition: opacity 0s .5s; animation: none; }
@keyframes k-fade { to { opacity: 1; } }
@keyframes k-draw { to { stroke-dashoffset: 0; } }
@keyframes k-pop { to { opacity: 1; transform: none; } }
@keyframes k-up { to { transform: none; } }
@keyframes k-panels { 0% { transform: translateY(100%); } 50% { transform: translateY(0); } 100% { transform: translateY(-100%); } }

/* ---------- Navegación ---------- */
.knav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter); background: var(--nav-bg); border-bottom: 1px solid transparent; transition: transform .5s var(--ease), border-color .3s; --prefs-line: var(--line-strong); --prefs-accent: var(--brand-text); --prefs-ink: var(--heading); --prefs-bg: var(--surface); --prefs-font: var(--mono); }
.knav.is-scrolled { border-color: var(--line); }
.knav.is-hidden { transform: translateY(-100%); }
.knav__back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; font-weight: 600; color: var(--ink-soft); transition: border-color .2s, color .2s; }
.knav__back:hover { border-color: var(--brand-text); color: var(--brand-text); }
.knav__brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; color: var(--heading); }
.knav__brand img { width: 36px; height: 36px; }
.knav__links { display: flex; gap: 4px; margin-left: auto; }
.knav__links a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--ink-soft); white-space: nowrap; transition: background .2s, color .2s; }
.knav__links a:hover { background: var(--brand-soft); color: var(--brand-text); }
.knav__switch { padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; background: var(--switch-bg); color: var(--switch-ink); transition: box-shadow .2s; }
.knav__switch:hover { box-shadow: 3px 3px 0 #f7ae1f; }
@media (max-width: 1080px) { .knav__links { display: none; } .prefs { margin-left: auto; } }
@media (max-width: 560px) { .knav__back-text, .knav__brand span { display: none; } .knav { gap: 8px; } .knav__switch { font-size: .82rem; padding: 8px 10px; } }
@media (max-width: 380px) { .knav__switch { display: none; } }

/* ---------- Botones e insignias ---------- */
.kbtn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .25s var(--ease), background .2s, box-shadow .25s; }
.kbtn:hover { transform: translateY(-2px); }
.kbtn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(26, 79, 208, .7); }
.kbtn--primary:hover { background: var(--brand-hover); }
.kbtn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--heading); }
.kbtn--ghost:hover { border-color: var(--brand-text); color: var(--brand-text); }
.kbtn--white { background: #fff; color: var(--navy); }
.kbadge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; font-size: .85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-soft); }
.kbadge--plan { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.kbadge__dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

.perf { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; font-family: var(--sans); }
.perf--sup { background: var(--sup-soft); color: var(--sup); }
.perf--alto { background: var(--ok-soft); color: var(--ok); }
.perf--bas { background: var(--warn-soft); color: var(--warn); }
.perf--bajo { background: var(--bad-soft); color: var(--bad); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 16vh, 160px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__title { margin: 22px 0 18px; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; color: var(--heading); text-wrap: balance; }
.hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.orbit-art { position: relative; aspect-ratio: 1; width: min(100%, 500px); margin-inline: auto; transform: perspective(1000px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease); }
.orbit-art__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; overflow: visible; }
.orbit-art__ring ellipse { stroke: var(--brand-text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 420 340; animation: orbit-dash 10s linear infinite; }
.orbit-art__ring .r2 { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 8; animation: none; }
.orbit-art__emblem { position: absolute; left: 28%; top: 28%; width: 44%; height: auto; filter: drop-shadow(0 20px 30px rgba(26, 79, 208, .25)); animation: bob 6s ease-in-out infinite; }
@keyframes orbit-dash { to { stroke-dashoffset: -760; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .85rem; animation: floaty 7s ease-in-out infinite; }
.float b { color: var(--heading); }
.float small { display: block; color: var(--muted); font-size: .75rem; }
.float--grade { left: -2%; top: 14%; flex-direction: column; align-items: flex-start; gap: 4px; }
.float__label { font-size: .75rem; color: var(--muted); font-weight: 600; }
.float__big { font-family: var(--mono); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--heading); }
.float--notice { right: -4%; top: 22%; animation-delay: -2s; }
.float__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); }
.float--att { right: 2%; bottom: 14%; flex-wrap: wrap; max-width: 210px; animation-delay: -4s; }
.float--att small { width: 100%; }
.att { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-family: var(--mono); font-weight: 600; font-size: .8rem; }
.att--p { background: var(--ok-soft); color: var(--ok); }
.att--t { background: var(--warn-soft); color: var(--warn); }
.att--a { background: var(--bad-soft); color: var(--bad); }
.float--inst { left: 6%; bottom: 18%; font-weight: 700; color: var(--heading); animation-delay: -1s; }
.inst-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cielo); box-shadow: 0 0 0 4px var(--brand-soft); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .float { font-size: .78rem; padding: 10px 12px; } .float--notice { right: -2%; } .float--grade { left: 0; } .float__big { font-size: 1.6rem; } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 130px) 0; }
.keyebrow { margin-bottom: 14px; font-family: var(--mono); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.keyebrow--light { color: #8db8ff; }
.ktitle { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; color: var(--heading); max-width: 22ch; text-wrap: balance; }
.ktitle--light { color: #fff; }
.klead { margin-top: 18px; max-width: 58ch; color: var(--ink-soft); font-size: 1.1rem; }
.klead--light { color: #c4d2ef; }
.klead--light strong { color: #fff; }

/* Qué es */
.what { background: var(--surface); border-block: 1px solid var(--line); }
.what__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .what__grid { grid-template-columns: 1fr; } }
.compare { padding: 22px; border-radius: 24px; background: var(--canvas); border: 1px solid var(--line); }
.compare__switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--switch-track); margin-bottom: 18px; }
.compare__switch button { position: relative; z-index: 1; padding: 10px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; color: var(--muted); transition: color .3s; }
.compare__switch button.is-on { color: var(--heading); }
.compare__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px; background: var(--surface); box-shadow: 0 2px 8px rgba(11, 22, 51, .12); transform: translateX(100%); transition: transform .45s var(--ease); }
.compare[data-side="antes"] .compare__pill { transform: translateX(0); }
.compare__list { display: grid; gap: 10px; }
.compare__list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; animation: slide-in .5s var(--ease) both; }
.compare__list li:nth-child(2) { animation-delay: .05s; } .compare__list li:nth-child(3) { animation-delay: .1s; } .compare__list li:nth-child(4) { animation-delay: .15s; } .compare__list li:nth-child(5) { animation-delay: .2s; }
.compare__list .x, .compare__list .ok { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; font-weight: 800; }
.compare__list .x { background: var(--bad-soft); color: var(--bad); }
.compare__list .ok { background: var(--ok-soft); color: var(--ok); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } }

/* Para qué */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .3s, border-color .3s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feat__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); transition: background .3s, color .3s; }
.feat:hover .feat__icon { background: var(--brand); color: #fff; }
.feat__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--heading); margin-bottom: 6px; }
.feat p { color: var(--ink-soft); font-size: .95rem; }

/* Para quién */
.who { background: linear-gradient(var(--canvas), var(--canvas-2)); }
.roles { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } }
.roles__tabs { display: grid; gap: 8px; align-content: start; }
@media (max-width: 820px) { .roles__tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .roles__tabs { grid-template-columns: 1fr 1fr; } }
.roles__tabs button { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-weight: 700; color: var(--ink-soft); transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.roles__tabs button:hover { border-color: var(--brand-text); color: var(--brand-text); }
.roles__tabs button.is-on { background: var(--tab-on); color: #fff; border-color: var(--tab-on); transform: translateX(6px); }
@media (max-width: 820px) { .roles__tabs button.is-on { transform: none; } .roles__tabs button { text-align: center; padding: 12px 8px; } }
.roles__panel { position: relative; min-height: 290px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.roles__panel::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 3px solid var(--brand-soft); }
.role h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--heading); }
.role > p { margin: 6px 0 20px; color: var(--muted); font-size: 1.05rem; }
.role ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .role ul { grid-template-columns: 1fr; } }
.role li { position: relative; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--canvas); font-weight: 500; animation: slide-in .45s var(--ease) both; }
.role li:nth-child(2) { animation-delay: .05s; } .role li:nth-child(3) { animation-delay: .1s; } .role li:nth-child(4) { animation-delay: .15s; }
.role li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 3px solid var(--cielo); }

/* ---------- Así se verá (vistas previas) ---------- */
.preview { background: var(--surface); border-top: 1px solid var(--line); }
.shots { margin-top: 36px; }
.shots__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shots__tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; color: var(--ink-soft); transition: background .25s, color .25s, border-color .25s; }
.shots__tabs button b { font-weight: inherit; }
.shots__tabs button span { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.shots__tabs button:hover { border-color: var(--brand-text); color: var(--brand-text); }
.shots__tabs button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots__tabs button.is-on span { color: #cfe0ff; }
.shots__caption { margin-top: 16px; text-align: center; color: var(--muted); font-size: .95rem; }

.browser { border-radius: 18px; background: #dfe6f2; padding: 0 0 8px; box-shadow: 0 40px 80px -40px rgba(11, 22, 51, .45); border: 1px solid #c9d3e6; }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; }
.browser__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.browser__bar > span:nth-child(2) { background: #fbbf24; }
.browser__bar > span:nth-child(3) { background: #34d399; }
.browser__bar em { margin-left: 14px; flex: 1; max-width: 360px; padding: 5px 12px; border-radius: 8px; background: #fff; font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__screen { position: relative; margin: 0 8px; border-radius: 10px; background: var(--canvas); overflow: hidden; min-height: 480px; font-size: .9rem; }
.shot { animation: shot-in .6s var(--ease) both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(14px) scale(.99); } }

/* Piezas comunes de las maquetas */
.m-h { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--heading); line-height: 1.2; }
.m-label { margin: 14px 0 8px; font-weight: 700; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.m-search { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); }
.m-input { display: flex; justify-content: space-between; margin-top: 10px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); font-weight: 500; }
.m-input span { font-family: var(--mono); color: var(--navy); }
.m-btn { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; text-align: center; }
.m-btn--sm { margin: 0; padding: 7px 12px; font-size: .8rem; }
.m-tag { padding: 5px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.m-tag--warn { background: var(--warn-soft); color: var(--warn); }

/* 01 Ingreso */
.shot--login { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 480px; }
.login__side { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 36px; background: linear-gradient(150deg, var(--navy), var(--petroleo)); color: #fff; }
.login__side img { width: 84px; }
.login__brand { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: .06em; }
.login__tag { color: #a9bde6; font-size: .85rem; }
.login__quote { margin-top: 24px; max-width: 26ch; font-size: 1.05rem; color: #dbe5fa; }
.login__form { padding: 30px 34px; }
.inst-list { display: grid; gap: 8px; margin-top: 8px; }
.inst { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.inst b { display: block; color: var(--navy); }
.inst small { color: var(--muted); font-size: .75rem; font-family: var(--mono); }
.inst__logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-family: var(--display); font-size: .8rem; }
.inst i { margin-left: auto; font-style: normal; color: #fff; background: var(--brand); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; }
.inst.is-picked { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .8rem; color: var(--ink-soft); }
.chips .is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 720px) { .shot--login { grid-template-columns: 1fr; } .login__side { padding: 22px; } .login__quote { display: none; } .login__form { padding: 22px; } }

/* App (planilla y coordinación) */
.app { display: grid; grid-template-columns: 64px 1fr; min-height: 480px; }
.app__side { display: grid; align-content: start; justify-items: center; gap: 14px; padding: 16px 0; background: var(--navy); color: #7f93c2; }
.app__side img { width: 34px; margin-bottom: 8px; }
.app__side span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: 1.05rem; }
.app__side .is-on { background: var(--brand); color: #fff; }
.app__main { padding: 22px 24px; overflow-x: auto; }
.app__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.app__top small { color: var(--muted); font-weight: 600; }
.sheet { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sheet th { padding: 10px 12px; background: #eef3fb; font-size: .78rem; font-weight: 700; text-align: center; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.sheet th small { display: block; font-family: var(--mono); font-weight: 500; color: var(--muted); }
.sheet th:first-child, .sheet td:first-child { text-align: left; }
.sheet td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: center; font-family: var(--mono); font-weight: 500; }
.sheet td:first-child { font-family: var(--sans); font-weight: 600; color: var(--navy); white-space: nowrap; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet .cell { display: inline-block; min-width: 40px; padding: 3px 6px; border-radius: 6px; transition: background .3s; }
.sheet .cell.is-typing { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--cielo); }
.sheet .def { font-weight: 700; color: var(--navy); }
.sheet .def.is-low { color: var(--bad); }
.sheet__note { margin-top: 12px; color: var(--muted); font-size: .82rem; }

/* 03 Acudiente */
.shot--parent { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; justify-content: center; padding: 26px 34px; min-height: 480px; background: radial-gradient(circle at 30% 50%, #e3ecfd, var(--canvas) 70%); }
.phone { position: relative; width: 250px; height: 460px; padding: 10px; border-radius: 36px; background: var(--navy); box-shadow: 0 30px 60px -20px rgba(11, 22, 51, .5); }
.phone__notch { position: absolute; left: 50%; top: 14px; width: 70px; height: 18px; margin-left: -35px; border-radius: 99px; background: #000; z-index: 2; }
.phone__screen { height: 100%; padding: 40px 12px 12px; border-radius: 28px; background: var(--canvas); overflow: hidden; font-size: .78rem; }
.ph-hi { margin-bottom: 10px; color: var(--muted); line-height: 1.3; }
.ph-hi b { color: var(--navy); font-family: var(--display); font-size: 1rem; }
.kid { margin-bottom: 8px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.kid--warn { border-color: #fecaca; }
.kid__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.kid__top b { display: block; color: var(--navy); }
.kid__top small { color: var(--muted); font-size: .68rem; }
.kid__av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .7rem; }
.kid__av--b { background: var(--cielo); }
.kid__avg { display: flex; align-items: baseline; gap: 6px; padding: 6px 8px; border-radius: 10px; background: var(--canvas); margin-bottom: 4px; }
.kid__avg span { color: var(--muted); flex: 1; }
.kid__avg b { font-family: var(--mono); font-size: 1.1rem; color: var(--navy); }
.kid__avg em { font-style: normal; font-weight: 700; font-size: .68rem; }
.up { color: var(--ok); } .down { color: var(--bad); }
.kid__row { display: flex; justify-content: space-between; padding: 3px 4px; color: var(--ink-soft); }
.kid__row b { font-family: var(--mono); }
.okc { color: var(--ok); } .badc { color: var(--bad); }
.kid__row .perf { font-size: .65rem; }
.ph-notice { padding: 9px 10px; border-radius: 12px; background: var(--brand); color: #e6eefc; }
.ph-notice b { display: block; color: #fff; }
.parent__aside { max-width: 34ch; }
.parent__aside p:not(.m-h) { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 720px) { .shot--parent { grid-template-columns: 1fr; justify-items: center; padding: 22px; } .parent__aside { text-align: center; } }

/* 04 Boletín */
.shot--report { padding: 26px; min-height: 480px; background: #e9eef7; }
.paper { max-width: 760px; margin-inline: auto; padding: 24px 26px; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px -10px rgba(11, 22, 51, .25); }
.paper__head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 3px solid var(--navy); }
.paper__head b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.paper__head small { color: var(--muted); }
.paper__head img { margin-left: auto; width: 96px; height: auto; }
.paper__crest { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--navy); font-family: var(--display); font-weight: 800; color: var(--navy); }
.paper__who { display: flex; flex-wrap: wrap; gap: 26px; padding: 12px 0; font-weight: 600; color: var(--navy); }
.paper__who small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.report { width: 100%; border-collapse: collapse; }
.report th { padding: 8px; background: var(--navy); color: #fff; font-size: .78rem; text-align: center; }
.report th:first-child, .report td:first-child { text-align: left; }
.report td { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; font-family: var(--mono); }
.report td:first-child { font-family: var(--sans); font-weight: 600; color: var(--navy); }
.report tr:nth-child(even) td { background: #f8faff; }
.paper__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: .75rem; }
@media (max-width: 620px) { .shot--report { padding: 12px; } .paper { padding: 16px; overflow-x: auto; } .report { min-width: 460px; } }

/* 05 Coordinación */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.tile small { color: var(--muted); font-weight: 600; }
.tile b { font-family: var(--mono); font-size: 1.5rem; color: var(--navy); }
.tile__bar { height: 6px; border-radius: 6px; background: var(--brand-soft); overflow: hidden; }
.tile__bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.chart { margin-top: 14px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.chart__title { font-weight: 700; color: var(--navy); }
.chart__title small { color: var(--muted); font-weight: 500; }
.chart__bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; height: 190px; margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.chart__bars div { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.chart__bars i { width: min(46px, 70%); height: calc(var(--v) * 100%); border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--cielo), var(--brand)); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.chart__bars div:nth-child(3) i { background: linear-gradient(#f59e0b, #b45309); }
.chart__bars div:nth-child(2) i { animation-delay: .05s; } .chart__bars div:nth-child(3) i { animation-delay: .1s; } .chart__bars div:nth-child(4) i { animation-delay: .15s; } .chart__bars div:nth-child(5) i { animation-delay: .2s; } .chart__bars div:nth-child(6) i { animation-delay: .25s; }
.chart__bars span { position: absolute; bottom: -22px; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- Lanzamiento (siempre en azul marino) ---------- */
.launch { background: radial-gradient(70vmax 50vmax at 85% 0%, rgba(47, 127, 234, .35), transparent 60%), var(--navy); color: #fff; overflow: hidden; }
.launch::before { content: ""; position: absolute; right: -10vmax; top: -12vmax; width: 60vmax; height: 34vmax; border-radius: 50%; border: 3px solid rgba(47, 127, 234, .35); transform: rotate(-28deg); }
.countdown { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 36px; }
.countdown > div { display: grid; justify-items: center; min-width: 96px; padding: 16px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.countdown b { font-family: var(--mono); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 6px; font-size: .8rem; color: #a9bde6; }
.countdown p { flex-basis: 100%; color: #a9bde6; font-size: .95rem; }
@media (max-width: 480px) { .countdown > div { min-width: calc(50% - 6px); } }
.road { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px; }
.road::before { content: ""; position: absolute; left: 11px; right: 11px; top: 11px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 8px, transparent 8px 14px); }
@media (max-width: 760px) { .road { grid-template-columns: 1fr 1fr; row-gap: 28px; } .road::before { display: none; } }
.road__step { position: relative; display: grid; gap: 2px; }
.road__dot { position: relative; width: 24px; height: 24px; margin-bottom: 12px; border-radius: 50%; background: var(--navy); border: 3px solid rgba(255, 255, 255, .35); }
.road__step b { font-family: var(--display); font-size: 1.05rem; }
.road__step small { color: #a9bde6; }
.road__step.is-now .road__dot { background: #f59e0b; border-color: #fde68a; --ping: #f59e0b; }
.road__step.is-now small { color: #fcd34d; font-weight: 700; }
.road__step--goal .road__dot { background: var(--cielo); border-color: #bcd6ff; }
.road__step--goal b { color: #8db8ff; }
.launch__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 56px; padding: 24px 28px; border-radius: 20px; background: linear-gradient(100deg, var(--brand), var(--cielo)); }
.launch__cta p { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); max-width: 36ch; }

/* ---------- Pie ---------- */
.kfooter { background: #060e24; color: #a9bde6; padding: 34px 0; border-top: 1px solid #142049; }
.kfooter__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.kfooter__brand { display: flex; align-items: center; gap: 14px; }
.kfooter__brand img { width: 52px; }
.kfooter__brand b { color: #fff; font-family: var(--display); letter-spacing: .06em; }
.kfooter__nav { display: grid; gap: 8px; }
.kfooter__nav a { text-decoration: none; font-weight: 600; color: #e6eefc; }
.kfooter__nav a:hover { color: #8db8ff; }
