/* ==========================================================================
   ESTILOS
   Para cambiar la paleta o las tipografías, edita solo el bloque :root.
   Orden: 1 base · 2 cabecera · 3 hero · 4 empresas · 5 demo · 6 funciones
          7 integraciones · 8 precios · 9 opiniones · 10 FAQ · 11 cierre y pie
          12 estados (carga, aparición, movimiento reducido)
   ========================================================================== */

/* 1. BASE ------------------------------------------------------------------ */
:root {
  --bg: #ECEEF1;          /* fondo */
  --surf: #FFFFFF;       /* superficies */
  --ink: #0D1015;        /* tinta */
  --mute: #5B6370;       /* texto secundario */
  --line: #D5D9DF;       /* líneas */
  --cobalt: #2C44FF;     /* acento: botón principal y datos vivos */
  --cobalt-d: #1B30E0;
  --cobalt-l: #98A5FF;   /* cobalto claro, para fondos oscuros */
  --red: #FF3B30;        /* solo estados de alerta o incidencia */
  --red-text: #C9281D;   /* el mismo rojo, oscurecido para texto (contraste AA) */
  --far: #C5CAD2;

  --f-display: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gut: 24px;
  --nav-h: 68px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 600px) { :root { --gut: 16px; --nav-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
html.is-loading { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: opacity .14s; }
.lang-fade body { opacity: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--bg); padding: 1px 6px; border-radius: 4px; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.plan-hot :focus-visible, .final-box :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); font-size: .9rem; }
.ulink { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: var(--ink); }
.ulink:hover { color: var(--cobalt); }

/* Retícula de fondo */
.gridbg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.gridbg > div { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; height: 100%; padding: 0 var(--gut); display: flex; justify-content: space-between; }
.gridbg i { width: 1px; background: var(--line); opacity: .55; }
@media (max-width: 760px) { .gridbg i:nth-child(2), .gridbg i:nth-child(4) { display: none; } }
main, .foot, .nav { position: relative; z-index: 1; }

/* Tipografía */
.h-xl { font: 800 clamp(2.6rem, 1rem + 5.2vw, 5.6rem)/.95 var(--f-display); letter-spacing: -.045em; }
.h-lg { font: 800 clamp(2.1rem, 1.2rem + 3.6vw, 4rem)/1 var(--f-display); letter-spacing: -.038em; max-width: 18ch; }
.h-md { font: 700 clamp(1.5rem, 1.2rem + .9vw, 2rem)/1.1 var(--f-display); letter-spacing: -.025em; }
.h-sm { font: 700 1rem/1.3 var(--f-display); letter-spacing: -.01em; }
.eyebrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; flex: none; }
.eyebrow span { color: var(--cobalt); }
.eyebrow-inv { color: rgba(255, 255, 255, .85); }
.lede { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.5; color: var(--mute); max-width: 36em; }
.sub { font-size: 1.125rem; color: var(--mute); max-width: 38em; }
.micro { font: 400 13px/1.4 var(--f-mono); color: var(--mute); }
.micro-inv { color: rgba(255, 255, 255, .85); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1 var(--f-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -10px rgba(44, 68, 255, .8); }
.btn-primary:hover { background: var(--cobalt-d); transform: translateY(-1px); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262C36; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--bg); transform: translateY(-1px); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-line:hover { background: #fff; color: var(--ink); }

/* Selector de idioma */
/* Ancho fijo para que cambiar de ES/EN no mueva ningun elemento de la cabecera */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; background: var(--surf); padding: 2px; flex: none; width: 84px; }
.lang button { border: 0; background: transparent; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; padding: 7px 0; border-radius: 6px; color: var(--mute); flex: 1; min-height: 28px; text-align: center; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang button:not([aria-pressed="true"]):hover { color: var(--ink); }

/* Etiquetas de estado */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); display: inline-block; position: relative; flex: none; }
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cobalt); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; background: var(--surf); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px 9px 12px; }
.status-sm { margin-top: 18px; }

