/* RUTA · Sistema visual «Piedra y salvia»
   Neutros de piedra clara y grafito, un acento salvia profundo para lo que importa
   y un dorado suave solo para lo premium (Élite, primer lugar).
   Superficies blancas con filete fino, sombras largas y suaves, mucho aire.
   Tipografías: Schibsted Grotesk (títulos y cifras) + Geist (lectura). */

@font-face { font-family: "Schibsted Grotesk"; src: url("fuentes/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fuentes/geist.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  /* Color */
  --bg: #f1f2ef;
  --s1: #ffffff;
  --s2: #f7f8f6;
  --s3: #e9ebe7;
  --ink: #1d2023;
  --ink2: #50555a;
  --ink3: #6c7176;
  --line: #e2e4e0;
  --line-strong: #cbcfca;
  --acc: #4f7360;
  --acc-ink: #ffffff;
  --acc-soft: #e4ece6;
  --acc-text: #3d5c4c;
  --oro: #94784a;
  --oro-soft: #f2ece1;
  --ok: #2e7650;  --ok-soft: #e2efe7;
  --warn: #93661c; --warn-soft: #f5eedd;
  --err: #ad4839; --err-soft: #f7e5e1;
  --info: #3e6293; --info-soft: #e4eaf3;
  --screen: #181a1c;
  --on-screen: #f3f3f1;
  --on-screen-acc: #a6c8b3;
  --shadow: 0 1px 2px rgba(29,32,35,.04), 0 8px 24px -14px rgba(29,32,35,.16);
  --shadow-lg: 0 2px 6px rgba(29,32,35,.04), 0 32px 64px -28px rgba(29,32,35,.28);
  --glass: color-mix(in srgb, var(--bg) 78%, transparent);

  /* Tipografía */
  --f-display: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Forma y movimiento */
  --r1: 10px; --r2: 16px; --r3: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --t-fast: 180ms; --t-in: 420ms;
  --top-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111314; --s1: #181a1c; --s2: #1e2123; --s3: #272a2d;
    --ink: #eceeec; --ink2: #b3b8b5; --ink3: #8e9391; --line: #2a2e30; --line-strong: #3b4043;
    --acc: #8db39c; --acc-ink: #0e1512; --acc-soft: #1c2822; --acc-text: #a6c8b3;
    --oro: #c8ad7d; --oro-soft: #2a251b;
    --ok: #63bf8d; --ok-soft: #17281f; --warn: #d8a650; --warn-soft: #2c2416;
    --err: #e2806f; --err-soft: #2e1c18; --info: #8aa8d6; --info-soft: #1a2333;
    --screen: #0c0d0e; --on-screen: #f3f3f1; --on-screen-acc: #a6c8b3;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -14px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 32px 64px -28px rgba(0,0,0,.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111314; --s1: #181a1c; --s2: #1e2123; --s3: #272a2d;
  --ink: #eceeec; --ink2: #b3b8b5; --ink3: #8e9391; --line: #2a2e30; --line-strong: #3b4043;
  --acc: #8db39c; --acc-ink: #0e1512; --acc-soft: #1c2822; --acc-text: #a6c8b3;
  --oro: #c8ad7d; --oro-soft: #2a251b;
  --ok: #63bf8d; --ok-soft: #17281f; --warn: #d8a650; --warn-soft: #2c2416;
  --err: #e2806f; --err-soft: #2e1c18; --info: #8aa8d6; --info-soft: #1a2333;
  --screen: #0c0d0e; --on-screen: #f3f3f1; --on-screen-acc: #a6c8b3;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 32px 64px -28px rgba(0,0,0,.85);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  min-height: 100%;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--acc-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.num, .tab { font-variant-numeric: tabular-nums; }
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 26px; height: 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink3); }
.cap { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }

/* ---------- Barra superior de la demo ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 16px; min-height: var(--top-h);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--glass); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line); color: var(--ink);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.top-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.top-brand small { font-size: 13px; color: var(--ink3); padding-left: 12px; border-left: 1px solid var(--line-strong); }
.top-nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--s3); overflow-x: auto; scrollbar-width: none; min-width: 0; margin-left: auto; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a {
  flex: none; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--ink2); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.top-nav a:hover { color: var(--ink); }
.top-nav a[aria-current="page"] { background: var(--s1); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px -4px rgba(0,0,0,.16); }
.top-nav a .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 2px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.aviso-demo {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center;
  padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-size: 13px; color: var(--ink3); border-bottom: 1px solid var(--line);
}
.aviso-demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--oro); }
.aviso-demo button { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; padding: 0 2px; color: var(--ink2); font-weight: 500; }
.aviso-demo button:hover { color: var(--ink); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .2em; line-height: 1; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-sm { font-size: 15px; gap: 8px; }
.logo-sm .logo-mark { width: 24px; height: 24px; }

/* ---------- Botones ---------- */
.btn {
  --b-bg: var(--s1); --b-fg: var(--ink); --b-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-weight: 550; font-size: 15px; line-height: 1.15; text-decoration: none; text-align: center;
  box-shadow: 0 1px 2px rgba(29,32,35,.05);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  user-select: none;
}
.btn:hover { border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(29,32,35,.05), 0 6px 16px -8px rgba(29,32,35,.22); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-acc { --b-bg: var(--acc); --b-fg: var(--acc-ink); --b-bd: transparent; }
.btn-acc:hover { border-color: transparent; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--acc) 80%, transparent); }
.btn-ink { --b-bg: var(--ink); --b-fg: var(--bg); --b-bd: transparent; }
.btn-ink:hover { border-color: transparent; }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--s3); border-color: transparent; box-shadow: none; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; color: transparent; position: relative; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--b-fg); border-right-color: transparent; animation: girar .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: inherit; position: relative; transition: background var(--t-fast); }
.icon-btn:hover { background: var(--s3); }
.icon-btn:active { transform: scale(.96); }
.badge-count { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--acc-ink); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Chips y pastillas ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--s1); font-size: 14px; font-weight: 500; color: var(--ink2);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; background: var(--s3); color: var(--ink2); white-space: nowrap; align-self: center; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.acc { background: var(--acc-soft); color: var(--acc-text); }
.pill.ink { background: var(--ink); color: var(--bg); }
.pill.oro { background: var(--oro-soft); color: var(--oro); }
.pill .punto { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; animation: latir 1.6s infinite; }
@keyframes latir { 50% { opacity: .3; } }

/* ---------- Tarjeta de datos (antes «etiqueta») ---------- */
.etq { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); color: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.etq-row { display: flex; border-top: 1px solid var(--line); }
.etq-row:first-child { border-top: 0; }
.etq-cell { flex: 1; padding: 14px 16px; min-width: 0; }
.etq-cell + .etq-cell { border-left: 1px solid var(--line); }
.etq-cap { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.etq-val { font-weight: 500; font-size: 15px; }
.etq-big { display: block; font-family: var(--f-display); font-weight: 600; font-size: 26px; line-height: 1.1; letter-spacing: -.025em; }
.etq-acc { background: var(--acc-soft); color: var(--acc-text); }
.etq-acc .etq-cap { color: var(--acc-text); opacity: .8; }
.barcode { display: none; }
.sello {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  background: var(--ok-soft); color: var(--ok);
}
.sello.acc { background: var(--acc-soft); color: var(--acc-text); }
.sello.pone { animation: sellar .6s var(--ease) both; }
@keyframes sellar { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } }

