/* Choreo Studio · landing
   Paleta: piso de estudio (gris frío claro), tinta, escenario oscuro (el del editor)
   y los colores de cinta de marcaje de los bailarines, usados solo en las fichas. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --floor: #eceef2;
  --floor-2: #e2e5eb;
  --paper: #f7f8fa;
  --ink: #16171c;
  --ink-2: #4a4e59;
  /* #6b7080 original medía ~4.2:1 contra --floor (#eceef2): por debajo del mínimo AA de texto normal
     (4.5:1) — encontrado con axe-core, afecta a todo lo que usa este token (.step-meta, .hero-note,
     .plan-soon, pie de página, etc.). Este valor da ~5.6:1, sigue leyéndose más tenue que --ink-2. */
  --ink-3: #585e6b;
  --line: #d3d7df;
  --stage: #141419;
  --stage-2: #1d1d24;
  --stage-line: #2c2c36;
  --stage-text: #ecebe6;
  --stage-muted: #a3a3ad;
  --cue: #2563eb;
  --cue-hover: #1d4fd6;
  --cue-soft: #dbe5fd;
  --focus: #2563eb;

  --display: "Bricolage", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 40px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }
.muted { color: var(--ink-3); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--cue); color: #fff; }
.btn-primary:hover { background: var(--cue-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--floor); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 18px; }
.btn-block { width: 100%; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(236, 238, 242, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark circle:nth-child(1) { fill: #27d8e8; }
.brand-mark circle:nth-child(2) { fill: #ff3b8d; }
.brand-mark circle:nth-child(3) { fill: #ffd629; }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-login { font-weight: 600; font-size: 0.95rem; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; }
.eyebrow { margin: 0 0 10px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-sm); position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-bars { top: 21px; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  font-weight: 720;
  letter-spacing: -0.022em;
  max-width: 18ch;
}
.lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

.mini-stage { margin: 0; background: var(--stage); border-radius: var(--r-lg); padding: 18px 18px 20px; box-shadow: 0 30px 60px -30px rgba(20, 22, 40, .55); }
.mini-floor { width: 100%; height: auto; display: block; }
.mini-floor .floor { fill: #0c0c10; stroke: var(--stage-line); }
.mini-floor .grid path { stroke: #1f1f28; stroke-width: 1; fill: none; }
.mini-floor .center-line { stroke: #34343f; stroke-dasharray: 4 5; }
.mini-floor .front-line { stroke: var(--cue); stroke-width: 2; }
.mini-floor .floor-label { fill: #7c7c88; font: 600 10px/1 var(--body); letter-spacing: .12em; }
.token circle { stroke: rgba(0, 0, 0, .35); stroke-width: 1.5; }
.token text { font: 800 11px/1 var(--body); fill: #121216; }
.token { transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.formation-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.formation-picker button {
  min-height: 38px; padding: 0 15px; border-radius: 999px;
  background: var(--stage-2); border: 1px solid var(--stage-line); color: var(--stage-muted);
  font-size: 14px; font-weight: 500; transition: background-color .15s, color .15s, border-color .15s;
}
.formation-picker button:hover { color: var(--stage-text); border-color: #45454f; }
.formation-picker button[aria-pressed="true"] { background: var(--stage-text); color: var(--stage); border-color: var(--stage-text); }
.mini-stage figcaption { margin-top: 14px; font-size: 13.5px; color: var(--stage-muted); line-height: 1.5; }
.mini-stage :focus-visible { outline-color: #8fb0ff; }

/* Secciones */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 38em; }

/* Recorrido (banda oscura: el escenario) */
.tour { background: var(--stage); color: var(--stage-text); padding: clamp(64px, 9vw, 120px) 0; }
.section-head-dark p { color: var(--stage-muted); }
.tour-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 999px; margin-bottom: 22px; }
.tour-tabs button { min-height: 40px; padding: 0 18px; border: 0; background: transparent; color: var(--stage-muted); border-radius: 999px; font-weight: 600; font-size: 15px; }
.tour-tabs button:hover { color: var(--stage-text); }
.tour-tabs button[aria-selected="true"] { background: var(--stage-text); color: var(--stage); }
.tour :focus-visible { outline-color: #8fb0ff; }
.tour-caption { margin-top: 18px; color: var(--stage-muted); font-size: 15.5px; max-width: 60em; }

/* Capturas */
.shot { display: block; padding: 0; border: 0; background: none; width: 100%; text-align: left; border-radius: var(--r-md); overflow: hidden; }
.shot img { width: 100%; }
.zoomable { cursor: zoom-in; }
.shot-frame { border: 1px solid var(--stage-line); background: #0c0c10; padding: 6px; border-radius: var(--r-lg); }
.shot-frame img { border-radius: calc(var(--r-lg) - 6px); }
.steps .shot { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 48px -28px rgba(20, 22, 40, .45); border: 1px solid #c9ced8; background: var(--stage); }

/* Pasos (secuencia real) */
.steps { padding: clamp(72px, 10vw, 136px) 0; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(64px, 9vw, 120px); }
.step { display: grid; gap: 32px; }
.step-text { max-width: 34em; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font: 800 17px/1 var(--body); color: #111; margin-bottom: 18px;
}
.step:nth-child(1) .step-n { background: #27d8e8; }
.step:nth-child(2) .step-n { background: #ff3b8d; }
.step:nth-child(3) .step-n { background: #ffd629; }
.step:nth-child(4) .step-n { background: #00e58b; }
.step:nth-child(5) .step-n { background: #ff7b2f; }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.025em; }
.step-text > p { margin-top: 14px; color: var(--ink-2); }
.step-text > p.step-meta { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); padding-left: 14px; border-left: 2px solid var(--line); }
.step-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.step-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.step-flip .step-text { order: 2; }
.shot-stack { position: relative; min-height: 470px; padding-top: 70px; }
.stack-back { width: min(100%, 660px); }
.stack-front { position: absolute; top: 0; right: 0; width: 240px; box-shadow: 0 30px 60px -20px rgba(10, 12, 30, .55) !important; }
.shot-small { max-width: 519px; justify-self: start; }

/* Local-first */
.local { padding: clamp(56px, 7vw, 96px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.local-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.local h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
.local p { font-size: 18px; color: var(--ink-2); }
.local p + p { margin-top: 16px; font-size: 16px; }
.local ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.local li { padding-left: 26px; position: relative; }
.local li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--cue); border-bottom: 2px solid var(--cue); transform: rotate(-45deg); }
.local .btn { margin-top: 18px; }

/* Público */
.audience { padding: clamp(56px, 7vw, 96px) 0; }
.audience-title { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; margin-bottom: 28px; }
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.audience-list li { padding: 22px 24px 0 0; color: var(--ink-2); font-size: 15.5px; }
.audience-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.audience-list strong { display: block; color: var(--ink); font: 700 19px/1.2 var(--display); margin-bottom: 8px; letter-spacing: -0.01em; }
.audience-list strong a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.audience-list strong a:hover { text-decoration-color: var(--cue); }

/* Laboratorio de Animación (dentro de un .step-text angosto, por eso no reusa .audience-list a 4 columnas) */
.lab-highlights { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.lab-highlights li { padding-left: 18px; border-left: 2px solid var(--line); color: var(--ink-2); font-size: 15px; }
.lab-highlights strong { color: var(--ink); }

/* Planes */
.plans { padding: clamp(72px, 9vw, 120px) 0; background: var(--floor-2); }
.plans-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }
.plans-head > div:first-child { max-width: 700px; }
.currency { display: inline-flex; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.currency button { min-height: 36px; padding: 0 16px; border: 0; background: transparent; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.currency button[aria-pressed="true"] { background: var(--ink); color: var(--floor); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; }
.plan h3 { font: 800 15px/1 var(--body); letter-spacing: .06em; }
.plan-for { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; min-height: 3em; }
.price { margin: 18px 0 22px; display: flex; align-items: baseline; gap: 8px; }
.price .amount { font: 750 46px/1 var(--display); letter-spacing: -0.03em; }
.price .per { color: var(--ink-3); font-size: 14.5px; }
.plan ul { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 15.5px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--cue); border-bottom: 2px solid var(--cue); transform: rotate(-45deg); }
/* Beneficio que ESTE plan no incluye: misma fila en los tres planes (para comparar de un vistazo), atenuada y con raya en vez de palomita. */
.plan li.off { color: var(--ink-3); }
.plan li.off::before { width: 11px; height: 0; border-left: none; border-bottom: 2px solid var(--line); transform: none; top: .7em; }
.plan-featured { background: var(--stage); color: var(--stage-text); border-color: var(--stage); }
.plan-featured .plan-for, .plan-featured .price .per { color: var(--stage-muted); }
.plan-featured ul { border-top-color: var(--stage-line); }
.plan-featured li.off { color: var(--stage-muted); }
.plan-featured li.off::before { border-bottom-color: var(--stage-line); }
.plan-featured li::before { border-color: #7aa2ff; }
.plan-featured :focus-visible { outline-color: #8fb0ff; }
.plan-soon { margin-top: 22px; padding: 14px 16px; background: var(--floor); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-3); }

/* FAQ */
.faq { padding: clamp(72px, 9vw, 120px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); }
.faq h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 18px/1.35 var(--body); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 40em; }

/* Cierre */
.closing { background: var(--stage); color: var(--stage-text); padding: clamp(72px, 10vw, 128px) 0; }
.closing-inner { text-align: center; display: grid; justify-items: center; gap: 20px; }
.closing h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; max-width: 16ch; }
.closing p { color: var(--stage-muted); font-size: 18px; margin-bottom: 12px; }
.closing :focus-visible { outline-color: #8fb0ff; }

/* Pie */
.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--floor); }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot .muted { font-size: 14.5px; margin-top: 10px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
.foot-nav a { color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 14, .92); display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.lightbox[hidden] { display: none; }
.lightbox-dialog { max-width: min(1600px, 100%); max-height: 100%; overflow: auto; }
.lightbox img { max-height: calc(100vh - 100px); width: auto; margin: 0 auto; border-radius: var(--r-md); }
.lightbox-close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3a44; background: #1d1d24; display: grid; place-items: center; }
.lightbox-close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill: none; }
.lightbox :focus-visible { outline-color: #8fb0ff; }

/* Legales y 404 */
.doc { padding: clamp(48px, 7vw, 88px) 0 96px; }
.doc-inner { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.doc .updated { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc .back { margin-top: 48px; }
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 18px; }
.notfound h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch; }
.notfound p { color: var(--ink-2); font-size: 18px; margin-bottom: 8px; }

/* Responsivo */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .mini-stage { max-width: 640px; }
  .step-split, .step-flip { grid-template-columns: 1fr; }
  .step-flip .step-text { order: 0; }
  .audience-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .audience-list li { padding-bottom: 20px; }
  .plan-grid { grid-template-columns: 1fr; max-width: 560px; }
  .faq-grid, .local-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-inner { height: 60px; gap: 12px; }
  .menu-toggle { display: block; }
  .top-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--floor); border-bottom: 1px solid var(--line);
  }
  .top-nav.open { display: flex; }
  .top-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .top-actions { margin-left: auto; }
  .shot-stack { min-height: 0; padding-top: 0; display: grid; gap: 16px; }
  .stack-front { position: static; width: min(100%, 300px); }
  .audience-list { grid-template-columns: 1fr; }
  .audience-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .foot-inner { grid-template-columns: 1fr; }
  .tour-tabs button { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.top-actions-end { margin-left: auto; }

/* Ajustes finos */
.btn, .brand { white-space: nowrap; }
.zoomable { position: relative; }
@media (hover: none) {
  .zoomable::after {
    content: ""; position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(20, 20, 26, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  }
}
@media (max-width: 420px) {
  .brand { font-size: 17px; }
  .top-actions .btn-sm { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 760px) {
  .lightbox { place-items: center start; }
  .lightbox-dialog { max-width: 100vw; overflow: auto; -webkit-overflow-scrolling: touch; }
  .lightbox img { max-width: none; max-height: none; height: min(72vh, 900px); width: auto; }
}

/* Franja de datos bajo el hero */
.proof { border-block: 1px solid var(--line); background: var(--paper); }
.proof-list { list-style: none; margin: 0 auto; padding: 18px var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; font-size: 14.5px; color: var(--ink-3); }
.proof-list strong { display: block; color: var(--ink); font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; }
@media (max-width: 760px) { .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Aviso de revisión en las páginas legales */
.doc .review-note { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--cue); border-radius: var(--r-sm); background: var(--paper); font-size: 14.5px; }

/* Header: en tablet y teléfono la navegación (con "Iniciar sesión") vive en el menú hamburguesa, para que
   marca + "Crear cuenta gratis" + menú quepan sin scroll horizontal desde 320px. */
.nav-login { display: none; }
@media (max-width: 1080px) {
  .top-inner { gap: 12px; }
  .menu-toggle { display: block; }
  .top-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--floor); border-bottom: 1px solid var(--line);
  }
  .top-nav.open { display: flex; }
  .top-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .top-actions { margin-left: auto; }
  .top-login { display: none; }
  .nav-login { display: block; }
}
@media (max-width: 440px) {
  .btn-label-long { display: none; }
  .top-inner { gap: 8px; }
  .top-actions { gap: 4px; }
}
@media (min-width: 441px) {
  .btn-label-short { display: none; }
}
@media (max-width: 340px) {
  .brand { font-size: 15px; gap: 6px; }
  .brand-mark { width: 22px; height: 22px; }
  .top-actions .btn-sm { padding: 0 10px; }
}

/* =========================================================
   Premium refresh · 2026-10
   Mejora visual sin cambiar la arquitectura estática del sitio.
   ========================================================= */

:root {
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --blue-soft: #eef4ff;
  --blue-line: #cad9ff;
  --shadow-sm: 0 10px 30px -22px rgba(18, 24, 45, .38);
  --shadow-md: 0 24px 70px -36px rgba(18, 24, 45, .42);
  --shadow-xl: 0 42px 100px -44px rgba(8, 12, 30, .58);
}

body {
  background:
    linear-gradient(180deg, #f7f9fd 0, var(--floor) 760px, var(--floor) 100%);
}

.top {
  background: rgba(247, 249, 253, .82);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.top.scrolled {
  border-bottom-color: rgba(200, 207, 222, .8);
  box-shadow: 0 10px 32px -26px rgba(17, 24, 39, .5);
}
.top-nav a {
  position: relative;
  transition: color .18s ease;
}
@media (min-width: 1081px) {
  .top-nav a:not(.nav-login)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    border-radius: 999px;
    background: var(--cue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
  }
  .top-nav a:not(.nav-login):hover::after,
  .top-nav a.is-active:not(.nav-login)::after { transform: scaleX(1); }
}

.btn {
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -22px rgba(18, 24, 45, .48); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #315eea 52%, #5146e5 100%);
  border-color: rgba(255,255,255,.14);
}
.btn-primary:hover { background: linear-gradient(135deg, #1d56da 0%, #284fdb 52%, #463ad6 100%); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.26) 45%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn-shine:hover::after { transform: translateX(120%); }

/* Hero de producto */
.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(72px, 9vw, 118px);
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, .10), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(155, 114, 255, .10), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(247,249,253,.24));
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.24), transparent);
}
.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: .45;
}
.hero-glow-a { width: 220px; height: 220px; background: #86b5ff; top: 30px; left: -100px; }
.hero-glow-b { width: 240px; height: 240px; background: #b59cff; right: -100px; top: 50px; }
.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr);
  gap: clamp(42px, 5vw, 82px);
}
.hero-copy { padding-block: 14px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #315398;
  letter-spacing: .045em;
  opacity: 1;
  box-shadow: 0 8px 28px -24px rgba(37,99,235,.55);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37,99,235,.09);
}
.hero h1 {
  font-size: clamp(42px, 5.25vw, 72px);
  line-height: .99;
  letter-spacing: -.048em;
  max-width: 13.6ch;
}
.text-gradient {
  background: linear-gradient(92deg, #1d4ed8 0%, #4f46e5 54%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Safari en iOS pinta el degradado solo en parte de un <span> que se parte en varias líneas (el titular se veía
     "antes … imer" en iPhone): clone repite el fondo en cada línea. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead {
  margin-top: 26px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.62;
  max-width: 39em;
}
.hero-cta { margin-top: 32px; }
.hero-note { max-width: 54em; }
.hero-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.hero-points li { position: relative; padding-left: 18px; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--cue);
  border-bottom: 2px solid var(--cue);
  transform: translateY(-50%) rotate(-45deg);
}

.hero-showcase {
  position: relative;
  min-width: 0;
  padding: 18px 0 112px 18px;
  isolation: isolate;
}
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -18px -26px 74px 48px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(37,99,235,.12), rgba(124,58,237,.05));
  border: 1px solid rgba(37,99,235,.08);
  transform: rotate(1.25deg);
}
.product-window {
  overflow: hidden;
  border: 1px solid rgba(24, 31, 52, .74);
  border-radius: 20px;
  background: #111116;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: perspective(1500px) rotateY(-1.4deg) rotateX(.7deg);
  transform-origin: center;
}
.product-window-bar {
  min-height: 42px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: #16161c;
  border-bottom: 1px solid #2a2a34;
  color: #92929e;
  font-size: 11px;
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3c3c47; }
.window-dots i:nth-child(1) { background: #ff675f; }
.window-dots i:nth-child(2) { background: #ffbd44; }
.window-dots i:nth-child(3) { background: #2bd576; }
.window-title { color: #c4c4cd; font-weight: 600; white-space: nowrap; }
.window-status { justify-self: end; color: #6dbd87; }
.hero-product-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111116;
  cursor: zoom-in;
  overflow: hidden;
}
.hero-product-shot img { width: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero-product-shot:hover img { transform: scale(1.012); }

.hero-mini-stage {
  position: absolute;
  z-index: 3;
  left: -14px;
  bottom: 0;
  width: min(390px, 64%);
  padding: 13px 14px 14px;
  border: 1px solid #33333d;
  border-radius: 16px;
  box-shadow: 0 28px 66px -30px rgba(8, 10, 24, .78), 0 0 0 1px rgba(255,255,255,.025) inset;
}
.mini-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
  color: var(--stage-text);
  font-size: 12px;
  font-weight: 700;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aeb2bf;
  font-weight: 500;
  font-size: 10.5px;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.10); }
.hero-mini-stage .mini-floor { max-height: 210px; }
.hero-mini-stage .formation-picker { gap: 5px; margin-top: 8px; }
.hero-mini-stage .formation-picker button { min-height: 30px; padding: 0 10px; font-size: 11.5px; }
.hero-mini-stage figcaption { margin-top: 8px; font-size: 11.5px; }

/* Franja de producto */
.proof {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.proof-list { padding-top: 22px; padding-bottom: 22px; }
.proof-list li { padding-left: 18px; border-left: 2px solid rgba(37,99,235,.18); }
.proof-list strong { font-size: 18px; margin-bottom: 2px; }

/* Secciones y capturas */
.section-head h2 { letter-spacing: -.035em; }
.section-head p { line-height: 1.65; }
#como-funciona { background: linear-gradient(180deg, #f7f9fd 0%, var(--floor) 100%); }
#laboratorio { background: linear-gradient(180deg, var(--floor) 0%, #eef3ff 100%); border-top: 1px solid rgba(37,99,235,.08); }
#studio { background: linear-gradient(180deg, #f8f9fc 0%, var(--floor) 100%); }
.steps .shot,
.shot-frame {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
@media (hover: hover) {
  .steps .shot:hover { transform: translateY(-3px); border-color: #b7bfd0; box-shadow: 0 32px 68px -34px rgba(20,22,40,.48); }
}
.tour {
  position: relative;
  background:
    radial-gradient(circle at 75% 0%, rgba(68, 87, 194, .13), transparent 34%),
    linear-gradient(180deg, #111117, #15151b);
}
.tour-panel { position: relative; }
.tour-panel::after {
  content: "";
  position: absolute;
  inset: 10% -3% -7%;
  z-index: -1;
  border-radius: 30px;
  background: rgba(58,74,180,.14);
  filter: blur(50px);
}
.tour-tabs { box-shadow: 0 12px 36px -28px #000; }

/* Privacy + audience blocks */
.local {
  background: rgba(255,255,255,.72);
  border-block-color: rgba(202,207,219,.72);
}
.local-grid > div {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.66);
  box-shadow: var(--shadow-sm);
}
.audience-list {
  gap: 14px;
  border-top: 0;
}
.audience-list li,
.audience-list li + li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.54);
}

/* Pricing */
.plans {
  background:
    radial-gradient(circle at 50% 0%, rgba(37,99,235,.08), transparent 34%),
    linear-gradient(180deg, #e8ebf2 0%, #e4e8f0 100%);
}
.plan-grid { gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-color: #cbd1dc;
  box-shadow: 0 18px 50px -42px rgba(18,24,45,.65);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
@media (hover: hover) {
  .plan:hover { transform: translateY(-4px); border-color: #b6becc; box-shadow: 0 28px 64px -40px rgba(18,24,45,.58); }
  .plan-featured:hover { border-color: #282a36; }
}
.plan-featured {
  background:
    radial-gradient(circle at 82% 6%, rgba(86,103,255,.20), transparent 28%),
    linear-gradient(180deg, #15151c, #111116);
  box-shadow: 0 28px 70px -40px rgba(22,29,65,.82);
}
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  color: #315398;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
.plan-featured .plan-label {
  background: rgba(104,126,255,.12);
  border-color: rgba(128,148,255,.24);
  color: #aebcff;
}
.plan .btn { margin-top: 0; }
.plan ul { flex: 1; align-content: start; }
.price .amount { font-size: clamp(40px, 3.3vw, 48px); }
.currency { box-shadow: var(--shadow-sm); }

/* FAQ más legible */
.faq-list { display: grid; gap: 10px; }
.faq-list details,
.faq-list details:first-child {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.56);
  overflow: clip;
  transition: background-color .18s ease, border-color .18s ease;
}
.faq-list details[open] { background: #fff; border-color: #c3cad7; }
.faq-list summary { padding: 19px 50px 19px 20px; }
.faq-list summary::after { right: 22px; }
.faq-list details p { padding: 0 50px 20px 20px; }

/* Cierre */
.closing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(37,99,235,.22), transparent 33%),
    radial-gradient(circle at 84% 85%, rgba(124,58,237,.18), transparent 32%),
    #111117;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; }

/* Footer */
.foot-nav { justify-content: flex-end; max-width: 720px; }

/* Scroll reveal: solo si JS está disponible. */
.js .reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), translate .25s ease, box-shadow .25s ease;
}
.js .reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* CTA móvil */
.mobile-cta { display: none; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .hero-copy { max-width: 760px; }
  .hero-showcase { max-width: 900px; width: 100%; margin-inline: auto; padding-left: 0; }
  .hero-showcase::before { inset-inline: 3%; }
  .product-window { transform: none; }
  .hero-mini-stage { left: 3%; }
  .plan-grid { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 620px; }
  .plan-for { min-height: 0; }
  .audience-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-list li:nth-child(3) { padding-left: 22px; border-left: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); max-width: 12.5ch; }
  .lead { margin-top: 22px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .hero-showcase { padding: 6px 0 0; }
  .hero-showcase::before { inset: -10px -10px 12% 18%; border-radius: 22px; }
  .product-window { border-radius: 14px; }
  .product-window-bar { min-height: 36px; grid-template-columns: auto 1fr; }
  .window-title { overflow: hidden; text-overflow: ellipsis; text-align: right; }
  .window-status { display: none; }
  .hero-mini-stage { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .hero-mini-stage .mini-floor { max-height: none; }
  .proof-list li { padding-left: 12px; }
  .proof-list strong { font-size: 16px; }
  .audience-list { grid-template-columns: 1fr; }
  .audience-list li + li,
  .audience-list li:nth-child(3) { padding: 20px; border: 1px solid var(--line); }
  .local-grid > div { padding: 20px; }
  .faq-list summary { padding-left: 16px; }
  .faq-list details p { padding-left: 16px; }
  .foot { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
  .foot-nav { justify-content: flex-start; }
  .mobile-cta {
    position: fixed;
    z-index: 60;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px 9px 14px;
    border: 1px solid rgba(30,37,57,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    box-shadow: 0 16px 52px -22px rgba(15,23,42,.48);
  }
  .mobile-cta span { display: grid; line-height: 1.12; }
  .mobile-cta strong { font-size: 13px; }
  .mobile-cta small { margin-top: 3px; color: var(--ink-3); font-size: 10.5px; }
  .mobile-cta .btn { min-height: 38px; padding-inline: 15px; }
}

@media (max-width: 420px) {
  .hero-points { grid-template-columns: 1fr; }
  .product-window-bar { padding-inline: 10px; }
  .window-title { font-size: 10px; }
  .hero-mini-stage { padding-inline: 10px; }
  .hero-mini-stage .formation-picker button { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .hero-product-shot img,
  .steps .shot,
  .plan,
  .js .reveal-item { transition: none !important; transform: none !important; }
  .btn-shine::after { display: none; }
}

/* =========================================================
   2026-10 · Idiomas, botón de iniciar sesión y Laboratorio v2
   ========================================================= */

/* Iniciar sesión: botón secundario real (antes era texto subrayado y se perdía junto al CTA azul). */
.btn-login {
  gap: 7px;
  background: var(--surface);
  border: 1px solid #c6ccd8;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 6px 18px -14px rgba(18,24,45,.45);
}
.btn-login:hover {
  background: var(--surface);
  border-color: var(--cue);
  color: var(--cue);
}
.login-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.top-login { padding: 0 16px; font-size: 15px; }
.top-login.btn-sm { min-height: 40px; }

/* Selector de idioma */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 10px; border-radius: 999px;
  color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: color .15s, border-color .15s, background-color .15s;
}
.lang-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-switch:hover { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.7); }
.nav-lang { display: none; }

@media (max-width: 1080px) {
  /* En el menú móvil el login es un botón completo, al final de la lista. */
  .top-nav a.nav-login {
    display: flex; margin-top: 14px; padding: 0 18px; min-height: 48px;
    border: 1px solid #c6ccd8; border-bottom: 1px solid #c6ccd8; border-radius: 999px;
    font-size: 16px; color: var(--ink);
  }
  .top-nav a.nav-lang { display: block; }
}
@media (max-width: 440px) {
  .lang-switch { display: none; }
}

/* Pie: idioma junto al copyright */
.foot-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.foot-copy .muted { margin: 0; }
.foot-lang { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); font-size: 13.5px; }
.foot-lang a { padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-3); font-weight: 600; }
.foot-lang a[aria-current="page"] { background: var(--ink); color: var(--floor); }
.foot-lang a:not([aria-current]):hover { color: var(--ink); }

/* Sugerencia de idioma: aparece una sola vez si el navegador pide otro idioma. */
.lang-hint {
  position: fixed; z-index: 70; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px); padding: 10px 10px 10px 16px;
  background: var(--stage); color: var(--stage-text);
  border: 1px solid #2c2c36; border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(8,10,24,.7);
  font-size: 14px;
}
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0; }
.lang-hint-close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.lang-hint-close:hover { background: var(--stage-2); }
.lang-hint-close svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; }
.lang-hint :focus-visible { outline-color: #8fb0ff; }
@media (max-width: 760px) {
  /* Una sola fila compacta: en dos filas, sumada a la barra "Crear cuenta", tapaba ~1/4 de la pantalla del teléfono. */
  .lang-hint { left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-width: none; gap: 8px; padding: 6px 6px 6px 14px; font-size: 13px; border-radius: 14px; }
  .lang-hint p { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
  .lang-hint .btn { flex: none; min-height: 36px; padding-inline: 12px; }
  .lang-hint-close { width: 32px; height: 32px; }
}

/* Laboratorio de Animación v2: la app ahora es lista + visor + ficha, así que la captura va a lo ancho. */
.lab-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.lab-head .section-head { margin-bottom: 0; }
.lab-cta { display: grid; justify-items: start; gap: 10px; }
.lab-cta-note { font-size: 14px; color: var(--ink-3); }
.lab .lab-shot { background: #1a191b; border-color: #2a2a33; box-shadow: var(--shadow-xl); }
.lab-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; margin: clamp(28px, 4vw, 44px) 0 0; }
.lab-highlights li { font-size: 15.5px; line-height: 1.55; padding-left: 16px; }
.lab-highlights strong { display: block; margin-bottom: 4px; font: 700 18px/1.25 var(--display); letter-spacing: -0.01em; }
@media (max-width: 860px) {
  .lab-highlights { grid-template-columns: 1fr; }
}

/* Paso sin captura (Production PDF): no deja media pantalla vacía. */
.step-solo { grid-template-columns: 1fr; }
.step-solo .step-text {
  max-width: 760px; padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line); border-left: 3px solid var(--cue); border-radius: var(--r-lg);
  background: rgba(255,255,255,.66); box-shadow: var(--shadow-sm);
}

/* FAQ: el título acompaña al scroll y da una salida si la duda no está en la lista. */
.faq-aside { align-self: start; }
.faq-aside p { margin-top: 18px; color: var(--ink-2); font-size: 16px; max-width: 22em; }
@media (min-width: 1081px) {
  .faq-aside { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
}
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Navegación: nunca partir un enlace en dos líneas (con EN + login como botón ya no cabía a 1440px). */
.top-nav a { white-space: nowrap; }
@media (min-width: 1081px) {
  .top-inner { gap: 24px; }
  .top-nav { gap: 20px; }
}
/* Laptops (1081–1320px): las secciones pasan al menú, pero "Iniciar sesión" y el idioma siguen a la vista. */
@media (min-width: 1081px) and (max-width: 1320px) {
  .menu-toggle { display: block; }
  .top-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 16px;
    background: var(--floor); border-bottom: 1px solid var(--line);
  }
  .top-nav.open { display: flex; }
  .top-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .top-nav a:not(.nav-login)::after { display: none; }
  .top-nav a.nav-login { display: none; }
  .top-actions { margin-left: auto; }
}

/* TEAM: workspace colaborativo integrado al bloque de precios */
.plan-team {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(24px, 3.2vw, 48px);
  align-items: start;
  padding: clamp(28px, 3vw, 40px);
  border: 1.5px dashed #9db2e6;
  background:
    radial-gradient(circle at 92% 0%, rgba(37,99,235,.10), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(240,245,255,.94));
}
@media (hover: hover) { .plan-team:hover { border-color: #7f9be0; } }
.plan-team .plan-for { min-height: 0; }
.plan-label-soon { background: #fff; border: 1px dashed var(--cue); color: var(--cue); }
.team-desc { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); max-width: 34em; }
.plan-team .price { margin: 24px 0 0; }
.team-fine { margin-top: 10px; font-size: 14px; color: var(--ink-3); max-width: 32em; }
.plan-team ul {
  flex: none; align-self: stretch; margin: 0; padding: 4px 0 4px clamp(24px, 3.2vw, 48px);
  border-top: 0; border-left: 1px solid var(--line); align-content: start;
}
.team-side { display: flex; flex-direction: column; gap: 12px; }
.team-seats { display: block; width: 100%; max-width: 210px; margin: 0 auto 2px; overflow: visible; }
.seat circle { stroke: rgba(0,0,0,.3); stroke-width: 1.5; }
.seat-a circle { fill: #27d8e8; }
.seat-b circle { fill: #ff3b8d; }
.seat-c circle { fill: #ffd629; }
.seat text { font: 800 15px/1 var(--body); fill: #121216; text-anchor: middle; }
.seat-add circle { fill: rgba(255,255,255,.7); stroke: var(--cue); stroke-width: 1.5; stroke-dasharray: 4 4; }
.seat-add path { stroke: var(--cue); stroke-width: 2; stroke-linecap: round; fill: none; }
.seat, .seat-add { transition: transform .9s cubic-bezier(.65, 0, .35, 1), opacity .5s ease; }
.seat-b { transition-delay: .45s; }
.seat-a, .seat-c { transition-delay: .35s; }
.seat-add { transition-delay: 1.25s; }
/* Al aparecer, los tres usuarios pasan de una línea a la formación del logo. */
.js .plan-team:not(.is-visible) .seat-a,
.js .plan-team:not(.is-visible) .seat-c { transform: translateY(-32px); }
.js .plan-team:not(.is-visible) .seat-b { transform: translateY(32px); }
.js .plan-team:not(.is-visible) .seat-add { opacity: 0; transform: scale(.6); transform-origin: 196px 34px; }
.seat-add { transform-origin: 196px 34px; }
.team-cap { margin: 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.team-note { margin: 0; text-align: center; font-size: 13px; color: var(--ink-3); }

@media (max-width: 1080px) {
  .plan-team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .team-side { grid-column: 1 / -1; display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 28px; align-items: center; }
  .team-seats { grid-row: 1 / span 3; margin: 0; }
  .team-cap, .team-note { text-align: left; }
}
@media (max-width: 860px) {
  .plan-team { grid-template-columns: 1fr; }
  .plan-team ul { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .team-side { grid-template-columns: 1fr; }
  .team-seats { grid-row: auto; margin: 0 auto; max-width: 180px; }
  .team-cap, .team-note { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .seat, .seat-add { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* Selector mensual / anual (oculto hasta habilitar ANNUAL_BILLING_ENABLED en app.js) */
.interval { display: inline-flex; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.interval[hidden] { display: none; }
.interval button { min-height: 36px; padding: 0 16px; border: 0; background: transparent; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.interval button[aria-pressed="true"] { background: var(--ink); color: var(--floor); }
.interval-badge { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(47, 158, 107, .22); color: inherit; }
.price-note { margin: -14px 0 18px; font-size: 13.5px; color: var(--ink-3); }
.plan-featured .price-note { color: var(--stage-muted); }

/* Con sesión iniciada (ver app.js): fuera los botones solo para invitados y la barra fija de registro. */
.has-session [data-guest-only],
.has-session .mobile-cta { display: none !important; }
.has-session body { padding-bottom: 0; }

/* ===== Guías (SEO): /guias/ y /en/guides/ ===== */
.guide .doc-inner { max-width: 860px; }
.guide .lead { margin-top: 18px; }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.guide h2 { font-size: 24px; }
.guide ol, .guide ul { padding-left: 22px; }
.guide li + li { margin-top: 8px; }
.formation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.formation-card { margin: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.formation-card figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.formation-card strong, .formation-card h3 { display: block; margin: 0 0 2px; font: inherit; font-weight: 700; font-size: 16.5px; letter-spacing: normal; color: var(--ink); }
.guide-byline { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.formation-svg { display: block; width: 100%; height: auto; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
.count-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.count-table th, .count-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.count-table th { color: var(--ink); font-weight: 600; background: var(--paper); }
.count-table td { color: var(--ink-2); }
.guide-steps { list-style: none; counter-reset: step; padding-left: 0 !important; }
.guide-steps > li { counter-increment: step; position: relative; padding-left: 52px; margin-top: 26px; }
.guide-steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cue); color: #fff; font-weight: 700; }
.guide-steps h2 { margin: 0 0 6px; font-size: 21px; }
.guide-cta { margin-top: 56px; padding: 28px; border-radius: var(--r-lg); background: var(--stage); color: var(--stage-text); }
.guide-cta h2 { margin-top: 0; color: var(--stage-text); }
.guide-cta p { color: var(--stage-muted) !important; }
.guide-cta .btn-ghost { border-color: var(--stage-text); color: var(--stage-text); }
.guide-list { list-style: none; padding: 0 !important; margin-top: 28px; display: grid; gap: 14px; }
.guide-list a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); text-decoration: none; }
.guide-list a:hover { border-color: var(--cue); }
.guide-list strong { display: block; color: var(--ink); font: 700 20px/1.25 var(--display); }
.guide-list span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .formation-grid { grid-template-columns: 1fr; } }
.formation-meta { display: grid; gap: 4px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.formation-meta div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
.formation-meta dt { color: var(--ink-3); }
.formation-meta dd { margin: 0; color: var(--ink-2); }
.guide-tip { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--cue); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--paper); color: var(--ink-2); font-size: 15.5px; }
.guide-tip strong { color: var(--ink); }
.guide-tldr { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--cue); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--paper); }
.guide-tldr h2 { margin: 0 0 8px; font-size: 18px; }
.guide-tldr ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.guide-tldr li + li { margin-top: 4px; }
.guide-tldr p { margin: 12px 0 0; font-weight: 600; }
.guide-share { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ink-3); font-size: 15px; }
.guide-share a { font-weight: 600; }
.guide-list .guide-meta { display: block; margin-bottom: 6px; color: var(--cue); font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.guide-list .guide-learn { color: var(--ink-3); font-size: 14px; }
.guide-faq { margin-top: 16px; }
.guide .table-wrap + p { margin-top: 14px; }

/* Home: bloque de guías */
.home-guides { padding: clamp(56px, 7vw, 96px) 0 0; }
.home-guides .guide-list { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-guides .guide-list a { height: 100%; }
.home-guides-more { margin-top: 18px; font-weight: 600; }
@media (max-width: 860px) { .home-guides .guide-list { grid-template-columns: 1fr; } }

/* ---------- Movimiento: entrada del hero, brillo del titular y tarjetas que responden al cursor ---------- */
@keyframes hero-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes text-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: hero-in .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-copy > :nth-child(n+6) { animation-delay: .4s; }
  .hero-showcase { animation: hero-in .9s .25s cubic-bezier(.2,.7,.2,1) both; }
  .hero .text-gradient { background-size: 220% 100%; animation: text-shimmer 7s ease-in-out infinite alternate; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan, .step, .audience-list > li, .local-grid > * { transition: translate .25s ease, box-shadow .25s ease; }
  .plan:hover, .step:hover, .audience-list > li:hover, .local-grid > *:hover { translate: 0 -4px; }
  .plan:not(.plan-featured):hover, .step:hover, .audience-list > li:hover, .local-grid > *:hover { box-shadow: 0 22px 44px -26px rgba(15,23,42,.38); }
  .btn { transition: translate .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
  .btn:hover { translate: 0 -1px; }
}

/* ---------- Asistente (sugerencias y reportes de fallos → ticket de soporte) ---------- */
.bot { position: fixed; z-index: 65; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; font-family: var(--body); }
body:has(.lang-hint:not([hidden])) .bot { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.bot-launch {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 18px 0 14px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: var(--stage); color: var(--stage-text);
  font: 650 14px/1 var(--body); cursor: pointer;
  box-shadow: 0 18px 44px -18px rgba(8,10,24,.75);
  transition: translate .2s ease, background .2s ease;
}
.bot-launch:hover { background: var(--stage-2); translate: 0 -2px; }
.bot-launch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.bot-launch svg { width: 22px; height: 22px; fill: none; stroke: #f4c76b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bot.is-open .bot-launch span { display: none; }
.bot.is-open .bot-launch { padding: 0 13px; }
@media (prefers-reduced-motion: no-preference) {
  .bot:not(.is-open) .bot-launch { animation: bot-nudge 6s 3s ease-in-out infinite; }
}
@keyframes bot-nudge { 0%, 88%, 100% { box-shadow: 0 18px 44px -18px rgba(8,10,24,.75), 0 0 0 0 rgba(244,199,107,0); } 94% { box-shadow: 0 18px 44px -18px rgba(8,10,24,.75), 0 0 0 10px rgba(244,199,107,.22); } }

.bot-panel {
  width: min(372px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(15,23,42,.55);
  transform-origin: 100% 100%;
}
.bot-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .bot-panel:not([hidden]) { animation: bot-pop .22s cubic-bezier(.2,.7,.2,1); } }
@keyframes bot-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.bot-head { display: flex; align-items: center; gap: 11px; padding: 14px 12px 14px 16px; background: var(--stage); color: var(--stage-text); }
.bot-head div { display: grid; flex: 1; line-height: 1.2; }
.bot-head strong { font-size: 14.5px; }
.bot-head small { color: var(--stage-muted); font-size: 12px; margin-top: 2px; }
.bot-avatar { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 50%; background: #23232c; }
.bot-avatar i { width: 6px; height: 6px; border-radius: 50%; background: #f4c76b; }
.bot-avatar i:nth-child(2) { background: #e5484d; }
.bot-avatar i:nth-child(3) { background: #5fd38d; }
@media (prefers-reduced-motion: no-preference) {
  .bot-avatar i { animation: bot-dot 1.4s ease-in-out infinite; }
  .bot-avatar i:nth-child(2) { animation-delay: .15s; }
  .bot-avatar i:nth-child(3) { animation-delay: .3s; }
}
@keyframes bot-dot { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -4px; } }
.bot-close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.bot-close:hover { background: var(--stage-2); }
.bot-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.bot-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--paper); }
.bot-msg { max-width: 88%; margin: 0; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.bot-msg-me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--cue); border-color: var(--cue); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .bot-msg { animation: hero-in .3s cubic-bezier(.2,.7,.2,1) both; } }
.bot-again { align-self: flex-start; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--cue); font: 650 13px/1.2 var(--body); cursor: pointer; }
.bot-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; background: var(--paper); }
.bot-choices[hidden] { display: none; }
.bot-choices button { padding: 9px 13px; border: 1px solid #c7d4f6; border-radius: 999px; background: #fff; color: var(--cue); font: 650 13.5px/1.2 var(--body); cursor: pointer; transition: background .15s ease; }
.bot-choices button:hover, .bot-again:hover { background: var(--cue-soft); }
.bot-choices button:focus-visible, .bot-again:focus-visible, .bot-close:focus-visible, .bot-form :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bot-form { display: grid; gap: 6px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.bot-form[hidden] { display: none; }
.bot-form label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.bot-form textarea, .bot-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 14px/1.4 var(--body); }
.bot-form textarea { resize: vertical; min-height: 84px; max-height: 200px; }
.bot-form input { margin-bottom: 6px; }
.bot-form .bot-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bot-error { margin: 0 0 4px; color: #b42318; font-size: 13px; }

@media (max-width: 760px) {
  .bot { right: 10px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body:has(.lang-hint:not([hidden])) .bot { bottom: calc(134px + env(safe-area-inset-bottom, 0px)); }
  .bot-launch { min-height: 44px; padding: 0 12px; }
  .bot-launch span { display: none; }
  .bot-panel { max-height: calc(100vh - 170px); }
}
@media print { .bot { display: none; } }

/* ---------- Identidad de marca: los tres colores del logo (cian, rosa, amarillo) sobre tinta ---------- */
:root { --brand-cyan: #27d8e8; --brand-pink: #ff3b8d; --brand-yellow: #ffd629; --brand-gradient: linear-gradient(95deg, #27d8e8 0%, #ff3b8d 52%, #ffd629 100%); }

/* Barra de lectura bajo el header (app.js fija --read entre 0 y 1). */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-gradient); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); pointer-events: none; }

/* Títulos de sección: un trazo de marca que se dibuja al aparecer. */
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; border-radius: 4px; background: var(--brand-gradient); transform-origin: 0 50%; }
.js .section-head.reveal-item h2::after { transform: scaleX(0); transition: transform .8s .25s cubic-bezier(.2,.7,.2,1); }
.js .section-head.reveal-item.is-visible h2::after { transform: scaleX(1); }
.closing h2::after { display: none; }

/* Franja de datos: un punto de color por dato. */
.proof-list strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: .12em; background: var(--brand-cyan); }
.proof-list li:nth-child(2) strong::before { background: var(--brand-pink); }
.proof-list li:nth-child(3) strong::before { background: var(--brand-yellow); }
.proof-list li:nth-child(4) strong::before { background: var(--cue); }
.proof-list strong { font-variant-numeric: tabular-nums; }

/* Para quién: tarjetas con filo de color al pasar el cursor. */
.audience-list li { position: relative; }
.audience-list li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
.audience-list li + li::before { left: 24px; }
.audience-list li:hover::before { transform: scaleX(1); }

/* Pasos: el número «salta» cuando entra el paso. */
@keyframes step-pop { 0% { scale: .6; } 60% { scale: 1.12; } 100% { scale: 1; } }
@media (prefers-reduced-motion: no-preference) { .js .step.is-visible .step-n { animation: step-pop .6s .2s cubic-bezier(.2,.7,.2,1) both; } }

/* Preguntas: la respuesta entra suave. */
@media (prefers-reduced-motion: no-preference) { .faq-list details[open] p { animation: hero-in .35s cubic-bezier(.2,.7,.2,1) both; } }

/* Cierre: luces de la marca que se mueven despacio detrás del titular. */
.closing { background: #111117; }
.closing::after {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  background:
    radial-gradient(circle at 28% 38%, rgba(39,216,232,.20), transparent 30%),
    radial-gradient(circle at 72% 62%, rgba(255,59,141,.20), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(255,214,41,.12), transparent 28%);
}
@keyframes closing-drift { from { transform: translate3d(-4%, -2%, 0) rotate(0deg); } to { transform: translate3d(4%, 3%, 0) rotate(8deg); } }
@media (prefers-reduced-motion: no-preference) { .closing::after { animation: closing-drift 16s ease-in-out infinite alternate; } }
.closing .btn-primary { box-shadow: 0 16px 40px -16px rgba(37,99,235,.9); }


.membership-single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.membership-single .plan { padding: clamp(24px, 5vw, 42px); }
.membership-free { max-width: 680px; margin: 24px auto 0; text-align: center; color: var(--muted, #6b7280); line-height: 1.7; }
.membership-pricing .plans-head { align-items: center; }

/* One offer: a free trial first, with the paid membership clearly explained beside it. */
.membership-pricing { position: relative; background: #e9edf6; }
.membership-heading { max-width: 800px; margin: 0 auto 38px; text-align: center; }
.membership-heading .membership-eyebrow { margin: 0 0 14px; color: #3154a5; font-size: 11px; font-weight: 750; letter-spacing: .14em; }
.membership-heading h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.membership-heading > p:last-child { margin: 18px 0 0; color: var(--ink-2); font-size: 18px; }
.membership-offer { display: grid; grid-template-columns: .92fr 1.08fr; max-width: 1040px; margin: auto; border: 1px solid #cbd4e7; border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 64px -36px #23427d70; }
.membership-trial { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 46px); background: radial-gradient(ellipse at 10% 0%, #427bfa 0%, transparent 60%), #153c9b; color: #fff; }
.membership-trial-stamp { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.membership-trial-stamp > span:first-child { font-family: var(--display); font-weight: 750; font-size: 100px; line-height: .85; letter-spacing: -.08em; }
.membership-trial-stamp > span:last-child { max-width: 95px; padding-left: 18px; border-left: 1px solid #ffffff60; font-size: 12px; font-weight: 750; line-height: 1.55; letter-spacing: .1em; }
.membership-trial h3 { max-width: 340px; font-size: clamp(27px, 3vw, 37px); line-height: 1.12; letter-spacing: -.03em; }
.membership-trial-copy { margin: 18px 0 24px; color: #e5edff; font-size: 16px; line-height: 1.65; }
.membership-reassurance { display: grid; gap: 12px; padding: 0; margin: 0 0 32px; list-style: none; font-size: 14px; }
.membership-reassurance li, .membership-features li { display: flex; align-items: flex-start; gap: 11px; }
.membership-reassurance li > span { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff20; font-size: 12px; font-weight: 700; }
.membership-trial .membership-start { margin-top: auto; min-height: 54px; justify-content: space-between; gap: 12px; background: #fff; color: #173e9b; border: 1px solid #fff; box-shadow: 0 8px 24px -10px #061b54; text-align: left; }
.membership-trial .membership-start:hover { background: #eaf0ff; border-color: #eaf0ff; }
.membership-start > span, .membership-checkout > span { font-size: 23px; line-height: 1; }
.membership-offer .membership-paid { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 42px); border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.membership-paid .plan-topline { align-items: center; gap: 12px; }
.membership-paid .plan-topline h3 { display: inline-block; padding: 5px 11px; border-radius: 7px; background: #e8efff; color: #2048a1; font: 750 13px/1.5 var(--body); letter-spacing: .08em; }
.membership-after { color: var(--ink-3); font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.membership-pro-intro { margin: 14px 0 22px; font-size: 18px; font-weight: 600; color: var(--ink); }
.membership-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.membership-controls .interval, .membership-controls .currency { box-shadow: none; background: #f0f2f7; border-color: #e0e4ed; padding: 3px; }
.membership-controls button { min-height: 38px; padding: 0 13px; font-size: 12px; }
.membership-controls .interval button[aria-pressed="true"] { background: #fff; color: #173e9b; box-shadow: 0 1px 4px #1d306622; }
.membership-controls .currency button[aria-pressed="true"] { background: #203456; color: #fff; }
.membership-price-block { padding: 25px 0 22px; border-bottom: 1px solid #e2e6ef; }
.membership-price-block .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin: 0; color: var(--ink); }
.membership-price-block .amount { font-family: var(--display); font-size: clamp(60px, 6vw, 82px); font-weight: 750; line-height: 1; letter-spacing: -.065em; }
.membership-price-block .per { color: var(--ink-2); font-size: 14px; font-weight: 550; }
.membership-tax { margin: 13px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.membership-price-block .price-note { display: inline-block; margin: 12px 0 0; padding: 5px 9px; border-radius: 6px; color: #16613e; background: #e7f5ed; font-size: 12px; font-weight: 650; }
.membership-price-block .price-note[hidden] { display: none; }
.membership-paid .membership-features { display: grid; gap: 12px; list-style: none; margin: 23px 0 26px; padding: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.membership-features li > span { color: #2563eb; flex: 0 0 14px; font-weight: 750; }
.membership-paid .membership-checkout { margin-top: auto; justify-content: space-between; min-height: 48px; padding: 11px 16px; border-color: #c6d5f6; background: #f0f5ff; color: #2048a1; }
.membership-paid .membership-checkout:hover { background: #e2ecff; border-color: #8eacec; }
.membership-year-hint { margin: 10px 0 0; text-align: center; color: var(--ink-3); font-size: 11px; }
.membership-pricing .membership-free { display: flex; align-items: flex-start; gap: 13px; max-width: 850px; margin: 26px auto 0; padding: 0 14px; text-align: left; color: var(--ink-2); }
.membership-keep-icon { display: inline-grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #bbc9e4; border-radius: 50%; color: #3154a5; }
.membership-free h3 { font: 650 14px/1.5 var(--body); letter-spacing: 0; }
.membership-free p { margin: 5px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.75; }
@media (max-width: 760px) {
  .membership-heading { margin-bottom: 26px; text-align: left; }
  .membership-heading .membership-eyebrow { font-size: 10px; letter-spacing: .1em; }
  .membership-heading > p:last-child { font-size: 16px; }
  .membership-offer { grid-template-columns: minmax(0, 1fr); max-width: 520px; border-radius: 20px; }
  .membership-trial { padding: 30px 25px; }
  .membership-trial-stamp { margin-bottom: 22px; }
  .membership-trial-stamp > span:first-child { font-size: 78px; }
  .membership-trial h3 { max-width: none; font-size: 30px; }
  .membership-trial-copy { margin: 14px 0 20px; font-size: 14px; }
  .membership-reassurance { gap: 10px; margin-bottom: 25px; }
  .membership-offer .membership-paid { padding: 28px 25px; }
  .membership-controls { gap: 10px; }
  .membership-controls button { padding: 0 11px; }
  .membership-price-block .amount { font-size: 68px; }
  .membership-pricing .membership-free { padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .membership-start, .membership-checkout { transition: background .18s, box-shadow .18s; }
}
.membership-paid .membership-features { border-top: 0; }
.membership-features li { padding-left: 0; }
.membership-features li::before { content: none; }
.membership-trial-stamp > span:last-child { text-transform: uppercase; }

.membership-in-view .mobile-cta { visibility: hidden; pointer-events: none; }
.membership-start svg, .membership-checkout svg { flex-shrink: 0; }
