/* ============================================================
   Velkor · sitio público (página de producto)
   Sistema de diseño: rejilla de 4/8 px, tokens claro/oscuro,
   tipografía Inter, componentes sin dependencias.
   ============================================================ */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f5f7fc; --bg2: #edf1fa; --surface: #ffffff; --surface2: #f8faff;
  --ink: #0a1430; --ink2: #37456a; --muted: #5d6b8a;
  --line: #e1e8f5; --line2: #cdd8ec;
  --brand: #2358e6; --brand2: #1b44c0; --brand-soft: #e9efff; --btn: #2358e6; --btn-h: #1b44c0;
  --ok: #0f8f62; --ok-soft: #e2f6ee; --warn: #9a5f00; --warn-soft: #fff3da; --bad: #c93232; --slate: #4a5878; --slate-soft: #eef1f6;
  --shadow-1: 0 1px 2px rgba(10, 20, 48, .05), 0 10px 28px rgba(10, 20, 48, .07);
  --shadow-2: 0 40px 90px -30px rgba(25, 55, 150, .38), 0 14px 34px rgba(10, 20, 48, .10);
  --grid: rgba(35, 88, 230, .07);
  --radius: 16px;
  --nav-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #050b1a; --bg2: #08122a; --surface: #0b1630; --surface2: #0f1c3a;
    --ink: #eaf0fc; --ink2: #b4c1dd; --muted: #8e9dbd;
    --line: #17274a; --line2: #243a66;
    --brand: #6b96ff; --brand2: #8fb0ff; --brand-soft: #12244d; --btn: #3a68ee; --btn-h: #4d79f5;
    --ok: #35c690; --ok-soft: #0e3226; --warn: #f2b441; --warn-soft: #3a2b0c; --bad: #f06b6b; --slate: #a9b6cf; --slate-soft: #1c2638;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-2: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 14px 34px rgba(0, 0, 0, .4);
    --grid: rgba(107, 150, 255, .08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050b1a; --bg2: #08122a; --surface: #0b1630; --surface2: #0f1c3a;
  --ink: #eaf0fc; --ink2: #b4c1dd; --muted: #8e9dbd;
  --line: #17274a; --line2: #243a66;
  --brand: #6b96ff; --brand2: #8fb0ff; --brand-soft: #12244d; --btn: #3a68ee; --btn-h: #4d79f5;
  --ok: #35c690; --ok-soft: #0e3226; --warn: #f2b441; --warn-soft: #3a2b0c; --bad: #f06b6b; --slate: #a9b6cf; --slate-soft: #1c2638;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-2: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 14px 34px rgba(0, 0, 0, .4);
  --grid: rgba(107, 150, 255, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand); }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