/* Rastreo (línea de tiempo) */
.rastreo { list-style: none; margin: 0; padding: 0; display: grid; }
.rastreo li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; position: relative; padding-bottom: 16px; }
.rastreo li:last-child { padding-bottom: 0; }
.rastreo li::before { content: ""; position: absolute; left: 9.5px; top: 22px; bottom: 2px; width: 1px; background: var(--line-strong); }
.rastreo li:last-child::before { display: none; }
.rastreo li.hecho::before { background: var(--acc); }
.rastreo .pt { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--s1); display: grid; place-items: center; position: relative; z-index: 1; margin-top: 1px; }
.rastreo .hecho .pt { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.rastreo .actual .pt { border: 1.5px solid var(--acc); background: var(--s1); box-shadow: 0 0 0 5px var(--acc-soft); }
.rastreo .actual .pt::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.rastreo .pt .i { width: 11px; height: 11px; stroke-width: 2.6; }
.rastreo strong { display: block; font-size: 15px; font-weight: 550; }
.rastreo span { font-size: 13px; color: var(--ink3); }
.rastreo .pend strong { color: var(--ink3); font-weight: 500; }

/* ---------- Tarjetas y campos ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--ink2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--s2); color: var(--ink); font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--s1); border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.field small { font-size: 13px; color: var(--ink3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; padding: 0; border: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p, 50%), var(--s3) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--s3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--acc); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px rgba(0,0,0,.18); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px rgba(0,0,0,.18); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--acc-soft), 0 0 0 1px var(--acc); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--t-fast); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t-fast) var(--ease); }
.switch input:checked + span { background: var(--acc); box-shadow: none; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 3px; }
.bar { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--acc); border-radius: 3px; transition: width var(--t-in) var(--ease); }
.bar.acc > i { background: var(--acc); }
.bar.ok > i { background: var(--ok); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 13.5px; color: #fff; letter-spacing: .02em; }
.avatar.sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar.lg { width: 64px; height: 64px; font-size: 21px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r2); background: var(--screen); color: var(--on-screen); box-shadow: var(--shadow-lg); font-size: 14px; animation: entrar var(--t-in) var(--ease) both; pointer-events: auto; }
.toast strong { display: block; font-weight: 600; }
.toast span { opacity: .75; }
.toast .i { color: var(--on-screen-acc); margin-top: 1px; }
.toast.sale { animation: salir 240ms ease-in both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes salir { to { opacity: 0; transform: translateY(6px); } }
@keyframes aparecer { from { opacity: 0; } }

/* ---------- Vistas ---------- */
.view { min-height: calc(100dvh - var(--top-h) - 36px); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- Portada ---------- */
.portada { padding-block: 56px 80px; display: grid; gap: 56px; }
.portada-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.portada h1 { font-weight: 600; font-size: clamp(40px, 5.8vw, 74px); line-height: 1.02; letter-spacing: -.04em; }
.portada h1 em { font-style: normal; color: var(--acc-text); }
.portada-lead { font-size: 19px; line-height: 1.6; color: var(--ink2); max-width: 54ch; margin-top: 22px; }
.portada-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.portada-etq { box-shadow: var(--shadow-lg); max-width: 420px; justify-self: center; width: 100%; }
.accesos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.acceso { display: grid; gap: 10px; align-content: start; padding: 22px; text-decoration: none; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); transition: box-shadow var(--t-fast), transform var(--t-fast) var(--ease), border-color var(--t-fast); min-width: 0; }
.acceso:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.acceso .n { font-size: 13px; font-weight: 500; color: var(--ink3); font-variant-numeric: tabular-nums; }
.acceso h3 { font-size: 22px; }
.acceso p { font-size: 15px; color: var(--ink2); }
.acceso .ir { display: inline-flex; gap: 6px; align-items: center; font-weight: 550; font-size: 14px; color: var(--acc-text); margin-top: 4px; }
.acceso.destacado { background: var(--screen); color: var(--on-screen); border-color: transparent; }
.acceso.destacado p, .acceso.destacado .n { color: color-mix(in srgb, var(--on-screen) 70%, transparent); }
.acceso.destacado .ir { color: var(--on-screen-acc); }

/* ---------- La idea (propuesta) ---------- */
.idea { padding-block: 56px 88px; display: grid; gap: 80px; }
.idea section { display: grid; gap: 22px; }
.idea h2 { font-weight: 600; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -.035em; max-width: 22ch; }
.idea .lead { font-size: 18px; line-height: 1.65; color: var(--ink2); max-width: 64ch; }
.idea-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.promesas .etq-cell { padding: 24px; }
.promesas .etq-big { font-size: 30px; }
.problemas { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.problema { padding: 20px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.problema > span:first-child { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--err-soft); }
.problema strong { font-size: 16px; font-weight: 600; }
.problema span { font-size: 15px; color: var(--ink2); }
.problema .i { color: var(--err); width: 18px; height: 18px; }
.comparativa { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.col-mod { display: grid; gap: 12px; }
.col-mod > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.col-mod > header h3 { font-size: 20px; }
.mods { display: grid; gap: 10px; }
.mods.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mod { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.mod .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--s3); color: var(--ink2); }
.mod.nuevo .ic { background: var(--acc-soft); color: var(--acc-text); }
.mod strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.mod p { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.mod a { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 550; color: var(--acc-text); text-decoration: none; }
.mod a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ingresos-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ingreso { padding: 20px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.ingreso .display { font-size: 19px; }
.ingreso p { font-size: 14.5px; color: var(--ink2); }
.fases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fase { padding: 24px; display: grid; gap: 12px; align-content: start; }
.fase ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--ink2); }
.fase.etq-acc ul { color: var(--acc-text); }
.fase .display { font-size: 24px; }
.pedido-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.pedido-info label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); font-size: 15px; cursor: pointer; transition: border-color var(--t-fast); }
.pedido-info label:hover { border-color: var(--line-strong); }
.pedido-info input { width: 18px; height: 18px; accent-color: var(--acc); margin-top: 3px; flex: none; }
.contacto { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 28px; border-radius: var(--r3); background: var(--screen); color: var(--on-screen); }
.contacto .display { font-size: 28px; }
.contacto .tel { font-family: var(--f-display); font-weight: 600; font-size: 30px; letter-spacing: -.01em; user-select: all; font-variant-numeric: tabular-nums; }

/* ---------- Web pública ---------- */
.web { background: var(--bg); }
.web-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.web-head nav { display: flex; gap: 4px; align-items: center; }
.web-head nav a.lnk { padding: 8px 14px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink2); border-radius: 999px; }
.web-head nav a.lnk:hover { background: var(--s3); color: var(--ink); }
.web-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-block: 40px 72px; }
.web-hero h1 { font-weight: 600; font-size: clamp(42px, 6.2vw, 80px); line-height: 1; letter-spacing: -.045em; }
.web-hero h1 .acc { color: var(--acc-text); }
.web-hero p { font-size: 19px; line-height: 1.6; color: var(--ink2); max-width: 50ch; margin-top: 22px; }
.web-hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.web-hero .prueba { display: flex; gap: 12px; align-items: center; margin-top: 26px; font-size: 14px; color: var(--ink2); }
.caras { display: flex; }
.caras .avatar { width: 32px; height: 32px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg); margin-left: -9px; }
.caras .avatar:first-child { margin-left: 0; }
.hero-etq { position: relative; max-width: 400px; width: 100%; justify-self: center; box-shadow: var(--shadow-lg); }
.franja { background: var(--screen); color: var(--on-screen); }
.franja .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 32px; }
.franja .display { font-size: 38px; line-height: 1; letter-spacing: -.03em; }
.franja span { font-size: 14px; opacity: .65; display: block; margin-top: 8px; }
.web-sec { padding-block: 72px; display: grid; gap: 32px; }
.web-sec > header { display: grid; gap: 10px; max-width: 60ch; }
.web-sec h2 { font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; }
.web-sec header p { font-size: 17px; color: var(--ink2); }
.dentro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dentro article { padding: 24px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.dentro article .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); margin-bottom: 4px; }
.dentro h3 { font-size: 18px; }
.dentro p { font-size: 15px; color: var(--ink2); }
.victorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.victoria { position: relative; padding: 20px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); display: grid; gap: 14px; box-shadow: var(--shadow); }
.victoria .quien { display: flex; gap: 12px; align-items: center; padding-right: 90px; }
.victoria .quien strong { font-weight: 600; }
.victoria .quien small { display: block; color: var(--ink3); font-size: 13px; }
.victoria .cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.victoria .cifras .display { font-size: 26px; line-height: 1; display: block; }
.victoria .sello { position: absolute; right: 16px; top: 22px; }
.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; padding: 28px; border-radius: var(--r3); background: var(--s1); border: 1px solid var(--line); }
.plan.top { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); box-shadow: var(--shadow-lg); position: relative; }
.plan.top::before { content: "La más elegida"; position: absolute; top: -12px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 12px; font-weight: 600; }
.plan.elite { background: linear-gradient(180deg, var(--oro-soft), var(--s1) 45%); border-color: color-mix(in srgb, var(--oro) 30%, var(--line)); }
.plan.elite h3 { color: var(--oro); }
.plan h3 { font-size: 22px; }
.plan .precio { display: flex; align-items: baseline; gap: 6px; }
.plan .precio .display { font-size: 52px; line-height: 1; letter-spacing: -.04em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--ink2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .i { color: var(--acc); width: 18px; height: 18px; margin-top: 2px; stroke-width: 2; }
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 550; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink3); font-weight: 300; transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink2); font-size: 15px; }
.web-pie { border-top: 1px solid var(--line); padding-block: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink3); font-size: 14px; }

