/* Estilos de la web comercial. Van aparte para que el CSP no necesite 'unsafe-inline'. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f7fbf8;
  --bg-deep: #e8f3ec;
  --surface: #ffffff;
  --ink: #0d2118;
  --muted: #4a6657;
  --light: #587266;
  --primary: #0b6d37;
  --primary-ink: #ffffff;
  --glow: #2fbf71;
  --glow-soft: rgba(47, 191, 113, 0.16);
  --gold: #9a6414;
  --neg: #b23a31;
  --line: rgba(11, 109, 55, 0.13);
  --line-strong: rgba(11, 109, 55, 0.26);
  --glass: rgba(255, 255, 255, 0.74);
  --pain-ink: #3a3835;
  --shadow-lg: 0 40px 100px rgba(13, 33, 24, 0.16), 0 8px 24px rgba(13, 33, 24, 0.08);
  --shadow-md: 0 18px 44px rgba(13, 33, 24, 0.13), 0 3px 10px rgba(13, 33, 24, 0.06);
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 40px);
  --r-lg: 24px;
  --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(42px, 7.2vw, 92px); line-height: 0.97; letter-spacing: -0.045em; }
h2 { font-weight: 700; font-size: clamp(32px, 4.8vw, 62px); line-height: 1.03; letter-spacing: -0.035em; }
h3 { font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 12.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px var(--glow-soft); }
.lead { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.head.center { justify-items: center; text-align: center; }
.head.center .lead { margin: 0 auto; }
.gold { color: var(--gold); }
.green { color: var(--primary); }

section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
/* Las anclas del menú no quedan debajo de la barra fija. */
section[id] { scroll-margin-top: 24px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Aurora ────────────────────────────────────────────── */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.9;
  background: radial-gradient(circle, rgba(47, 191, 113, 0.30), rgba(47, 191, 113, 0) 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 70vw; height: 46vw; left: -12vw; top: -22vw; }
.aurora i:nth-child(2) { width: 52vw; height: 40vw; right: -14vw; top: -14vw; animation-duration: 23s; background: radial-gradient(circle, rgba(140, 214, 170, 0.38), rgba(140, 214, 170, 0) 70%); }
.aurora i:nth-child(3) { width: 40vw; height: 30vw; left: 30vw; top: 4vw; animation-duration: 27s; opacity: 0.55; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, 2vw, 0) scale(1.12); } }

/* ── Botones ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); text-decoration: none;
  font: 600 16px/1 var(--sans); box-shadow: 0 10px 26px rgba(11, 109, 55, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(11, 109, 55, 0.34); }
.btn.ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; backdrop-filter: blur(10px); }
.btn.ghost:hover { background: #fff; }
.btn .ico { width: 18px; height: 18px; }

/* ── Navegación ────────────────────────────────────────── */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 18px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(13, 33, 24, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark .ico { width: 17px; height: 17px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 12px; border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); background: var(--bg-deep); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-deep); cursor: pointer; flex: none; place-items: center; align-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s; }
.nav.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; border-radius: 26px; }
  .nav .btn { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; gap: 2px; margin: 4px 0 6px; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; color: var(--ink); }
}
@media (max-width: 380px) { .nav .btn { padding: 0 14px; } .brand { font-size: 17px; } }

/* ── Marco de vidrio ───────────────────────────────────── */
.frame {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe7e2; flex: none; }
.frame-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 999px; background: rgba(11, 109, 55, 0.06); font: 400 11.5px/1 var(--mono); color: var(--light); max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot { position: relative; aspect-ratio: 16 / 10; background: #f4f6f5; overflow: hidden; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot video:not(.lazyvid) { position: absolute; inset: 0; }
/* Pausa de los videos que arrancan solos: lo que se mueve más de 5 s se tiene que poder detener (WCAG 2.2.2). */
.vid-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(13, 33, 24, .66); color: #fff; cursor: pointer; }
.vid-toggle:hover { background: rgba(13, 33, 24, .82); }
.vid-toggle .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.zoomable { cursor: zoom-in; }
/* Los hijos de grilla no se estiran por el ancho intrínseco de las capturas (1600 px). */
.hub-wrap > *, .cycle > *, .close > *, .explorer > *, .roles > *, .map-band > *, .signup > *, .sec > *, .dash > * { min-width: 0; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(13, 33, 24, .72); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .25s; }
.zoom-hint .ico { width: 14px; height: 14px; }
.zoomable:hover .zoom-hint { opacity: 1; }

/* ── Revelado al hacer scroll ──────────────────────────── */
/* Solo se esconde lo que app.js va a revelar: sin JavaScript, todo se ve desde el inicio. */
@media (scripting: enabled) { [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); } }
@media (scripting: enabled) { [data-reveal].in { opacity: 1; transform: none; } }
@media (scripting: enabled) { [data-reveal="2"] { transition-delay: .12s; } }
@media (scripting: enabled) { [data-reveal="3"] { transition-delay: .24s; } }

