/* Vigipagos: sitio público. Tokens del sistema de diseño (docs/sistema-de-diseno/tokens.json). */

:root {
  --surface: #eef0ed;
  --raised: #ffffff;
  --sunken: #e2e7e3;
  --ink: #131815;
  --ink-hover: #2c342f;
  --on-ink: #ffffff;
  --muted: #5a635e;
  --line: #dde2de;
  --line-strong: #868f8a;
  --brand: #2d5b45;
  --brand-strong: #1f4532;
  --brand-soft: #dbeae0;
  --on-brand: #ffffff;
  --band: #2d5b45;
  --band-ink: #ffffff;
  --band-muted: #dbeae0;
  --band-btn: #1f4532;
  --band-btn-ink: #ffffff;
  --signal: #2f6fe0;
  --warn-ink: #8a4a00;
  --warn-soft: #fbe7c2;
  --danger: #d1352a;
  --on-danger: #ffffff;
  --danger-ink: #b3261e;
  --danger-soft: #fbe1dd;
  --focus: #2f6fe0;
  --shadow-raise: 0 1px 3px rgba(19, 24, 21, 0.06);
  --shadow-alert: 0 16px 40px rgba(19, 24, 21, 0.16);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-pill: 999px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  /* Logo: normal en claro, blanco en oscuro. */
  --logo-tarjeta: #2d5b45;
  --logo-punto: #2f6fe0;
  --logo-letras: #131815;
  --logo-v-vis: #ffffff;
  --logo-v-mask: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0e1210;
    --raised: #181e1b;
    --sunken: #0a0d0b;
    --ink: #edf1ee;
    --ink-hover: #ffffff;
    --on-ink: #131815;
    --muted: #a3ada7;
    --line: #29312d;
    --line-strong: #6e7873;
    --brand: #8fcaa7;
    --brand-strong: #b0dcc2;
    --brand-soft: #183427;
    --on-brand: #0c2117;
    --band: #183427;
    --band-ink: #edf1ee;
    --band-muted: #a3ada7;
    --band-btn: #b0dcc2;
    --band-btn-ink: #0c2117;
    --signal: #7aa7ff;
    --warn-ink: #f3b75c;
    --warn-soft: #3a2a0d;
    --danger: #ff7b69;
    --on-danger: #2a0905;
    --danger-ink: #ff8b7b;
    --danger-soft: #3f1712;
    --focus: #7aa7ff;
    --shadow-raise: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-alert: 0 16px 40px rgba(0, 0, 0, 0.6);
    --logo-tarjeta: #ffffff;
    --logo-punto: #7aa7ff;
    --logo-letras: #ffffff;
    --logo-v-vis: transparent;
    --logo-v-mask: #000000;
  }
}

/* Logo sobre la banda de marca: siempre la versión clara. */
.logo-claro {
  --logo-tarjeta: #ffffff;
  --logo-punto: #7aa7ff;
  --logo-letras: #ffffff;
  --logo-v-vis: transparent;
  --logo-v-mask: #000000;
}
.logo-tarjeta { fill: var(--logo-tarjeta); }
.logo-punto { fill: var(--logo-punto); }
.logo-letras { stroke: var(--logo-letras); fill: none; }
.logo-letras-punto { fill: var(--logo-letras); }
.logo-v-vis { stroke: var(--logo-v-vis); fill: none; }
.logo-v-mask { stroke: var(--logo-v-mask); fill: none; }


/* Extras de la portada: movimiento, escenario y mosaicos. */
:root {
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --stage: #1f4532;
  --stage-ink: #eef0ed;
  --stage-mut: #b8d3c4;
  --stage-acc: #b4ecc9;
  --tile-brand: #1f4532;
  --tile-ink: #131815;
  --tile-ink-fg: #eef0ed;
  --shell: rgba(19, 24, 21, 0.045);
  --hi: rgba(255, 255, 255, 0.7);
  --glow: rgba(31, 69, 50, 0.28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --stage: #14291f;
    --tile-brand: #24503c;
    --tile-ink: #1b2420;
    --shell: rgba(255, 255, 255, 0.04);
    --hi: rgba(255, 255, 255, 0.06);
    --glow: rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -64px; z-index: 40; padding: 12px 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; }
.saltar:focus { top: 12px; }
.caja { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .caja { padding-inline: 32px; } }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: 16px; min-height: 60px; padding: 0 10px 0 28px;
  border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink);
  font: 600 17px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.16s var(--ease), background-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn .bola {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--on-ink) 14%, transparent);
  transition: transform 0.4s var(--ease-drawer);
}
.btn .bola svg { width: 20px; height: 20px; }
.btn-s { min-height: 44px; padding: 0 14px; font-size: 14.5px; gap: 0; }
@media (min-width: 720px) { .btn-s { padding: 0 18px; font-size: 15px; } }
.btn-claro { background: #eef0ed; color: #131815; }
.btn-claro .bola { background: rgba(19, 24, 21, 0.1); }
.enlace-q {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px;
  color: var(--muted); font-weight: 500; text-decoration: none; transition: color 0.2s ease;
}
.enlace-q svg { width: 20px; height: 20px; }
.enlace-q-claro { color: var(--stage-mut); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink-hover); }
  .btn-claro:hover { background: #ffffff; }
  .btn:hover .bola { transform: translate(3px, -2px) scale(1.06); }
  .enlace-q:hover { color: var(--ink); }
  .enlace-q-claro:hover { color: #ffffff; }
}

/* ── Navegación flotante ── */
.nav { position: sticky; top: 12px; z-index: 30; padding-inline: 16px; margin-top: 12px; }
@media (min-width: 720px) { .nav { padding-inline: 32px; } }
.nav-in {
  display: flex; align-items: center; gap: 8px; max-width: 1176px; height: 60px; margin-inline: auto; padding: 0 8px 0 16px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), 0 12px 28px -16px var(--glow);
}
.nav .marca { display: inline-flex; flex: none; }
.nav .marca svg { height: 26px; width: auto; }
.nav-links { display: none; margin-left: auto; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 500; text-decoration: none; color: var(--muted); transition: color 0.2s ease, background-color 0.2s ease; }
.nav .btn-s { margin-left: auto; }
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav .btn-s { margin-left: 8px; }
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); background: var(--sunken); } }

