@font-face {
  font-family: Bricolage;
  src: url("assets/BricolageGrotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("assets/Figtree.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/* ---------- tema claro (predeterminado) y oscuro ---------- */
:root {
  color-scheme: light;
  --bg: #f4f5fa;
  --bg-2: #eceefa;
  --band-1: #ffffff;
  --surface: #ffffff;
  --ink: #142142;
  --ink-2: #2b3658;
  --muted: #586381;
  --line: #e3e6f0;

  --violet: #5b45e0;
  --violet-600: #4a35c9;
  --violet-fg: #4a35c9;
  --violet-50: #f0edff;
  --violet-100: #e2dcff;
  --teal: #0e9f96;
  --teal-ink: #07675f;
  --teal-50: #e3f6f3;
  --orange: #ff7a2f;
  --orange-ink: #b8460f;
  --orange-strong: #cc440b;
  --amber-50: #fff3e3;
  --yellow: #ffc94a;
  --star-edge: #e6a700;

  /* las ilustraciones se dibujaron para fondo claro: sus recuadros se quedan claros en ambos temas */
  --plate-violet: #ece8ff;
  --plate-teal: #e1f5f2;
  --plate-amber: #fff1de;

  --band-violet: linear-gradient(180deg, #f0edff, #f4f5fa);
  --toast-bg: #142142;
  --th-bg: #142142;
  --th-fg: #ffffff;

  --e1: 0 1px 2px rgb(20 33 66 / 0.06), 0 1px 1px rgb(20 33 66 / 0.04);
  --e2: 0 1px 2px rgb(20 33 66 / 0.05), 0 10px 24px -10px rgb(20 33 66 / 0.16);
  --e3: 0 2px 4px rgb(20 33 66 / 0.05), 0 24px 48px -20px rgb(20 33 66 / 0.24);

  --display: Bricolage, Figtree, system-ui, sans-serif;
  --body: Figtree, system-ui, sans-serif;

  --bar-h: 68px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --quick: 150ms;
  --fast: 250ms;

  /* variables de movimiento: pestañas y acordeón */
  --tabs-dur: 250ms;
  --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --acc-expand: 250ms;
  --acc-collapse: 250ms;
  --acc-chevron: 250ms;
  --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: var(--body);
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-2: #161d3a;
  --band-1: #10172e;
  --surface: #182142;
  --ink: #eef0fb;
  --ink-2: #cfd4ee;
  --muted: #a4adcc;
  --line: rgb(255 255 255 / 0.1);

  --violet: #6f5cf2;
  --violet-600: #8070ff;
  --violet-fg: #b3a8ff;
  --violet-50: rgb(139 124 255 / 0.15);
  --violet-100: rgb(139 124 255 / 0.3);
  --teal: #14b8ac;
  --teal-ink: #63dccf;
  --teal-50: rgb(20 184 172 / 0.16);
  --orange-ink: #ffb27e;
  --amber-50: rgb(255 122 47 / 0.15);

  --rest: rgb(255 255 255 / 0.1);
  --band-violet: linear-gradient(180deg, #171a3d, #0b1020);
  --toast-bg: #2c3770;
  --th-bg: #222c57;
  --th-fg: #eef0fb;

  --e1: 0 0 0 1px rgb(255 255 255 / 0.06);
  --e2: 0 0 0 1px rgb(255 255 255 / 0.07), 0 14px 30px -14px rgb(0 0 0 / 0.65);
  --e3: 0 0 0 1px rgb(255 255 255 / 0.08), 0 28px 56px -22px rgb(0 0 0 / 0.75);
}
html.theme-swap, html.theme-swap *, html.theme-swap *::before, html.theme-swap *::after {
  transition: background-color 250ms, color 250ms, border-color 250ms, box-shadow 250ms, fill 250ms, stroke 250ms !important;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; color: var(--ink); }
p, li, dd { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet-fg); outline-offset: 3px; border-radius: 6px; }

.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 700; text-decoration: none; transition: top var(--fast) var(--ease-out); }
.skip:focus { top: 16px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e2); }
.kinetic em, .kinetic .accent { font-style: normal; color: var(--violet-fg); }
.word, .char { display: inline-block; will-change: transform; }

/* ---------- botones ---------- */
.btn {
  --press: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: scale(var(--press));
  transition: transform var(--quick) var(--ease-out), background-color var(--quick) var(--ease-out), box-shadow var(--fast) var(--ease-out);
}
.btn:active { --press: 0.96; }
.btn .ico { transition: transform var(--fast) var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { color: #fff; background: var(--violet); box-shadow: 0 1px 2px rgb(74 53 201 / 0.3), 0 8px 18px -8px rgb(74 53 201 / 0.55); }
.btn-primary:hover { background: var(--violet-600); }
.btn-outline { color: var(--violet-fg); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--violet-100), var(--e1); }
.btn-outline:hover { background: var(--violet-50); }
.btn-light { color: #4a35c9; background: #fff; box-shadow: var(--e2); }
.btn-light:hover { background: #f0edff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 12px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.08rem; }

.otroColor { color:blue; background: #fff; box-shadow: var(--e2); }
.otroColor:hover { background: #f0edff; }


/* ---------- barra superior ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgb(20 33 66 / 0.4); }
:root[data-theme="dark"] .topbar { box-shadow: 0 1px 0 var(--line), 0 10px 24px -16px rgb(0 0 0 / 0.8); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; padding: 10px 11px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color var(--quick) var(--ease-out), background-color var(--quick) var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--violet-fg); transform: scaleX(0); transition: transform var(--fast) var(--ease-out); }
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-links a.is-current { color: var(--violet-fg); }
.nav-links a.is-current::after { transform: scaleX(1); }
.topbar-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--violet), var(--teal) 60%, var(--orange)); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.cta-short { display: none; }
.theme-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; transition: background-color var(--quick) var(--ease-out), transform var(--quick) var(--ease-out); }
.theme-btn:hover { background: var(--bg-2); }
.theme-btn:active { transform: scale(0.94); }
.theme-btn .ico { width: 1.35em; height: 1.35em; }
.theme-btn .t-sun { display: none; }
:root[data-theme="dark"] .theme-btn .t-moon { display: none; }
:root[data-theme="dark"] .theme-btn .t-sun { display: block; }
.menu-btn { display: none; place-items: center; align-content: center; gap: 6px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--fast) var(--ease-out); }
.topbar.is-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.topbar.is-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1140px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .theme-btn { margin-left: auto; }
  .nav-links { position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 18px; background: var(--surface); box-shadow: 0 20px 30px -20px rgb(20 33 66 / 0.35); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--fast) var(--ease-out), transform var(--fast) var(--ease-out), visibility 0s linear var(--fast); }
  .topbar.is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a { display: flex; align-items: center; min-height: 48px; font-size: 1rem; }
  .nav-links a::after { right: auto; width: 24px; }
}
@media (max-width: 600px) {
  .topbar-inner { gap: 8px; }
  .brand { font-size: 1.02rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .theme-btn, .menu-btn { width: 40px; height: 40px; }
  .topbar-cta { padding: 0 12px; }
}

/* ---------- ilustraciones Lottie ---------- */
.lottie { width: 100%; aspect-ratio: 1; }
.lottie svg { display: block; }
.illus { position: relative; display: grid; place-items: center; padding: clamp(16px, 3vw, 32px); border-radius: var(--r-xl); background: var(--plate-violet); overflow: hidden; }
.illus::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; background: #fff; opacity: 0.75; }
.illus > * { position: relative; }
.illus .lottie { max-width: 440px; }
.illus-teal { background: var(--plate-teal); }
.illus-amber { background: var(--plate-amber); }

/* ---------- portada ---------- */
.hero { position: relative; min-height: 70svh; padding-top: calc(var(--bar-h) + 24px); display: grid; grid-template-rows: 1fr auto; background: radial-gradient(60% 70% at 85% 40%, var(--violet-50), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 88px); padding-bottom: 8px; }
.hero-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; margin-bottom: 18px; max-width: 31em; }
.hb-id { display: contents; }
.hb-id img { grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 12px; box-shadow: var(--e1); }
.hb-id strong { grid-column: 2; grid-row: 1; align-self: end; font-family: var(--display); font-size: 1.32em; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
.hb-desc { grid-column: 2; grid-row: 2; align-self: start; font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 650; line-height: 1.3; color: var(--ink-2); }
.hero-title { font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: 0.96; letter-spacing: -0.035em; font-weight: 780; }
.ht-line { display: block; overflow: clip; padding-bottom: 0.08em; overflow-clip-margin: 0.1em; }
.ht-split { display: inline-block; }
.rotor { position: relative; display: inline-grid; vertical-align: top; color: var(--violet-fg); }
.rotor-word { grid-area: 1 / 1; opacity: 0; transform: translateY(0.6em); transition: opacity 450ms var(--ease-out), transform 550ms var(--ease-out); }
.rotor-word.is-on { opacity: 1; transform: none; }
.rotor-word.is-out { opacity: 0; transform: translateY(-0.5em); transition-duration: 300ms; }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--muted); }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* columna derecha: la ilustración arriba y el panel de asistencia debajo, sin invadir el texto */
.hero-art { position: relative; display: grid; justify-items: center; align-content: center; min-width: 0; }
.hero-stage { position: relative; width: min(400px, 100%); }
.blob-bg { position: absolute; inset: 4% 0 0; border-radius: 52% 48% 44% 56% / 46% 54% 46% 54%; background: linear-gradient(150deg, var(--plate-violet), #f8f6ff); }
.lottie-hero { position: relative; width: 100%; }
.pc-shift { right: -4%; top: 2%; }
.hero-live { position: relative; z-index: 2; width: min(380px, 100%); margin-top: -24px; }
.today { padding: 14px; font-size: 0.8rem; }
.pc-pause { right: -14px; bottom: -22px; }
.art-note { display: block; margin-top: 30px; font-size: 0.74rem; color: var(--muted); text-align: center; }
.today-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 0.74rem; }
.today-head strong { font-family: var(--display); font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.today-head strong span { font-size: 0.7em; color: var(--muted); }
.feed-row { display: grid; grid-template-columns: 1.3fr 0.8fr auto auto; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; }
.feed-row:nth-child(2) { background: var(--violet-50); }
.feed-row span:not(.tag) { color: var(--muted); }
.feed-row em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.today-total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.today-total strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.tag-k { background: var(--teal-50); color: var(--teal-ink); }
.tag-w { background: var(--violet-50); color: var(--violet-fg); }
.tag-r { background: var(--amber-50); color: var(--orange-ink); }
.pill-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; font-size: 0.8rem; white-space: nowrap; }
.pill-card small { display: block; color: var(--muted); font-size: 0.72rem; }
.pill-card strong { display: block; font-variant-numeric: tabular-nums; }
.pc-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--violet-50); color: var(--violet-fg); }
.pc-warm { background: var(--orange-strong); color: #fff; }

/* cinta de funciones: dos grupos idénticos que se repiten hasta cubrir la pantalla */
.ticker { overflow: hidden; padding: 16px 0 20px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-dur, 50s) linear infinite; }
.ticker-group { display: flex; flex: none; gap: 12px; padding-right: 12px; }
.ticker-group span { padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--e1); font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.ticker-group span:nth-child(4n + 1) { color: var(--violet-fg); }
.ticker-group span:nth-child(4n + 3) { color: var(--teal-ink); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { padding: clamp(72px, 9vw, 72px) 0; }
.band-white { background: var(--band-1); }
.band-grey { background: var(--bg); }
.band-violet { background: var(--band-violet); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--violet-50); color: var(--violet-fg); font-size: 0.82rem; font-weight: 700; }
.section-head { max-width: 640px; }
.section-head.center { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.section-head h2, .faq h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 760; }
.section-head p { margin-top: 18px; font-size: clamp(1.03rem, 1.3vw, 1.14rem); color: var(--muted); }
.head-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.head-split.reverse .illus { order: -1; }
.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { flex: none; width: 34px; height: 34px; padding: 7px; margin-top: -4px; border-radius: 10px; background: var(--violet-50); color: var(--violet-fg); }

/* ---------- la ley ---------- */
.law-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { display: grid; align-content: start; gap: 8px; padding: 24px; }
.stat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-50); color: var(--violet-fg); }
.stat strong { margin-top: 6px; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.stat span:last-child { color: var(--muted); font-size: 0.95rem; }
.stat-hot { background: var(--orange-strong); color: #fff; }
.stat-hot strong { color: #fff; }
.stat-hot .stat-ico { background: rgb(255 255 255 / 0.2); color: #fff; }
.stat-hot span:last-child { color: rgb(255 255 255 / 0.94); }

.law-explorer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.law-tabs { display: grid; grid-auto-rows: 1fr; gap: 8px; }
.law-tab { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding: 14px 18px; border: 0; border-radius: var(--r-md); background: var(--bg); text-align: left; color: var(--ink); cursor: pointer; transition: background-color var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), color var(--fast) var(--ease-out); }
.law-tab:hover { background: var(--bg-2); }
.law-tab[aria-selected="true"] { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -12px rgb(74 53 201 / 0.6); }
.lt-n { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--violet-fg); font-variant-numeric: tabular-nums; }
.law-tab[aria-selected="true"] .lt-n { background: rgb(255 255 255 / 0.18); color: #fff; }
.law-tab strong { display: block; font-size: 1.02rem; }
.law-tab small { display: block; font-size: 0.85rem; color: var(--muted); }
.law-tab[aria-selected="true"] small { color: rgb(255 255 255 / 0.88); }
.law-panels { display: grid; grid-column: span 2; min-width: 0; }
.law-panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; }
.law-panel[hidden] { display: none; }
.law-panel.is-entering { animation: panel-in 400ms var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.lp-law, .lp-fix { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.lp-law { background: var(--amber-50); }
.lp-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.lp-law .lp-label { color: var(--orange-ink); }
.lp-quote { margin-top: 14px; font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.015em; font-weight: 650; color: var(--ink); }
.lp-ref { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.lp-fix .ticks { margin-top: 16px; }
.more { margin-top: auto; padding-top: 20px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--violet-fg); text-decoration: none; }
.more:hover { text-decoration: underline; }

.sim { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 20px; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--r-xl); }
.sim h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; }
.sim-head > p { margin-top: 10px; color: var(--muted); }
.sim-control { display: flex; justify-content: space-between; align-items: baseline; margin-top: 26px; font-weight: 700; }
.sim-control output { font-family: var(--display); font-size: 2.2rem; letter-spacing: -0.03em; color: var(--violet-fg); font-variant-numeric: tabular-nums; }
.sim input[type="range"] { width: 100%; height: 44px; margin: 4px 0 0; accent-color: var(--violet); cursor: pointer; }
.sim-years { display: grid; gap: 12px; }
.sim-years li { display: grid; grid-template-columns: 48px 1fr 80px; grid-template-areas: "y b v" ". d d"; align-items: center; column-gap: 12px; row-gap: 2px; font-variant-numeric: tabular-nums; }
.sy { grid-area: y; font-weight: 700; color: var(--muted); }
.sb { grid-area: b; position: relative; height: 28px; border-radius: 8px; background: var(--bg); }
.sb-in { position: absolute; left: 0; top: 0; bottom: 0; width: var(--in); border-radius: 8px; background: var(--teal); transition: width 450ms var(--ease-out); }
.is-over .sb-in { border-radius: 8px 0 0 8px; }
.sb-over { position: absolute; left: var(--max); top: 0; bottom: 0; width: var(--over); border-radius: 0 8px 8px 0; background: var(--orange); transition: width 450ms var(--ease-out); }
.sb-max { position: absolute; left: var(--max); top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.sv { grid-area: v; text-align: right; font-weight: 700; font-size: 0.9rem; }
.sd { grid-area: d; font-size: 0.82rem; font-weight: 600; color: var(--teal-ink); }
.is-over .sd { color: var(--orange-ink); }
.sim-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sources a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--bg); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background-color var(--quick) var(--ease-out); }
.sources a:hover { background: var(--bg-2); }
.law-cut { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

/* ---------- formas de marcar ---------- */
.tabs-row { display: flex; justify-content: center; }
.t-tabs { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 16px; background: var(--surface); box-shadow: var(--e2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.t-tab { position: relative; appearance: none; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; color: var(--muted); cursor: pointer; border-radius: 12px; z-index: 1; font-weight: 650; white-space: nowrap; transition: color var(--tabs-dur) var(--tabs-ease); }
.t-tab:not([aria-selected="true"]):hover { color: var(--ink); }
.t-tab[aria-selected="true"] { color: #fff; }
.t-tabs-pill { position: absolute; top: 5px; left: 0; height: 44px; width: 0; background: var(--violet); border-radius: 12px; transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease); will-change: transform, width; z-index: 0; pointer-events: none; }
.ways-panels { display: grid; margin-top: 32px; }
.way-panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); }
.way-panel[hidden] { display: none; }
.way-panel.is-entering { animation: panel-in 400ms var(--ease-out) both; }
.way-copy { padding: clamp(4px, 1.5vw, 16px); }
.way-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 720; }
.way-copy > p { margin-top: 12px; color: var(--muted); max-width: 32em; }
.way-panel .illus { min-height: 380px; }
.mini-robot { width: min(300px, 100%); padding: 18px; }
.mini-robot { background: var(--surface); color: var(--ink); }
.mr-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mr-head img { border-radius: 6px; }
.mr-state { margin-top: 20px; color: var(--orange-ink); font-weight: 600; font-size: 0.92rem; }
.mr-timer { font-family: var(--display); font-size: 2.8rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mr-actions { margin-top: 16px; }
.mr-btn { display: grid; place-items: center; height: 46px; border-radius: 12px; background: var(--orange-strong); color: #fff; font-weight: 700; }

/* ---------- turnos ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 0.92rem; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 5px; }
.sw-m, .s.m { background: var(--teal); }
.sw-v, .s.v { background: var(--orange); }
.sw-n, .s.n { background: var(--violet); }
.sw-d, .s.d { background: var(--rest, var(--bg-2)); }
.roster { position: relative; padding: clamp(16px, 2.5vw, 28px); }
.roster-head, .roster-row { display: grid; grid-template-columns: 72px repeat(7, 1fr); gap: 8px; align-items: center; }
.roster-head { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 6px; }
.roster-row { margin-top: 8px; }
.roster-row b { font-size: 0.92rem; }
.s { display: block; height: 42px; border-radius: 10px; transform-origin: left center; }
.roster-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.roster-state { padding: 4px 12px; border-radius: 999px; background: var(--bg); font-size: 0.85rem; font-weight: 700; transition: background-color 300ms, color 300ms; }
.roster-state.is-live { background: var(--teal-50); color: var(--teal-ink); }
.roster-publish { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 12px; background: var(--violet); color: #fff; font-weight: 700; font-size: 0.9rem; }
.toast { position: absolute; left: 24px; top: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--toast-bg); color: #fff; box-shadow: var(--e3); }
.toast .ico { color: var(--yellow); }
.toast strong { display: block; font-size: 0.9rem; }
.toast small { display: block; font-size: 0.8rem; color: rgb(255 255 255 / 0.8); }
.roster .art-note { position: absolute; right: 24px; bottom: -26px; margin: 0; }

/* ---------- plataforma ---------- */
.parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.parts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--e1); font-size: 0.9rem; font-weight: 650; }
.parts .ico { color: var(--violet-fg); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts > div { padding: 22px; }
.facts dt { display: grid; gap: 12px; font-weight: 700; }
.f-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-50); color: var(--violet-fg); }
.facts dd { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ---------- revisión ---------- */
.review-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.review-grid .card { background: var(--bg); box-shadow: none; }
.diff { grid-column: span 4; padding: 28px; }
.request { grid-column: span 2; padding: 24px; display: flex; flex-direction: column; }
.totals { grid-column: span 2; padding: 24px; }
.review-grid .export { grid-column: span 4; padding: 28px; background: var(--violet); color: #fff; }
.diff-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.diff-track { position: relative; height: 120px; margin-top: 10px; border-radius: 14px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 5%); }
.diff-plan, .diff-real { position: absolute; top: 38%; left: var(--at); translate: -50% -50%; display: grid; justify-items: center; padding: 8px 14px; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.diff-plan small, .diff-real small { font-family: var(--body); font-size: 0.72rem; font-weight: 600; }
.diff-plan { background: var(--surface); box-shadow: var(--e1); }
.diff-real { background: var(--orange-strong); color: #fff; box-shadow: 0 8px 16px -8px rgb(184 70 15 / 0.6); }
.diff-gap { position: absolute; top: 84%; left: var(--from); width: calc(var(--to) - var(--from)); height: 6px; translate: 0 -50%; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 10px); transform-origin: left; }
.diff-label { margin-top: 16px; color: var(--muted); }
.diff-label strong { color: var(--orange-ink); font-size: 1.1rem; }
.req-head, .ex-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.req-head .ico { color: var(--violet-fg); }
.req-body { margin-top: 14px; font-size: 1.02rem; }
.req-foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--muted); }
.req-state { display: inline-grid; }
.rs { grid-area: 1 / 1; padding: 4px 12px; border-radius: 999px; font-weight: 700; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.rs-p { background: var(--amber-50); color: var(--orange-ink); }
.rs-a { background: var(--teal-50); color: var(--teal-ink); opacity: 0; transform: translateY(6px); }
.req-state[data-state="approved"] .rs-p { opacity: 0; transform: translateY(-6px); }
.req-state[data-state="approved"] .rs-a { opacity: 1; transform: none; }
.tot-head { font-weight: 700; }
.tot-num { margin-top: 6px; font-family: var(--display); font-size: 3.4rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tot-num small { font-size: 0.4em; color: var(--muted); }
.tot-bar { position: relative; height: 10px; margin-top: 18px; border-radius: 10px; background: var(--bg-2); }
.tot-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--teal); transform-origin: left; transform: scaleX(0.958); }
.tot-limit { position: absolute; top: -5px; bottom: -5px; left: 95.8%; width: 2px; background: var(--orange); }
.tot-note { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.export .f-ico { background: rgb(255 255 255 / 0.18); color: #fff; }
.export p { margin-top: 14px; color: rgb(255 255 255 / 0.9); max-width: 46em; }

/* ---------- tickets ---------- */
.tk-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tk-kind { display: grid; gap: 10px; align-content: start; padding: 24px; }
.tk-kind h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.tk-kind p { color: var(--muted); }
.tk-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.tk { position: relative; display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) 40px; }
.tk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tk-folio { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--violet-fg); font-variant-numeric: tabular-nums; }
.tk-prio { padding: 3px 10px; border-radius: 999px; background: var(--amber-50); color: var(--orange-ink); font-size: 0.78rem; font-weight: 700; }
.tk-state { margin-left: auto; display: inline-grid; }
.ts { grid-area: 1 / 1; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.ts-new { background: var(--violet-50); color: var(--violet-fg); }
.ts-work { background: var(--amber-50); color: var(--orange-ink); }
.ts-done { background: var(--teal-50); color: var(--teal-ink); }
.tk-state[data-state="new"] .ts-new, .tk-state[data-state="work"] .ts-work, .tk-state[data-state="done"] .ts-done { opacity: 1; transform: none; }
.tk-title { margin-top: 14px; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; }
.tk-meta { margin-top: 4px; font-size: 0.88rem; color: var(--muted); }
.tk-sla { display: grid; gap: 10px; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--bg); }
.tk-sla > div { display: grid; grid-template-columns: 124px 1fr auto; align-items: center; gap: 12px; font-size: 0.84rem; }
.tk-sla span { color: var(--muted); }
.tk-sla em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: var(--teal); transform-origin: left; }
.tk-thread { display: grid; gap: 10px; margin-top: 18px; }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 90%; font-size: 0.92rem; }
.msg b { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 0.76rem; color: var(--muted); }
.msg-in { justify-self: start; background: var(--bg); border-top-left-radius: 4px; }
.msg-note { justify-self: end; background: var(--amber-50); box-shadow: inset 0 0 0 1px var(--orange); border-radius: 14px; }
.msg-note b { color: var(--orange-ink); }
.msg-out { justify-self: end; background: var(--violet-50); border-bottom-right-radius: 4px; }
.tk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 18px; }
.tk-stars { display: inline-flex; gap: 2px; }
.tk-stars .ico { width: 22px; height: 22px; fill: var(--yellow); stroke: var(--star-edge); stroke-width: 1.4; }
.tk-rate-text { font-size: 0.85rem; color: var(--muted); }
.tk .art-note { position: absolute; right: 20px; bottom: 12px; margin: 0; }
.tk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.tk-facts li { display: flex; gap: 14px; padding: 18px; }
.tk-facts h3 { font-family: var(--body); font-size: 1rem; letter-spacing: -0.01em; }
.tk-facts p { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.tk-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; padding: 18px 22px; }
.tk-note p { flex: 1 1 320px; color: var(--ink-2); }