/* Modal de pago */
.velo { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, #0c0d0e 45%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: aparecer var(--t-fast) both; }
.modal { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--s1); border-radius: var(--r3); box-shadow: var(--shadow-lg); animation: entrar var(--t-in) var(--ease) both; }
.modal > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0 24px; }
.modal .cuerpo { padding: 14px 24px 24px; display: grid; gap: 16px; }
.pasos { display: flex; gap: 6px; }
.pasos i { flex: 1; height: 3px; border-radius: 2px; background: var(--s3); }
.pasos i.on { background: var(--acc); }
.metodos { display: grid; gap: 8px; }
.metodo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--s1); text-align: left; width: 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.metodo:hover { border-color: var(--line-strong); }
.metodo.on { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.metodo .logo-banco { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 12.5px; color: #fff; flex: none; }
.metodo strong { display: block; font-size: 15px; font-weight: 600; }
.metodo small { color: var(--ink3); font-size: 13px; }
.qr-pago { display: grid; justify-items: center; gap: 10px; padding: 22px; border-radius: var(--r2); background: var(--s2); text-align: center; }
.qr-pago svg.qr { width: 184px; height: 184px; border-radius: 12px; box-shadow: var(--shadow); }
.qr-pago .monto { font-family: var(--f-display); font-weight: 600; font-size: 38px; line-height: 1; letter-spacing: -.03em; }
.exito { display: grid; justify-items: center; text-align: center; gap: 12px; padding-block: 14px; }
.check-ok { width: 72px; height: 72px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; animation: sellar .6s var(--ease) both; box-shadow: 0 0 0 10px var(--acc-soft); }
.check-ok .i { width: 36px; height: 36px; stroke-width: 2.6; }
.check-ok path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: trazo .45s .25s var(--ease) forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.legal { font-size: 12px; color: var(--ink3); text-align: center; }

/* ---------- Escenario de la app (marco de celular) ---------- */
.escenario { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 36px 56px; }
.escenario .lado { display: grid; gap: 16px; align-content: start; padding-top: 28px; min-width: 0; }
.escenario .lado h2 { font-size: 34px; letter-spacing: -.035em; }
.escenario .lado p { color: var(--ink2); font-size: 16px; }
.recorrido { display: grid; gap: 6px; }
.recorrido button { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; background: transparent; transition: background var(--t-fast), border-color var(--t-fast); }
.recorrido button:hover { background: var(--s1); border-color: var(--line); }
.recorrido button.on { background: var(--s1); border-color: var(--line); box-shadow: var(--shadow); }
.recorrido button .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); color: var(--ink2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.recorrido button.on .n { background: var(--acc); color: var(--acc-ink); }
.recorrido strong { display: block; font-size: 15px; font-weight: 550; }
.recorrido small { font-size: 13px; color: var(--ink3); }
.nota-lado { padding: 16px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); font-size: 14px; color: var(--ink2); display: grid; gap: 4px; }
.nota-lado strong { color: var(--ink); font-weight: 600; }
.nota-lado a { color: var(--acc-text); }
.phone { width: 390px; height: 812px; border-radius: 54px; padding: 10px; background: linear-gradient(145deg, #2a2d30, #141617 55%, #232629); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(0,0,0,.25); position: relative; flex: none; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 104px; height: 30px; border-radius: 16px; background: #000; z-index: 5; }
.phone-screen { position: absolute; inset: 10px; border-radius: 44px; overflow: hidden; background: var(--bg); isolation: isolate; }

/* ---------- App del miembro ---------- */
.app { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--bg); overflow: hidden; }
.app-status { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 6px 30px 0; font-size: 14px; font-weight: 600; flex: none; }
.app-status .ics { display: flex; gap: 5px; align-items: center; }
.app-status .ics .i { width: 16px; height: 16px; }
.app-top { display: flex; align-items: center; gap: 4px; padding: 4px 10px 8px 20px; flex: none; min-height: 52px; }
.app-top .titulo { flex: 1; min-width: 0; font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top .atras { margin-left: -12px; }
.app-main { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 4px 18px 120px; scrollbar-width: none; }
.app-main::-webkit-scrollbar { display: none; }
.app-main > .pantalla { display: grid; gap: 18px; animation: deslizar var(--t-in) var(--ease) both; }
@keyframes deslizar { from { opacity: 0; transform: translateX(12px); } }
.app-main > .pantalla.raiz { animation-name: aparecer; }
.app-nav { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px; background: color-mix(in srgb, var(--s1) 86%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 4; margin-bottom: env(safe-area-inset-bottom, 0px); }
.app-nav button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; border-radius: 20px; background: none; color: var(--ink3); font-size: 10.5px; font-weight: 550; min-height: 50px; transition: color var(--t-fast), background var(--t-fast); }
.app-nav button.on { color: var(--acc-text); background: var(--acc-soft); }
.app-nav button.on .i { stroke-width: 2; }
.fab { position: absolute; right: 18px; bottom: 92px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border-radius: 24px; border: 0; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 14.5px; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--acc) 90%, transparent), 0 2px 6px rgba(0,0,0,.12); transition: transform var(--t-fast) var(--ease); }
.fab:active { transform: scale(.97); }
.push { position: absolute; z-index: 9; left: 12px; right: 12px; top: 54px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 22px; background: color-mix(in srgb, var(--s1) 88%, transparent); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: bajar var(--t-in) var(--ease) both; cursor: pointer; text-align: left; width: auto; color: var(--ink); }
.push.sale { animation: subir 260ms ease-in both; }
.push .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; flex: none; }
.push strong { display: block; font-size: 14px; font-weight: 600; }
.push span { font-size: 14px; color: var(--ink2); display: block; }
.push small { font-size: 12px; color: var(--ink3); }
@keyframes bajar { from { opacity: 0; transform: translateY(-20px) scale(.97); } }
@keyframes subir { to { opacity: 0; transform: translateY(-20px); } }
.sec-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: -6px; }
.sec-t h3 { font-size: 17px; letter-spacing: -.015em; }
.sec-t button, .sec-t a { border: 0; background: none; font-size: 14px; font-weight: 550; color: var(--acc-text); padding: 4px 0; text-decoration: none; }
.hola { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 4px; }
.hola h2 { font-size: 32px; letter-spacing: -.035em; margin-top: 4px; }
.hola .racha { display: grid; justify-items: center; padding: 8px 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hola .racha .display { font-size: 22px; line-height: 1; color: var(--acc-text); }
.hola .racha small { font-size: 10.5px; font-weight: 600; color: var(--ink3); letter-spacing: .02em; }
.en-vivo-banner { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r2); background: var(--screen); color: var(--on-screen); border: 0; width: 100%; text-align: left; animation: entrar var(--t-in) var(--ease) both; box-shadow: var(--shadow-lg); }
.en-vivo-banner .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--err); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 6px color-mix(in srgb, var(--err) 25%, transparent); }
.en-vivo-banner strong { display: block; font-size: 15px; font-weight: 600; }
.en-vivo-banner span { font-size: 13px; opacity: .72; }
.siguiente { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); width: 100%; text-align: left; box-shadow: var(--shadow); color: var(--ink); }
.siguiente .mini-video { width: 56px; height: 56px; border-radius: 13px; background: var(--screen); color: var(--on-screen-acc); display: grid; place-items: center; }
.siguiente .mini-video svg.glifo { width: 30px; height: 30px; }
.siguiente strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 550; }
.siguiente small { font-size: 13px; color: var(--ink3); }
.siguiente > .i { color: var(--ink3); }
.fila-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); text-align: left; width: 100%; min-width: 0; color: var(--ink); box-shadow: var(--shadow); }
.tile .display { font-size: 26px; line-height: 1.05; }
.tile small { font-size: 13px; color: var(--ink3); line-height: 1.35; }
.tile .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--ink2); margin-bottom: 4px; }
.tile.acc .ic { background: var(--acc-soft); color: var(--acc-text); }
.tile strong { font-size: 15px; line-height: 1.3; font-weight: 550; }
.reto-dias { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; }
.reto-dias i { aspect-ratio: 1; border-radius: 50%; background: var(--s3); max-width: 100%; }
.reto-dias i.hecho { background: var(--acc); }
.reto-dias i.hoy { background: var(--s1); box-shadow: inset 0 0 0 2px var(--acc); }