/* ── Titulares ── */
.h2 { font-size: clamp(2.6rem, 7.4vw, 5.5rem); line-height: 0.96; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance; }

/* ── Hero ── */
.hero { position: relative; overflow: clip; padding-block: 76px 40px; }
.hero-grid::before {
  content: ""; position: absolute; z-index: -1; top: -40px; right: -14%; width: min(900px, 120vw); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, var(--brand-soft), transparent);
  opacity: 0.9;
}
.hero-grid { position: relative; isolation: isolate; display: grid; gap: 32px; align-items: center; }
.h1 { font-size: clamp(3rem, 14vw, 4.75rem); line-height: 0.92; font-weight: 600; letter-spacing: -0.06em; }
.ln { display: block; overflow: hidden; padding-block: 0.06em 0.16em; margin-bottom: -0.16em; }
.ln > span { display: block; }
.sub { margin-top: 28px; max-width: 22em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--muted); text-wrap: balance; }
.acciones { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-tel { position: relative; justify-self: center; width: 100%; max-width: 340px; padding-bottom: 36px; }
@media (min-width: 960px) {
  .hero { padding-block: 56px 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
  .h1 { font-size: clamp(4rem, 6vw, 6rem); }
  .hero-tel { max-width: 380px; }
}
@media (min-width: 1280px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; } .hero-tel { max-width: 400px; } }

/* Teléfono: se dibuja como la app, a 320px y se amplía con zoom. */
.tel {
  position: relative; width: 320px; margin-inline: auto; padding: 9px; border-radius: 52px; background: #0d110f;
  box-shadow: 0 0 0 1.5px #2b332f, 0 50px 80px -34px var(--glow), 0 14px 30px -16px var(--glow);
}
@media (min-width: 960px) { .tel { zoom: 1; } }
@media (min-width: 1280px) { .tel { zoom: 1; } }
.tel-pant { position: relative; display: flex; flex-direction: column; height: 650px; border-radius: 43px; overflow: hidden; background: var(--surface); }
.tel-cab { background: var(--band); color: var(--band-ink); padding: 12px 18px 46px; }
.tel-bar { position: relative; display: flex; justify-content: space-between; align-items: center; height: 24px; font-size: 13px; font-weight: 600; }
.tel-corte { position: absolute; left: 50%; top: -2px; width: 78px; height: 24px; margin-left: -39px; border-radius: 12px; background: #0d110f; }
.tel-bat { width: 22px; height: 11px; border-radius: 4px; border: 1.5px solid currentColor; opacity: 0.8; }
.tel-fila { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.tel-sim { width: 30px; height: 30px; flex: none; }
.tel-fila b { flex: 1; min-width: 0; font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-pill); background: var(--band-btn); color: var(--band-btn-ink); font-size: 12px; font-weight: 600; }
.latido { width: 8px; height: 8px; border-radius: 50%; background: #8fe0ae; }
.tel-hoja { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; margin-top: -28px; padding: 18px 12px 0; border-radius: 28px 28px 0 0; background: var(--surface); }
.tel-tit { padding-inline: 4px; font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; }
.tot { display: grid; gap: 2px; padding: 12px 16px 14px; border-radius: 20px; background: var(--raised); box-shadow: var(--shadow-raise); }
.tot-et { font-size: 12px; line-height: 16px; color: var(--muted); }
.tot-n { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.feed-w { position: relative; flex: 1; min-height: 0; overflow: hidden; margin-inline: -12px; padding-inline: 12px; padding-top: 6px; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.feed { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.pago { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; align-items: center; padding: 12px; border-radius: 20px; background: var(--raised); color: var(--ink); box-shadow: var(--shadow-raise); }
.disco { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.disco svg { width: 20px; height: 20px; }
.pago .disco { grid-row: 1 / 3; }
.nom { min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monto { font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; }
.meta time { font-variant-numeric: tabular-nums; }
.bill { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--sunken); color: var(--muted); font: 600 12px/1 var(--sans); font-style: normal; }
.insignia { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; height: 20px; padding: 0 8px 0 5px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 600; white-space: nowrap; }
.insignia svg { width: 13px; height: 13px; stroke-width: 2.6; }
.nuevo-punto { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--surface); transition: opacity 0.5s ease, transform 0.5s var(--ease); }
.pago.visto .nuevo-punto { opacity: 0; transform: scale(0.4); }
.tel-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px 20px; background: var(--raised); box-shadow: 0 -1px 0 var(--line); }
.tel-tabs span { display: grid; justify-items: center; gap: 2px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--muted); }
.tel-tabs svg { width: 22px; height: 22px; }
.tel-tabs .act { color: var(--ink); font-weight: 600; }

.voz { position: absolute; left: 50%; bottom: -22px; z-index: 2; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 10px 18px 10px 14px; border-radius: var(--r-pill); background: var(--raised); box-shadow: 0 0 0 1px var(--line), var(--shadow-alert); transform: translateX(-50%); }
.voz-tx { font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: -0.01em; transition: opacity 0.25s ease; }
.onda { display: flex; align-items: center; gap: 3px; height: 22px; flex: none; }
.onda i { width: 3px; height: 100%; border-radius: 2px; background: var(--brand); transform-origin: center; }
.onda i:nth-child(1) { transform: scaleY(0.35); } .onda i:nth-child(2) { transform: scaleY(0.7); } .onda i:nth-child(3) { transform: scaleY(1); } .onda i:nth-child(4) { transform: scaleY(0.55); } .onda i:nth-child(5) { transform: scaleY(0.3); }
@media (min-width: 1280px) { .hero-tel { padding-bottom: 8px; } .voz { left: auto; right: calc(100% - 16px); bottom: 30%; transform: none; } }

/* ── Escena: «Si no aparece aquí, no llegó.» ── */
.escena { position: relative; display: grid; gap: 40px; align-items: center; padding: clamp(28px, 6vw, 80px); border-radius: 40px; background: var(--stage); color: var(--stage-ink); overflow: clip; }
.mega { font-size: clamp(2.4rem, 11.6vw, 4.6rem); line-height: 0.95; font-weight: 600; letter-spacing: -0.055em; }
.pal { display: inline-block; }
.pal-fin { color: var(--stage-acc); }
@media (min-width: 900px) {
  .escena { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; min-height: 440px; }
  .mega { font-size: clamp(3.4rem, 6.2vw, 5.3rem); }
}
.duelo { position: relative; display: grid; gap: 16px; }
.captura { position: relative; display: grid; gap: 2px; padding: 18px 20px 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24); transform: translateX(-6px) rotate(-2.5deg); }
.cap-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--stage-mut); }
.cap-chip { padding: 2px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.12); }
.captura > b { margin-top: 10px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; opacity: 0.75; }
.cap-n { font-size: 15px; color: var(--stage-mut); }
.sello { position: absolute; right: 14px; bottom: 16px; padding: 8px 16px; border-radius: 12px; background: #fbe1dd; color: #b3261e; font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -0.02em; transform: rotate(-8deg); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.55); }
.duelo .pago.real { transform: translateX(6px) rotate(1.2deg); }
@media (min-width: 900px) {
  .captura { padding: 22px 26px 30px; }
  .captura > b { font-size: 46px; line-height: 50px; }
  .sello { font-size: 26px; line-height: 30px; padding: 10px 20px; }
  .duelo { gap: 22px; }
  .duelo .pago.real { zoom: 1.2; }
}
.duelo .nuevo-punto { box-shadow: 0 0 0 3px var(--stage); }
.bloque { padding-top: 0; }

/* ── Secciones ── */
.seccion { padding-block: clamp(88px, 13vw, 180px) 0; }
.seccion-pasos { padding-bottom: clamp(24px, 4vw, 48px); }

/* ── Mosaicos (bento) ── */
.bento { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 14px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .t-ver { grid-column: span 7; } .t-voz { grid-column: span 5; }
  .t-res { grid-column: span 5; } .t-eq { grid-column: span 7; }
  .t-sin { grid-column: span 7; } .t-xls { grid-column: span 5; }
}
/* Una sola superficie por tarjeta (sin marco exterior): borde fino del sistema de diseño. */
.tile { display: flex; }
.tile-in {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; padding: 28px; border-radius: 28px; overflow: hidden;
  background: var(--raised); box-shadow: 0 0 0 1px var(--line);
}
@media (min-width: 900px) { .tile-in { padding: 36px; min-height: 420px; } }
.tile-tx h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; }
.tile-tx p { margin-top: 10px; font-size: 17px; line-height: 24px; color: var(--muted); }
.t-ver .tile-in { background: var(--tile-brand); color: var(--stage-ink); }
/* Las tarjetas de color no llevan borde: su fondo ya las separa. */
.t-ver .tile-in, .t-res .tile-in, .t-voz .tile-in, .plan-neg .plan-in { box-shadow: none; }
.t-res .tile-in { background: var(--tile-ink); color: var(--tile-ink-fg); }
.t-voz .tile-in { background: var(--brand-soft); }
.t-sin .tile-in { background: var(--raised); }
/* En la tarjeta blanca, lo de adentro va en el gris del fondo; solo el aviso se vuelve rojo. */
.t-sin .sin-ok, .t-sin .sin-fant .pago { background: var(--surface); box-shadow: none; }
.t-xls .tile-in { background: var(--raised); }
.t-ver .tile-tx p, .t-res .tile-tx p { color: var(--stage-mut); }
.t-voz .tile-tx p, .t-sin .tile-tx p { color: color-mix(in srgb, var(--ink) 66%, transparent); }
.tile-in > :last-child { margin-top: auto; }