/* ---------- planes ---------- */
.plan-rows { overflow: hidden; }
.plan-row { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); align-items: center; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: background-color var(--quick) var(--ease-out); }
.plan-row:not(.plan-th):hover { background: var(--bg); }
.plan-th { border-top: 0; background: var(--th-bg); color: var(--th-fg); font-size: 0.82rem; font-weight: 700; }
.plan-row [role="rowheader"] { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.plan-row [role="cell"] { font-weight: 600; }
.plan-row .no { color: var(--muted); }
.plan-hot { background: var(--violet-50); }
.plan-hot [role="rowheader"] { color: var(--violet-fg); }
.plans-note { display: grid; gap: 8px; margin-top: 20px; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); max-width: 60em; }
.plans-note li { position: relative; padding-left: 20px; }
.plans-note li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.plans-note b { color: var(--ink); }

/* ---------- preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq .t-acc { background: var(--bg); box-shadow: none; border-radius: var(--r-md); }
.t-acc h3 { font-family: var(--body); }
.t-acc-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px; border: 0; background: none; text-align: left; font-weight: 700; font-size: 1.04rem; cursor: pointer; border-radius: inherit; }
.t-acc-chevron { width: 18px; height: 18px; flex: none; color: var(--violet-fg); transition: transform var(--acc-chevron) var(--acc-ease); }
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron { transform: scaleY(-1); }
.t-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--acc-collapse) var(--acc-ease); }
.t-acc[data-open="true"] .t-acc-panel { grid-template-rows: 1fr; transition-duration: var(--acc-expand); }
.t-acc-panel-inner { overflow: hidden; min-height: 0; }
.t-acc-panel-inner p { padding: 0 20px 20px; color: var(--muted); max-width: 60ch; }

/* ---------- cierre ---------- */
.closing { padding: clamp(48px, 7vw, 96px) 0; background: var(--band-1); }
.closing-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--violet); box-shadow: 0 30px 60px -30px rgb(74 53 201 / 0.6); }
.closing-title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 780; color: #fff; }
.closing-title em, .closing-title .accent { color: var(--yellow); }
.closing p { margin-top: 18px; max-width: 32em; color: rgb(255 255 255 / 0.9); font-size: 1.08rem; }
.closing .btn { margin-top: 28px; }
.closing-art { padding: 12px; border-radius: var(--r-lg); background: #fff; }
.closing-art .lottie { aspect-ratio: 4 / 3; }

.footer { padding: 28px 0 36px; background: var(--band-1); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-inner span:last-child { margin-left: auto; }
.credits { margin-top: 8px; font-size: 0.8rem; }
.copyright { margin-top: 14px; font-size: 0.82rem; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .tk-demo { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid, .head-split, .way-panel, .faq-grid, .law-explorer, .sim, .closing-inner, .tk-kinds { grid-template-columns: 1fr; }
  .head-split.reverse .illus { order: 0; }
  .law-stats { grid-template-columns: 1fr; }
  .law-panels { grid-column: auto; }
  .law-tabs { grid-template-columns: 1fr 1fr; }
  .law-tab { min-height: 64px; padding: 12px 14px; gap: 10px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .review-grid > *, .review-grid .export { grid-column: span 6; }
  .head-split .illus { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--bar-h) + 24px); }
  .pc-shift { display: none; }
  .pc-pause { right: 6px; }
  .today-head { flex-wrap: wrap; }
  .section-head h2, .faq h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .law-tabs { grid-template-columns: 1fr; }
  .law-panel { grid-template-columns: 1fr; }
  .sim-years li { grid-template-columns: 40px 1fr 66px; column-gap: 8px; }
  .sv { font-size: 0.8rem; }
  .way-panel .illus { min-height: 0; }
  .facts, .tk-facts { grid-template-columns: 1fr; }
  .tk-sla > div { grid-template-columns: 1fr auto; }
  .tk-sla .bar { grid-column: 1 / -1; order: 3; }
  .roster { padding: 14px; }
  .roster-head, .roster-row { grid-template-columns: 44px repeat(7, 1fr); gap: 4px; }
  .s { height: 30px; border-radius: 7px; }
  .toast { left: 8px; }
  .plan-row { grid-template-columns: 1.1fr repeat(4, 1fr); padding: 14px; gap: 6px; font-size: 0.85rem; }
  .plan-row [role="rowheader"] { font-size: 0.95rem; }
  .plan-th { font-size: 0.68rem; }
  .footer-inner span:last-child { margin-left: 0; }
  .t-tab { padding: 0 12px; font-size: 0.88rem; }
  .t-tab .ico { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker { mask-image: none; }
  .ticker-track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; }
  .ticker-group:nth-child(2) { display: none; }
  .ticker-group { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .t-tabs-pill, .t-tab, .law-tab, .nav-links, .rotor-word, .sb-in, .sb-over, .t-acc-panel, .t-acc-chevron, .ts { transition: none !important; }
  .way-panel.is-entering, .law-panel.is-entering { animation: none; }
}

/* ---------- móvil: textos centrados y espacios parejos ---------- */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .eyebrow { display: flex; width: fit-content; margin-inline: auto; }
  .section-head, .faq-grid > div:first-child, .sim-head, .closing-copy { text-align: center; }
  .section-head p, .sim-head > p { margin-inline: auto; text-wrap: pretty; }
  .head-split { gap: 28px; margin-bottom: 32px; }

  /* portada */
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; text-wrap: pretty; }
  .hero-actions { margin-inline: auto; }

  /* listas con icono: el bloque se centra y el texto se lee a la izquierda */
  .ticks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .parts, .legend, .sources { justify-content: center; }

  /* la ley */
  .stat { justify-items: center; text-align: center; }
  .lp-law, .lp-fix { align-items: center; text-align: center; }
  .more { align-self: center; }
  .law-cut { text-align: center; }

  /* formas de marcar */
  .way-copy { text-align: center; }
  .way-copy > p { margin-inline: auto; text-wrap: pretty; }

  /* tarjetas de plataforma y tickets */
  .facts > div { text-align: center; }
  .facts dt { justify-items: center; }
  .tk-kind { justify-items: center; text-align: center; }
  .tk-facts { grid-auto-rows: auto; gap: 12px; }
  .tk-note { justify-content: center; text-align: center; }
  .tk-note p { flex-basis: 100%; }

  /* cierre y pie */
  .closing p { margin-inline: auto; text-wrap: pretty; }
  .closing-copy { display: grid; justify-items: center; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; }
  .footer-inner span:last-child { margin-left: 0; }
  .copyright, .credits { text-align: center; }

  /* pestañas de formas de marcar: ocupan todo el ancho */
  .t-tabs { display: flex; width: 100%; overflow: visible; }
  .t-tab { flex: 1 1 0; justify-content: center; padding: 0 6px; font-size: 0.84rem; line-height: 1.15; text-align: center; }

  /* planes: cada fila es una tarjeta con sus datos rotulados */
  .plan-th { display: none; }
  .plan-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 18px; font-size: 1rem; }
  .plan-row [role="rowheader"] { grid-column: 1 / -1; font-size: 1.15rem; }
  .plan-row [role="cell"]::before { content: attr(data-l); display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 600; color: var(--muted); }

  /* marca de la portada: dos cuadros en horizontal (solo móvil, sin recuadro de color) */
  .hero-brand { display: flex; align-items: stretch; gap: 10px; margin-inline: auto; margin-bottom: 22px; }
  .hb-id, .hb-desc { display: flex; align-items: center; padding: 4px 8px; }
  .hb-id { display: none; }
  .hb-id img { width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
  .hb-id strong { font-size: 1.12rem; align-self: auto; }
  .hb-desc { flex: 1; align-self: center; justify-content: center; font-size: 0.92rem; font-weight: 600; text-align: center; text-wrap: balance; }
}

/* ========================================
   BOTÓN VOLVER ARRIBA
======================================== */

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  padding: 0;

  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;

  background: #172554;
  color: #ffffff;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(12px) scale(.92);

  transition:
    opacity .25s ease,
    visibility .25s ease,
    transform .25s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top:hover {
  background: #2563eb;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .25);
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* ========================================
   SCROLLBAR 
======================================== */

/* Chrome, Edge y Safari */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, .35);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, .65);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, .35) transparent;
}
/* ========================================
   BOTÓN ÁMBAR
======================================== */