/* Publicaciones */
.post { padding: 16px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); display: grid; gap: 12px; animation: entrar var(--t-in) var(--ease) both; box-shadow: var(--shadow); }
.post.fijado { background: linear-gradient(var(--s1), var(--s1)) padding-box, linear-gradient(140deg, color-mix(in srgb, var(--acc) 45%, var(--line)), var(--line) 60%) border-box; border: 1px solid transparent; }
.post .autor { display: flex; gap: 12px; align-items: center; }
.post .autor strong { font-size: 15px; font-weight: 600; }
.post .autor small { display: block; font-size: 13px; color: var(--ink3); }
.post .texto { font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.post .acciones { display: flex; gap: 6px; }
.post .acciones button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 0; background: var(--s2); font-size: 13.5px; font-weight: 550; color: var(--ink2); transition: background var(--t-fast), color var(--t-fast); }
.post .acciones button:hover { background: var(--s3); }
.post .acciones button.on { background: var(--acc-soft); color: var(--acc-text); }
.post .acciones button.on .i { fill: currentColor; }
.win-card { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 12px; background: var(--s2); padding-top: 38px; }
.win-card > div { padding: 4px 12px 12px; min-width: 0; }
.win-card > div + div { border-left: 1px solid var(--line); }
.win-card .display { font-size: 21px; line-height: 1.1; display: block; }
.win-card .sello { position: absolute; left: 10px; top: 10px; }
.composer { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); box-shadow: var(--shadow); }
.composer textarea { border: 0; padding: 2px 0; min-height: 52px; resize: none; background: transparent; font-size: 16px; width: 100%; }
.composer textarea:focus { outline: none; }
.composer .fila { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.composer select { min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--s2); padding: 4px 12px; font-size: 14px; }