/* Verificar pago */
.ver { display: grid; gap: 14px; align-items: end; }
.ver-res { align-self: center; }
@media (min-width: 560px) { .ver { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; } }
.ver-tec { display: grid; gap: 8px; }
.ver-pant { display: flex; align-items: baseline; gap: 8px; height: 62px; padding: 0 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); align-items: center; }
.ver-pant span { font-size: 18px; font-weight: 500; color: var(--stage-mut); }
.ver-pant b { font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ver-teclas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ver-teclas i { display: grid; place-items: center; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-style: normal; font-size: 18px; font-weight: 500; transition: transform 0.12s var(--ease), background-color 0.12s ease; }
.ver-teclas i svg { width: 18px; height: 18px; opacity: 0.7; }
.ver-teclas i.p { transform: scale(0.92); background: rgba(255, 255, 255, 0.3); }
.ver-res { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: var(--raised); color: var(--ink); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.45); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.ver-res .disco { width: 48px; height: 48px; }
.ver-res .disco svg { width: 26px; height: 26px; }
.ver-res b { display: block; font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.03em; }
.ver-res span:not(.disco) { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--muted); }
.ver-res.no .disco { background: var(--danger); color: var(--on-danger); }
.ver-res.no b { color: var(--danger-ink); }
.ver-res.espera { opacity: 0; transform: translateY(12px) scale(0.98); }