.btn-amber { color: var(--orange-ink); background: var(--amber-50); box-shadow: inset 0 0 0 1.5px rgb(255 122 47 / 0.4); }
.btn-amber:hover { background: rgb(255 122 47 / 0.22); }
.btn-amber .ico { stroke-width: 2.4; }
.btn-amber:hover .ico { transform: rotate(90deg); }

.btn-blue { color: var(--blue-ink); background: var(--blue-50); box-shadow: inset 0 0 0 1.5px rgba(47, 82, 255, 0.4); }
.btn-blue:hover { background: rgba(68, 47, 255, 0.22); }

/* ========================================
   CHIPS DE LA PLATAFORMA Y MODAL
======================================== */

.parts li { display: block; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.part { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--e1); color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; transition: transform var(--quick) var(--ease-out), box-shadow var(--quick) var(--ease-out), background-color var(--quick) var(--ease-out); }
.part::after { content: "+"; margin-left: 2px; color: var(--violet-fg); font-weight: 700; opacity: 0.7; }
.part:hover { background: var(--violet-50); box-shadow: var(--e2); transform: translateY(-1px); }
.part:active { transform: scale(0.97); }
.part:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
/* chip que abre la subpágina del módulo (en lugar del popup) */
.part-page { text-decoration: none; }
.part-page::after { content: none; }
.part-page .part-go { width: 1em; height: 1em; margin-left: 2px; color: var(--violet-fg); opacity: 0.7; transition: transform var(--fast) var(--ease-out), opacity var(--fast) var(--ease-out); }
.part-page:hover .part-go { opacity: 1; transform: translateX(3px); }