/* Academia */
.anillo { position: relative; width: 84px; height: 84px; flex: none; }
.anillo svg { transform: rotate(-90deg); }
.anillo .display { position: absolute; inset: 0; display: grid; place-items: center; font-size: 21px; }
.curso { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); text-align: left; width: 100%; color: var(--ink); box-shadow: var(--shadow); }
.curso .portada-c { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.curso strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 550; }
.curso small { font-size: 13px; color: var(--ink3); }
.curso .bar { margin-top: 8px; }
.lecciones { display: grid; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.leccion { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; width: 100%; color: var(--ink); }
.leccion:first-child { border-top: 0; }
.leccion > .i { color: var(--ink3); }
.leccion .est { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink3); }
.leccion.vista .est { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.leccion.sig .est { border-color: var(--acc); color: var(--acc-text); box-shadow: 0 0 0 4px var(--acc-soft); }
.leccion strong { font-size: 15px; display: block; line-height: 1.3; font-weight: 500; }
.leccion small { font-size: 13px; color: var(--ink3); }
.reproductor { position: relative; aspect-ratio: 16/10; border-radius: var(--r2); background: radial-gradient(120% 120% at 0% 0%, #2c3a33, var(--screen) 60%); color: var(--on-screen); overflow: hidden; display: grid; place-items: center; max-width: 100%; box-shadow: var(--shadow-lg); }
.reproductor .play { width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; color: #17191b; display: grid; place-items: center; transition: transform var(--t-fast) var(--ease); box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); }
.reproductor .play:active { transform: scale(.95); }
.reproductor .rotulo { position: absolute; left: 16px; top: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.reproductor .progreso { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.reproductor .progreso i { display: block; height: 100%; width: 0; background: var(--on-screen-acc); }
.reproductor .pizarra { position: absolute; inset: 0; display: grid; align-content: end; gap: 6px; padding: 18px 84px 22px 18px; }
.reproductor .pizarra b { font-family: var(--f-display); font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.reproductor .pizarra span { font-size: 13px; opacity: .65; }

/* Radar de productos */
.productos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prod { display: grid; gap: 8px; padding: 8px 8px 12px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); text-align: left; width: 100%; min-width: 0; position: relative; color: var(--ink); animation: entrar var(--t-in) var(--ease) both; box-shadow: var(--shadow); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.prod:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.prod > strong, .prod > .precios, .prod > .meta, .prod > .chispa { padding-inline: 4px; }
.prod .foto { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; max-width: 100%; }
.prod .foto svg.glifo { width: 50%; height: 50%; }
.prod .foto .sku { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--s1) 85%, transparent); color: var(--ink2); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.prod .foto .pill { position: absolute; right: 8px; top: 8px; }
.prod strong { font-size: 14px; line-height: 1.3; display: block; font-weight: 550; }
.prod .precios { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 6px; }
.prod .precios .display { font-size: 20px; line-height: 1; }
.prod .precios small { font-size: 12px; color: var(--ink3); }
.prod .meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; font-size: 12px; color: var(--ink3); }
.chispa { display: block; width: 100%; height: 24px; }
.foto-grande { aspect-ratio: 4/3; border-radius: var(--r2); display: grid; place-items: center; position: relative; max-width: 100%; }
.foto-grande svg.glifo { width: 38%; height: 38%; }
.metricas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metricas .etq-cell { padding: 12px; }
.metricas .etq-big { font-size: 21px; }
.angulos { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.angulos li { display: flex; gap: 10px; font-size: 15px; align-items: baseline; }
.angulos li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; transform: translateY(-2px); }
.botones { display: grid; gap: 8px; }
.botones.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Calculadora */
.calc-campos { display: grid; gap: 14px; padding: 18px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-campo { display: grid; gap: 2px; }
.calc-campo .fila { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.calc-campo label { font-size: 14px; font-weight: 500; color: var(--ink2); }
.calc-campo output { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.veredicto { display: grid; gap: 14px; padding: 20px; border-radius: var(--r2); background: radial-gradient(120% 140% at 100% 0%, #24312a, var(--screen) 55%); color: var(--on-screen); box-shadow: var(--shadow-lg); }
.veredicto .comp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.veredicto .comp small { font-size: 11.5px; opacity: .62; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; display: block; margin-bottom: 4px; }
.veredicto .comp .display { font-size: 36px; line-height: 1; }
.veredicto .tachado { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #e2806f; opacity: .55; }
.veredicto .real { color: var(--on-screen-acc); }
.veredicto .pill.ok { background: rgba(99,191,141,.16); color: #8fd6ad; }
.veredicto .pill.warn { background: rgba(216,166,80,.16); color: #e6be7a; }
.veredicto .pill.err { background: rgba(226,128,111,.16); color: #eda193; }
.desglose { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.desglose i { display: block; height: 100%; border-radius: 2px; transition: flex-basis var(--t-in) var(--ease); }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.veredicto .leyenda { opacity: .85; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; font-size: 15px; }
.kv dt { color: var(--ink2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Generador IA */
.salida-ia { padding: 16px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; white-space: pre-line; min-height: 120px; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.cursor-ia::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--acc); animation: latir 1s infinite; }

/* Chat del Mentor IA */
.chat { display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; animation: entrar var(--t-in) var(--ease) both; }
.msg.yo { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.msg.ia { justify-self: start; background: var(--s1); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg .fuente { display: flex; gap: 6px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); }
.chat-input { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; display: flex; gap: 8px; padding: 6px; border-radius: 28px; background: color-mix(in srgb, var(--s1) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin-bottom: env(safe-area-inset-bottom, 0px); }
.chat-input input { flex: 1; min-width: 0; min-height: 44px; border-radius: 22px; border: 0; padding: 8px 14px; background: transparent; font-size: 16px; }
.chat-input input:focus { outline: none; }
.chat-input .btn { min-height: 44px; width: 44px; padding: 0; }
.escribiendo { display: inline-flex; gap: 4px; padding: 15px; }
.escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); animation: latir 1s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }

/* Live */
.live-video { position: relative; aspect-ratio: 9/10; border-radius: var(--r2); background: radial-gradient(110% 90% at 50% 15%, #33423a, var(--screen) 70%); color: var(--on-screen); overflow: hidden; display: grid; place-items: center; max-width: 100%; box-shadow: var(--shadow-lg); }
.live-video .avatar { width: 92px; height: 92px; font-size: 30px; box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 0 0 16px rgba(255,255,255,.03); }
.live-video .sup { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; }
.live-video .mensajes { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 6px; max-height: 45%; overflow: hidden; align-content: end; }
.live-video .mensajes div { font-size: 13px; padding: 6px 12px; border-radius: 14px; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); justify-self: start; animation: entrar 300ms var(--ease) both; }
.live-video .mensajes b { color: var(--on-screen-acc); font-weight: 600; }

/* Liga */
.podio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; align-items: end; }
.podio > div { display: grid; justify-items: center; gap: 6px; text-align: center; }
.podio .base { width: 100%; border-radius: 14px 14px 4px 4px; background: var(--s3); color: var(--ink2); display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 24px; }
.podio .p1 .base { height: 88px; background: linear-gradient(180deg, color-mix(in srgb, var(--oro) 30%, var(--s1)), var(--oro-soft)); color: var(--oro); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--oro) 35%, transparent); }
.podio .p2 .base { height: 64px; }
.podio .p3 .base { height: 48px; }
.podio small { font-size: 12px; color: var(--ink3); }
.podio strong { font-size: 14px; line-height: 1.2; font-weight: 600; }
.tabla-liga { display: grid; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.tabla-liga > div { display: grid; grid-template-columns: 26px 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.tabla-liga > div:first-child { border-top: 0; }
.tabla-liga > div.yo { background: var(--acc-soft); }
.tabla-liga .pos { font-weight: 600; font-size: 14px; text-align: center; color: var(--ink3); font-variant-numeric: tabular-nums; }
.tabla-liga strong { font-size: 14px; display: block; font-weight: 550; }
.tabla-liga small { font-size: 12px; color: var(--ink3); }
.insignias { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.insignia { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 500; color: var(--ink2); line-height: 1.25; }
.insignia .m { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.insignia.no .m { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink3); }
.niveles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.niveles div { padding: 8px 2px; border-radius: 8px; background: var(--s3); text-align: center; font-size: 9.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink3); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.niveles div.on { background: var(--acc); color: var(--acc-ink); }
.niveles div.ya { background: var(--acc-soft); color: var(--acc-text); }

/* Lista genérica */
.lista { display: grid; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.lista > * { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; width: 100%; min-width: 0; color: var(--ink); }
.lista > *:first-child { border-top: 0; }
.lista > button:hover { background: var(--s2); }
.lista .txt { flex: 1; min-width: 0; }
.lista strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 550; }
.lista small { display: block; font-size: 13px; color: var(--ink3); }
.lista .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--s3); color: var(--ink2); display: grid; place-items: center; flex: none; font-size: 12px; }
.lista > * > .i { color: var(--ink3); }
.vacio { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 30px 18px; border-radius: var(--r2); border: 1px dashed var(--line-strong); color: var(--ink2); font-size: 15px; }
.vacio .i { color: var(--ink3); }
.esqueleto { border-radius: var(--r2); background: linear-gradient(90deg, var(--s3), var(--s2), var(--s3)); background-size: 200% 100%; animation: brillo 1.2s infinite; }
@keyframes brillo { to { background-position: -200% 0; } }

/* Gráficos */
.grafico { width: 100%; display: block; overflow: visible; }
.grafico text { fill: var(--ink3); font-size: 11px; font-family: var(--f-body); }
.grafico .eje { stroke: var(--line); stroke-width: 1; }

/* ---------- Panel del creador ---------- */
.pn { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100dvh - var(--top-h) - 36px); background: var(--bg); }
.pn-side { background: var(--s1); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px)); }
.pn-side .logo { padding: 0 8px; }
.pn-nav { display: grid; gap: 2px; }
.pn-nav button { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 0; background: none; text-align: left; font-weight: 500; font-size: 15px; color: var(--ink2); transition: background var(--t-fast), color var(--t-fast); }
.pn-nav button:hover { background: var(--s2); color: var(--ink); }
.pn-nav button.on { background: var(--s3); color: var(--ink); font-weight: 600; }
.pn-nav button.on .i { color: var(--acc-text); }
.pn-nav button .pill { margin-left: auto; }
.pn-side .yo-pn { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--s2); }
.pn-side .yo-pn small { display: block; font-size: 12px; color: var(--ink3); }
.pn-main { padding: 28px 32px 56px; display: grid; gap: 22px; align-content: start; min-width: 0; }
.pn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pn-head h1 { font-size: 34px; letter-spacing: -.035em; margin-top: 4px; }
.pn-head .cap { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; }
.pn-head .acciones { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.auto-sim { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink2); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 18px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.kpi .display { font-size: 30px; line-height: 1.05; white-space: nowrap; letter-spacing: -.035em; }
.kpi small { font-size: 13px; color: var(--ink3); line-height: 1.35; }
.kpi .delta { font-size: 12.5px; font-weight: 550; }
.kpi .delta.up { color: var(--ok); }
.kpi .delta.down { color: var(--err); }
.kpi.acc { background: radial-gradient(130% 130% at 100% 0%, #24312a, var(--screen) 60%); color: var(--on-screen); border-color: transparent; box-shadow: var(--shadow-lg); }
.kpi.acc small { color: color-mix(in srgb, var(--on-screen) 62%, transparent); }
.kpi.acc .delta.up { color: var(--on-screen-acc); }
.kpi.pulso { animation: pulso 1.1s var(--ease); }
@keyframes pulso { 30% { box-shadow: 0 0 0 3px var(--acc-soft), 0 0 0 4px var(--acc); } }
.pn-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pn-col { display: grid; gap: 18px; min-width: 0; }
.caja { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r3); padding: 20px; display: grid; gap: 16px; min-width: 0; box-shadow: var(--shadow); }
.caja > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.caja > header h2 { font-size: 17px; letter-spacing: -.015em; }
.caja > header > .i { color: var(--ink3); }
.caja .btn { white-space: normal; }
.caja.alerta { background: linear-gradient(160deg, var(--warn-soft), var(--s1) 70%); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.caja.alerta > header > .i { color: var(--warn); }
.actividad { display: grid; max-height: 420px; overflow: auto; scrollbar-width: thin; }
.actividad > div { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; animation: entrar var(--t-in) var(--ease) both; }
.actividad > div:first-child { border-top: 0; }
.actividad b { font-weight: 600; }
.actividad .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--ink2); }
.actividad .ic.acc { background: var(--acc-soft); color: var(--acc-text); }
.actividad .ic.ok { background: var(--ok-soft); color: var(--ok); }
.actividad .ic .i { width: 16px; height: 16px; }
.actividad small { color: var(--ink3); font-size: 12px; white-space: nowrap; }
.tabla-wrap { overflow-x: auto; border-radius: var(--r2); border: 1px solid var(--line); background: var(--s1); box-shadow: var(--shadow); }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.tabla th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--s2); white-space: nowrap; }
.tabla td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover td { background: var(--s2); }
.tabla .der { text-align: right; font-variant-numeric: tabular-nums; }
.tabla .persona { display: flex; gap: 12px; align-items: center; }
.tabla .persona strong { font-weight: 550; }
.tabla .persona small { display: block; color: var(--ink3); font-size: 12px; }
.tabla tr.nuevo td { animation: resaltar 2.6s ease-out; }
@keyframes resaltar { from { background: var(--acc-soft); } }
.form-pn { display: grid; gap: 14px; }
.form-pn .dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.publicar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.flujo { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.flujo:first-of-type { border-top: 0; padding-top: 4px; }
.flujo .pasos-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.flujo .pasos-f span { padding: 4px 10px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); color: var(--ink2); }
.flujo .pasos-f span.dispara { background: var(--acc-soft); border-color: transparent; color: var(--acc-text); font-weight: 550; }
.flujo .pasos-f .i { width: 14px; height: 14px; color: var(--ink3); }
.flujo strong { font-size: 16px; font-weight: 600; }
.flujo .stats { font-size: 13px; color: var(--ink3); margin-top: 6px; }
.flujo .stats b { color: var(--ink); font-weight: 600; }
.fuentes-ing { display: grid; gap: 14px; }
.fuente-ing { display: grid; grid-template-columns: 190px 1fr 100px; gap: 14px; align-items: center; font-size: 14px; }
.fuente-ing b { font-weight: 600; }
.fuente-ing .bar { height: 10px; border-radius: 5px; }
.fuente-ing .bar > i { border-radius: 5px; }
.fuente-ing .bar.acc > i { background: var(--oro); }
.fuente-ing .der { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fuente-ing .nuevo-flag { font-size: 11px; color: var(--oro); font-weight: 600; display: block; }
.preg-ia { display: grid; gap: 10px; padding: 16px; border-radius: var(--r2); background: var(--s2); border: 1px solid var(--line); }
.preg-ia .fila { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.preg-ia .field textarea { background: var(--s1); }

/* ---------- En vivo (lado a lado) ---------- */
.vivo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding-block: 20px 48px; align-items: start; }
.vivo .col-tel { display: grid; gap: 14px; justify-items: center; position: sticky; top: calc(var(--top-h) + 20px); }
.vivo .col-tel .cap { text-align: center; }
.vivo .col-panel { border-radius: var(--r3); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); min-width: 0; }
.vivo .col-panel .pn { min-height: 812px; }
.vivo .col-panel .pn-side { position: static; height: auto; }
.vivo-barra { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); margin-top: 24px; box-shadow: var(--shadow); }
.vivo-barra p { font-size: 14px; color: var(--ink2); max-width: 60ch; }
.vivo-barra p b { color: var(--ink); font-weight: 600; }
.vivo-barra .acciones { display: flex; gap: 8px; flex-wrap: wrap; }

/* Aviso corto dentro del celular */
.snack { position: absolute; z-index: 8; left: 18px; right: 18px; bottom: 96px; padding: 12px 16px; border-radius: 16px; background: var(--screen); color: var(--on-screen); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: entrar var(--t-in) var(--ease) both; }
.snack.sale { animation: salir 240ms ease-in both; }

/* Al repintar por un evento en vivo, solo se anima lo nuevo */
.quieto .pantalla,
.quieto .post:not(.recien),
.quieto .post:not(.recien) .sello.pone,
.quieto .prod:not(.recien),
.quieto .actividad > div:not(.recien),
.quieto .en-vivo-banner:not(.recien),
.quieto .msg:not(.recien),
.quieto .tabla tr.nuevo:not(.recien) td { animation: none; }

/* ---------- Panel: se adapta al ancho de su contenedor (sirve igual solo o en «En vivo») ---------- */
#panelRoot { container: panel / inline-size; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container panel (max-width: 1180px) {
  .pn { grid-template-columns: 216px minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .publicar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-main { padding: 24px 24px 48px; }
}
@container panel (max-width: 1000px) {
  .pn-grid { grid-template-columns: 1fr; }
}
@container panel (max-width: 820px) {
  .pn { grid-template-columns: 1fr; }
  .pn-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .pn-side .logo, .pn-side .yo-pn { display: none; }
  .pn-nav { display: flex; gap: 4px; }
  .pn-nav button { flex: none; }
  .pn-main { padding: 20px 16px 40px; }
  .publicar-grid { grid-template-columns: 1fr; }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuente-ing { grid-template-columns: 1fr 90px; }
  .fuente-ing .bar { grid-column: 1 / -1; grid-row: 2; }
}
@container panel (max-width: 560px) {
  .kpis, .kpis.k3, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .display { font-size: 25px; }
  .form-pn .dos { grid-template-columns: 1fr; }
  .pn-head h1 { font-size: 28px; }
}
#v-vivo .wrap { max-width: 1480px; }

/* ---------- Responsive ---------- */@media (max-width: 1240px) {
  .escenario { grid-template-columns: minmax(0, 1fr) auto; }
  .escenario .lado.der { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding-top: 0; }
  .escenario .lado.der > .cap { grid-column: 1 / -1; }
  .vivo { grid-template-columns: 1fr; }
  .vivo .col-tel { position: static; }
}
@media (max-width: 980px) {
  .portada-hero, .web-hero, .idea-intro, .comparativa { grid-template-columns: 1fr; }
  .dentro, .planes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fases { grid-template-columns: 1fr; }
  .fases .etq-cell + .etq-cell { border-left: 0; border-top: 1px solid var(--line); }
  .fases.etq-row { flex-direction: column; }
  .top-brand small { display: none; }
}
@media (max-width: 860px) {
  .escenario { grid-template-columns: 1fr; padding-block: 0; gap: 16px; }
  .escenario .lado { display: none; }
  .escenario .marco { justify-self: center; width: 100%; display: grid; justify-items: center; }
}
@media (max-width: 640px) {
  .top { gap: 10px; }
  .top-brand .logo { font-size: 0; gap: 0; }
  .aviso-demo { font-size: 12px; gap: 8px; padding-block: 6px; flex-wrap: nowrap; }
  .aviso-demo .opc { display: none; }
  .top-nav a { padding: 7px 10px; font-size: 13px; }
  .dentro, .planes, .mods.dos { grid-template-columns: 1fr; }
  .franja .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promesas.etq-row { flex-direction: column; }
  .promesas .etq-cell + .etq-cell { border-left: 0; border-top: 1px solid var(--line); }
  .contacto .tel { font-size: 26px; }
  .portada { padding-block: 32px 56px; gap: 40px; }
  .idea { padding-block: 32px 64px; gap: 56px; }
  /* En el celular la app ocupa la pantalla completa, sin marco */
  .vista-app .escenario { padding: 0; }
  .vista-app .wrap { padding: 0; }
  .vista-app .phone { width: 100%; height: calc(100dvh - var(--top-h) - 36px - env(safe-area-inset-top, 0px)); padding: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
  .vista-app .phone::before { display: none; }
  .vista-app .phone-screen { inset: 0; border-radius: 0; }
  .vista-app .app-status { display: none; }
  #slot-app-vivo { width: 100%; display: grid; justify-items: center; }
  .vivo .phone { width: min(100%, 390px); height: 740px; }
}
/* ---------- Mensajes, pestañas segmentadas y rankings ---------- */
.segmento { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 4px; border-radius: 999px; background: var(--s3); }
.segmento button { min-height: 36px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; font-weight: 550; color: var(--ink2); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); white-space: nowrap; }
.segmento button.on { background: var(--s1); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px -4px rgba(0,0,0,.16); }
.conversaciones > button { align-items: center; }
.conversaciones .avatar { width: 46px; height: 46px; }
.conversaciones .avatar .i { width: 20px; height: 20px; color: #fff; }
.una-linea { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-c { display: grid; justify-items: end; gap: 6px; flex: none; }
.meta-c small { font-size: 12px; color: var(--ink3); }
.badge-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.chat-cab { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chat-cab .avatar .i { color: #fff; }
.chat-cab strong { display: block; font-size: 15px; font-weight: 600; }
.chat-cab small { display: block; font-size: 12.5px; color: var(--ink3); }
.msg .hora { display: block; margin-top: 4px; font-size: 11px; opacity: .55; text-align: right; }
.msg .de { display: block; font-size: 12.5px; font-weight: 600; color: var(--acc-text); margin-bottom: 2px; }
.ranking-prod > button { align-items: center; }
.ranking-prod .pos-n { width: 22px; flex: none; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--ink3); }
.ranking-prod > button:nth-child(-n+3) .pos-n { color: var(--oro); }
.ranking-prod .mini-foto { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ranking-prod .mini-foto svg.glifo { width: 28px; height: 28px; }

.pos-n { width: 22px; flex: none; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink3); }
.lista > *:nth-child(-n+3) > .pos-n { color: var(--oro); }

/* Panel: aviso de escenario, bandeja de mensajes y lanzamiento */
/* Modo captura (?captura=1): sin la barra de la demo, para las imágenes de la propuesta */
body.captura .top, body.captura .aviso-demo, body.captura .toasts { display: none !important; }
body.captura .vista-app .phone { height: 100dvh !important; }
body.captura .pn { min-height: 100dvh; }
body.captura .pn-side { top: 0; height: 100dvh; }
/* Modo pantallazo (?pantallazo=1): solo la pantalla del celular, 375 × 812, arriba a la izquierda */
body.pantallazo { background: transparent; }
body.pantallazo #v-app .escenario { display: block; padding: 0; }
body.pantallazo #v-app .lado { display: none; }
body.pantallazo #phone { position: fixed !important; left: 0; top: 0; width: 375px !important; height: 812px !important; padding: 0 !important; border-radius: 0 !important; background: var(--bg) !important; box-shadow: none !important; }
body.pantallazo #phone::before, body.pantallazo #phone::after, body.pantallazo .marco::before { display: none !important; }
body.pantallazo .phone-screen { inset: 0 !important; border-radius: 0 !important; }
body.pantallazo .app-status { display: flex !important; }
.btn-sus::after { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .btn-sus::after { animation: none; display: none; } }
.fases.etapas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .fases.etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fases.etapas .etq-cell:nth-child(3) { border-left: 0; } .fases.etapas .etq-cell:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .fases.etapas { grid-template-columns: 1fr; } .fases.etapas .etq-cell { border-left: 0; } .fases.etapas .etq-cell + .etq-cell { border-top: 1px solid var(--line); } }
.nota-6m { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--oro-soft); color: var(--ink2); font-size: 14px; }
.nota-6m .i { color: var(--oro); }
.nota-6m button { border: 0; background: none; padding: 0; color: var(--acc-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bandeja { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 18px; align-items: start; }
.bandeja-lista .lista > button.sel { background: var(--acc-soft); }
.bandeja-chat .persona { display: flex; gap: 12px; align-items: center; }
.bandeja-chat .persona strong { display: block; font-weight: 600; }
.bandeja-chat .persona small { display: block; font-size: 12.5px; color: var(--ink3); }
.chat-pn { max-height: 360px; overflow: auto; padding: 6px 2px; scrollbar-width: thin; }
.fila-btn { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.opciones-btn { display: grid; gap: 12px; }
.boton-preview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.bio-mock { display: grid; justify-items: center; gap: 8px; padding: 22px 18px; border-radius: var(--r2); background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); text-align: center; }
.bio-mock .bio-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--s1); box-shadow: var(--shadow); }
.bio-mock .bio-av .logo { font-size: 0; gap: 0; }
.bio-mock .bio-av .logo-mark { width: 34px; height: 34px; }
.bio-mock strong { font-size: 15px; font-weight: 600; }
.bio-mock small { font-size: 13px; color: var(--ink2); max-width: 32ch; }
.bio-link { font-size: 12.5px; color: var(--info); }
.btn-sus { position: relative; overflow: hidden; width: 100%; min-height: 46px; margin-top: 6px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.btn-sus:hover { transform: translateY(-1px); }
.btn-sus:active { transform: scale(.98); }
.btn-sus.salvia { background: var(--acc); color: var(--acc-ink); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--acc) 80%, transparent); }
.btn-sus.grafito { background: var(--ink); color: var(--bg); box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); }
.btn-sus.contorno { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sus::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: destello 3.6s ease-in-out infinite; }
@keyframes destello { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.boton-link { display: grid; gap: 8px; align-content: start; justify-items: start; }
.boton-link .qr-mini { width: 120px; display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.boton-link code { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--s2); overflow-wrap: anywhere; }
.boton-link small { font-size: 12.5px; }
.embudo { display: grid; gap: 12px; }
.embudo > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px 56px; gap: 12px; align-items: center; font-size: 14px; }
.embudo .bar { height: 10px; border-radius: 5px; }
.embudo b { text-align: right; font-weight: 600; }
.embudo small { color: var(--ink3); text-align: right; }
.preventa { background: linear-gradient(160deg, var(--oro-soft), var(--s1) 60%); border-color: color-mix(in srgb, var(--oro) 30%, var(--line)); }
.cifra-grande { display: flex; align-items: baseline; gap: 10px; }
.cifra-grande .display { font-size: 52px; line-height: 1; letter-spacing: -.04em; }
.cifra-grande span:last-child { color: var(--ink3); font-size: 15px; }
.bar.oro > i { background: var(--oro); }
.check-lista { display: grid; gap: 2px; }
.check-lista label { display: flex; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.check-lista label:last-child { border-bottom: 0; }
.check-lista input { width: 18px; height: 18px; accent-color: var(--acc); flex: none; }
.check-lista input:checked + span { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
@container panel (max-width: 1000px) {
  .bandeja { grid-template-columns: 1fr; }
}
@container panel (max-width: 560px) {
  .boton-preview { grid-template-columns: 1fr; }
  .embudo > div { grid-template-columns: 1fr 56px 50px; }
  .embudo .bar { grid-column: 1 / -1; grid-row: 2; }
}

/* =====================================================================
   EFECTOS · profundidad, luz y movimiento con calma
   ===================================================================== */
:root { --shine: rgba(255,255,255,.55); --aura-op: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shine: rgba(255,255,255,.10); --aura-op: .35; } }
:root[data-theme="dark"] { --shine: rgba(255,255,255,.10); --aura-op: .35; }

/* Fondo del hero: auras suaves y una ruta que se recorre sola */
.con-fondo { position: relative; isolation: isolate; overflow: hidden; }
.fondo-hero { position: absolute; inset: 0 0 auto; height: min(820px, 100%); z-index: -1; pointer-events: none; }
.aura { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--aura-op); animation: deriva 22s ease-in-out infinite alternate; }
.aura.a1 { width: 520px; height: 520px; right: -80px; top: -120px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 55%, transparent), transparent); }
.aura.a2 { width: 420px; height: 420px; left: -140px; top: 200px; background: radial-gradient(closest-side, color-mix(in srgb, var(--oro) 40%, transparent), transparent); animation-duration: 28s; animation-delay: -6s; }
.aura.a3 { width: 360px; height: 360px; left: 42%; top: 380px; background: radial-gradient(closest-side, color-mix(in srgb, var(--info) 22%, transparent), transparent); animation-duration: 25s; animation-delay: -12s; }
@keyframes deriva { 0% { translate: 0 0; scale: 1; } 50% { translate: 40px 30px; scale: 1.08; } 100% { translate: -30px 50px; scale: .96; } }
.ruta-fondo { position: absolute; inset: 0; width: 100%; height: 100%; }
.ruta-fondo .base { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .9; }
.ruta-fondo .cometa { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .06 .94; animation: cometa 11s linear infinite; opacity: .8; }
@keyframes cometa { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ruta-fondo .parada { fill: var(--s1); stroke: var(--acc); stroke-width: 1.5; }
.ruta-fondo .halo { fill: var(--acc); opacity: .18; transform-box: fill-box; transform-origin: center; animation: halo 3.2s ease-out infinite; }
.ruta-fondo text { fill: var(--ink3); font: 500 11px var(--f-body); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
@keyframes halo { 0% { scale: .6; opacity: .3; } 100% { scale: 2.6; opacity: 0; } }

/* Entrada del hero al cargar */
.entrada > * { animation: subirSuave .9s var(--ease) both; }
.entrada > *:nth-child(2) { animation-delay: .08s; }
.entrada > *:nth-child(3) { animation-delay: .16s; }
.entrada > *:nth-child(4) { animation-delay: .24s; }
.entrada > *:nth-child(5) { animation-delay: .32s; }
@keyframes subirSuave { from { opacity: 0; translate: 0 22px; } }

/* Escena 3D: celular inclinado con tarjetas de vidrio flotando */
.escena { position: relative; height: 600px; perspective: 1600px; display: grid; place-items: center; }
.escena-entrada { animation: escenaEntra 1.4s var(--ease) both .15s; transform-style: preserve-3d; }
@keyframes escenaEntra { from { opacity: 0; transform: translateY(40px) rotateY(-22deg) rotateX(14deg); } }
.escena-in { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -15deg)) rotateX(var(--rx, 7deg)) rotateZ(1.5deg); transition: transform 1s var(--ease); }
.mini-tel { position: relative; width: 276px; height: 556px; padding: 9px; border-radius: 44px; background: linear-gradient(145deg, #34383b, #151718 50%, #2a2d30); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 0 0 1px rgba(0,0,0,.3), 40px 60px 90px -30px rgba(20,24,22,.45); transform: translateZ(0); }
.mini-tel::before { content: ""; position: absolute; top: 18px; left: 50%; width: 78px; height: 22px; margin-left: -39px; border-radius: 12px; background: #000; z-index: 3; }
.mini-tel::after { content: ""; position: absolute; inset: 9px; border-radius: 36px; background: linear-gradient(115deg, rgba(255,255,255,.22), rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06)); pointer-events: none; z-index: 2; }
.mini-pantalla { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); }
.mini-escala { width: 390px; height: 812px; transform: scale(.6564); transform-origin: top left; }
.mini-escala .app-main { overflow: hidden; }
.escena-sombra { position: absolute; left: 50%; bottom: 6px; width: 300px; height: 40px; margin-left: -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(20,24,22,.28), transparent); filter: blur(6px); }
.flota { position: absolute; z-index: 4; transform-style: preserve-3d; }
.flota-in { animation: flotar 7s ease-in-out infinite; }
.flota.f2 .flota-in { animation-duration: 8.5s; animation-delay: -2s; }
.flota.f3 .flota-in { animation-duration: 7.6s; animation-delay: -4s; }
.flota.f4 .flota-in { animation-duration: 9s; animation-delay: -1s; }
@keyframes flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.vidrio { background: color-mix(in srgb, var(--s1) 94%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border: 1px solid color-mix(in srgb, var(--s1) 60%, var(--line)); border-radius: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 24px 48px -22px rgba(20,24,22,.35); color: var(--ink); }
.flota.f1 { left: -64px; top: 70px; transform: translateZ(110px); }
.flota.f2 { right: -92px; top: 150px; transform: translateZ(150px); }
.flota.f3 { left: -84px; bottom: 120px; transform: translateZ(90px); }
.flota.f4 { right: -70px; bottom: 48px; transform: translateZ(70px); }
.f-push { display: flex; gap: 10px; align-items: center; padding: 11px 14px 11px 11px; width: 236px; }
.f-push .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; flex: none; }
.f-push strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.f-push small { display: block; font-size: 12px; color: var(--ink3); line-height: 1.3; }
.f-kpi { padding: 14px 16px; width: 196px; display: grid; gap: 2px; }
.f-kpi .display { font-size: 28px; letter-spacing: -.03em; }
.f-kpi .delta { font-size: 12px; font-weight: 600; color: var(--ok); }
.f-kpi .chispa { margin-top: 6px; height: 28px; }
.f-win { padding: 13px 15px; width: 210px; display: grid; gap: 8px; }
.f-win .display { font-size: 24px; }
.f-chat { padding: 12px 14px; width: 220px; display: grid; gap: 8px; font-size: 13px; }
.f-chat .q { justify-self: end; padding: 7px 11px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--bg); }
.f-chat .r { padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: var(--acc-soft); color: var(--acc-text); }
.f-chat .r b { font-weight: 650; }

/* Escena de la web pública: la guía al centro y tarjetas alrededor */
.escena-web { height: 560px; }
.escena-web .escena-in { width: min(380px, 100%); }
.escena-web .hero-etq { max-width: none; box-shadow: var(--shadow-lg), 30px 50px 80px -40px rgba(20,24,22,.35); }
.escena-web .flota.f1 { left: -92px; top: -104px; right: auto; bottom: auto; }
.escena-web .flota.f2 { right: -84px; left: auto; top: auto; bottom: -46px; }

/* Resumen de la propuesta en una franja */
.resumen-guia { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1.2fr) minmax(0, 1.2fr); }
.portada-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.resumen-guia > div { padding: 16px 18px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); min-width: 0; }

/* Inclinación con brillo al pasar el mouse */
[data-tilt] { position: relative; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--ly, 0px)); transition: transform .6s var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); will-change: transform; }
[data-tilt].tilting { transition: transform .12s linear, box-shadow var(--t-fast), border-color var(--t-fast); }
[data-tilt]:hover { --ly: -3px; box-shadow: var(--shadow-lg); }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--shine), transparent 42%); opacity: 0; transition: opacity .35s; }
[data-tilt]:hover::after { opacity: 1; }
.acceso:hover { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-3px); }