/* Cabeceras de sección */
.sec { padding: clamp(72px, 9vw, 140px) 0 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head-row > div:first-child { display: grid; gap: 18px; }
.sec-head-row { grid-template-columns: 1fr auto; align-items: end; gap: 28px; }
@media (max-width: 760px) { .sec-head-row { grid-template-columns: 1fr; } }

/* 2. CABECERA -------------------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h); transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.stuck, .nav.open { background: rgba(236, 238, 241, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav-in { height: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--f-display); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; flex: 1; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; color: var(--mute); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current] { background: rgba(13, 16, 21, .06); }
.nav-r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.link-login { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 4px; }
.link-login:hover { color: var(--cobalt); }
.nav-mobile-extra { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surf); position: relative; padding: 0; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.nav.open .burger i:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .burger i:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1040px) { .link-login { display: none; } .nav-mobile-extra { display: block; } }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { font: 700 1.5rem/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none !important; }
  .nav-links a, .nav-mobile-extra a { display: block; }
  .nav-mobile-extra a { border-bottom: 0; color: var(--mute); font-size: 1.1rem; }
  .nav-r .btn-sm { display: none; }
  .nav-r { gap: 8px; }
}
@media (max-width: 900px) { .nav-r .lang { display: inline-flex; } }
@media (max-width: 400px) { .nav-r .lang button { min-width: 30px; padding: 7px 6px; } .brand { font-size: 17px; } }

/* 3. HERO ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; min-height: min(94svh, 880px); display: flex; align-items: center; padding: calc(var(--nav-h) + 28px) 0 56px; }
.hero-vis { position: absolute; top: var(--nav-h); bottom: 0; right: 0; width: 60%; -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 8%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, transparent 8%, #000 46%); }
.hero-vis canvas, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { display: none; }
.no-gl .hero-vis canvas { display: none; }
.no-gl .hero-fallback { display: block; }
.hero-grid { position: relative; z-index: 2; }
.hero-copy { max-width: 700px; display: grid; gap: 26px; justify-items: start; }
/* El párrafo no se mete bajo la onda en pantallas anchas */
.hero-copy .lede { max-width: 34rem; }
.hero-copy .h-xl .line { display: block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; gap: 0; margin-top: 14px; flex-wrap: wrap; row-gap: 14px; }
.proof > div { padding: 0 28px; border-left: 1px solid var(--line); }
.proof > div:first-child { padding-left: 0; border-left: 0; }
.proof dt { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.proof dd { font: 600 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.2 var(--f-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }

.hud { position: absolute; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; display: flex; align-items: baseline; gap: 8px; box-shadow: 0 10px 30px -18px rgba(13, 16, 21, .5); }
.hud b { font: 600 22px/1 var(--f-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hud-k { color: var(--mute); }
.hud-u { color: var(--mute); }
.hud-a { right: max(var(--gut), calc((100vw - var(--wrap)) / 2 - 8px)); top: 25%; }
.hud-b { left: 36%; bottom: 17%; }
.hud-inc { right: 5%; bottom: 10%; align-items: center; color: var(--red-text); border-color: var(--red); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); background: #fff; }
.hud-inc.on, .hud-inc.ok { opacity: 1; transform: none; }
.hud-inc.ok { color: var(--cobalt); border-color: var(--cobalt); }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hud-inc.on .hud-dot { animation: blink .7s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 1100px) { .hud-b { display: none; } }
@media (max-width: 900px) {
  .hero { min-height: 0; align-items: flex-start; padding-bottom: 340px; }
  .hero-vis { top: auto; bottom: 0; width: 100%; height: 400px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 36%); mask-image: linear-gradient(180deg, transparent 0, #000 36%); }
  .hud-a { right: 16px; top: 40%; }
  .hud-inc { right: 16px; bottom: 16px; }
}
@media (max-width: 520px) { .proof > div { padding: 0 16px; } .hud-a { display: none; } .hud-inc { left: 16px; right: auto; } }

/* 4. EMPRESAS -------------------------------------------------------------- */
.logos { padding: 36px 0 0; }
.logos .eyebrow { margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lg { color: var(--mute); white-space: nowrap; transition: color .25s; }
.lg:hover { color: var(--ink); }
.lg-tight { font: 800 26px/1 var(--f-display); letter-spacing: -.07em; }
.lg-wide { font: 600 14px/1 var(--f-display); letter-spacing: .24em; }
.lg-mono { font: 500 20px/1 var(--f-mono); letter-spacing: -.04em; }
.lg-serif { font: italic 600 27px/1 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; letter-spacing: -.02em; }
.lg-light { font: 300 24px/1 var(--f-display); letter-spacing: -.02em; }
.lg-grotesk { font: 700 17px/1 var(--f-display); letter-spacing: .05em; display: inline-flex; align-items: center; gap: 8px; }
.lg-grotesk::before { content: ''; width: 12px; height: 12px; background: currentColor; transform: rotate(45deg); border-radius: 2px; }
@media (max-width: 760px) { .logo-row { justify-content: flex-start; } }

/* 5. DEMO ------------------------------------------------------------------ */
.app { background: var(--surf); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 80px -50px rgba(13, 16, 21, .45), 0 2px 0 rgba(255, 255, 255, .7) inset; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 16px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #F7F8FA; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-url { font: 400 12px/1 var(--f-mono); color: var(--mute); flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-live { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; border: 0; background: transparent; padding: 15px 14px; font: 600 14.5px/1 var(--f-body); color: var(--mute); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; transition: color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tab[aria-selected="true"]::after { transform: none; }
.tab-n { font: 600 11px/1 var(--f-mono); font-style: normal; background: var(--red-text); color: #fff; border-radius: 999px; padding: 3px 6px; }
.panel { padding: 24px; display: grid; gap: 20px; min-height: 520px; align-content: start; }
.panel[hidden] { display: none; }
@media (max-width: 600px) { .panel { padding: 14px; min-height: 0; } .tab { padding: 14px 10px; } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.kpi { padding: 18px 20px; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi-k { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kpi-v { font: 500 clamp(1.6rem, 1.2rem + 1vw, 2.2rem)/1.1 var(--f-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.kpi-v small { font-size: .5em; letter-spacing: 0; color: var(--mute); }
.kpi-d { font-size: 13px; color: var(--mute); line-height: 1.35; }
.kpi-d-alert { color: var(--red-text); }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } .kpi { padding: 14px; } }

.chart-card, .regions-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 14px; }
.chart-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.legend { display: flex; gap: 16px; font: 500 12px/1 var(--f-mono); color: var(--mute); align-items: center; }
.legend li { display: flex; gap: 8px; align-items: center; }
.lg-line { width: 18px; height: 2px; background: var(--cobalt); }
.lg-band { width: 12px; height: 12px; background: rgba(255, 59, 48, .18); border: 1px solid var(--red); border-radius: 2px; }
.chart { position: relative; width: 100%; outline-offset: 4px; touch-action: pan-y; min-height: 200px; cursor: crosshair; }
.chart svg { overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .ax { font: 400 11px var(--f-mono); fill: var(--mute); }
.chart .ln { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart .ln-red { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linejoin: round; opacity: 0; }
.chart .inc-band { fill: var(--red); fill-opacity: .08; }
.chart.drawn .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease); }
.chart.drawn .ln-red { opacity: 1; transition: opacity .4s 1.3s; }
.chart .cross { stroke: var(--ink); stroke-width: 1; opacity: 0; }
.chart .cdot { fill: #fff; stroke: var(--cobalt); stroke-width: 2.4; opacity: 0; }
.chart .cdot.alert { stroke: var(--red); }
.chart.has-point .cross { opacity: .35; }
.chart.has-point .cdot { opacity: 1; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 10px; font: 500 12px/1.2 var(--f-mono); display: flex; gap: 10px; align-items: center; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.chart.has-point .tip { opacity: 1; }
.tip b { font-weight: 500; color: #B7BDC7; }
.tip .tr { color: #FF8A82; }
.tip em { font-style: normal; color: #FF8A82; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }

.regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 36px; margin-top: 14px; }
.regions li { display: grid; grid-template-columns: 38px 1fr 64px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--f-mono); }
.regions .rc { color: var(--mute); letter-spacing: .06em; }
.rbar { height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.rbar i { display: block; height: 100%; width: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform .9s var(--ease); }
.rbar i:not(.on) { transform: scaleX(0); }
.rv { text-align: right; font-variant-numeric: tabular-nums; }
.rv small { color: var(--mute); margin-left: 2px; font-size: 10px; }
@media (max-width: 680px) { .regions { grid-template-columns: 1fr; } }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surf); border-radius: 999px; padding: 8px 14px; font: 600 13.5px/1 var(--f-body); display: inline-flex; gap: 8px; align-items: center; transition: border-color .2s, background .2s; }
.chip em { font: 500 11px/1 var(--f-mono); font-style: normal; color: var(--mute); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] em { color: #B7BDC7; }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.mtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mtable th { text-align: left; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 14px 16px; border-bottom: 1px solid var(--line); background: #F7F8FA; white-space: nowrap; }
.mtable td, .mtable tbody th { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mtable tbody th { text-transform: none; letter-spacing: 0; font: 600 14.5px/1.3 var(--f-body); color: var(--ink); background: none; }
.mtable tbody tr:last-child > * { border-bottom: 0; }
.mtable tbody tr { transition: background .2s; }
.mtable tbody tr:hover { background: #F7F8FA; }
.row-bad { background: rgba(255, 59, 48, .035); }
.mname { font-family: var(--f-mono); font-weight: 500; font-size: 13.5px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 13.5px; white-space: nowrap; }
.kind { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; color: var(--mute); }
.st { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.st i { width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); flex: none; }
.st-warn i { background: transparent; border: 2px solid var(--red); }
.st-down { color: var(--red-text); } .st-down i { background: var(--red); }
.st-resolved i { background: transparent; border: 2px solid var(--cobalt); }
.spark { overflow: visible; } .spark path { fill: none; stroke: var(--cobalt); stroke-width: 1.5; stroke-linejoin: round; } .spark-bad path { stroke: var(--red); }
@media (max-width: 760px) { .c-kind, .c-up, .c-trend { display: none; } .mtable th, .mtable td, .mtable tbody th { padding: 12px; } }

.inc-grid { display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start; }
.inc-list { display: grid; gap: 8px; }
.inc-item { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surf); border-radius: 12px; padding: 14px 16px; display: grid; gap: 3px; position: relative; transition: border-color .2s, background .2s; }
.inc-item:hover { border-color: var(--ink); }
.inc-item[aria-pressed="true"] { border-color: var(--ink); background: #F7F8FA; }
.inc-item[aria-pressed="true"]::before { content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; background: var(--cobalt); border-radius: 2px; }
.inc-id { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; color: var(--mute); }
.inc-item b { font-size: 15px; line-height: 1.3; }
.inc-meta { font: 400 12px/1.4 var(--f-mono); color: var(--mute); overflow-wrap: anywhere; }
.inc-detail { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 18px; min-width: 0; }
.inc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.inc-head .eyebrow::before { display: none; }
.inc-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; padding: 14px 0; border-block: 1px solid var(--line); }
.inc-facts dt { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.inc-facts dd { font-size: 14px; overflow-wrap: anywhere; }
.inc-cause { max-width: 60ch; }
.tl { position: relative; display: grid; gap: 0; margin-top: 4px; }
.tl li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 0 0 20px 22px; position: relative; }
.tl li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); z-index: 1; }
.tl li::after { content: ''; position: absolute; left: 8px; top: 16px; bottom: -7px; width: 1px; background: var(--line); }
.tl li:last-child { padding-bottom: 0; } .tl li:last-child::after { display: none; }
.tl .tl-red::before { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 59, 48, .18); }
.tl .tl-blue::before { background: var(--cobalt); box-shadow: 0 0 0 4px rgba(44, 68, 255, .16); }
.tl time { font-size: 13px; padding-top: 2px; color: var(--mute); }
.tl b { font-size: 14.5px; } .tl p { font-size: 14.5px; color: var(--mute); max-width: 56ch; }
.tl-anim li { animation: tlin .55s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes tlin { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 860px) { .inc-grid { grid-template-columns: 1fr; } .inc-facts { grid-template-columns: 1fr 1fr; } .tl li { grid-template-columns: 48px 1fr; gap: 10px; } }

.sp { max-width: 760px; margin: 0 auto; width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 20px; background: #fff; box-shadow: 0 24px 50px -36px rgba(13, 16, 21, .5); }
.sp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-brand { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; letter-spacing: -.02em; }
.sp-domain { font: 400 12px var(--f-mono); color: var(--mute); }
.sp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(44, 68, 255, .07); border: 1px solid rgba(44, 68, 255, .22); border-radius: 10px; padding: 14px 16px; }
.sp-banner .muted { margin-left: auto; font-size: 13px; }
.sp-comps { display: grid; gap: 20px; }
.sp-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14.5px; }
.sp-line .mono { color: var(--mute); font-size: 12.5px; }
.sp-bars { display: flex; gap: 2px; height: 30px; margin: 8px 0 6px; clip-path: inset(0 0 0 0); }
.sp-bars i { flex: 1; background: var(--cobalt); border-radius: 1.5px; min-width: 0; opacity: .9; }
.sp-bars i.bad { background: var(--red); opacity: 1; }
.sp-comps.on .sp-bars { animation: wipe 1.1s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.sp-ends { display: flex; justify-content: space-between; font: 400 11.5px var(--f-mono); color: var(--mute); }
.sp-sub { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.sp-sub label { font-weight: 600; font-size: 14.5px; }
.sp-row { display: flex; gap: 10px; }
.sp-row input { flex: 1; min-width: 0; min-height: 38px; border: 1px solid #A9B0BB; border-radius: 8px; padding: 0 12px; background: #fff; }
.sp-row input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.sp-row input[aria-invalid="true"] { border-color: var(--red-text); }
.form-msg { font-size: 13.5px; min-height: 1.3em; }
.form-msg.ok { color: var(--cobalt); } .form-msg.err { color: var(--red-text); }
@media (max-width: 480px) { .sp-row { flex-direction: column; } }

/* 6. FUNCIONES ------------------------------------------------------------- */
.feats { border-top: 1px solid var(--ink); }
.feat { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.feat-flip .feat-copy { order: 2; }
.feat-flip { grid-template-columns: 7fr 5fr; }
.feat-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.feat-p { color: var(--mute); font-size: 1.05rem; max-width: 34em; }
.ticks { display: grid; gap: 9px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.4; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 11px; height: 6px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }
.feat-vis { background: var(--surf); border: 1px solid var(--line); border-radius: 18px; padding: 18px; position: relative; min-width: 0; box-shadow: 0 30px 60px -44px rgba(13, 16, 21, .45); }
.feat-vis::before, .feat-vis::after { content: ''; position: absolute; width: 14px; height: 14px; border: solid var(--ink); border-width: 0; }
.feat-vis::before { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.feat-vis::after { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.feat-vis svg { width: 100%; height: auto; }
.feat-vis figcaption { font: 400 12px/1.4 var(--f-mono); color: var(--mute); text-align: center; margin-top: 4px; }
@media (max-width: 860px) { .feat, .feat-flip { grid-template-columns: 1fr; gap: 28px; } .feat-flip .feat-copy { order: 0; } }

/* dibujos SVG */
.vi { stroke: var(--ink); fill: none; stroke-width: 1.4; }
.vg { stroke: var(--line); fill: none; stroke-width: 1.2; }
.vc { stroke: var(--cobalt); fill: none; stroke-width: 1.3; }
.vr { stroke: var(--red); fill: none; stroke-width: 1.4; }
.fi { fill: var(--ink); } .fc { fill: var(--cobalt); } .fr { fill: var(--red); } .fg { fill: var(--far); } .fg2 { fill: var(--far); }
.fc-soft { fill: rgba(44, 68, 255, .08); }
.card-bg { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.vt { font: 500 11.5px var(--f-mono); fill: var(--ink); letter-spacing: -.01em; }
.vt.tm { fill: var(--mute); } .vt.tb { font-weight: 600; } .vt.tr { fill: var(--red-text); } .vt.tw { fill: #fff; font-weight: 600; font-size: 13px; letter-spacing: .06em; }
.flow { stroke-dasharray: 3 7; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.bars { transform-box: view-box; transform-origin: 50% 77.3%; }
.grow { transform-box: fill-box; transform-origin: left; }
html.js .feat:not(.in) .bars { transform: scaleY(.04); }
html.js .feat:not(.in) .grow { transform: scaleX(.02); }
.bars { transition: transform 1s var(--ease) .2s; } .grow { transition: transform 1.1s var(--ease) .25s; }

/* 7. INTEGRACIONES --------------------------------------------------------- */
.sec-int { padding-bottom: 0; }
.int-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.int-head { position: sticky; top: calc(var(--nav-h) + 24px); justify-items: start; margin-bottom: 0; }
.int-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.int { display: flex; gap: 16px; padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); transition: background .25s, padding .3s var(--ease); }
.int:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); padding-right: 0; }
.int:hover { background: rgba(255, 255, 255, .6); }
.int-mark { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 17px/1 var(--f-display); }
.int-sq { border-radius: 8px; } .int-ci { border-radius: 50%; } .int-rd { border-radius: 14px 4px 14px 4px; background: var(--cobalt); } .int-di { border-radius: 8px; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.int-body { display: grid; gap: 4px; min-width: 0; }
.int-name { font: 700 18px/1.1 var(--f-display); letter-spacing: -.02em; }
.int-cat { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.int-body p { font-size: 14.5px; color: var(--mute); line-height: 1.45; margin-top: 4px; }
@media (max-width: 980px) { .int-grid { grid-template-columns: 1fr; } .int-head { position: static; } }
@media (max-width: 620px) { .int-list { grid-template-columns: 1fr; } .int:nth-child(even) { padding-left: 0; border-left: 0; } }

/* 8. PRECIOS --------------------------------------------------------------- */
.billing { display: inline-flex; background: var(--surf); border: 1px solid var(--line); border-radius: 12px; padding: 4px; justify-self: end; }
@media (max-width: 760px) { .billing { justify-self: start; } }
.bill-btn { border: 0; background: transparent; padding: 11px 18px; border-radius: 9px; font: 600 14.5px/1 var(--f-body); display: inline-flex; align-items: center; gap: 8px; transition: background .25s, color .25s; }
.bill-btn em { font: 500 11px/1 var(--f-mono); font-style: normal; background: var(--cobalt); color: #fff; border-radius: 5px; padding: 4px 6px; }
.bill-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bill-btn:not([aria-pressed="true"]):hover { background: var(--bg); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; padding-top: 14px; }
.plan { background: var(--surf); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; position: relative; min-width: 0; }
.plan-tag { color: var(--mute); font-size: 15px; min-height: 2.9em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.plan-price b { font: 600 clamp(2.8rem, 2rem + 2vw, 3.8rem)/1 var(--f-mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; display: inline-flex; align-items: flex-start; gap: 6px; }
.plan-price .cur { font-size: .42em; letter-spacing: 0; margin-top: .3em; color: var(--mute); font-weight: 500; }
.plan-hot .plan-price .cur { color: #B7BDC7; }
.plan-price span { font: 500 13px var(--f-mono); color: var(--mute); }
.plan-bill { font-size: 13.5px; color: var(--mute); min-height: 1.4em; margin-bottom: 8px; }
.plan-bill s { margin-left: 6px; opacity: .8; }
.plan .ticks { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan-hot { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-14px); padding-top: 38px; box-shadow: 0 50px 80px -40px rgba(13, 16, 21, .7); }
.plan-hot .plan-tag, .plan-hot .plan-bill, .plan-hot .plan-price span { color: #B7BDC7; }
.plan-hot .ticks { border-color: rgba(255, 255, 255, .18); }
.plan-hot .ticks li::before { border-color: var(--cobalt-l); }
.plan-flag { position: absolute; top: -13px; left: 30px; background: var(--cobalt); color: #fff; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 6px; }
.plan-hot .btn-primary { box-shadow: none; }
.plans-note { margin-top: 28px; font: 400 13px/1.5 var(--f-mono); color: var(--mute); max-width: 70ch; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 560px; } .plan-hot { transform: none; } .plan-tag { min-height: 0; } }

dialog.dlg { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100% - 32px)); background: var(--surf); color: var(--ink); box-shadow: 0 50px 100px -30px rgba(13, 16, 21, .6); }
dialog.dlg::backdrop { background: rgba(13, 16, 21, .55); backdrop-filter: blur(4px); }
.dlg-in { padding: 32px; display: grid; gap: 14px; justify-items: start; }
.dlg-in p { color: var(--mute); }
.dlg-in .eyebrow { color: var(--cobalt); }

/* 9. OPINIONES ------------------------------------------------------------- */
.tests { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: stretch; }
.test-main { grid-row: span 2; }
.test:nth-child(4) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 48px; }
.test:nth-child(4) blockquote { flex: 1; }
.test:nth-child(4) figcaption { flex: 0 0 minmax(280px, 34%); }
.test { background: var(--surf); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; }
.test blockquote p { font: 500 1.1rem/1.5 var(--f-body); letter-spacing: -.005em; }
.test-main { padding: clamp(28px, 4vw, 52px); }
.test-main blockquote p { font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem)/1.18 var(--f-display); letter-spacing: -.03em; }
.test figcaption { display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 14px/1 var(--f-mono); letter-spacing: .02em; }
.test:nth-child(2) .avatar { background: var(--cobalt); }
.who { display: grid; font-size: 14px; color: var(--mute); line-height: 1.35; } .who b { color: var(--ink); font-size: 15px; }
.metric { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.metric b { font: 500 clamp(1.5rem, 1.2rem + 1vw, 2.2rem)/1 var(--f-mono); letter-spacing: -.05em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.metric span { font: 400 12px/1.3 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 980px) { .tests { grid-template-columns: 1fr; } .test-main { grid-row: auto; } .test:nth-child(4) { flex-direction: column; align-items: stretch; gap: 28px; } .test:nth-child(4) figcaption { flex: none; } }

/* 10. FAQ ------------------------------------------------------------------ */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--nav-h) + 24px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; background: transparent; border: 0; padding: 24px 0; font: 700 clamp(1.1rem, 1rem + .4vw, 1.35rem)/1.25 var(--f-display); letter-spacing: -.02em; transition: color .2s; }
.faq-q:hover { color: var(--cobalt); }
.faq-q i { flex: none; position: relative; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; transition: background .25s, border-color .25s; }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; left: 7px; right: 7px; top: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), background .25s; }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.open .faq-q i { background: var(--ink); border-color: var(--ink); }
.faq-item.open .faq-q i::before, .faq-item.open .faq-q i::after { background: #fff; }
.faq-item.open .faq-q i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility .4s; }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; visibility: visible; }
.faq-a p { padding: 0 56px 26px 0; color: var(--mute); max-width: 60ch; }
@media (max-width: 980px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head { position: static; } }

/* 11. CIERRE Y PIE --------------------------------------------------------- */
.final { padding: clamp(72px, 9vw, 140px) 0; }
.final-box { position: relative; overflow: hidden; background: var(--cobalt); color: #fff; border-radius: 28px; padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); display: grid; gap: 28px; justify-items: start; isolation: isolate; }
.final-box::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 25% 100%; }
.final-t { max-width: 13ch; }
.final-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.final-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 140px; color: rgba(255, 255, 255, .55); z-index: -1; }
.foot { border-top: 1px solid var(--line); padding: 56px 0 36px; background: rgba(236, 238, 241, .6); }
.foot-top { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; padding-bottom: 48px; }
.foot-brand { display: grid; gap: 14px; justify-items: start; align-content: start; }
.foot-brand .muted { max-width: 28ch; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.foot-col ul { display: grid; gap: 10px; margin-top: 16px; }
.foot-col .eyebrow::before { display: none; }
.foot-col a { text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.foot-bot { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-min { padding: 32px 0; }
.foot-min .foot-bot { padding-top: 0; border-top: 0; }
body:has(.foot-min) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(.foot-min) > main { flex: 1 0 auto; }
.legal { font-size: 13px; color: var(--mute); max-width: 70ch; line-height: 1.5; }
.foot-bot [data-i18n-html="foot.credit"] { font-size: 13px; color: var(--mute); line-height: 1.5; }
.foot-bot [data-i18n-html="foot.credit"] a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bot [data-i18n-html="foot.credit"] a:hover { color: var(--cobalt); }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* 11b. PAGINAS DE AUTH (login.html, checkout.html) ------------------------- */
.auth-page { min-height: 100svh; display: flex; flex-direction: column; }
.auth-page main { flex: 1; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 32px) var(--gut) 56px; }
.auth-wrap { width: 100%; max-width: 480px; }
.auth-wrap-wide { max-width: 560px; }
.auth-box { background: var(--surf); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 6vw, 48px); display: grid; gap: 24px; }
.auth-box[hidden], .auth-plan-missing[hidden] { display: none; }
.auth-head { display: grid; gap: 8px; }
.auth-head .h-md { letter-spacing: -.03em; }

/* Campos de formulario */
.fld { display: grid; gap: 6px; }
.fld-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.auth-fld-mt { margin-top: 14px; }
.fld label { font: 500 14px/1.3 var(--f-body); }
.fld input[type="email"],
.fld input[type="password"],
.fld input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font: 400 16px/1 var(--f-body); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.fld input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(44, 68, 255, .15); }
.fld input[aria-invalid="true"] { border-color: var(--red); }
.fld input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 59, 48, .15); }
.fld-err { font: 400 13px/1.4 var(--f-body); color: var(--red-text); display: none; }
.fld-err.visible { display: block; }

/* Casilla recordar */
.fld-check { display: flex; align-items: center; gap: 10px; font: 400 14px/1 var(--f-body); color: var(--mute); }
.auth-check-mt { margin-top: 14px; }
.fld-check input { width: 16px; height: 16px; accent-color: var(--cobalt); cursor: pointer; flex: none; }

/* Botones de envío auth / checkout */
.auth-submit-btn { margin-top: 20px; }
.checkout-submit-btn { margin-top: 28px; }

/* Separador */
.auth-sep { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--f-mono); color: var(--mute); letter-spacing: .06em; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Boton Google (solo visual) */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--surf); font: 600 15px/1 var(--f-body); text-decoration: none; color: var(--ink); transition: background .2s, border-color .2s; cursor: pointer; }
.btn-google:hover { background: var(--bg); border-color: #b0b8c4; }
.btn-google svg { flex: none; }

/* Enlace olvidé contraseña */
.auth-forgot { font: 400 13px/1 var(--f-body); color: var(--mute); text-align: right; text-decoration: none; }
.auth-forgot:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }

/* Pie del formulario */
.auth-foot { display: flex; justify-content: center; gap: 6px; font: 400 14px/1 var(--f-body); color: var(--mute); flex-wrap: wrap; }
.auth-foot a { color: var(--cobalt); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Estado de exito */
.auth-success { display: none; text-align: center; padding: 32px 0; gap: 16px; flex-direction: column; align-items: center; }
.auth-success.visible { display: flex; }
.auth-success-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(44, 68, 255, .1); display: flex; align-items: center; justify-content: center; }
.auth-success-icon svg { color: var(--cobalt); }

/* Banner de demo */
.demo-banner { display: flex; align-items: center; gap: 10px; background: rgba(255, 180, 0, .1); border: 1px solid rgba(255, 180, 0, .4); border-radius: 10px; padding: 10px 14px; font: 500 13px/1.4 var(--f-mono); color: #7a5800; letter-spacing: .02em; }
.demo-banner svg { flex: none; color: #c47e00; }

/* Resumen del pedido */
.order-summary { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 12px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.order-row dt { color: var(--mute); }
.order-row dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.order-row-total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.order-row-total dt, .order-row-total dd { font-size: 17px; }
.order-note { font: 400 12px/1 var(--f-mono); color: var(--mute); letter-spacing: .04em; }

/* Facturacion checkout */
.billing-section { margin-top: 24px; }
.billing-fields { display: grid; gap: 12px; margin-top: 14px; }

/* Seccion de tarjeta maquetada */
.card-section { margin-top: 24px; display: grid; gap: 12px; }
.card-demo-note { font: 400 12px/1.4 var(--f-mono); color: var(--mute); letter-spacing: .04em; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-fields .fld:first-child { grid-column: 1 / -1; }
.fld input[data-card-fake] { font-family: var(--f-mono); letter-spacing: .12em; cursor: not-allowed; opacity: .6; }

/* Plan no encontrado */
.auth-plan-missing { text-align: center; padding: 24px 0; }
.auth-plan-missing-btn { margin-top: 16px; display: inline-flex; }

/* Boton con estado de carga */
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

@media (max-width: 520px) { .card-fields { grid-template-columns: 1fr; } .card-fields .fld:first-child { grid-column: auto; } }

/* 12. ESTADOS -------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 22px; transition: opacity .6s, visibility .6s; }
.loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand { display: flex; align-items: center; gap: 12px; font: 800 28px/1 var(--f-display); letter-spacing: -.03em; }
.loader-line { width: 220px; height: 2px; background: var(--line); overflow: hidden; }
.loader-line span { display: block; height: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); }
.loader-txt { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.loader-txt b { font-weight: 500; color: var(--ink); display: inline-block; min-width: 2.2ch; text-align: right; }

html.js [data-rv] { transition: opacity .8s var(--ease), translate .8s var(--ease); }
html.js [data-rv]:not(.in) { opacity: 0; translate: 0 24px; }

.is-ready .hero-copy > * { animation: rise .9s var(--ease) both; }
.is-ready .hero-copy > :nth-child(2) { animation-delay: .08s; }
.is-ready .hero-copy > :nth-child(3) { animation-delay: .2s; }
.is-ready .hero-copy > :nth-child(4) { animation-delay: .28s; }
.is-ready .hero-copy > :nth-child(5) { animation-delay: .34s; }
.is-ready .hero-copy > :nth-child(6) { animation-delay: .42s; }
.is-ready .hero-vis { animation: fadein 1.6s var(--ease) both .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fadein { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .flow { animation: none; }
  .dot::after { display: none; }
  html.js [data-rv]:not(.in) { opacity: 1; translate: none; }
}

/* Ajustes de móvil */
.metric b { white-space: nowrap; }
@media (max-width: 600px) {
  .proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .proof > div { padding: 0 12px; }
  .proof dt { font-size: 9.5px; letter-spacing: .05em; }
  .proof dd { font-size: 1.15rem; }
  .regions { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .regions li { grid-template-columns: 28px 1fr 44px; gap: 8px; font-size: 11px; }
  .rv small { display: none; }
  .vt { font-size: 13.5px; }
  .final-box { padding-bottom: 150px; }
}