html.modal-open { overflow: hidden; }
.part-modal { width: min(520px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.part-modal::backdrop { background: rgb(16 23 46 / 0.55); backdrop-filter: blur(4px); }
.part-modal[open] { animation: pm-in 260ms var(--ease-out) both; }
.part-modal[open]::backdrop { animation: pm-fade 260ms ease both; }
.part-modal.is-closing { animation: pm-out 160ms ease-in both; }
.part-modal.is-closing::backdrop { animation: pm-fade 160ms ease-in reverse both; }
@keyframes pm-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes pm-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes pm-fade { from { opacity: 0; } }

.pm-card { position: relative; max-height: calc(100svh - 32px); overflow: auto; padding: 32px 32px 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--e3); }
.pm-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg); color: var(--muted); cursor: pointer; transition: background-color var(--quick) var(--ease-out), color var(--quick) var(--ease-out); }
.pm-close:hover { background: var(--violet-50); color: var(--violet-fg); }
.pm-close:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.pm-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--violet-50); color: var(--violet-fg); }
.pm-ico .ico { width: 26px; height: 26px; }
.pm-title { margin-top: 16px; padding-right: 44px; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; }
.pm-lead { margin-top: 10px; color: var(--muted); }
.pm-list { margin-top: 18px; }
.pm-list .ico { width: 26px; height: 26px; padding: 5px; margin-top: -1px; border-radius: 8px; }
.pm-plan { margin-top: 22px; padding: 10px 14px; border-radius: 12px; background: var(--amber-50); color: var(--orange-ink); font-size: 0.88rem; line-height: 1.4; }
.pm-plan b { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .part-modal[open], .part-modal[open]::backdrop, .part-modal.is-closing, .part-modal.is-closing::backdrop { animation: none; }
  .part, .btn-amber .ico { transition: none; }
}