/* Aparecer al hacer scroll (ligado al scroll, sin ocultar nada en reposo) */
@supports (animation-timeline: view()) {
  [data-rv], [data-rv-grupo] > * { animation: revelar linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
  [data-rv-grupo] > *:nth-child(3n+2) { animation-range: entry 6% cover 28%; }
  [data-rv-grupo] > *:nth-child(3n) { animation-range: entry 12% cover 32%; }
}
@keyframes revelar { from { opacity: 0; translate: 0 34px; scale: .985; } }

/* Confeti sobrio para los logros */
.confeti { position: absolute; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confeti.fijo { position: fixed; z-index: 90; }
.confeti i { position: absolute; width: 5px; height: 11px; border-radius: 2px; animation: chispazo 1.3s cubic-bezier(.12,.7,.3,1) both; }
@keyframes chispazo { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)); opacity: 0; } }

/* Celular: brillo de vidrio y halo de luz detrás */
.phone::after { content: ""; position: absolute; inset: 10px; border-radius: 44px; background: linear-gradient(118deg, rgba(255,255,255,.12), rgba(255,255,255,0) 28%); pointer-events: none; z-index: 6; }
.marco, .col-tel { position: relative; isolation: isolate; }
.marco::before, #slot-app-vivo::before { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 720px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 26%, transparent), transparent 72%); filter: blur(30px); z-index: -1; pointer-events: none; }
#slot-app-vivo { position: relative; isolation: isolate; }
#v-vivo, #v-app { overflow-x: clip; }