section[id] { scroll-margin-top: 72px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--btn); color: #fff; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: clamp(1200px, 84vw, 1720px); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn.primary { background: var(--btn); color: #fff; box-shadow: 0 8px 20px -6px rgba(35, 88, 230, .6); }
.btn.primary:hover { background: var(--btn-h); transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(35, 88, 230, .65); }
.btn.ghost { background: var(--surface); border-color: var(--line2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Barra superior ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background-color .25s, border-color .25s, box-shadow .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.open { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6, #1e46c8); box-shadow: 0 6px 16px -4px rgba(35, 88, 230, .55); }
.logo-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: var(--ink2); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.nav-links a.active { color: var(--brand); }
.menu-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.ic-sun { display: none; }
:root[data-theme="dark"] .ic-moon { display: none; }
:root[data-theme="dark"] .ic-sun { display: block; }
.menu-btn { display: none; }
.menu-btn .ic-close { display: none; }
.nav.open .menu-btn .ic-open { display: none; }
.nav.open .menu-btn .ic-close { display: block; }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; display: block; width: 720px; height: 720px; border-radius: 50%; filter: blur(8px); }
.o1 { top: -300px; left: 50%; transform: translateX(-85%); background: radial-gradient(closest-side, rgba(59, 130, 246, .30), transparent); animation: drift1 18s ease-in-out infinite alternate; }
.o2 { top: -200px; left: 50%; transform: translateX(-5%); background: radial-gradient(closest-side, rgba(15, 157, 138, .2), transparent); animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-70%, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-22%, 90px) scale(.92); } }
.grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 22%, #000 28%, transparent 76%); mask-image: radial-gradient(ellipse 75% 62% at 50% 22%, #000 28%, transparent 76%); }
/* Portada en dos columnas: el mensaje a la izquierda y el sistema a la derecha (se apila en pantallas angostas) */
.hero-in { display: grid; grid-template-columns: minmax(0, clamp(526px, 34vw, 540px)) minmax(0, 1fr); gap: clamp(36px, 3vw, 56px); align-items: center; text-align: left; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero-copy h1 { font-size: clamp(38px, 3.7vw, 62px); max-width: 600px; }
.hero-copy .lead { max-width: 540px; }
.hero-copy .hero-cta, .hero-copy .hero-points { justify-content: flex-start; }
.hero-copy .hero-points { margin-bottom: 26px; }
.hero-law { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); width: 100%; max-width: 540px; }
.hero-law > span { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-law ul { display: flex; flex-wrap: wrap; gap: 8px; }
html.js .hero-law.in li { animation: chipIn .6s cubic-bezier(.2, .8, .3, 1.1) both; animation-delay: calc(var(--i, 0) * 70ms + .35s); }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.hero-law li { padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink2); font-size: 13.5px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--line2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink2); font-size: 13.5px; font-weight: 600; margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h1 { max-width: 980px; font-size: clamp(34px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; margin-bottom: 24px; }
.grad { background: linear-gradient(100deg, #2358e6 0%, #1f7ad6 25%, #0f9d8a 50%, #1f7ad6 75%, #2358e6 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 9s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 50%; } }
:root[data-theme="dark"] .grad { background-image: linear-gradient(100deg, #6b96ff 0%, #5fb4f0 25%, #3fd0bd 50%, #5fb4f0 75%, #6b96ff 100%); }
.lead { max-width: 700px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; color: var(--ink2); margin-bottom: 32px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-bottom: clamp(40px, 6vw, 64px); color: var(--ink2); font-size: 14.5px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 18px; height: 18px; color: var(--ok); }
/* Vistas del sistema que se turnan (nómina, tiempo, personas, salidas): tarjetas hechas en HTML, en dos columnas de igual alto que terminan en el margen derecho de la página (el mismo del texto a la izquierda) y se centran en altura con el texto. Las vistas comparten una misma celda, así el alto no cambia al pasar de una a otra. Todo se mide en em sobre un tamaño de letra que sigue el ancho del bloque (cqw) */
.stage { container-type: inline-size; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* selector de vista: la activa lleva una barra que avanza hasta el cambio (cuando termina, web.js pasa a la siguiente) y se detiene con .paused */
.sc-tabs { align-self: flex-start; display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
html:not(.js) .sc-tabs { display: none; }
.sc-tab { position: relative; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink2); font-size: 13.5px; font-weight: 600; transition: color .2s, background-color .2s; }
.sc-tab:hover { color: var(--ink); }
.sc-tab[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.sc-tab i { position: absolute; inset: auto 14px 5px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0; transform-origin: left; }
.sc-tab[aria-pressed="true"] i { opacity: .7; animation: scTurn 6.5s linear both; }
.stage.paused .sc-tab i { animation-play-state: paused; }
@keyframes scTurn { from { transform: scaleX(0); } }
.scenes { display: grid; }
.scene { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 1.15em; font-size: clamp(11.5px, 2.27cqw, 15px); line-height: 1.35; font-variant-numeric: tabular-nums; }
.scene:not(.on, .out) { visibility: hidden; }
.sc-col { display: flex; flex-direction: column; gap: 1.15em; min-width: 0; }
.sc { display: flex; flex-direction: column; gap: 1.2em; padding: 1.35em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.sc-main { background-image: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, transparent), transparent 9em); box-shadow: var(--shadow-2); }
/* la tarjeta .sc-grow ocupa el alto que sobra en su columna y lo reparte en su lista .sc-fill */
.sc-grow, .sc-fill { flex: 1; }
.sc-fill { justify-content: space-between; }
.sc-sep { padding-top: 1.2em; border-top: 1px solid var(--line); }
/* la vista que entra sube sus tarjetas en escalera (--sd) y llena sus barras; la que sale se desvanece */
html.js .scene.on .sc { animation: scIn .8s cubic-bezier(.16, .84, .24, 1) calc(.24s + var(--sd, 0s)) both; }
html.js .scene.out .sc { animation: scOut .26s ease both; }
.sc-col > .sc:nth-child(2) { --sd: .12s; } .sc-col > .sc:nth-child(3) { --sd: .24s; } .sc-col:last-child > .sc:first-child { --sd: .06s; }
@keyframes scIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes scOut { to { opacity: 0; transform: translateY(-8px); } }
.sc-rows, .sc-people, .sc-chart { display: flex; flex-direction: column; }
.sc-head, .sc-lbl, .sc-rows li, .sc-people li { display: flex; align-items: center; }
.sc-head { gap: .75em; }
.sc-ic { flex: none; width: 2.5em; height: 2.5em; border-radius: .8em; display: grid; place-items: center; }
.sc .ic { width: 1.3em; height: 1.3em; }
.sc-ic.bl, .sc-av.v1, .sc-av.v5, .sc-chip.bl { background: var(--brand-soft); color: var(--brand); }
.sc-ic.ok, .sc-av.v2 { background: var(--ok-soft); color: var(--ok); }
.sc-ic.am, .sc-av.v3, .sc-chip.am { background: var(--warn-soft); color: var(--warn); }
.sc-ic.sl, .sc-av.v4 { background: var(--slate-soft); color: var(--slate); }
.sc-done { color: var(--ok); } .sc-miss { color: var(--warn); font-weight: 650; white-space: nowrap; } .sc-now { color: var(--brand); } .sc-todo { color: var(--muted); }
.sc-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sc-t b { font-size: 1.04em; font-weight: 650; letter-spacing: -.01em; }
.sc-t small, .sc-total small, .sc-total span, .sc-more, .sc-stats span { font-size: .92em; color: var(--muted); }
.sc-av { flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; }
.sc-av::first-line { font-size: .82em; font-weight: 700; }
.sc-av.lg { width: 2.7em; height: 2.7em; font-size: 1.25em; }
.sc-chip { display: inline-flex; align-items: center; gap: .45em; padding: .3em .8em; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: .88em; font-style: normal; font-weight: 650; white-space: nowrap; }
.sc-chip::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
/* cifra principal de una tarjeta, con su rótulo y una etiqueta de estado opcional */
.sc-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .15em .8em; }
.sc-total small { font-weight: 600; }
.sc-total strong { grid-column: 1 / -1; font-size: 2.2em; line-height: 1.15; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.sc-total span { grid-column: 1 / -1; }
/* reparto del bruto de la nómina: neto, TSS e ISR */
.k-net { background: var(--brand); } .k-tss { background: #14a893; } .k-isr { background: #e8a530; }
.sc-split { display: flex; gap: 4px; height: .6em; margin-bottom: -.3em; transform-origin: left; }
.sc-split i { border-radius: 99px; }
.sc-split .k-net { flex: 90.2; } .sc-split .k-tss { flex: 5.9; } .sc-split .k-isr { flex: 3.9; }
/* filas rótulo–valor, con punto de color o icono de estado opcional */
.sc-rows { gap: .75em; color: var(--ink2); }
.sc-rows li, .sc-lbl { gap: .65em; }
.sc-rows i { flex: none; width: .6em; height: .6em; border-radius: 50%; }
.sc-rows span, .sc-lbl span { flex: 1; min-width: 0; }
.sc-lbl { color: var(--ink2); }
.sc-rows b, .sc-lbl b, .sc-people li > b, .sc-chart b, .sc-stars b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.sc-rows .sc-cap { color: var(--muted); font-size: .88em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sc-rows .sc-sum { padding-top: .85em; border-top: 1px solid var(--line); color: var(--ink); font-weight: 650; }
.sc-rows .sc-sum b { color: var(--brand); font-weight: 750; }
.sc-people { gap: .9em; }
.sc-people li { gap: .8em; }
.sc-more { padding-top: 1.1em; border-top: 1px dashed var(--line2); text-align: center; }
/* archivo, barras de avance (--v: fracción llena) y botones de muestra */
.sc-file { display: flex; align-items: center; gap: .6em; padding: .7em .85em; border: 1px dashed var(--line2); border-radius: .8em; background: var(--surface2); color: var(--ink2); font-weight: 550; }
.sc-file .ic:first-child { color: var(--muted); }
.sc-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-bar { height: .45em; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #14a893); transform-origin: left; transform: scaleX(var(--v, 1)); }
html.js .scene.on .sc-bar i, html.js .scene.on .sc-split { animation: scFill 1.3s cubic-bezier(.4, .1, .2, 1) .8s both; }
@keyframes scFill { from { transform: scaleX(0); } }
.sc-lbl + .sc-bar { margin-top: -.5em; }
.sc-btns { display: flex; gap: .7em; }
.sc-btns span { flex: 1; padding: .6em; border: 1px solid var(--line2); border-radius: .8em; color: var(--ink2); font-weight: 650; text-align: center; }
.sc-btns .go { border-color: transparent; background: var(--btn); color: #fff; }
/* calendario del mes: vacaciones (tramo), solicitud por aprobar (tramo punteado), permiso y feriado */
.sc-month { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(2.2em, 1fr); row-gap: 4px; align-items: center; text-align: center; }
.sc-month span { color: var(--muted); font-size: .88em; font-weight: 700; }
.sc-month i { height: 2.2em; display: grid; place-items: center; border-radius: .7em; color: var(--ink2); font-size: .95em; font-style: normal; }
.sc-month .d-vac, .sc-month .d-req { border-radius: 0; color: var(--brand); font-weight: 700; }
.sc-month .d-vac { background: var(--brand-soft); }
.sc-month .d-req { border-block: 1.5px dashed var(--brand); }
.sc-month .d-a { border-radius: .7em 0 0 .7em; } .sc-month .d-z { border-radius: 0 .7em .7em 0; }
.sc-month .d-req.d-a { border-left: 1.5px dashed var(--brand); } .sc-month .d-req.d-z { border-right: 1.5px dashed var(--brand); }
.sc-month .d-per, .sc-month .d-hol { justify-self: center; width: 2.2em; font-weight: 700; }
.sc-month .d-per { background: var(--warn-soft); color: var(--warn); }
.sc-month .d-hol { background: var(--slate-soft); color: var(--slate); }
.sc-key { display: grid; grid-template-columns: repeat(2, max-content); gap: .4em 1.8em; padding-top: 1em; color: var(--muted); font-size: .88em; }
.sc-key li { display: inline-flex; align-items: center; gap: .5em; }
.sc-key i { width: .8em; height: .8em; border-radius: 3px; }
.sc-key .d-vac { background: var(--brand); } .sc-key .d-req { border: 1.5px dashed var(--brand); } .sc-key .d-per { background: var(--warn); } .sc-key .d-hol { background: var(--slate); }
/* contadores, estrellas de la evaluación y barras por departamento */
.sc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.sc-stats li { display: flex; flex-direction: column; }
.sc-stats li + li { border-left: 1px solid var(--line); }
.sc-stats b { font-size: 1.7em; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.sc-stars { display: flex; align-items: center; gap: .25em; color: #e8a530; }
.sc-stars .ic { fill: currentColor; }
.sc-stars .off { color: var(--line2); }
.sc-stars b { margin-left: auto; }
.sc-chart { gap: .9em; color: var(--ink2); }
.sc-chart li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45em; }
.sc-chart .sc-bar { flex: 0 0 100%; }
.sc-chart .sc-bar i { background: var(--brand); }
/* con el bloque angosto (portada en dos columnas cerca de los 1100 px) las columnas se igualan para que quepan los títulos */
@container (max-width: 500px) {
  .scene { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .sc { padding: 1.2em; }
}
/* en teléfono el selector ocupa todo el ancho y cada vista va en una columna con lo esencial (se ocultan las piezas .sc-opt) */
@container (max-width: 440px) {
  .sc-tabs { align-self: stretch; gap: 4px; }
  .sc-tab { flex: 1; padding: 0 2px; font-size: 13px; }
  .scene { grid-template-columns: minmax(0, 1fr); font-size: 13.5px; }
  .scene .sc-opt { display: none; }
}

/* ---------- Marco de navegador ---------- */
.frame { border: 1px solid var(--line2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-url { flex: 1; max-width: 340px; margin-left: 16px; padding: 5px 14px; border-radius: 8px; background: var(--bg2); color: var(--muted); font-size: 12.5px; line-height: 1.4; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-body { position: relative; background: var(--surface); }
.frame-body img { display: block; width: 100%; height: auto; }
.frame-body img.img-dark { display: none; }
:root[data-theme="dark"] .frame-body img.img-light { display: none; }
:root[data-theme="dark"] .frame-body img.img-dark { display: block; }

/* ---------- Franja ---------- */
.strip { padding: 8px 0 0; }
.strip-in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.strip-t { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink2); font-size: 14px; font-weight: 600; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec-head.left { margin-inline: 0; text-align: left; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.sub { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.65; color: var(--ink2); text-wrap: pretty; }
.ticks { display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink2); }
.ticks .ic { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }
.ticks b { color: var(--ink); }

/* ---------- Funciones ---------- */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.fcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.fcard:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-1); transform: translateY(-3px); }
.fcard:hover::before { opacity: 1; }
.fcard h3 { margin-top: 12px; }
.fcard p { color: var(--ink2); font-size: 15px; line-height: 1.65; }
.ficon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.c1 { --c: #d98a0b; } .c2 { --c: #e0504f; } .c3 { --c: #2d7be5; } .c4 { --c: #0f9d6b; } .c5 { --c: #0a8f87; } .c6 { --c: #5d6b8a; }
.c7 { --c: #c9701a; } .c8 { --c: #2358e6; } .c9 { --c: #0e7c9b; } .c10 { --c: #14a89d; } .c11 { --c: #4f6bdb; } .c12 { --c: #7c8aa5; }

/* ---------- Recorrido ---------- */
.show { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 40px); align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 8px; }
.tab { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 2px 14px; padding: 14px 16px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--ink2); text-align: left; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.tab:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tab .ti { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); color: var(--muted); transition: background-color .2s, color .2s; }
.tab b { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; font-weight: 700; }
.tab small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--line2); box-shadow: var(--shadow-1); }
.tab[aria-selected="true"] .ti { background: var(--btn); color: #fff; }
.show-main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.show-shot img { transition: opacity .3s ease; }
.show-shot img.swap { opacity: 0; }
.show-info { display: grid; gap: 14px; padding: 4px 4px 0; border-radius: 12px; }
.show-info h3 { font-size: 22px; letter-spacing: -.02em; }
.show-info p { color: var(--ink2); font-size: 16px; }
.show-info ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-top: 4px; }
.show-info li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.show-info li .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }

/* ---------- Móvil ---------- */
.mob { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.mob-text .sub { margin-bottom: 28px; }
.mob-shot { display: flex; justify-content: center; }
.phone { position: relative; width: min(320px, 100%); padding: 14px 12px 12px; border: 1px solid #223760; border-radius: 46px; background: #0b1530; box-shadow: var(--shadow-2); }
.phone-notch { position: absolute; top: 5px; left: 50%; width: 56px; height: 4px; margin-left: -28px; border-radius: 4px; background: #2a3f6b; }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.step-n { position: absolute; top: 18px; right: 22px; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: color-mix(in srgb, var(--brand) 16%, transparent); }
.step-i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.step p { color: var(--ink2); font-size: 15px; line-height: 1.65; }

/* ---------- Seguridad ---------- */
.sec-dark { background: radial-gradient(900px 420px at 15% 0%, rgba(59, 108, 240, .28), transparent 70%), radial-gradient(700px 380px at 100% 100%, rgba(15, 157, 138, .2), transparent 70%), #070f27; color: #eaf0fc; }
.sec-dark .eyebrow { color: #8fb0ff; } .sec-dark h2 { color: #fff; } .sec-dark .sub { color: #b4c1dd; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scard { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; background: rgba(255, 255, 255, .04); transition: border-color .25s, background-color .25s, transform .25s; }
.scard:hover { border-color: rgba(143, 176, 255, .5); background: rgba(255, 255, 255, .07); transform: translateY(-3px); }
.scard.big { grid-column: span 2; grid-row: span 2; justify-content: flex-start; padding: clamp(28px, 4vw, 44px); background: linear-gradient(160deg, rgba(59, 108, 240, .22), rgba(255, 255, 255, .04) 60%); }
.scard h3 { margin-top: 12px; color: #fff; }
.scard.big h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.scard p { color: #b4c1dd; font-size: 15px; line-height: 1.65; }
.sicon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(107, 150, 255, .16); color: #9db8ff; }
.iso { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: auto; padding-top: 40px; }
.iso-b { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 16px; color: #8d9fc7; }
.iso-b .ic { width: 22px; height: 22px; }
.iso-b span { font: 500 13px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iso-b i { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.iso-b i:last-child { width: 62%; }
.iso-b.me { border: 1px solid #5f8cff; background: rgba(59, 108, 240, .22); color: #fff; box-shadow: 0 10px 30px -10px rgba(59, 108, 240, .6); }
.iso-b.me i { background: rgba(255, 255, 255, .35); }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; padding-top: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.plan.rec { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-2); }
.plan-badge { position: absolute; top: -14px; left: 28px; padding: 5px 14px; border-radius: 999px; background: var(--btn); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.plan h3 { font-size: 20px; }
.plan-note { min-height: 24px; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 20px 0 6px; }
.plan-price b { font-size: 42px; line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.plan-price b.ask { font-size: 28px; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-size: 14px; font-weight: 500; }
.plan-trial { align-self: flex-start; margin: 8px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.plan-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.plan-list .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.plan .btn { margin-top: auto; }
.plan.skel { gap: 16px; min-height: 380px; }
.plan.skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--bg2) 25%, var(--line) 50%, var(--bg2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.plan.skel i:first-child { width: 50%; height: 22px; } .plan.skel i:nth-child(2) { width: 70%; height: 40px; margin-top: 12px; } .plan.skel i:nth-child(4) { width: 85%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.plans-err { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px; border: 1px dashed var(--line2); border-radius: 20px; background: var(--surface); text-align: center; }
.plans-err p { color: var(--ink2); max-width: 460px; }
.plans-note { margin-top: 32px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.qa { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.qa.open { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-1); }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 0; border-radius: 18px; background: none; color: var(--ink); font-size: 16.5px; line-height: 1.4; font-weight: 700; text-align: left; }
.qa button .ic { width: 20px; height: 20px; color: var(--muted); transition: transform .25s, color .2s; }
.qa.open button .ic { transform: rotate(180deg); color: var(--brand); }
.qa .a { padding: 0 22px 22px; color: var(--ink2); font-size: 15.5px; line-height: 1.7; }
.qa .a[hidden] { display: none; }

/* ---------- Registro ---------- */
.reg { padding-block: clamp(56px, 7vw, 96px); }
.reg-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: linear-gradient(135deg, #17368f 0%, #2358e6 60%, #1b74c9 100%); color: #fff; box-shadow: var(--shadow-2); }
.reg-card::before { content: ""; position: absolute; z-index: -1; top: -240px; right: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); }
.reg-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(120deg, #000, transparent 60%); mask-image: linear-gradient(120deg, #000, transparent 60%); }
.reg-text h2 { color: #fff; }
.reg-text .sub { color: rgba(255, 255, 255, .86); margin-bottom: 28px; }
.eyebrow.on-dark { color: rgba(255, 255, 255, .78); }
.ticks.on-dark li { color: rgba(255, 255, 255, .9); }
.ticks.on-dark .ic { color: #8ff0c4; }
.form-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(5, 15, 60, .55); }
.form-card h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 6px; }
.form-card .sub { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.fgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: span 2; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink2); font-size: 13px; font-weight: 600; }
.f input, .slug input { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface2); color: var(--ink); font-size: 15px; font-weight: 500; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.f input::placeholder, .slug input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.f input:hover, .slug input:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line2)); }
.f input:focus, .slug input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); background: var(--surface); }
.slug { display: flex; align-items: stretch; }
.slug input { border-radius: 12px 0 0 12px; text-align: right; }
.slug span { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line2); border-left: 0; border-radius: 0 12px 12px 0; background: var(--bg2); color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.hint { min-height: 18px; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--bad); }
.chk { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; color: var(--ink2); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--btn); flex: none; }
.note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.5; }
.note[hidden] { display: none; }
.err { margin-top: 12px; color: var(--bad); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.err:empty { display: none; }
#go { margin-top: 18px; }
.done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 8px; text-align: center; }
.done[hidden] { display: none; }
.done h2 { margin: 4px 0 0; }
.done p { color: var(--ink2); max-width: 380px; }
.done-i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.done-i .ic { width: 28px; height: 28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 36px; padding-block: 64px 48px; }
.foot-brand p { max-width: 360px; margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.foot-brand .foot-legal { margin-top: 12px; font-size: 13px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col h4 { margin-bottom: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.foot-col a { color: var(--ink2); font-size: 14.5px; text-decoration: none; }
.foot-col a:hover { color: var(--brand); }
.foot-bar { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; color: var(--muted); font-size: 13.5px; }
.foot-bar::before { content: ""; position: absolute; top: 0; left: clamp(20px, 4vw, 40px); right: clamp(20px, 4vw, 40px); height: 1px; background: var(--line); }
.foot-bar a { color: var(--muted); text-decoration: none; }
.foot-bar a:hover { color: var(--brand); }

/* ---------- Aparición al desplazarse ---------- */
html.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .fcard.rv.in:hover { transform: translateY(-3px); transition-delay: 0ms; }

/* ---------- Adaptación ---------- */
/* ---------- Herramientas gratuitas ---------- */
.tools { padding-block: clamp(56px, 7vw, 96px); }
.tools-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(900px 400px at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), var(--surface); box-shadow: var(--shadow-1); }
.tools-text h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 8px 0 14px; }
.tools-text .sub { color: var(--ink2); max-width: 560px; margin-bottom: 26px; }
.hero-cta.left { justify-content: flex-start; margin-bottom: 0; }
.calc-mini .cm-row, .calc-mini .cm-total { transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 110ms + .15s); }
html.js .tools-card:not(.in) .calc-mini .cm-row, html.js .tools-card:not(.in) .calc-mini .cm-total { opacity: 0; transform: translateX(14px); }
.calc-mini { display: flex; flex-direction: column; gap: 2px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface2); box-shadow: var(--shadow-2); font-variant-numeric: tabular-nums; }
.cm-row, .cm-total { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px dashed var(--line2); font-size: 14px; color: var(--ink2); }
.cm-row b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cm-total { border-bottom: 0; margin-top: 6px; padding: 14px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand2); font-weight: 600; }
.cm-total b { font-size: 18px; color: var(--brand2); white-space: nowrap; }
.calc-mini small { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
:root[data-theme="dark"] .cm-total, :root[data-theme="dark"] .cm-total b { color: var(--brand2); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-text h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 8px 0 16px; }
.contact-text > .sub { color: var(--ink2); margin-bottom: 26px; max-width: 560px; }
.contact-text .ticks { margin-bottom: 28px; }
.channels { display: grid; gap: 10px; max-width: 520px; }
.channels[hidden] { display: none; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.channel:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.channel > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.channel b { font-size: 15px; }
.channel small { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.channel > .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ch-i { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.ch-i .ic { width: 20px; height: 20px; }
.channel.wa .ch-i { background: #e3f8ec; color: #128c4a; }
:root[data-theme="dark"] .channel.wa .ch-i { background: #0f3324; color: #5fe39b; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.contact-meta[hidden] { display: none; }
.contact-meta li { display: flex; align-items: center; gap: 8px; }
.contact-meta .ic { width: 16px; height: 16px; }
#leadCard { box-shadow: var(--shadow-2); }
#leadCard h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.f select, .f textarea { width: 100%; min-width: 0; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface2); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; }
.f select { height: 46px; }
.f textarea { padding: 12px 14px; resize: vertical; min-height: 92px; line-height: 1.5; }
.f select:focus, .f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); background: var(--surface); }
.has-wa .foot-bar { padding-bottom: 92px; }
#leadGo { margin-top: 16px; }
.fine { margin-top: 12px; color: var(--muted); font-size: 12.5px; text-align: center; }
.fine a { color: inherit; }

/* ---------- Pie: redes y contacto ---------- */
.social { display: flex; gap: 8px; margin-top: 18px; }
.social[hidden] { display: none; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--ink2); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--brand); border-color: var(--brand); }
.social .ic { width: 18px; height: 18px; }
.foot-col span { color: var(--muted); font-size: 14px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #1fa855; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 14px 34px -10px rgba(16, 120, 60, .65); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .35s ease .6s, transform .35s ease .6s, background .2s; }
.wa-fab.in { opacity: 1; transform: none; }
.wa-fab:hover { background: #178f47; }
.wa-fab .ic { width: 26px; height: 26px; }
@media (max-width: 640px) { .wa-fab { width: 56px; padding: 0; justify-content: center; } .wa-fab span { display: none; } }

/* ---------- Calculadora pública ---------- */
.calc-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(28px, 4vw, 56px)) 0 clamp(28px, 4vw, 44px); }
.calc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(24px, 4vw, 64px); align-items: center; }
.calc-aside { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow-1); backdrop-filter: blur(6px); }
.calc-aside h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.calc-aside li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.calc-aside li:last-child { border-bottom: 0; }
.calc-aside li span { padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
@media (max-width: 960px) { .calc-aside { display: none; } .calc-top { grid-template-columns: minmax(0, 1fr); } }
.calc-hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 14px; max-width: 900px; }
.calc-hero .lead { margin-bottom: 26px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13.5px; }
.crumbs a { color: var(--ink2); text-decoration: none; } .crumbs a:hover { color: var(--brand); }
.seg { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.seg button, .seg label span { display: block; padding: 10px 18px; border: 0; border-radius: 10px; background: none; color: var(--ink2); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"], .seg input:checked + span { background: var(--btn); color: #fff; box-shadow: 0 6px 16px -6px rgba(35, 88, 230, .7); }
.seg button:focus-visible, .seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg.sm { box-shadow: none; margin-bottom: 18px; } .seg.sm label span { padding: 8px 14px; font-size: 14px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.calc-sec { padding-top: clamp(8px, 2vw, 20px); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(20px, 3vw, 36px); align-items: start; }
.calc-grid[hidden] { display: none; }
.calc-form, .calc-res { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); }
.calc-form h2 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 18px; }
.calc-form .f input[type="date"] { font: inherit; font-size: 15px; }
/* iPhone y iPad (Safari): el campo de fecha nativo ignora el ancho del formulario y no centra la fecha en vertical; se iguala a los demás campos */
@supports (-webkit-touch-callout: none) {
  input[type=date], input[type=time], input[type=month], input[type=datetime-local] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; line-height: 44px; }
  input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value, input[type=month]::-webkit-date-and-time-value, input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; margin: 0; line-height: inherit; }
}
.calc-form .cap { margin-top: 16px; }
.calc-res { position: sticky; top: calc(var(--nav-h) + 20px); min-height: 280px; }
.res-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 230px; color: var(--muted); text-align: center; }
.res-total { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--btn), #16307a); color: #fff; }
.res-total span { font-size: 13.5px; opacity: .85; font-weight: 600; }
.res-total b { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.res-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 18px 0 6px; }
.res-facts dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.res-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.res-lines { margin-top: 10px; border-top: 1px solid var(--line); }
.res-lines li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.res-lines li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.res-lines b { font-size: 15px; color: var(--ink); }
.res-lines small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.res-lines li > span { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-lines em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.res-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.5; }
.res-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.res-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.res-acts .btn { flex: 1 1 auto; height: 42px; font-size: 14px; }
.res-acts .ic { width: 16px; height: 16px; }
.concepts { margin: 20px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.concepts legend { padding: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.concepts > .hint { display: block; margin: 4px 0 12px; }
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cpt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface2); cursor: pointer; transition: border-color .2s, background .2s; }
.cpt input { position: absolute; opacity: 0; pointer-events: none; }
.cbox { width: 20px; height: 20px; flex: none; margin-top: 1px; border: 1.5px solid var(--line2); border-radius: 6px; background: var(--surface); display: grid; place-items: center; }
.cpt input:checked + .cbox { background: var(--btn); border-color: var(--btn); }
.cpt input:checked + .cbox::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.cpt input:focus-visible + .cbox { outline: 2px solid var(--brand); outline-offset: 2px; }
.cpt:has(input:checked) { border-color: color-mix(in srgb, var(--brand) 55%, var(--line2)); background: var(--surface); }
.ctx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctx b { font-size: 14.5px; color: var(--ink); }
.ctx small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ctx small.lg { color: var(--ok); } .ctx small.warn { color: var(--bad); font-weight: 600; } .ctx small.vol { color: var(--brand); }
.concepts .chk { margin-top: 12px; }
.concepts .extra { margin-top: 14px; }
.vtag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 2px; }
.res-note.bad { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); }
@media (max-width: 480px) { .cgrid { grid-template-columns: minmax(0, 1fr); } }
.nav-login { height: 44px; padding: 0 16px; }
/* avance de lectura: una línea fina en el borde inferior de la barra superior */
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--brand), #0f9d8a); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.nav.scrolled .nav-progress { opacity: 1; }
.menu-login { display: none; }
.login-sec { min-height: 100vh; display: grid; align-items: center; padding-top: calc(var(--nav-h) + 40px); }
.login-wrap { display: grid; place-items: center; }
.login-card { width: 100%; max-width: 480px; padding: clamp(26px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.025em; }
.login-card .sub { color: var(--ink2); margin-bottom: 6px; }
.login-card .slug { margin: 6px 0 4px; }
.login-card #goBtn { margin-top: 8px; }
.forgot { border-top: 1px solid var(--line); padding-top: 14px; }
.forgot summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14.5px; }
.forgot form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ok-msg { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 14px; line-height: 1.5; }
@media (max-width: 1100px) { .menu-login { display: block; } }
@media (max-width: 760px) { .nav-login { display: none; } }
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.months[hidden], #regFijo[hidden] { display: none; }
.calc-disc { display: flex; gap: 10px; max-width: 980px; margin-top: 24px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.calc-disc .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.guide .sec-head { margin-bottom: 36px; }
.sec-head.left { text-align: left; margin-left: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gcard { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.gcard h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 10px; }
.gcard p { color: var(--ink2); font-size: 14.5px; line-height: 1.65; margin-bottom: 10px; }
.gcard .eg { padding: 10px 12px; border-radius: 10px; background: var(--surface2); border: 1px dashed var(--line2); font-size: 13.5px; }
.gt { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.gt th, .gt td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.gt th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.cta-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.nf { min-height: 70vh; display: grid; align-items: center; padding-top: calc(var(--nav-h) + 40px); }
.nf-in { text-align: center; max-width: 760px; }
.nf-in h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.035em; margin-bottom: 14px; }
.nf-in .sub { color: var(--ink2); margin-bottom: 28px; }
@media (max-width: 1100px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } .calc-res { position: static; } }
@media (max-width: 640px) { .guide-grid, .res-facts { grid-template-columns: minmax(0, 1fr); } .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } .seg { display: flex; } .seg button { flex: 1; padding: 10px 8px; font-size: 14px; white-space: normal; } }
.docdata { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.docdata summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14.5px; }
.docdata .fgrid2 { margin-top: 12px; }
.docdata .hint { display: block; margin-top: 8px; }
#printDoc { display: none; }

/* ---------- Documento impreso de la calculadora (carta; colores fijos para que se vea igual en cualquier tema) ----------
   Dos hojas: el cálculo y la constancia de recibo. Un solo radio (10px), un solo gris de apoyo, acento azul y un detalle verde azulado. */
@page { size: letter; margin: 0; }
@media print {
  body[data-print="doc"] > *:not(#printDoc) { display: none !important; }
  body[data-print="doc"] { background: #fff !important; margin: 0; }
  #printDoc { display: block; --ink: #0d1733; --ink2: #3a4766; --mut: #6b7894; --line: #e5e9f2; --soft: #f5f7fb; --brand: #2358e6; --slate: #5d6b8a; --navy: #0b1533; --r: 10px;
    color: var(--ink); font-size: 9.6pt; line-height: 1.42; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdoc { display: block; }
  .pdoc h1, .pdoc h2, .pdoc p { margin: 0; }
  .nw { white-space: nowrap; }
  .pd-page { height: 279mm; padding: 0 13mm 8mm; display: flex; flex-direction: column; gap: 7.5px; overflow: hidden; break-after: page; }
  .pd-page > * { flex-shrink: 0; }
  .pd-page:last-child { break-after: auto; }
  .pd-sec, .pd-summary, .pd-parties, .pd-formula { break-inside: avoid; }

  /* encabezado */
  .pd-band { position: relative; margin: 0 -13mm; padding: 6.5mm 13mm 5.5mm; background: radial-gradient(140mm 60mm at 100% 0%, rgba(90, 110, 255, .22), transparent 60%), var(--navy); color: #fff; display: flex; justify-content: space-between; align-items: center; }
  .pd-band { overflow: hidden; }
  .pd-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; background: linear-gradient(90deg, #2358e6, #1b74c9 55%, #0f9d8a); }
  .pd-brand, .pd-meta { position: relative; }
  /* microtexto de seguridad bajo el encabezado */
  .pd-top { margin: 0 -13mm 4px; }
  .pd-top .pd-band { margin: 0; }
  .pd-micro { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding: 1.1mm 13mm; white-space: nowrap; overflow: hidden; font-size: 4.3pt; letter-spacing: .22em; color: #9aa9cc; background: #f3f5fb; border-bottom: 1px solid var(--line); }
  .pd-brand { display: flex; align-items: center; gap: 11px; }
  .pd-mark { width: 36px; height: 36px; border-radius: var(--r); background: linear-gradient(135deg, #3b6cf0, #2350d8); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
  .pd-mark svg { width: 22px; height: 22px; }
  .pd-brand b { display: block; font-size: 16pt; letter-spacing: -.02em; line-height: 1.05; }
  .pd-brand small { display: block; font-size: 7.8pt; color: rgba(255, 255, 255, .62); }
  .pd-meta { display: flex; gap: 22px; }
  .pd-meta div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
  .pd-meta small { display: block; font-size: 6.8pt; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .52); }
  .pd-meta b { display: block; font-size: 9.4pt; font-weight: 600; margin-top: 1px; }

  /* título */
  .pd-titlebar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
  .pd-titlebar p { font-size: 7.4pt; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
  .pd-titlebar h1 { font-size: 20pt; letter-spacing: -.03em; line-height: 1.1; margin-top: 3px; max-width: none; }
  .pd-sub { display: block; margin-top: 2px; font-size: 8pt; color: var(--mut); }
  .pd-stamp { margin-top: 19px; padding: 4px 12px; border: 1.3px solid var(--brand); border-radius: 999px; color: var(--brand); font-size: 7.6pt; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }

  /* partes */
  .pd-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pd-party { padding: 10px 14px; border-radius: var(--r); background: var(--soft); display: grid; grid-template-columns: 1.7fr 1fr; gap: 5px 14px; }
  .pd-party > p { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 7.2pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
  .pd-party > p::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }
  .pd-party small { display: block; font-size: 7.2pt; color: var(--mut); }
  .pd-party b { display: block; font-size: 10pt; font-weight: 650; line-height: 1.3; }
  .pd-line { display: inline-block; vertical-align: bottom; min-width: 34mm; height: 1.15em; border-bottom: 1px solid #9aa6bf; }
  .pd-line.w { min-width: 58mm; }
  .pd-party .pd-line { display: block; min-width: 0; width: 100%; margin-top: 4px; }

  /* resumen: total y visual */
  .pd-summary { display: grid; grid-template-columns: 74mm 1fr; gap: 10px; align-items: stretch; }
  .pd-total { position: relative; overflow: hidden; padding: 12px 16px; border-radius: var(--r); background: linear-gradient(140deg, #2358e6, #16307a); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
  /* fondo de seguridad tipo cheque y el símbolo de Velkor como marca de agua */
  .pd-total::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 115% 120%, rgba(255, 255, 255, .075) 0 .6px, transparent .6px 4.2px), repeating-radial-gradient(circle at -20% -30%, rgba(255, 255, 255, .05) 0 .6px, transparent .6px 5px); }
  .pd-total > .pd-motif { position: absolute; right: 5mm; bottom: 5mm; width: 21mm; height: 21mm; color: rgba(255, 255, 255, .1); }
  .pd-total small { position: relative; font-size: 7.2pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
  .pd-total b { position: relative; font-size: 23pt; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .pd-cur { font-size: .5em; font-weight: 500; letter-spacing: .02em; margin-right: .22em; vertical-align: .6em; opacity: .75; }
  .pd-ct { font-size: .62em; font-weight: 500; opacity: .75; }
  .pd-table td .pd-cur, .pd-mini .pd-cur { font-size: .66em; vertical-align: .35em; } .pd-table td .pd-ct, .pd-mini .pd-ct { font-size: .82em; }
  .pd-total hr { position: relative; width: 100%; height: 1px; border: 0; margin: 5px 0 2px; background: rgba(255, 255, 255, .22); }
  .pd-total span { position: relative; font-size: 7.8pt; line-height: 1.38; color: rgba(255, 255, 255, .9); }
  .pd-visual { padding: 10px 16px; border-radius: var(--r); background: var(--soft); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
  .pd-time { display: flex; flex-direction: column; gap: 6px; }
  .pd-time-h, .pd-time-d { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .pd-time small, .pd-time-h small { display: block; font-size: 6.8pt; color: var(--mut); letter-spacing: .12em; text-transform: uppercase; }
  .pd-time-h small { display: inline; }
  .pd-time-h b { font-size: 10pt; }
  .pd-time-d b { display: block; font-size: 9.2pt; margin-top: 1px; } .pd-time-d .r { text-align: right; }
  .pd-track { position: relative; height: 10px; margin: 0 5px 7px; }
  .pd-track em { position: absolute; top: 50%; width: 1.5px; height: 7px; margin: -3.5px 0 0 -.75px; background: #fff; box-shadow: 0 0 0 .6px rgba(35, 88, 230, .55); border-radius: 1px; }
  .pd-track em span { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 5.8pt; color: var(--mut); font-variant-numeric: tabular-nums; }
  .pd-track i { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 9px; background: linear-gradient(90deg, var(--brand), #0f9d8a); }
  .pd-track i::before, .pd-track i::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #fff; border: 2.2px solid var(--brand); }
  .pd-track i::before { left: -5px; } .pd-track i::after { right: -5px; border-color: #0f9d8a; }
  .pd-comp { display: flex; flex-direction: column; gap: 7px; }
  .pd-bar { display: flex; height: 8px; border-radius: 9px; overflow: hidden; gap: 2px; background: var(--line); }
  .pd-bar i { display: block; height: 100%; }
  .pd-comp ul { display: grid; gap: 8px; }
  .pd-comp li { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 5px; align-items: center; font-size: 7.4pt; color: var(--ink2); white-space: nowrap; }
  .pd-comp li i { width: 8px; height: 8px; border-radius: 2px; }
  .pd-comp li span { overflow: hidden; text-overflow: ellipsis; }
  .pd-comp li b { grid-column: 2; font-size: 8.4pt; color: var(--ink); font-variant-numeric: tabular-nums; }
  .pd-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 70px; }
  .pd-months div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
  .pd-months i { width: 100%; border-radius: 3px 3px 1px 1px; background: #d9dfeb; }
  .pd-months .on i { background: linear-gradient(180deg, #5b7cf0, var(--brand)); }
  .pd-months span { font-size: 6.6pt; color: var(--mut); }

  /* secciones */
  .pd-sec { margin-top: 3px; }
  .pd-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 7.8pt; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
  .pd-sec h2 span { min-width: 22px; height: 17px; padding: 0 5px; border-radius: 4px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 7pt; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
  .pd-sec h2 i { flex: 1; height: 1px; background: var(--line); }
  .pd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0; }
  .pd-facts.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-facts div { padding: 4px 10px; border-radius: 8px; background: var(--soft); }
  .pd-facts dt { font-size: 7pt; color: var(--mut); font-weight: 600; }
  .pd-facts dd { margin: 1px 0 0; font-weight: 650; font-size: 9pt; }

  /* detalle */
  .pd-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .pd-table thead tr { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .pd-table th { text-align: left; font-size: 7pt; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .1em; padding: 6px 10px; background: var(--soft); }
  .pd-table tbody tr:last-child td { border-bottom: 0; }
  .pd-table td { padding: 4px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 9.2pt; }
  .pd-table td b { font-weight: 650; } .pd-table td small { display: block; margin-top: 1px; font-size: 7.7pt; color: var(--ink2); line-height: 1.35; }
  .pd-table .n { width: 26px; color: var(--mut); font-weight: 700; text-align: center; }
  .pd-table .r { text-align: right; white-space: nowrap; } .pd-table td.b { font-weight: 600; }
  .pd-law.alt { background: #eef0f5; color: var(--ink2); }
  .pd-law { display: inline-block; padding: 1px 7px; border-radius: 99px; background: #eef3ff; color: var(--brand); font-size: 7.4pt; font-weight: 700; white-space: nowrap; }
  .pd-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 99px; border: 1px solid var(--slate); color: var(--slate); font-style: normal; font-size: 6.8pt; font-weight: 700; vertical-align: 1px; }
  .pd-table tfoot td { padding: 6px 0 0; border-bottom: 0; }
  .pd-tot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--navy); color: #fff; }
  .pd-tot b { font-size: 12pt; font-weight: 800; font-variant-numeric: tabular-nums; }
  .pd-tot > span { font-size: 7.6pt; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .72); }
  .pd-formula { display: grid; grid-template-columns: 1fr auto .55fr auto 1fr; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--soft); }
  .pd-formula small { display: block; font-size: 7pt; color: var(--mut); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
  .pd-formula b { display: block; font-size: 15pt; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
  .pd-formula i { font-style: normal; font-size: 16pt; color: var(--brand); font-weight: 300; }
  .pd-formula .hl { text-align: right; } .pd-formula .hl b { color: var(--brand); }

  /* observaciones */
  .pd-notes { display: flex; flex-direction: column; gap: 4px; }
  .pd-notes p { padding: 4px 10px; border-left: 3px solid #b9c8ee; background: var(--soft); border-radius: 0 8px 8px 0; font-size: 8.3pt; color: var(--ink2); }
  .pd-notes p.bad { border-left-color: #d98a0b; background: #fff6e6; color: #7a4a00; }
  .pd-notes b { color: inherit; }

  /* hoja 2: constancia */
  .pd-receipt { flex: 1 1 auto !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; }
  .pd-rc-amount { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border-radius: var(--r); background: linear-gradient(140deg, #2358e6, #16307a); color: #fff; }
  .pd-rc-amount::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 105% 130%, rgba(255, 255, 255, .07) 0 .6px, transparent .6px 4.2px); }
  .pd-rc-amount > div { position: relative; }
  .pd-rc-amount small { display: block; font-size: 7.2pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
  .pd-rc-amount b { font-size: 19pt; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .pd-rc-amount > span { position: relative; max-width: 88mm; margin-right: 22mm; text-align: right; font-size: 8.2pt; color: rgba(255, 255, 255, .92); }
  .pd-declare { font-size: 9.5pt; line-height: 1.9; color: var(--ink2); }
  .pd-declare b { color: var(--ink); }
  .pd-mini { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 9pt; }
  .pd-mini td { padding: 5px 8px; border-bottom: 1px dashed var(--line); }
  .pd-mini .n { width: 22px; color: var(--mut); font-weight: 700; } .pd-mini .r { text-align: right; white-space: nowrap; font-weight: 600; }
  .pd-mini tfoot td { border-bottom: 0; border-top: 1.4px solid var(--ink); font-weight: 800; font-size: 10pt; padding-top: 7px; }
  .pd-paygrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
  .pd-paygrid small, .pd-remarks small { display: block; font-size: 7pt; color: var(--mut); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
  .pd-paygrid .pd-line { display: block; min-width: 0; width: 100%; }
  .pd-opts { display: flex; align-items: center; gap: 6px; font-size: 8.6pt; color: var(--ink2); }
  .pd-opts i { width: 12px; height: 12px; border: 1.25px solid var(--ink2); border-radius: 2.5px; margin-left: 6px; } .pd-opts i:first-child { margin-left: 0; }
  .pd-remarks { flex: 1; display: flex; flex-direction: column; min-height: 20mm; }
  .pd-ruled { flex: 1; background: repeating-linear-gradient(180deg, transparent 0 7.2mm, #c6cee0 7.2mm calc(7.2mm + 1px)); }
  .pd-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pd-sg { padding: 12px 14px 12px; border-radius: var(--r); background: var(--soft); }
  .pd-sg > p { font-size: 7.2pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; }
  .pd-sg-row { display: grid; grid-template-columns: minmax(0, 1fr) 25mm; gap: 12px; align-items: end; }
  .pd-sign { padding-top: 22mm; }
  .pd-sign i { display: block; height: 1px; background: var(--ink); margin-bottom: 5px; }
  .pd-sign b { display: block; font-size: 9pt; line-height: 1.3; } .pd-sign small { display: block; font-size: 7.2pt; color: var(--mut); line-height: 1.35; }
  .pd-print, .pd-seal { height: 25mm; border: 1px dashed #aeb9d0; background: #fff; display: grid; place-items: center; }
  .pd-print { border-radius: 8px; } .pd-seal { border-radius: 50%; }
  .pd-print span, .pd-seal span { font-size: 6.4pt; color: var(--mut); text-transform: uppercase; letter-spacing: .1em; text-align: center; padding: 0 6px; }

  /* pie */
  .pd-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; font-size: 6.8pt; line-height: 1.4; color: var(--mut); }
  .pd-signs + .pd-foot { margin-top: 0; }
  .pd-time-h + .pd-months { margin-top: 2px; }
  .pd-foot::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 5px; }
  .pd-foot b { display: flex; justify-content: space-between; gap: 12px; color: var(--ink2); font-weight: 600; }
  .pd-foot em { font-style: normal; }
}

@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .stage { margin-top: 8px; }
}
@media (max-width: 1180px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scard.big { grid-column: span 2; grid-row: auto; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .tools-card, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
/* el menú completo necesita unos 1060 px: por debajo de 1100 px se usa el botón de menú */
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px clamp(20px, 4vw, 40px) 20px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 12px; font-size: 16px; }
  .menu-cta { display: inline-flex; margin-top: 10px; }
}
@media (max-width: 900px) {
  .show { grid-template-columns: minmax(0, 1fr); }
  .tabs { flex-direction: row; gap: 8px; margin-inline: calc(clamp(20px, 4vw, 40px) * -1); padding: 4px clamp(20px, 4vw, 40px) 18px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: clamp(20px, 4vw, 40px); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; grid-template-columns: auto; padding: 10px 16px 10px 10px; scroll-snap-align: start; border-color: var(--line); background: var(--surface); white-space: nowrap; }
  .tab { grid-template-columns: 36px auto; }
  .tab .ti { grid-row: auto; width: 36px; height: 36px; }
  .tab small { display: none; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .sec-head { position: static; margin-bottom: 8px; }
  .mob { grid-template-columns: minmax(0, 1fr); }
  .reg-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .fgrid, .steps, .sgrid { grid-template-columns: minmax(0, 1fr); }
  .scard.big { grid-column: auto; }
  .show-info ul { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; }
  .frame-bar { height: 38px; padding: 0 12px; }
  .frame-url { margin-left: 8px; font-size: 11.5px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-bar { flex-direction: column; }
}
@media (max-width: 480px) {
  .fgrid2 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .reg-card { border-radius: 22px; }
  .plan-price b { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rv { opacity: 1; transform: none; }
}