/* ========================================
   MÓVIL: ORDEN DE LA PORTADA
======================================== */

@media (max-width: 640px) {
  .pm-card { padding: 28px 22px 22px; }
  .part { font-size: 0.86rem; }

  /* la ilustración va entre la descripción y el titular */
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy, .hero-art { display: contents; }
  .hero-brand { order: 1; margin-bottom: 8px; }
  .hero-stage { order: 2; width: min(320px, 100%); margin: 0 auto 20px; }
  .hero-title { order: 3; }
  .hero-lead { order: 4; }
  .hero-actions { order: 5; width: 100%; margin-bottom: 36px; }
  .hero-live, .hero .art-note { display: none; }
}

/* ========================================
   ANCHOS MEDIANOS: UNA COLUMNA CON TEXTO CENTRADO
======================================== */

@media (max-width: 960px) {
  .section-head { margin-inline: auto; }
  .eyebrow { display: flex; width: fit-content; margin-inline: auto; }
  .section-head, .faq-grid > div:first-child, .sim-head, .closing-copy { text-align: center; }
  .section-head p, .sim-head > p { margin-inline: auto; text-wrap: pretty; }

  .hero-copy { text-align: center; }
  .hero-brand { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .hero-lead { margin-inline: auto; text-wrap: pretty; }
  .hero-actions { justify-content: center; }

  .ticks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .parts, .legend, .sources { justify-content: center; }

  .stat { justify-items: center; text-align: center; }
  .lp-law, .lp-fix { align-items: center; text-align: center; }
  .more { align-self: center; }
  .law-cut { text-align: center; }

  .way-copy { text-align: center; }
  .way-copy > p { margin-inline: auto; text-wrap: pretty; }

  .facts > div { text-align: center; }
  .facts dt { justify-items: center; }
  .tk-kind { justify-items: center; text-align: center; }
  .tk-note { justify-content: center; text-align: center; }

  .closing p { margin-inline: auto; text-wrap: pretty; }
  .closing-copy { display: grid; justify-items: center; }
}

/* marca de la portada: el logo queda junto al nombre; la descripción sin palabras sueltas */
.hb-id img { align-self: start; }
.hb-desc { text-wrap: balance; }


/* ========================================
   MODALES: ICONO Y TÍTULO EN LA MISMA LÍNEA
======================================== */

.pm-view:not([hidden]) { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.pm-view > * { grid-column: 1 / -1; }
.pm-view > .pm-ico, .pm-view > .pm-title { grid-column: auto; }
.pm-ico { width: 46px; height: 46px; border-radius: 13px; }
.pm-ico .ico { width: 24px; height: 24px; }
.pm-title { margin-top: 0; }
.pm-lead { margin-top: 18px; }

/* ========================================
   TICKETS EN MÓVIL: EJEMPLO EN POPUP
======================================== */

.tk-example-wrap { display: none; }
.pm-card--tk { padding: 56px 14px 14px; }
.pm-card--tk .tk.card { box-shadow: none; background: transparent; padding: 6px 8px 44px; }

   .illus-2 { display: none; }

@media (max-width: 640px) {
  .tickets .head-split .illus { display: none; }
   .illus-2 { display: block; }
  .tk-demo > .tk { display: none; }
  .tk-example-wrap { display: flex; justify-content: center; margin-top: 16px; }
}

/* ========================================
   LA LEY EN MÓVIL: CADA OBLIGACIÓN SE ABRE EN UN POPUP
======================================== */

.pm-card--law { padding: 0; }
.pm-card--law .law-panel { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; }
.pm-card--law .lp-law { padding-top: 52px; }

@media (max-width: 640px) {
  .law-panels { display: none; }
  .law-tab, .law-tab[aria-selected="true"] { padding-right: 58px; background: var(--bg); color: var(--ink); box-shadow: none; }
  .law-tab[aria-selected="true"] small { color: var(--muted); }
  .law-tab[aria-selected="true"] .lt-n { background: var(--surface); color: var(--violet-fg); }

  /* guiño: un círculo con flecha y un destello suave que se repite */
  .law-tab::before, .law-tab::after { content: ""; position: absolute; right: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; }
  .law-tab::after { background: var(--violet-50); animation: tab-ping 3.6s ease-out infinite; }
  .law-tab::before { z-index: 1; background: var(--violet-fg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat; border-radius: 0; }
  .law-tab:nth-child(2)::after { animation-delay: 0.9s; }
  .law-tab:nth-child(3)::after { animation-delay: 1.8s; }
  .law-tab:nth-child(4)::after { animation-delay: 2.7s; }
}

@keyframes tab-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 32%, transparent); }
  45%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--violet) 0%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .law-tab::after { animation: none; }
}