/* App: indicador que se desliza entre pestañas */
.app-nav .nav-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 20px; background: var(--acc-soft); transform: translateX(calc(var(--i) * 100%)); animation: navMover .5s var(--ease) both; z-index: 0; }
@keyframes navMover { from { transform: translateX(calc(var(--de) * 100%)); } }
.app-nav button { z-index: 1; }
.app-nav button.on { background: transparent; }

/* App: el avance se dibuja, los anillos y barras se llenan */
.rastreo li.hecho::before { transform-origin: top; animation: crecerLinea .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + .1s); }
@keyframes crecerLinea { from { scale: 1 0; } }
.rastreo .hecho .pt { animation: aparecerPunto .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes aparecerPunto { from { scale: .4; opacity: 0; } }
.rastreo .actual .pt { animation: respirar 2.6s ease-in-out infinite; }
@keyframes respirar { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--acc-soft) 60%, transparent); } }
.bar > i { animation: llenarBarra 1s var(--ease) both .1s; }
@keyframes llenarBarra { from { width: 0; } }
.anillo .arco { animation: llenarAnillo 1.2s var(--ease) both .1s; }
@keyframes llenarAnillo { from { stroke-dasharray: 0 226.2; } }

/* Gráficos que se trazan */
.grafico .linea { stroke-dasharray: 1; stroke-dashoffset: 0; animation: trazar 1.6s var(--ease) both .1s; }
.grafico .relleno { animation: aparecer 1.2s ease both .5s; }
.grafico .punto-g { animation: aparecerPunto .4s var(--ease) both; animation-delay: calc(.4s + var(--i, 0) * 160ms); transform-box: fill-box; transform-origin: center; }
@keyframes trazar { from { stroke-dashoffset: 1; } }
.chispa { animation: barrido 1.3s var(--ease) both .15s; }
@keyframes barrido { from { clip-path: inset(0 100% 0 0); } }