/* ═════════════ 1 · HÉROE ═════════════ */
.hero { padding-top: clamp(120px, 15vw, 170px); padding-bottom: 40px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero h1 span { display: block; background: linear-gradient(100deg, var(--primary), var(--glow) 60%, #5cc489); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero .lead { text-align: center; max-width: 40ch; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.stage { position: relative; width: 100%; max-width: 1120px; margin-top: clamp(30px, 5vw, 56px); perspective: 1800px; }
.stage .frame { transform: rotateX(var(--tilt, 14deg)) scale(var(--sc, .94)); transform-origin: 50% 0; }
.floater {
  position: absolute; z-index: 3; text-align: left;
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px; animation: bob 7s ease-in-out infinite;
}
.floater small { display: block; font: 400 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--light); }
.floater b { display: block; font: 800 clamp(20px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -0.03em; margin-top: 6px; }
.floater em { font-style: normal; font-size: 13px; color: var(--muted); }
.f1 { left: -3%; top: 22%; }
.f2 { right: -2%; top: 10%; animation-delay: -2.5s; }
.f3 { right: 4%; bottom: 8%; animation-delay: -4s; }
.f2 .pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #e3f5ea; color: var(--primary); font-size: 12.5px; font-weight: 700; }
.f2 .pill .ico { width: 14px; height: 14px; }
.meter { margin-top: 10px; height: 7px; width: 200px; max-width: 100%; border-radius: 9px; background: #efe9dd; overflow: hidden; }
.meter i { display: block; height: 100%; width: 34%; background: linear-gradient(90deg, #c9821e, #e6b765); border-radius: inherit; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 760px) { .f1, .f3 { display: none; } .f2 { top: auto; bottom: -30px; right: 8px; padding: 10px 12px; } }

.marquee { position: relative; z-index: 1; margin-top: clamp(48px, 7vw, 80px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: slide 60s linear infinite; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.chip .ico { width: 16px; height: 16px; color: var(--primary); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ═════════════ 2 · PROBLEMA ═════════════ */
.pain { background: radial-gradient(120% 90% at 50% 10%, #efedea 0%, #e9e7e3 50%, #dedbd6 100%); color: var(--pain-ink); }
.pain .eyebrow { color: #7a5a4c; }
.pain .eyebrow::before { background: #b06a55; box-shadow: 0 0 0 4px rgba(176, 106, 85, .16); }
.pain .lead { color: #625d58; }
.chaos { position: relative; container-type: inline-size; aspect-ratio: 16 / 9.4; max-width: 1100px; margin: 0 auto; }
.xl { position: absolute; background: #fff; border-radius: 0.6cqw; overflow: hidden; box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .16), 0 .2cqw .6cqw rgba(0, 0, 0, .06); }
.xl-top { display: flex; align-items: center; gap: .7cqw; height: 2.6cqw; padding: 0 1cqw; background: #e2e1df; font-size: 1.05cqw; color: #4a4744; border-bottom: 1px solid #cdccca; white-space: nowrap; overflow: hidden; }
.xl-top b { display: inline-grid; place-items: center; width: 1.6cqw; height: 1.6cqw; border-radius: .25cqw; background: #6f8a76; color: #fff; font-size: 1cqw; flex: none; }
.xl-grid { display: grid; font-size: .82cqw; color: #5a5754; }
.xl-grid > * { border: 1px solid #e6e3de; padding: .25cqw .4cqw; min-height: 1.55cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.xl-grid .h { background: #eeedec; color: #66625d; text-align: center; }
.xl-grid .y { background: #f1ebcf; }
.xl-grid .r { background: #ecd8d3; }
.xl-grid .e { color: #9b3c33; font-weight: 700; background: #f6ecea; }
.xl-tabs { display: flex; gap: .3cqw; padding: .4cqw .6cqw; background: #e2e1df; font-size: .8cqw; color: #55524e; white-space: nowrap; overflow: hidden; }
.xl-tabs span { padding: .2cqw .7cqw; border-radius: .25cqw .25cqw 0 0; }
.xl-tabs .on { background: #fff; color: #2f2d2a; }
.x1 { left: 0; top: 6%; width: 50%; transform: rotate(-2.2deg); }
.x2 { left: 46%; top: 0; width: 38%; transform: rotate(2.4deg); z-index: 2; }
.x3 { left: 8%; top: 54%; width: 36%; transform: rotate(1.4deg); z-index: 2; }
.crm { position: absolute; right: 0; top: 42%; width: 44%; z-index: 3; background: #f6f5f2; border: 1px solid #d4d1cb; border-radius: 1cqw; overflow: hidden; box-shadow: 0 1.5cqw 3.5cqw rgba(0, 0, 0, .2); transform: rotate(-1.6deg); }
.crm-top { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; padding: 1.2cqw 1.5cqw; background: #dcd9d3; font: 700 1.6cqw/1 var(--sans); }
.crm-top span { font: 400 1.05cqw/1 var(--mono); color: #fff; background: #8a5a4a; border-radius: 999px; padding: .45cqw 1cqw; white-space: nowrap; }
.crm-mods { display: flex; flex-wrap: wrap; gap: .7cqw; padding: 1.4cqw 1.5cqw 1.6cqw; }
.crm-mods span { position: relative; padding: .45cqw 1cqw; border-radius: 999px; border: 1px solid #cfccc6; background: #fff; font-size: 1.15cqw; color: #5a5754; white-space: nowrap; }
.crm-mods .no { color: #6f6a64; }
.crm-mods .no::after { content: ""; position: absolute; left: .6cqw; right: .6cqw; top: 50%; height: .2cqw; min-height: 2px; background: #a2463a; border-radius: 1px; transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.chaos.in .crm-mods .no::after { transform: scaleX(1); }
.chaos.in .crm-mods .no:nth-child(6)::after { transition-delay: .25s; }
.chaos.in .crm-mods .no:nth-child(7)::after { transition-delay: .5s; }
.chaos.in .crm-mods .no:nth-child(8)::after { transition-delay: .75s; }
.chaos.in .crm-mods .no:nth-child(9)::after { transition-delay: 1s; }
.bubble { position: absolute; z-index: 4; max-width: 30%; padding: 1cqw 1.3cqw; border-radius: 1.3cqw 1.3cqw 1.3cqw .3cqw; background: #fff; box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .14); font-size: 1.3cqw; line-height: 1.3; color: #3a3835; }
.bubble small { display: block; margin-top: .4cqw; font-size: .9cqw; color: #6c6762; }
.bubble.b1 { left: 42%; top: 70%; }
.bubble.b2 { left: 2%; top: 38%; background: #dcf5e3; border-radius: 1.3cqw 1.3cqw .3cqw 1.3cqw; }
.bubble.b3 { right: 4%; top: 8%; }
@media (scripting: enabled) { .chaos .bubble { opacity: 0; transform: translateY(1.5cqw) scale(.96); transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1); } }
@media (scripting: enabled) { .chaos.in .bubble { opacity: 1; transform: none; } }
@media (scripting: enabled) { .chaos.in .b2 { transition-delay: .6s; } }
@media (scripting: enabled) { .chaos.in .b3 { transition-delay: 1.2s; } }
@media (scripting: enabled) { .chaos.in .b1 { transition-delay: 1.8s; } }
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.pains div { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .06); }
.pains .ico { width: 26px; height: 26px; color: #a2463a; }
.pains b { font: 700 18px/1.25 var(--display); letter-spacing: -.01em; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .chaos { aspect-ratio: auto; height: 158cqw; }
  .x1 { width: 94%; top: 0; } .x2 { left: 16%; top: 31%; width: 82%; } .x3 { display: none; }
  .crm { left: 3%; right: auto; top: 72%; width: 94%; }
  .crm-top { font-size: 3.6cqw; padding: 3cqw; } .crm-top span { font-size: 2.6cqw; padding: 1cqw 2cqw; }
  .crm-mods { gap: 1.6cqw; padding: 3cqw; } .crm-mods span { font-size: 3cqw; padding: 1cqw 2.2cqw; }
  .xl-top { height: 6.4cqw; font-size: 2.7cqw; gap: 1.6cqw; padding: 0 2cqw; } .xl-top b { width: 3.8cqw; height: 3.8cqw; font-size: 2.3cqw; }
  .xl-grid { font-size: 2.2cqw; } .xl-grid > * { min-height: 3.8cqw; padding: .6cqw .9cqw; } .xl-tabs { font-size: 2.2cqw; padding: 1cqw; }
  .bubble { max-width: 72%; font-size: 3.4cqw; padding: 2.4cqw 3cqw; border-radius: 3cqw 3cqw 3cqw .6cqw; } .bubble small { font-size: 2.5cqw; }
  .bubble.b1 { left: 26%; top: 59%; } .bubble.b2 { left: 2%; top: 21%; } .bubble.b3 { display: none; }
}
@media (max-width: 460px) { .pains { grid-template-columns: 1fr; } }

/* ═════════════ 3 · QUÉ ES UN CRM ═════════════ */
.hub-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.switch, .ciclo { display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.switch button, .ciclo button { border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background .25s, color .25s; }
.switch button[aria-pressed="true"], .ciclo button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.hub-caption { min-height: 4.2em; margin-top: 22px; font: 600 clamp(19px, 1.9vw, 24px)/1.35 var(--display); letter-spacing: -.01em; }
.hub { position: relative; container-type: inline-size; aspect-ratio: 1.45; }
.hub svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub .ln { vector-effect: non-scaling-stroke; stroke: var(--line-strong); stroke-width: 1.5; fill: none; transition: opacity .6s; }
.hub .pulse { vector-effect: non-scaling-stroke; stroke: var(--glow); stroke-width: 3.5; stroke-linecap: round; fill: none; stroke-dasharray: 2 34; animation: flow 1.8s linear infinite; transition: opacity .6s; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.hub[data-mode="sin"] .ln, .hub[data-mode="sin"] .pulse { opacity: 0; }
.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 1cqw; width: 19cqw; text-align: center;
  font: 700 2.4cqw/1.15 var(--display); letter-spacing: -.01em;
  transition: transform 1s cubic-bezier(.16, 1, .3, 1), opacity .6s, filter .6s;
}
.node span { position: relative; display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 3cqw; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--primary); }
.node span .ico { width: 4.6cqw; height: 4.6cqw; }
.hub[data-mode="sin"] .node { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); filter: grayscale(1); opacity: .85; }
.hub[data-mode="sin"] .node span { color: #8a8680; }
.node span::after { content: "?"; position: absolute; top: -1.4cqw; right: -1.4cqw; width: 4cqw; height: 4cqw; border-radius: 50%; background: #b06a55; color: #fff; display: grid; place-items: center; font-size: 2.4cqw; opacity: 0; visibility: hidden; transform: scale(.4); transition: opacity .4s, transform .4s, visibility .4s; }
.hub[data-mode="sin"] .node span::after { opacity: 1; visibility: visible; transform: none; }
.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 25cqw; height: 25cqw; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: .8cqw; text-align: center;
  background: radial-gradient(circle at 30% 25%, #1c8a4d, var(--primary) 60%, #08552a); color: #fff;
  box-shadow: 0 0 0 2.4cqw var(--glow-soft), 0 0 0 5cqw rgba(47, 191, 113, .07), var(--shadow-lg);
  transition: transform 1s cubic-bezier(.16, 1, .3, 1), opacity .6s;
}
.core b { font: 800 4cqw/1 var(--display); letter-spacing: -.04em; }
.core small { font: 400 1.7cqw/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.core .ico { width: 5cqw; height: 5cqw; }
.hub[data-mode="sin"] .core { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
@media (max-width: 860px) { .hub-wrap { grid-template-columns: 1fr; } .hub { aspect-ratio: 1.1; } .node { font-size: 3.4cqw; width: 24cqw; } .node span { width: 13cqw; height: 13cqw; } .node span .ico { width: 6cqw; height: 6cqw; } .core { width: 30cqw; height: 30cqw; } .core b { font-size: 5cqw; } .core small { font-size: 2.3cqw; } }

/* ═════════════ 4 · EL CICLO ═════════════ */
.cycle-sec { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); }
.cycle { display: grid; grid-template-columns: minmax(300px, 0.85fr) 1.4fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.wheel { position: relative; aspect-ratio: 1; container-type: inline-size; }
.wheel > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel .ring { fill: none; stroke: var(--line-strong); stroke-width: .5; stroke-dasharray: 1.2 2; }
.wheel .arc { fill: none; stroke: var(--glow); stroke-width: 1.1; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.16, 1, .3, 1); }
.step-btn {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 1.2cqw; width: 22cqw; padding: 0; border: 0; background: none; cursor: pointer; text-align: center;
  font: 700 3.3cqw/1.1 var(--display); letter-spacing: -.01em; color: var(--muted);
}
.step-btn span { position: relative; display: grid; place-items: center; width: 13.5cqw; height: 13.5cqw; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(13, 33, 24, .08); color: var(--primary); transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .3s, color .3s, box-shadow .3s; }
.step-btn span .ico { width: 6cqw; height: 6cqw; }
.step-btn span em { position: absolute; top: -1cqw; right: -1cqw; width: 5cqw; height: 5cqw; border-radius: 50%; display: grid; place-items: center; background: var(--bg-deep); color: var(--primary); font: 400 2.6cqw/1 var(--mono); font-style: normal; }
.step-btn[aria-pressed="true"] { color: var(--ink); }
.step-btn[aria-pressed="true"] span { background: var(--primary); color: #fff; transform: scale(1.14); box-shadow: 0 0 0 2cqw var(--glow-soft), var(--shadow-md); }
.wheel-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34cqw; text-align: center; display: grid; justify-items: center; gap: 1.4cqw; }
.wheel-core .ico { width: 8cqw; height: 8cqw; color: var(--primary); }
.wheel-core b { font: 800 4.6cqw/1.05 var(--display); letter-spacing: -.03em; }
.wheel-core small { font: 400 3.1cqw/1.3 var(--sans); color: var(--muted); }
.cycle-cap { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; margin-top: 22px; min-height: 120px; }
.cycle-cap .num { grid-row: span 3; font: 800 clamp(44px, 5vw, 66px)/0.9 var(--display); letter-spacing: -.05em; color: var(--glow); }
.cycle-cap h3 { font-size: clamp(22px, 2.3vw, 30px); }
.cycle-cap p { color: var(--muted); font-size: 17px; }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.who span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.who .ico { width: 14px; height: 14px; color: var(--primary); }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 18px; }
.progress i { display: block; height: 100%; width: 0; background: var(--glow); }
@media (max-width: 900px) {
  .cycle { grid-template-columns: 1fr; }
  .wheel { max-width: 460px; width: 100%; margin: 0 auto; }
}

/* ═════════════ 5 · DE CERCA (capturas anotadas) ═════════════ */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); }
.tabs button .ico { width: 17px; height: 17px; }
.tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.close { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
/* Acercamiento: el menú lateral queda fuera y el contenido se lee mejor. Los puntos viajan con la imagen. */
.zw { position: absolute; inset: 0; transform: scale(1.22); transform-origin: 100% 50%; }
.pins { position: absolute; inset: 0; }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; cursor: pointer; padding: 0;
  background: var(--primary); color: #fff; font: 700 15px/1 var(--display);
  box-shadow: 0 6px 16px rgba(13, 33, 24, .3); animation: ping 2.4s ease-out infinite;
}
/* El punto se ve chico, pero se toca en 44 px (WCAG 2.5.5): el área crece sin cambiar el dibujo. */
.pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.pin[aria-pressed="true"] { background: var(--gold); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .55), 0 6px 16px rgba(13, 33, 24, .3); } 80%, 100% { box-shadow: 0 0 0 18px rgba(47, 191, 113, 0), 0 6px 16px rgba(13, 33, 24, .3); } }
.hl { position: absolute; border: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(13, 33, 24, .26); pointer-events: none; opacity: 0; transition: left .45s cubic-bezier(.16, 1, .3, 1), top .45s cubic-bezier(.16, 1, .3, 1), width .45s cubic-bezier(.16, 1, .3, 1), height .45s cubic-bezier(.16, 1, .3, 1), opacity .3s; }
.hl.on { opacity: 1; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: n; }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, .7); cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.legend li::before { counter-increment: n; content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-deep); color: var(--primary); font: 700 15px/1 var(--display); }
.legend li.on { background: #fff; border-color: var(--gold); transform: translateX(4px); }
.legend li.on::before { background: var(--gold); color: #fff; }
.legend b { display: block; font: 700 16.5px/1.25 var(--display); }
.legend span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
@media (max-width: 900px) { .close { grid-template-columns: 1fr; } .pin { width: 26px; height: 26px; font-size: 12px; border-width: 2px; } .pin::after { inset: -11px; } }

/* ═════════════ 6 · MÓDULOS (explorador) ═════════════ */
.mods-sec { background: linear-gradient(180deg, var(--bg-deep), var(--bg) 40%); }
.explorer { position: relative; display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.menu { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 14px 10px; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 4px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu-head .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.menu-head b { display: block; font: 700 15px/1.1 var(--sans); }
.menu-head small { font: 400 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--light); text-transform: uppercase; }
.menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.menu button {
  position: relative; width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; font-size: 14.5px; color: #33473d; text-align: left; transition: background .2s, color .2s;
}
.menu button .ico { width: 18px; height: 18px; color: #51665b; }
.menu button:hover { background: #f3f7f4; }
.menu button[aria-pressed="true"] { background: #eef6f1; color: var(--ink); font-weight: 700; }
.menu button[aria-pressed="true"]::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); }
.menu button[aria-pressed="true"] .ico { color: var(--primary); }
.menu .sep { height: 1px; background: var(--line); margin: 8px 10px; }
.menu .lbl { font: 400 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--light); padding: 6px 12px; text-transform: uppercase; }
.cursor { position: absolute; z-index: 5; left: 0; top: 0; width: 26px; height: 26px; pointer-events: none; transition: transform .55s cubic-bezier(.65, 0, .35, 1), opacity .3s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); }
.cursor-tap { position: absolute; z-index: 4; left: 0; top: 0; width: 34px; height: 34px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid var(--glow); pointer-events: none; opacity: 0; }
.cursor-tap.go { animation: tap .5s ease-out; }
@keyframes tap { from { transform: var(--at) scale(.3); opacity: 1; } to { transform: var(--at) scale(1.6); opacity: 0; } }
.mod-cap { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-top: 18px; }
.mod-cap h3 { font-size: clamp(24px, 2.6vw, 34px); }
.mod-cap p { color: var(--muted); font-size: 17px; flex: 1 1 280px; }
.mod-count { display: inline-flex; gap: 6px; align-items: baseline; font: 400 13px/1 var(--mono); color: var(--light); }
.mod-count b { font: 800 22px/1 var(--display); color: var(--primary); }
@media (max-width: 960px) {
  .explorer { grid-template-columns: 1fr; }
  .menu { padding: 8px; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu-head, .menu .sep, .menu .lbl { display: none; }
  .menu ol { display: flex; gap: 4px; width: max-content; }
  .menu button { white-space: nowrap; padding: 10px 13px; }
  .menu button[aria-pressed="true"]::before { display: none; }
  .cursor, .cursor-tap { display: none; }
}

/* ═════════════ 7 · DASHBOARD ═════════════ */
.dash { display: grid; gap: 26px; }
.tabstrip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.tabstrip button { padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; cursor: zoom-in; text-align: left; transition: transform .25s, box-shadow .25s; }
.tabstrip button:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tabstrip img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.tabstrip span { display: block; padding: 8px 10px; font-size: 13px; font-weight: 700; }
@media (max-width: 960px) { .tabstrip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .tabstrip { grid-template-columns: repeat(2, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { padding: 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(13, 33, 24, .06); }
.kpi small { display: block; font: 400 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--light); }
.kpi b { display: block; margin: 10px 0 6px; font: 800 clamp(26px, 3vw, 36px)/1.05 var(--display); letter-spacing: -.035em; }
.kpi p { font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.scatter { position: relative; height: 70px; margin-top: 12px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.scatter i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #c9821e; transform: translate(-50%, 50%); }
.scatter i.g { background: var(--glow); }
.bars-mini { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 12px; }
.bars-mini i { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--glow), var(--primary)); }
.bars-mini i.r { background: linear-gradient(180deg, #e08b7f, var(--neg)); }
@media (max-width: 820px) { .kpis { grid-template-columns: 1fr; } }

/* SEC */
.sec { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; margin-top: clamp(60px, 8vw, 100px); padding: clamp(22px, 4vw, 48px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 116px 1fr 26px; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .track { height: 12px; border-radius: 9px; background: var(--bg-deep); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--glow)); transform-origin: left; transform: scaleX(var(--w)); transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
@media (scripting: enabled) { .bars:not(.in) .fill { transform: scaleX(0); } }
.bar-row b { font: 700 15px/1 var(--display); text-align: right; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.formula span { padding: 10px 14px; border-radius: 12px; background: var(--bg-deep); font-weight: 700; font-size: 15px; }
.formula i { font-style: normal; color: var(--light); font-weight: 700; }
.formula .eq { background: var(--primary); color: #fff; }
.ex { margin-top: 18px; display: grid; gap: 8px; }
.ex div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: 14.5px; }
.ex b { font-family: var(--display); }
@media (max-width: 860px) { .sec { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .bar-row { grid-template-columns: 96px 1fr 22px; font-size: 13px; } }

/* ═════════════ 8 · ROLES ═════════════ */
.roles { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.org { display: grid; gap: 14px; }
.org-row { display: flex; gap: 10px; justify-content: center; position: relative; }
.org-row + .org-row::before { content: ""; position: absolute; top: -14px; left: 50%; width: 2px; height: 14px; background: var(--line-strong); }
.role { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 15px; box-shadow: 0 6px 16px rgba(13, 33, 24, .06); transition: background .25s, color .25s, transform .25s, border-color .25s; }
.role .ico { width: 19px; height: 19px; color: var(--primary); }
.role[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.role[aria-pressed="true"] .ico { color: var(--glow); }
.org-side { display: flex; gap: 10px; justify-content: center; margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.scope { padding: clamp(18px, 3vw, 30px); border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.scope-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.scope-head b { font: 800 clamp(34px, 4vw, 48px)/1 var(--display); letter-spacing: -.04em; color: var(--primary); }
.scope-head span { font-size: 14px; color: var(--muted); }
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 16px; }
.team { display: grid; gap: 8px; padding: 10px 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.team small { font: 400 10px/1 var(--mono); letter-spacing: .1em; color: var(--light); text-align: center; text-transform: uppercase; }
.asesores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.asesores div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; justify-items: center; }
.dot { width: 100%; max-width: 16px; aspect-ratio: 1; border-radius: 50%; background: #dfe7e2; transition: background .4s, transform .4s, box-shadow .4s; }
.dot.on { background: var(--glow); box-shadow: 0 0 0 3px var(--glow-soft); transform: scale(1.1); }
.scope-say { font: 600 18px/1.35 var(--display); min-height: 2.7em; }
.perm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.perm span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--bg-deep); color: var(--primary); }
.perm span.off { background: #f2f0ee; color: #8f8a84; text-decoration: line-through; }
.perm .ico { width: 14px; height: 14px; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .role { padding: 0 12px; font-size: 14px; } .teams { gap: 6px; } .team { padding: 8px 5px; } }

/* ═════════════ 9 · EN LA CALLE ═════════════ */
.street { overflow: hidden; }
.phones { display: flex; justify-content: center; gap: clamp(14px, 3vw, 34px); align-items: flex-end; margin: 0; padding-top: 40px; }
.phone { position: relative; flex: 0 0 auto; width: clamp(200px, 22vw, 270px); margin: 0; }
.phone-body { position: relative; aspect-ratio: 390 / 844; border-radius: 42px; padding: 10px; background: #0f1a14; box-shadow: var(--shadow-lg); }
.phone-body::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 20px; background: #0f1a14; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; background: #fff; border-top: 34px solid #fff; }
.phone:nth-child(2) { transform: translateY(-36px); }
.phone figcaption { margin-top: 16px; text-align: center; font-weight: 700; font-size: 15px; }
.street-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
@media (max-width: 760px) {
  .phones { justify-content: flex-start; overflow-x: auto; padding: 10px var(--gut) 20px; margin: 0 calc(var(--gut) * -1); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { scroll-snap-align: center; width: 230px; }
  .phone:nth-child(2) { transform: none; }
  .street-chips { margin-top: 24px; }
}
.map-band { margin-top: clamp(60px, 8vw, 110px); display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .map-band { grid-template-columns: 1fr; } }

/* ═════════════ 10 · COMPARAR ═════════════ */
.vs { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.vs > div { padding: 15px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 15px; }
.vs > div:nth-last-child(-n+4) { border-bottom: 0; }
.vs .colh { flex-direction: column; justify-content: center; gap: 8px; padding: 22px 12px; text-align: center; font: 700 16px/1.15 var(--display); }
.vs .colh .ico { width: 28px; height: 28px; }
.vs .colh.bf { background: var(--primary); color: #fff; }
.vs .cell { justify-content: center; }
.vs .bfc { background: #f1f9f4; }
.mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.mk .ico { width: 17px; height: 17px; stroke-width: 2.6; }
.mk.y { background: #dcf3e5; color: var(--primary); }
.mk.n { background: #f6e4e1; color: var(--neg); }
.mk.m { background: #f6eedb; color: var(--gold); }
.vs-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.vs-legend span { display: inline-flex; align-items: center; gap: 8px; }
.vs-legend .mk { width: 22px; height: 22px; }
.vs-legend .mk .ico { width: 13px; height: 13px; }
@media (max-width: 700px) {
  .vs { grid-template-columns: 1.1fr repeat(3, 56px); }
  .vs > div { padding: 12px 10px; font-size: 14px; }
  .vs .colh { font-size: 12px; padding: 14px 4px; }
  .vs .colh .ico { width: 20px; height: 20px; }
  .mk { width: 26px; height: 26px; }
}

/* ═════════════ 11 · CONFIANZA ═════════════ */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust > div { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.trust .badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-deep); color: var(--primary); }
.trust .badge .ico { width: 26px; height: 26px; }
.trust b { font: 700 18px/1.2 var(--display); }
.trust p { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.config { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* ═════════════ 12 · SOLUCIÓN COMPLETA ═════════════ */
/* Se entiende por lo visual: una ruta de seis pasos, un teléfono y un cronograma. */
.sol-sec { background: linear-gradient(180deg, var(--bg-deep), var(--bg) 40%); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.flow li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 39px; left: calc(50% + 48px); width: calc(100% + 12px - 96px); height: 2px; background: repeating-linear-gradient(90deg, var(--glow) 0 6px, transparent 6px 12px); }
.flow-node { position: relative; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--primary); }
.flow-node .ico { width: 32px; height: 32px; }
.flow-node em { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 13px/1 var(--display); font-style: normal; }
.flow b { margin-top: 8px; font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.flow small { max-width: 17ch; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.flow-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.flow-chips .chip { white-space: normal; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(3, 1fr); row-gap: 30px; } .flow li:nth-child(3)::after { display: none; } }
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; row-gap: 18px; }
  .flow li { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; }
  .flow-node { grid-row: span 2; width: 64px; height: 64px; }
  .flow-node .ico { width: 26px; height: 26px; }
  .flow b { margin-top: 10px; }
  .flow small { max-width: none; }
  .flow li:nth-child(n)::after { display: block; top: 72px; left: 31px; width: 2px; height: calc(100% - 58px); background: repeating-linear-gradient(180deg, var(--glow) 0 6px, transparent 6px 12px); }
  .flow li:last-child::after { display: none; }
}

.sol-train { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(60px, 8vw, 100px); }
.sol-train > * { min-width: 0; }
.wa-phone { margin: 0; width: clamp(266px, 26vw, 300px); justify-self: center; }
.wa { height: 100%; border-radius: 33px; overflow: hidden; display: flex; flex-direction: column; background: #ece7df; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 36px 14px 12px; background: var(--primary); color: #fff; }
.wa-top > div { min-width: 0; }
.wa-top b { display: block; font: 700 14px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-top small { display: block; font-size: 11px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.wa-av .ico { width: 18px; height: 18px; }
.wa-body { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px 10px; overflow: hidden; }
.wa-day { align-self: center; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .85); font: 400 10.5px/1.3 var(--mono); color: #43524a; }
.wa-msg { align-self: flex-start; max-width: 86%; padding: 8px 10px; border-radius: 10px 10px 10px 3px; background: #fff; font-size: 12.5px; line-height: 1.35; color: var(--ink); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-msg.me { align-self: flex-end; background: #d6f3dc; border-radius: 10px 10px 3px 10px; }
.wa-vid { align-self: flex-start; width: 84%; display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; padding: 5px; border-radius: 10px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-vid b { font-size: 12.5px; line-height: 1.25; }
.wa-vid b small { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; color: var(--muted); }
.wa-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: linear-gradient(135deg, #0b6d37, #2fbf71); }
.wa-thumb.t2 { background: linear-gradient(135deg, #0d2118, #2f6b4c); }
.wa-thumb.t3 { background: linear-gradient(135deg, #7d500e, #d9a24a); }
.wa-thumb i { position: absolute; left: 12%; top: 14%; width: 40%; height: 40%; border-radius: 3px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .55) 0 4px, transparent 4px 10px); }
.wa-play { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.wa-play::after { content: ""; position: absolute; left: 10px; top: 7px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--ink); }
.wa-thumb em { position: absolute; right: 4px; bottom: 4px; padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font: 400 10px/1.2 var(--mono); font-style: normal; }
@media (scripting: enabled) { .wa-body > * { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1); } }
@media (scripting: enabled) { .wa.in .wa-body > * { opacity: 1; transform: none; } }
.wa-phone figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.tasks { display: grid; gap: 14px; margin-top: 22px; }
.task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.task-row > b { display: inline-flex; align-items: center; gap: 8px; width: 100%; font: 700 14.5px/1.2 var(--display); }
.task-row > b .ico { width: 17px; height: 17px; color: var(--primary); }
.tchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.tchip .ico { width: 18px; height: 18px; color: var(--primary); }
.stat-aprende { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 18px; border-radius: 18px; background: var(--bg-deep); }
.stat-aprende .badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--primary); flex: none; }
.stat-aprende .badge .ico { width: 22px; height: 22px; }
.stat-aprende > b { font: 800 40px/1 var(--display); letter-spacing: -.04em; color: var(--primary); }
.stat-aprende > span { font-size: 15px; font-weight: 600; line-height: 1.3; }
.stat-aprende small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
@media (max-width: 860px) { .sol-train { grid-template-columns: 1fr; } }

.hz-box { margin-top: clamp(60px, 8vw, 100px); padding: clamp(20px, 4vw, 44px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.hz-head { margin-bottom: 28px; }
/* Cronograma: cada fila es una tarea; la posición sale del día (0 a 30) con --s y --l. */
.gantt { display: grid; gap: 10px; }
.g-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.g-lab { font: 600 14px/1.2 var(--sans); }
.g-track { position: relative; height: 28px; margin-right: 16px; background-image: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px); background-size: calc(100% / 3) 100%; box-shadow: inset -1px 0 0 var(--line-strong); }
.g-bar { position: absolute; top: 4px; bottom: 4px; left: calc(var(--s) / 30 * 100%); width: calc(var(--l) / 30 * 100%); border-radius: 8px; background: linear-gradient(90deg, var(--primary), var(--glow)); transform-origin: left; transition: transform .9s cubic-bezier(.16, 1, .3, 1) .2s; }
.g-bar.soft { background: repeating-linear-gradient(135deg, rgba(47, 191, 113, .32) 0 6px, rgba(47, 191, 113, .14) 6px 12px); border: 1px solid rgba(11, 109, 55, .25); }
@media (scripting: enabled) { .hz-box:not(.in) .g-bar { transform: scaleX(0); } }
.g-hitos .g-track { height: 36px; }
.g-pin { position: absolute; top: 50%; left: calc(var(--s) / 30 * 100%); transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font: 700 13px/1 var(--display); font-style: normal; box-shadow: 0 0 0 4px rgba(154, 100, 20, .16); }
.g-axis .g-track { height: 16px; background: none; box-shadow: none; }
.g-axis em { position: absolute; top: 0; left: calc(var(--s) / 30 * 100%); transform: translateX(-50%); font: 400 11.5px/1 var(--mono); font-style: normal; color: var(--light); white-space: nowrap; }
.g-axis em.gs0 { transform: none; }
.gs0 { --s: 0; } .gs1 { --s: 1; } .gs3 { --s: 3; } .gs5 { --s: 5; } .gs7 { --s: 7; } .gs8 { --s: 8; } .gs10 { --s: 10; } .gs18 { --s: 18; } .gs20 { --s: 20; } .gs30 { --s: 30; }
.gl1 { --l: 1; } .gl2 { --l: 2; } .gl23 { --l: 23; }
.g-legend { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.g-legend li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font: 600 14px/1.25 var(--sans); }
.g-legend em { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold); color: #fff; font: 700 13px/1 var(--display); font-style: normal; }
.g-legend small { display: block; margin-bottom: 2px; font: 400 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.hz-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .g-legend { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .g-hitos .g-track { height: 52px; } .g-pin { width: 24px; height: 24px; font-size: 12px; } .g-pin:nth-child(odd) { top: 28%; } .g-pin:nth-child(even) { top: 72%; } }
@media (max-width: 560px) { .g-row { grid-template-columns: 104px 1fr; gap: 8px; } .g-lab { font-size: 12px; } .g-track { margin-right: 12px; } .g-legend { grid-template-columns: 1fr; } }

/* ═════════════ 13 · PRECIOS ═════════════ */
/* Los números los pinta app.js desde precios.js; data-ciclo en la sección dice qué se muestra. */
.ciclo-wrap { display: flex; justify-content: center; margin-bottom: 34px; }
@media (scripting: none) { .ciclo-wrap { display: none; } }
.ciclo-save { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: #dcf3e5; color: var(--primary); font-size: 12px; font-weight: 700; }
.ciclo button[aria-pressed="true"] .ciclo-save { background: rgba(255, 255, 255, .2); color: #fff; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.tier.mark { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }
.tier.ent { background: rgba(255, 255, 255, .7); }
.tier-flag { position: absolute; top: -13px; left: 22px; padding: 5px 11px; border-radius: 999px; background: var(--primary); color: #fff; font: 700 12px/1 var(--sans); }
.tier-name { font: 800 24px/1 var(--display); letter-spacing: -.03em; }
.tier-for { font: 400 11.5px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); min-height: 2.7em; }
.tier-list { font-size: 13px; color: var(--light); }
.tier-list s { text-decoration-thickness: 1.5px; }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; }
.tier-price b { font: 800 clamp(34px, 3.2vw, 42px)/1 var(--display); letter-spacing: -.04em; }
.tier.ent .tier-price b { font-size: clamp(30px, 2.6vw, 36px); }
.tier-price span, .tier-price small { font: 600 14.5px/1 var(--sans); color: var(--muted); }
.tier-eq { font-size: 13.5px; color: var(--muted); line-height: 1.4; min-height: 2.8em; }
.tier-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fbf1df; color: #74490b; font-size: 12px; font-weight: 700; }
.tag.tag-anual { background: #dcf3e5; color: var(--primary); }
#precios[data-ciclo="mensual"] .tag-anual { display: none; }
.tier-inc { list-style: none; margin: 6px 0 4px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14.5px; }
.tier-inc li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; line-height: 1.35; }
.tier-inc li::before { content: ""; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: #dcf3e5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6d37' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.tier .btn { margin-top: auto; width: 100%; min-height: 46px; font-size: 15px; }
@media (max-width: 1100px) { .tiers { grid-template-columns: 1fr 1fr; row-gap: 26px; } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } .tier-for, .tier-eq { min-height: 0; } }
.cond { display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 24px auto 0; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px dashed var(--line-strong); font-size: 14.5px; line-height: 1.45; }
.cond[hidden] { display: none; }
.cond .ico { width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }
.pr-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.pr-tile { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.pr-tile .badge { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-deep); color: var(--primary); }
.pr-tile .badge .ico { width: 21px; height: 21px; }
.pr-tile > b { font: 800 30px/1 var(--display); letter-spacing: -.035em; }
.pr-tile > b small { margin-left: 6px; font: 600 13px/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.pr-tile > span { font-size: 14px; font-weight: 600; line-height: 1.35; }
.pr-tile > span a { color: var(--primary); }
.pr-tile > em { font: 400 11.5px/1.3 var(--mono); font-style: normal; color: var(--light); }
@media (max-width: 1100px) { .pr-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .pr-tiles { grid-template-columns: 1fr; gap: 10px; }
  .pr-tile { grid-template-columns: 42px 1fr; column-gap: 14px; padding: 14px 16px; }
  .pr-tile .badge { grid-row: span 3; margin-bottom: 0; }
  .pr-tile > b { font-size: 26px; }
}
.pr-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pr-roles > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.pr-roles b { width: 100%; margin-bottom: 4px; font: 700 14px/1.2 var(--display); }
.rchip { padding: 5px 11px; border-radius: 999px; background: var(--bg-deep); color: var(--primary); font-size: 13px; font-weight: 600; }
@media (max-width: 760px) { .pr-roles { grid-template-columns: 1fr; } }
details.more { margin-top: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
details.more summary { cursor: pointer; min-height: 56px; padding: 0 22px; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font: 400 24px/1 var(--display); color: var(--primary); }
details.more[open] summary::after { content: "−"; }
.matrix-scroll { overflow-x: auto; padding: 0 12px 16px; }
.matrix { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font: 800 16px/1 var(--display); }
.matrix tbody th[scope=row] { text-align: left; font-weight: 400; color: var(--ink); }
.matrix .grp th { text-align: left; padding-top: 22px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.matrix col.hi { background: #f1f9f4; }
.matrix .yes { color: var(--primary); font-weight: 700; }
.matrix .no { color: var(--light); }
.matrix .txt { color: var(--muted); }
.matrix .all { color: var(--muted); }
.matrix .all .yes { margin-right: 6px; }
.matrix .soon { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff4e0; color: #7a4b00; font-size: .85em; font-weight: 600; }
.hint { padding: 0 22px 20px; font-size: 14px; color: var(--muted); }

/* ═════════════ 14 · CONTACTO ═════════════ */
.cta-sec { overflow: hidden; }
.signup { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.perks .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--primary); color: #fff; stroke-width: 3; }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: 26px; background: rgba(255, 255, 255, .88); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.f-lab { font-size: 13.5px; font-weight: 700; }
.f-lab b { color: var(--neg); }
.f-in { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font: 16px var(--sans); color: var(--ink); }
.f-in:focus { outline: 3px solid var(--glow-soft); border-color: var(--primary); }
.f-in[aria-invalid="true"] { border-color: var(--neg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.consent b { color: var(--neg); }
.form .btn { width: 100%; min-height: 54px; font-size: 16.5px; }
.form .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.f-status { min-height: 1.4em; font-size: 14.5px; font-weight: 600; }
.f-status.ok { color: var(--primary); }
.f-status.err { color: var(--neg); }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .f-row { grid-template-columns: 1fr; } }

footer { padding: 34px 0 44px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Visor ─────────────────────────────────────────────── */
dialog.viewer { width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 40px 120px rgba(0, 0, 0, .4); overflow: hidden; }
dialog.viewer::backdrop { background: rgba(13, 33, 24, .72); backdrop-filter: blur(4px); }
.viewer-body { max-height: calc(94vh - 58px); overflow: auto; }
.viewer-body img { width: 100%; height: auto; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; padding: 0 10px 0 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.viewer-top button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-deep); cursor: pointer; display: grid; place-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Utilidades: el CSP no admite atributos style, así que todo va por clase. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt28 { margin-top: 28px; }
.h3-big { font-size: clamp(26px, 3vw, 40px); margin-top: 14px; }
.xl-grid.g7 { grid-template-columns: 2.4cqw 1.6fr 1fr .8fr .8fr 1fr .7fr; }
.xl-grid.g5 { grid-template-columns: 2.4cqw 1.6fr 1fr .8fr 1fr; }
.xl-grid.g4 { grid-template-columns: 2.4cqw 1.5fr 1fr 1fr; }
.meter.full { width: 100%; }
.scatter .s1 { left: 80%; bottom: 6%; } .scatter .s2 { left: 86%; bottom: 2%; }
.scatter .s3 { left: 62%; bottom: 58%; } .scatter .s4 { left: 92%; bottom: 84%; }
.bars-mini .h30 { height: 30%; } .bars-mini .h55 { height: 55%; } .bars-mini .h42 { height: 42%; }
.bars-mini .h88 { height: 88%; } .bars-mini .h64 { height: 64%; } .bars-mini .h36 { height: 36%; }
.fill.w40 { --w: .4; } .fill.w60 { --w: .6; } .fill.w70 { --w: .7; } .fill.w80 { --w: .8; } .fill.w90 { --w: .9; } .fill.w100 { --w: 1; }

/* ── Páginas sueltas: privacidad y 404 ─────────────────── */
.consent a { color: var(--primary); font-weight: 600; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot-links a { color: var(--primary); font-weight: 600; }
.foot-links a.foot-kit { color: var(--muted); font-weight: 400; }
.foot-links a.foot-kit:hover { color: var(--ink); }
.doc-top { padding: 22px 0; border-bottom: 1px solid var(--line); background: #fff; }
.doc-body { max-width: 760px; padding-top: clamp(48px, 8vw, 90px); padding-bottom: 90px; }
.doc-body h1 { margin-top: 16px; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -.04em; }
.doc-body .lead { margin-top: 18px; }
.doc-body h2 { margin-top: 40px; font-size: clamp(22px, 2.4vw, 28px); }
.doc-body h2 + p { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.doc-back { margin-top: 40px; }
.doc-404 { min-height: 80vh; display: grid; align-content: center; justify-items: start; }

/* Alta: los pasos y el acceso al registro del CRM (antes, el formulario de lista de espera). */
.alta { align-content: start; }
.alta-pasos { list-style: none; counter-reset: paso; margin: 4px 0 8px; padding: 0; display: grid; gap: 14px; }
.alta-pasos li { counter-increment: paso; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; }
.alta-pasos li::before { content: counter(paso); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.alta-pasos b { font-weight: 700; }
.alta-pasos span { color: var(--muted, #4b5670); font-size: 15px; }
.alta-ya { margin: 0; font-size: 15px; }
.alta-ya a { font-weight: 600; }
.nav-login { margin-left: auto; margin-right: 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 720px) { .nav-login { display: none; } }