/* ========================================
   ESTRUCTURA Y RITMO
   Espacios en una escala fija, portada con columnas que no se desbordan y botones con jerarquía clara.
======================================== */

:root {
  --sec-y: clamp(64px, 7.5vw, 104px);   /* espacio arriba y abajo de cada sección */
  --head-gap: clamp(32px, 4.5vw, 56px); /* del encabezado de sección a su contenido */
  --block-gap: 16px;                    /* entre tarjetas de un mismo grupo */
}

/* secciones: más aire entre temas que dentro de cada tema */
.section { padding: var(--sec-y) 0; }
.head-split { margin-bottom: var(--head-gap); }
.section-head.center { margin-bottom: var(--head-gap); }
.section-head h2 + p, .section-head .kinetic + p { margin-top: 16px; }

/* portada: la columna de texto ya no empuja a la ilustración fuera del margen */
.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.hero-stage { width: min(420px, 100%); }
.hero-live { width: min(400px, 100%); }
.pc-shift { right: 0; top: 4%; }

/* botones: cuatro del mismo tamaño en dos filas; arriba la implementación gratis y los módulos,
   abajo los dos caminos del producto (jornada y tickets) */
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 580px); margin-top: 30px; }
.hero-actions .btn { width: 100%; min-height: 50px; padding: 0 14px; font-size: 0.94rem; }
@media (min-width: 961px) and (max-width: 1280px) {
  .hero-actions .btn { padding-inline: 10px; font-size: 0.86rem; }
}