/* Alertas con voz */
.voz-ui { display: grid; gap: 22px; }
.alerta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; background: var(--raised); box-shadow: 0 0 0 1px var(--line), 0 20px 36px -18px var(--glow); }
.alerta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 20px; font-weight: 600; }
.alerta span:not(.disco) { font-size: 13px; line-height: 18px; color: var(--muted); }
.alerta div { flex: 1; min-width: 0; }
.alerta em { font-style: normal; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ondas { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.ondas i { width: 4px; height: 100%; border-radius: 3px; background: var(--brand); transform-origin: center; }
.ondas i:nth-child(6n+1) { transform: scaleY(0.3); } .ondas i:nth-child(6n+2) { transform: scaleY(0.7); } .ondas i:nth-child(6n+3) { transform: scaleY(1); }
.ondas i:nth-child(6n+4) { transform: scaleY(0.5); } .ondas i:nth-child(6n+5) { transform: scaleY(0.85); } .ondas i:nth-child(6n) { transform: scaleY(0.25); }
.voz-ui q { font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; quotes: "\201C" "\201D"; }

/* Resumen del día */
.res { display: grid; gap: 18px; }
.res-n span { display: block; font-size: 14px; color: var(--stage-mut); }
.res-n b { font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 132px; }
.barras i { position: relative; flex: 1; border-radius: 8px; background: rgba(143, 202, 167, 0.34); transform-origin: bottom; }
.barras i:nth-child(1) { height: 22%; } .barras i:nth-child(2) { height: 34%; } .barras i:nth-child(3) { height: 28%; } .barras i:nth-child(4) { height: 48%; }
.barras i:nth-child(5) { height: 62%; } .barras i:nth-child(6) { height: 80%; } .barras i:nth-child(7) { height: 70%; } .barras i:nth-child(8) { height: 52%; }
.barras i:nth-child(9) { height: 60%; } .barras i:nth-child(10) { height: 76%; } .barras i:nth-child(11) { height: 100%; background: var(--stage-acc); } .barras i:nth-child(12) { height: 38%; background: var(--tile-ink-fg); }
.barras .ahora::after { content: ""; position: absolute; left: 50%; top: -16px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--signal); }
.horas { display: flex; justify-content: space-between; font: 400 13px/16px var(--mono); color: var(--stage-mut); }

/* Todo el equipo: dos teléfonos con pantalla de bloqueo, recortados por el borde inferior. */
.t-eq .tile-in { padding-bottom: 0; gap: 24px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; width: 100%; max-width: 520px; margin: auto auto 0; }
.dp { container-type: inline-size; width: 100%; max-width: 208px; justify-self: center; }
.dp-a { transform: translateY(22px); }
.dp-q { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: 14px; line-height: 18px; color: var(--muted); white-space: nowrap; }
.dp-q b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.av { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; }
.ph { width: 100%; aspect-ratio: 1 / 2.1; margin-bottom: -84%; padding: 2.8cqw; border-radius: 18cqw; background: #0d110f; box-shadow: 0 0 0 1px var(--line), 0 28px 44px -30px var(--glow); transform-origin: 50% 100%; }
.dp-a .ph { transform: rotate(-3deg); }
.dp-b .ph { transform: rotate(3deg); }
.ph-pant { position: relative; height: 100%; border-radius: 15.2cqw; overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, rgba(143, 202, 167, 0.28), transparent 60%), linear-gradient(170deg, var(--band), #0f221a); color: #ffffff; text-align: center; }
.ph-isla { position: absolute; left: 50%; top: 3.6cqw; width: 27cqw; height: 8cqw; margin-left: -13.5cqw; border-radius: 4cqw; background: #000; }
.ph-fecha { padding-top: 17cqw; font-size: clamp(11px, 5.4cqw, 14px); line-height: 1.2; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.ph-hora { font-size: 25cqw; line-height: 1.02; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ban { position: absolute; left: 4cqw; right: 4cqw; top: 53cqw; display: grid; gap: 1.2cqw; padding: 3.4cqw 3.8cqw 3.8cqw; border-radius: 6.4cqw; background: rgba(244, 247, 245, 0.95); color: #131815; text-align: left; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.ban-cab { display: flex; align-items: center; gap: 1.6cqw; font-size: 11px; line-height: 14px; font-weight: 500; color: #4f5954; }
.ban-cab svg { width: clamp(13px, 6.4cqw, 17px); height: clamp(13px, 6.4cqw, 17px); flex: none; --logo-tarjeta: #2d5b45; --logo-punto: #2f6fe0; --logo-v-vis: #ffffff; --logo-v-mask: #ffffff; }
.ban-cab em { margin-left: auto; font-style: normal; }
.ban b { font-size: clamp(11px, 6cqw, 15px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.ban span { font-size: clamp(11px, 5.6cqw, 14px); line-height: 1.2; color: #3a443e; }
.t-eq .tile-tx p { display: block; }
@media (min-width: 900px) { .duo { gap: 28px; } }
@media (max-width: 520px) {
  .t-eq .tile-in { padding: 28px 12px 0; gap: 24px; }
  .t-eq .tile-tx { padding-inline: 10px; }
  .duo { gap: 10px; }
  .ph { margin-bottom: -74%; }
  .dp-a { transform: translateY(16px); }
  .dp-q { gap: 6px; font-size: 13px; }
  .dp-q b { font-size: 14px; }
  .av { width: 24px; height: 24px; font-size: 12px; }
}

/* Sin señal */
.sin { display: grid; gap: 10px; }
.sin-st { display: grid; }
.sin-st > * { grid-area: 1 / 1; display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 26px; }
.sin .disco { width: 56px; height: 56px; }
.sin .sin-st .disco svg { width: 28px; height: 28px; }
.sin-st b { display: block; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.sin-st span:not(.disco) { display: block; margin-top: 4px; font-size: 15px; line-height: 20px; }
.sin-ok { background: var(--raised); opacity: 0; }
.sin-ok span:not(.disco) { color: var(--muted); }
.sin-mal { background: var(--danger); color: var(--on-danger); }
.sin-mal .disco { background: rgba(255, 255, 255, 0.2); color: var(--on-danger); }
.sin-fant { display: grid; gap: 8px; opacity: 0.55; }
.sin-fant .disco { width: 36px; height: 36px; }
.sin-fant .disco svg { width: 20px; height: 20px; }

/* Exportar a Excel */
.hoja { position: relative; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: 400 12.5px/18px var(--mono); }
.fila { display: grid; grid-template-columns: 48px minmax(0, 1fr) 54px; gap: 8px; padding: 9px 14px; }
.fila + .fila { border-top: 1px solid var(--line); }
.fila span:last-child { text-align: right; }
.fila-cab { background: var(--sunken); border-radius: 18px 18px 0 0; color: var(--muted); font-weight: 500; }
.fila span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hoja-btn { display: flex; width: max-content; margin: 14px 0 0 auto; align-items: center; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); font: 600 15px/1 var(--sans); box-shadow: 0 10px 20px -10px var(--glow); }
.hoja-btn svg { width: 18px; height: 18px; }

/* ── Cómo empiezas ── */
.pasos { --gap: 20px; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: var(--gap); }
.paso { --o: 0s; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.paso-n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.paso-n::after { content: attr(data-n); position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.paso:not(:last-child)::before, .paso:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 62px; width: 2px; height: calc(100% - 62px + var(--gap) - 6px); border-radius: 1px; }
.paso:not(:last-child)::before { background: var(--line); }
.paso:not(:last-child)::after { background: var(--brand); transform-origin: top; }
.paso-card { display: flex; flex-direction: column; gap: 24px; align-self: stretch; padding: 24px; border-radius: 28px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.paso h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.04em; }
.mu { display: grid; gap: 14px; margin-top: auto; }
@media (min-width: 800px) {
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .paso { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 20px; }
  .paso-card { padding: 28px; }
  .paso:not(:last-child)::before, .paso:not(:last-child)::after { left: 64px; top: 27px; width: calc(100% + var(--gap) - 72px); height: 2px; }
  .paso:not(:last-child)::after { transform-origin: left; }
}
/* 1: descarga */
.mu-btn { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 48px; padding: 0 20px 0 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.mu-btn svg { width: 20px; height: 20px; }
.mu-prog { display: flex; align-items: center; gap: 12px; }
.mu-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.mu-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); transform-origin: left; }
.mu-ok { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.mu-ok svg { width: 16px; height: 16px; stroke-width: 3; }
/* 2: ajuste de Android */
.aj { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.aj > svg { width: 36px; height: 36px; flex: none; --logo-tarjeta: #2d5b45; --logo-punto: #2f6fe0; --logo-v-vis: #ffffff; --logo-v-mask: #ffffff; }
.aj div { flex: 1; min-width: 0; }
.aj b { display: block; font-size: 15px; line-height: 19px; font-weight: 600; letter-spacing: -0.01em; }
/* En celulares angostos «notificaciones» no entra junto al interruptor: se corta con guion. */
.aj b { hyphens: auto; overflow-wrap: break-word; }
.aj div span { font-size: 13px; line-height: 17px; color: var(--muted); }
.sw { position: relative; flex: none; width: 52px; height: 30px; border-radius: 15px; background: var(--brand); }
.sw::before { content: ""; position: absolute; inset: 0; border-radius: 15px; background: var(--line-strong); opacity: 0; }
.sw i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transform: translateX(22px); }
.perm { display: inline-flex; align-items: center; gap: 6px; justify-self: start; height: 32px; padding: 0 14px 0 10px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; font-weight: 600; }
.perm svg { width: 16px; height: 16px; stroke-width: 3; }
/* 3: invitación */
.inv { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.qr { flex: none; width: 92px; height: 92px; padding: 9px; border-radius: 16px; background: #ffffff; color: #131815; box-shadow: 0 0 0 1px var(--line); }
.qr svg { width: 100%; height: 100%; }
.cod { display: inline-block; padding: 10px 16px; border-radius: var(--r-pill); background: var(--sunken); font: 500 20px/24px var(--mono); letter-spacing: 0.04em; white-space: nowrap; }
.unio { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.unio .av { width: 32px; height: 32px; }
.unio svg { width: 18px; height: 18px; margin-left: auto; color: var(--brand); stroke-width: 3; }

@media (max-width: 420px) {
  .paso { grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
  .paso-n { width: 48px; height: 48px; font-size: 22px; }
  .paso:not(:last-child)::before, .paso:not(:last-child)::after { left: 23px; top: 54px; height: calc(100% - 54px + var(--gap) - 6px); }
  .paso-card { padding: 18px; gap: 18px; }
  .aj { padding: 12px; gap: 10px; }
  .aj > svg { width: 30px; height: 30px; }
  .aj b { font-size: 14px; line-height: 18px; }
  .sw { width: 46px; height: 28px; border-radius: 14px; }
  .sw::before { border-radius: 14px; }
  .sw i { width: 22px; height: 22px; transform: translateX(18px); }
  .inv { gap: 12px; }
  .qr { width: 76px; height: 76px; padding: 7px; }
  .cod { padding: 8px 12px; font-size: 17px; line-height: 22px; }
  .mu-btn { padding: 0 16px 0 12px; font-size: 14px; }
}

/* Garantías bajo los botones de la portada. */
.garantias { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; line-height: 20px; color: var(--muted); }
.garantias li { display: inline-flex; align-items: center; gap: 6px; }
.garantias svg { width: 16px; height: 16px; color: var(--brand); stroke-width: 2.6; }

/* ── Precios ── */
.planes { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 14px; }
@media (min-width: 900px) {
  .planes { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .plan-neg { grid-column: span 7; } .plan-loc { grid-column: span 5; }
}
.plan { display: flex; }
.plan-in { flex: 1; display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 720px) { .plan-in { padding: 36px; } }
.plan-neg .plan-in { background: var(--tile-brand); color: var(--stage-ink); }
.plan-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.plan-cab h3 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; font-weight: 600; white-space: nowrap; }
.plan-neg .pill { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.precio { display: flex; align-items: baseline; font-size: clamp(3.8rem, 8vw, 6rem); line-height: 0.95; font-weight: 600; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.precio .mon { margin-right: 0.12em; font-size: 0.34em; letter-spacing: -0.02em; font-weight: 500; opacity: 0.7; }
.precio .per { margin-left: 0.18em; font-size: 0.26em; letter-spacing: -0.01em; font-weight: 500; opacity: 0.7; }
.anual { margin-top: 12px; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-neg .anual { color: var(--stage-mut); }
.inc { display: grid; gap: 14px; margin-block: 32px 36px; }
.inc li { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.inc svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); stroke-width: 2.6; }
.plan-neg .inc svg { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.plan-in .btn { align-self: flex-start; margin-top: auto; }
.pago-nota { margin-top: 28px; color: var(--muted); font-size: 16px; }

/* ── Preguntas ── */
.faq-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding-block: 20px; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sunken); transition: transform 0.4s var(--ease-drawer); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 56px 24px 0; font-size: 18px; line-height: 26px; color: var(--muted); }
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover i { background: var(--line); } }

/* ── Cierre ── */
.cierre-sec { padding-top: clamp(88px, 13vw, 180px); }
.cierre { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 120px) clamp(28px, 6vw, 80px); border-radius: 40px; background: var(--stage); color: var(--stage-ink); }
.cierre > * { position: relative; }
.mega-s { max-width: 9.5em; font-size: clamp(2.9rem, 8.4vw, 7.2rem); line-height: 0.95; font-weight: 600; letter-spacing: -0.06em; text-wrap: balance; }
.cierre .acciones { margin-top: clamp(32px, 4vw, 56px); }
.cierre .cierre-sim { position: absolute; right: -8%; bottom: -26%; width: clamp(280px, 46vw, 600px); height: auto; opacity: 0.07; pointer-events: none; }

/* ── Pie ── */
/* Pie: el logotipo «vigipagos» completo y grande, y debajo una barra con © y enlaces (como Antigravity). */
.banda-pie { padding-block: clamp(64px, 8vw, 112px) 24px; overflow: clip; }
.pie-gigante { width: min(1240px, 100% - 32px); margin-inline: auto; pointer-events: none; }
.pie-gigante svg { display: block; width: 100%; height: auto; }
.pg-letras { stroke: var(--ink); }
.pg-letras-punto { fill: var(--ink); }
.pg-punto { fill: var(--signal); }
.pie { margin-top: clamp(32px, 5vw, 64px); display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.pie-enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
.pie-enlaces a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.pie .legal { color: var(--muted); font-size: 14px; line-height: 20px; }
@media (min-width: 840px) {
  .pie { flex-direction: row; justify-content: space-between; }
}
@media (hover: hover) and (pointer: fine) { .pie a:hover { text-decoration: underline; text-underline-offset: 4px; } }
@media (min-width: 840px) {
  .pie { grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: stretch; text-align: left; gap: 32px; }
  .pie-enlaces { justify-content: center; }
  .pie .legal { text-align: right; }
}

/* ── Movimiento ── */
@keyframes sube { from { transform: translateY(105%); } }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }
@keyframes tel-in { from { opacity: 0; transform: translateY(56px) scale(0.97); } }
@keyframes llega { from { opacity: 0; transform: scale(0.94) translateY(-8px); } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes late { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes onda { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes alerta { 0% { opacity: 0; transform: translateY(-16px) scale(0.97); } 10%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes cap-1 { from { opacity: 0; transform: translate(-6px, -26px) rotate(-7deg); } to { opacity: 1; transform: translateX(-6px) rotate(-2.5deg); } }
@keyframes sello-1 { 0% { opacity: 0; transform: rotate(-8deg) scale(1.7); } 70% { opacity: 1; transform: rotate(-8deg) scale(0.94); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes real-1 { from { opacity: 0; transform: translate(6px, 28px) rotate(1.2deg); } to { opacity: 1; transform: translateX(6px) rotate(1.2deg); } }
@keyframes ban-in { 0%, 6% { opacity: 0; transform: translateY(-26px) scale(0.98); } 14% { opacity: 1; transform: translateY(0) scale(1.012); } 19%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes zumbido { 0%, 12% { transform: none; } 15% { transform: scale(0.985); } 19%, 100% { transform: none; } }
@keyframes p-n { from { opacity: 0; } to { opacity: 1; } }
@keyframes p-lx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes p-ly { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes p-pop { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes p-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes p-side { from { opacity: 0; transform: translateX(18px); } }
@keyframes p-press { 50% { transform: scale(0.95); } }
@keyframes p-sw { from { transform: translateX(0); } }
@keyframes p-sw2 { from { opacity: 1; } to { opacity: 0; } }
@keyframes crece { from { transform: scaleY(0.04); } }
@keyframes ss-ok { 0%, 38% { opacity: 1; transform: none; } 46%, 94% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes ss-mal { 0%, 38% { opacity: 0; transform: translateY(-10px) scale(0.98); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ss-fant { 0%, 38% { opacity: 1; } 48%, 92% { opacity: 0.4; } 100% { opacity: 1; } }
@keyframes ss-late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes fila { 0% { opacity: 0; transform: translateY(8px); } 10%, 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

@media (prefers-reduced-motion: no-preference) {
  .ln > span { animation: sube 1.1s var(--ease-drawer) both; }
  .ln:nth-child(2) > span { animation-delay: 0.09s; }
  .h-in { animation: entra 0.9s 0.3s var(--ease) both; }
  .acciones.h-in { animation-delay: 0.4s; }
  .garantias.h-in { animation-delay: 0.5s; }
  .h-tel { animation: tel-in 1.3s 0.2s var(--ease-drawer) both; }
  .pago.llega { animation: llega 0.6s var(--ease) both; }
  .pago.llega .disco { animation: pop 0.5s 0.12s var(--ease) both; }
  .pago.llega .insignia { animation: pop 0.5s 0.5s var(--ease) both; }
  .latido { animation: late 2s ease-in-out infinite; }
  .tel.on .onda i { animation: onda 0.5s var(--ease-io) infinite alternate; }
  .tel.on .onda i:nth-child(2) { animation-delay: -0.15s; } .tel.on .onda i:nth-child(3) { animation-delay: -0.3s; }
  .tel.on .onda i:nth-child(4) { animation-delay: -0.1s; } .tel.on .onda i:nth-child(5) { animation-delay: -0.4s; }

  /* «Si no aparece aquí»: se cuenta una vez en menos de 2 s y queda quieta (captura → No llegó → pago real → Confirmado). */
  .vivo .captura { animation: cap-1 0.45s var(--ease) both; }
  .vivo .sello { animation: sello-1 0.4s var(--ease) 0.45s both; }
  .vivo .pago.real { animation: real-1 0.5s var(--ease) 0.95s both; }
  .vivo .pago.real .insignia { animation: pop 0.4s var(--ease) 1.4s both; }
  .vivo .ban { animation: ban-in 5s var(--ease) infinite; }
  .vivo .ph-pant { animation: zumbido 5s var(--ease) infinite; }
  .vivo .dp-b .ban, .vivo .dp-b .ph-pant { animation-delay: 0.2s; }
  .paso.vivo .paso-n::after { animation: p-n 0.4s var(--ease) calc(var(--o) + 0.1s) both; }
  .paso.vivo:nth-child(1)::after { animation: p-ly 0.8s var(--ease-io) calc(var(--o) + 2.4s) both; }
  .paso.vivo:nth-child(2)::after { animation: p-ly 0.8s var(--ease-io) calc(var(--o) + 1.5s) both; }
  .vivo .mu-btn { animation: p-press 0.45s var(--ease) 0.5s both; }
  .vivo .mu-bar i { animation: p-lx 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both; }
  .vivo .mu-ok { animation: p-pop 0.5s var(--ease) 2.3s both; }
  .paso.vivo .aj { animation: p-in 0.6s var(--ease) calc(var(--o) + 0.2s) both; }
  .paso.vivo .sw i { animation: p-sw 0.4s var(--ease) calc(var(--o) + 0.9s) both; }
  .paso.vivo .sw::before { animation: p-sw2 0.3s ease calc(var(--o) + 0.9s) both; }
  .paso.vivo .perm { animation: p-pop 0.5s var(--ease) calc(var(--o) + 1.3s) both; }
  .paso.vivo .inv { animation: p-in 0.6s var(--ease) calc(var(--o) + 0.2s) both; }
  .paso.vivo .unio { animation: p-side 0.6s var(--ease) calc(var(--o) + 1.0s) both; }
  @media (min-width: 800px) {
    .paso.vivo:nth-child(1)::after { animation-name: p-lx; }
    .paso.vivo:nth-child(2)::after { animation-name: p-lx; }
  }
  .vivo .alerta { animation: alerta 6s var(--ease) infinite; }
  .vivo .ondas i { animation: onda 0.7s var(--ease-io) infinite alternate; }
  .vivo .ondas i:nth-child(3n+2) { animation-duration: 0.55s; animation-delay: -0.2s; }
  .vivo .ondas i:nth-child(4n+3) { animation-duration: 0.85s; animation-delay: -0.35s; }
  .vivo .ondas i:nth-child(5n+1) { animation-duration: 0.62s; animation-delay: -0.1s; }
  .vivo .barras i { animation: crece 1s var(--ease) both; }
  .vivo .barras i:nth-child(2) { animation-delay: 0.05s; } .vivo .barras i:nth-child(3) { animation-delay: 0.1s; } .vivo .barras i:nth-child(4) { animation-delay: 0.15s; }
  .vivo .barras i:nth-child(5) { animation-delay: 0.2s; } .vivo .barras i:nth-child(6) { animation-delay: 0.25s; } .vivo .barras i:nth-child(7) { animation-delay: 0.3s; }
  .vivo .barras i:nth-child(8) { animation-delay: 0.35s; } .vivo .barras i:nth-child(9) { animation-delay: 0.4s; } .vivo .barras i:nth-child(10) { animation-delay: 0.45s; }
  .vivo .barras i:nth-child(11) { animation-delay: 0.5s; } .vivo .barras i:nth-child(12) { animation-delay: 0.55s; }
  .vivo .barras .ahora::after { animation: pulsa 1.8s var(--ease-io) infinite; }
  .vivo .sin-ok { animation: ss-ok 9s var(--ease) infinite; }
  .vivo .sin-fant { animation: ss-fant 9s var(--ease) infinite; }
  .vivo .sin-mal { animation: ss-mal 9s var(--ease) infinite; }
  .vivo .sin-mal .disco { animation: ss-late 1.6s var(--ease-io) infinite; }
  .vivo .fila:not(.fila-cab) { animation: fila 7s var(--ease) infinite both; }
  .vivo .fila:nth-child(3) { animation-delay: 0.12s; } .vivo .fila:nth-child(4) { animation-delay: 0.24s; }
  .vivo .fila:nth-child(5) { animation-delay: 0.36s; } .vivo .fila:nth-child(6) { animation-delay: 0.48s; }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .rev { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  .rev.in { opacity: 1; transform: none; }
  [data-pal] .pal { opacity: 0.12; transform: translateY(0.14em); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
  [data-pal].in .pal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ver-res, .ver-teclas i, .nuevo-punto { transition: none; }
}

/* ── Páginas legales ── */
.cab-doc { background: var(--surface); }
.cab-doc .caja { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.cab-doc .marca svg { height: 28px; }
.cab-doc .volver { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cab-doc .volver:hover { background: var(--sunken); } }

.doc { max-width: 760px; margin-inline: auto; padding: 24px 16px 80px; }
@media (min-width: 720px) { .doc { padding: 40px 32px 112px; } }
.doc h1 { font-size: clamp(2rem, 6vw + 0.5rem, 3rem); line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; }
.doc .fecha { margin-top: 12px; color: var(--muted); font-size: 14px; }
.en-resumen { margin-top: 28px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--brand-soft); max-width: 68ch; }
.doc .en-resumen h2 { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: var(--brand-strong); }
.doc .en-resumen ul.lista { margin-top: 10px; gap: 6px; }
.doc .en-resumen ul.lista li::before { background: var(--brand); }

.doc section { margin-top: 36px; scroll-margin-top: 16px; }
.doc h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.doc h3 { margin-top: 28px; font-size: 17px; line-height: 24px; font-weight: 600; }
.doc p, .doc li { font-size: 16px; line-height: 27px; }
.doc p { margin-top: 14px; max-width: 68ch; }
.doc h2 + p { margin-top: 12px; }
.doc ul.lista { margin-top: 12px; display: grid; gap: 8px; max-width: 68ch; }
.doc ul.lista li { position: relative; padding-left: 22px; }
.doc ul.lista li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.doc a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc strong { font-weight: 600; }
.dato-pendiente { padding: 1px 6px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn-ink); font-weight: 600; white-space: nowrap; }

.tabla { margin-top: 16px; width: 100%; border-collapse: separate; border-spacing: 0; background: var(--raised); border-radius: var(--r-lg); box-shadow: var(--shadow-raise); overflow: hidden; }
.tabla th { text-align: left; padding: 12px 16px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); background: var(--sunken); }
.tabla td { padding: 14px 16px; vertical-align: top; font-size: 15px; line-height: 22px; border-top: 1px solid var(--line); }
.tabla td:first-child { font-weight: 600; }
@media (max-width: 719px) {
  .tabla, .tabla tbody, .tabla tr, .tabla td { display: block; }
  .tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabla { background: transparent; box-shadow: none; overflow: visible; border-radius: 0; }
  .tabla tr { background: var(--raised); border-radius: var(--r-lg); box-shadow: var(--shadow-raise); }
  .tabla tr + tr { margin-top: 8px; }
  .tabla td { border-top: 0; padding: 4px 16px; }
  .tabla td:first-child { padding-top: 14px; font-size: 16px; }
  .tabla td:last-child { padding-bottom: 14px; }
  .tabla td[data-l]::before { content: attr(data-l); display: block; color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; }
  .tabla td:first-child::before { display: none; }
}

/* ── 404 ── */
.error-pag { min-height: 60dvh; display: grid; align-content: center; justify-items: start; gap: 20px; padding-block: 48px 96px; }
.error-pag h1 { font-size: clamp(2rem, 6vw + 0.5rem, 3rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; }
.error-pag p { color: var(--muted); font-size: 18px; line-height: 28px; max-width: 28em; }


@media print {
  .nav, .banda-pie, .cab-doc .volver { display: none; }
  body { background: #fff; color: #000; }
}