/* Live: ondas de audio junto al mentor */
.ondas { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin-top: 14px; }
.ondas i { width: 3px; height: 100%; border-radius: 2px; background: var(--on-screen-acc); transform-origin: bottom; animation: onda 1.1s ease-in-out infinite; }
.ondas i:nth-child(2) { animation-delay: -.3s; } .ondas i:nth-child(3) { animation-delay: -.6s; } .ondas i:nth-child(4) { animation-delay: -.15s; } .ondas i:nth-child(5) { animation-delay: -.45s; }
@keyframes onda { 0%, 100% { scale: 1 .25; } 50% { scale: 1 1; } }
.live-centro { display: grid; justify-items: center; }

/* Pago: línea de escaneo sobre el QR */
.qr-wrap { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.qr-wrap::after { content: ""; position: absolute; left: 6%; right: 6%; height: 2px; top: 10%; border-radius: 2px; background: var(--acc); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--acc) 60%, transparent); animation: escanear 2.4s ease-in-out infinite alternate; }
@keyframes escanear { to { top: 88%; } }
.modal { position: relative; }

/* KPI con minigráfico */
.kpi .chispa { height: 22px; margin-top: 4px; }

/* Al repintar por un evento en vivo, nada de lo ya visto vuelve a animarse */
.quieto .rastreo li::before, .quieto .rastreo .hecho .pt, .quieto .bar > i, .quieto .anillo .arco,
.quieto .grafico .linea, .quieto .grafico .relleno, .quieto .grafico .punto-g, .quieto .chispa,
.quieto .app-nav .nav-ind { animation: none; }

@media (max-width: 1240px) {
  .flota.f2 { right: -40px; }
  .flota.f4 { right: -30px; }
}
@media (max-width: 980px) {
  .portada-hero { grid-template-columns: 1fr; }
  .escena { height: 560px; }
  .resumen-guia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resumen-guia > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .escena { height: 470px; margin-inline: -8px; }
  .escena-in { scale: .8; }
  .flota.f3, .flota.f4 { display: none; }
  .flota.f1 { left: -30px; top: 40px; }
  .flota.f2 { right: -36px; top: 210px; }
  .escena-web { height: 500px; }
  .escena-web .flota.f1 { left: -6px; top: -74px; }
  .escena-web .flota.f2 { right: -10px; top: auto; bottom: -70px; }
  .aura.a1 { width: 340px; height: 340px; }
  .marco::before, .vista-app .phone::after, #slot-app-vivo::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Sin movimientos grandes; se conservan los fundidos suaves */
  .aura, .flota-in, .ruta-fondo .cometa, .ruta-fondo .halo, .ondas i, .rastreo .actual .pt, .qr-wrap::after, .escena-entrada,
  [data-rv], [data-rv-grupo] > *, .app-nav .nav-ind, .entrada > * { animation: none !important; }
  .confeti { display: none; }
  .escena-in, [data-tilt] { transition: none !important; }
  .app-main > .pantalla, .post, .prod, .toast, .push, .msg, .snack, .modal { animation-name: aparecer !important; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