/* ilustraciones de sección: tamaño contenido para que no dominen la lectura */
.head-split .illus { align-self: stretch; }
.head-split .illus .lottie { max-width: 400px; }

@media (max-width: 960px) {
  .hero-actions { margin-inline: auto; }
  .head-split .illus { max-width: 440px; }
}

@media (max-width: 640px) {
  :root { --sec-y: 56px; --head-gap: 28px; }
  .section { padding: var(--sec-y) 0; }

  /* portada en teléfono: los cuatro botones uno bajo otro, en el mismo orden */
  .hero-actions { grid-template-columns: 1fr; width: 100%; max-width: 360px; gap: 8px; margin-bottom: 32px; }

  /* ilustraciones más chicas: el contenido llega antes y la página se acorta */
  .head-split .illus { max-width: 300px; padding: 12px; }
  .head-split .illus .lottie { max-width: 260px; }
  .way-panel .illus { max-width: 300px; width: 100%; margin-inline: auto; }
  .way-panel .illus .lottie { max-width: 260px; }
  .closing-art { max-width: 300px; margin-inline: auto; }
}

/* plataforma en teléfono: las cuatro características como filas compactas (ícono a la izquierda), un solo grupo */
@media (max-width: 640px) {
  .facts { gap: 10px; }
  .facts > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; text-align: left; }
  .facts dt { display: contents; }
  .facts dt .f-ico { grid-row: span 2; }
  .facts dd { grid-column: 2; margin-top: 2px; font-size: 0.92rem; }
}

/* preguntas: en escritorio el título acompaña al bajar mientras se abren las respuestas */
@media (min-width: 961px) {
  .faq-grid > div:first-child { position: sticky; top: calc(var(--bar-h) + 32px); }
}
