/*
 * Sitio público de Kontrol Finance (inicio, novedades, política de privacidad y borrado de cuenta).
 * Mismo lenguaje visual que la app, en sus dos temas (ui/theme/Color.kt): oscuro —fondo casi negro
 * con halos azul y teal— y claro —gris azulado con tarjetas blancas—. El tema lo fija un script
 * mínimo en <head> (data-theme en <html>): el del sistema, o el que la persona eligió con el botón.
 * Sin fuentes ni scripts de terceros: una página de privacidad no debería avisarle a nadie que la
 * abriste.
 */
:root {
  --bg: #070b16;
  --glow-a: rgba(59, 91, 219, 0.35);
  --glow-b: rgba(45, 212, 191, 0.18);
  --glow-c: rgba(109, 40, 217, 0.16);
  --surface: rgba(16, 23, 42, 0.72);
  --surface-soft: rgba(16, 23, 42, 0.5);
  --menu: #0d1424;
  --line: rgba(138, 174, 255, 0.14);
  --line-strong: rgba(138, 174, 255, 0.28);
  --text: #e8ecf5;
  --heading: #ffffff;
  --body: #c9d1e3;
  --muted: #9aa4bc;
  --primary: #8aaeff;
  --primary-hover: #b7c8ff;
  --teal: #2dd4bf;
  --violet: #b9a2ff;
  --warning: #fbbf24;
  --danger: #f87171;
  --tint: rgba(138, 174, 255, 0.1);
  --tint-soft: rgba(138, 174, 255, 0.06);
  --teal-tint: rgba(45, 212, 191, 0.12);
  --teal-line: rgba(45, 212, 191, 0.3);
  --violet-tint: rgba(185, 162, 255, 0.16);
  --warning-tint: rgba(251, 191, 36, 0.07);
  --warning-line: rgba(251, 191, 36, 0.35);
  --topbar: rgba(7, 11, 22, 0.66);
  --shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
  --device-shadow: rgba(0, 0, 0, 0.75);
  --h1-from: #ffffff;
  --h1-to: #b7c8ff;
  --highlight: linear-gradient(135deg, rgba(22, 39, 90, 0.9), rgba(13, 22, 51, 0.85) 55%, rgba(7, 26, 36, 0.9));
  --highlight-line: rgba(138, 174, 255, 0.3);
  --accent: linear-gradient(135deg, #2dd4bf, #8aaeff);
  --on-accent: #06121f;
  --store: #000000;
  --store-line: rgba(255, 255, 255, 0.32);
  --radius: 20px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f5fa;
  --glow-a: rgba(30, 64, 175, 0.13);
  --glow-b: rgba(13, 128, 120, 0.11);
  --glow-c: rgba(109, 40, 217, 0.07);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: #ffffff;
  --menu: #ffffff;
  --line: rgba(15, 22, 41, 0.1);
  --line-strong: rgba(30, 64, 175, 0.38);
  --text: #0f1629;
  --heading: #0f1629;
  --body: #333c52;
  --muted: #4a5368;
  --primary: #1e40af;
  --primary-hover: #16308a;
  --teal: #0d8078;
  --violet: #6d28d9;
  --warning: #a8530a;
  --danger: #c81e1e;
  --tint: rgba(30, 64, 175, 0.08);
  --tint-soft: rgba(30, 64, 175, 0.05);
  --teal-tint: rgba(13, 128, 120, 0.1);
  --teal-line: rgba(13, 128, 120, 0.3);
  --violet-tint: rgba(109, 40, 217, 0.1);
  --warning-tint: rgba(251, 191, 36, 0.14);
  --warning-line: rgba(180, 83, 9, 0.35);
  --topbar: rgba(243, 245, 250, 0.8);
  --shadow: 0 20px 50px -32px rgba(15, 22, 41, 0.4);
  --device-shadow: rgba(15, 22, 41, 0.45);
  --h1-from: #0f1629;
  --h1-to: #1e40af;
  --highlight: linear-gradient(135deg, #dce6ff, #eef1f7 55%, #ccf7ef);
  --highlight-line: rgba(30, 64, 175, 0.22);
  --accent: linear-gradient(135deg, #0d8078, #1e40af);
  --on-accent: #ffffff;
  --store: #0f1629;
  --store-line: rgba(15, 22, 41, 0.9);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 8% -10%, var(--glow-a), transparent 60%),
    radial-gradient(760px 480px at 100% 0%, var(--glow-b), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, var(--glow-c), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font: 16px/1.65 "Inter", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
strong { color: var(--heading); font-weight: 650; }
img { max-width: 100%; }
code {
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 7px;
  font-size: 0.88em;
}
.mail { font-weight: 600; color: var(--teal); user-select: all; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 8px 24px -8px rgba(45, 212, 191, 0.5); }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topbar nav a.nav-link {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 999px;
}
.topbar nav a.nav-link:hover, .topbar nav a.nav-link[aria-current="page"] { color: var(--text); background: var(--tint); }

/* Tema claro u oscuro: muestra el ícono del tema al que se cambia. */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--text);
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover { background: var(--tint); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

/* Cambio de idioma: una píldora con borde que abre la lista de idiomas. */
.langs { position: relative; margin: 0 0 0 4px; padding: 0; border: 0; border-radius: 0; background: none; align-self: center; }
.langs summary.lang {
  list-style: none;
  cursor: pointer;
  color: var(--teal);
  border: 1px solid var(--teal-line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  white-space: nowrap;
  user-select: none;
}
.langs summary.lang::-webkit-details-marker { display: none; }
.langs summary.lang::after { content: "▾"; float: none; color: inherit; line-height: inherit; margin-left: 6px; font-size: 0.75em; opacity: 0.8; }
.langs summary.lang:hover, .langs[open] summary.lang { background: var(--teal-tint); }
.langs .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: var(--menu);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px var(--device-shadow);
}
.langs .menu a {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 10px;
  padding: 7px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  white-space: nowrap;
}
.langs .menu a:hover { color: var(--text); background: var(--tint); }
.langs .menu a b { width: 24px; color: var(--teal); font-size: 0.8rem; letter-spacing: 0.04em; }
.langs .menu a[aria-current="true"] { color: var(--text); background: var(--teal-tint); }

/* El menú de navegación de teléfono y tablet: ahí los enlaces de la barra no caben. */
.more { display: none; margin: 0 0 0 4px; padding: 0; border: 0; background: none; }
.more summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover, .more[open] summary { background: var(--tint); }
.more summary svg { width: 18px; height: 18px; }
.more .menu {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 6px);
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--menu);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 50px -16px var(--device-shadow);
}
.more .menu a, .more .menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.more .menu a:hover, .more .menu button:hover, .more .menu a[aria-current="page"] { background: var(--tint); }
.more .menu button { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--muted); font-weight: 550; }
.more .menu button svg { width: 18px; height: 18px; flex: none; }
.more .menu button .moon { display: none; }
:root[data-theme="light"] .more .menu button .sun { display: none; }
:root[data-theme="light"] .more .menu button .moon { display: block; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; margin-left: 6px; }
.btn.ghost { background: none; border-color: var(--line-strong); color: var(--text); font-weight: 600; }
.btn.ghost:hover { color: var(--text); background: var(--tint); filter: none; }

/* "Disponible en Google Play": la forma usual de la insignia (negra, con el ícono a color). */
.play {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 58px;
  padding: 0 20px 0 15px;
  border-radius: 12px;
  border: 1px solid var(--store-line);
  background: var(--store);
  color: #ffffff;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.play:hover { color: #ffffff; transform: translateY(-2px); }
.play svg { width: 27px; height: 30px; flex: none; }
.play small { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.9; }
.play b { display: block; margin-top: 3px; font-size: 1.24rem; font-weight: 600; letter-spacing: -0.01em; }

/* Junto a la insignia, el otro botón toma su misma altura y sus mismas esquinas. */
.actions .btn.ghost { height: 58px; padding: 0 22px; border-radius: 12px; background: var(--tint-soft); font-size: 1.02rem; }
.actions .btn.ghost::after { content: "↓"; color: var(--teal); font-weight: 700; }

/* ---------- Contenido ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 0 20px 72px; }

.hero { padding: 56px 0 28px; max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-tint);
  border: 1px solid var(--teal-line);
  padding: 5px 12px;
  border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
  /* Palabras largas ("Datenschutzerklärung") se parten en vez de salirse en pantallas chicas. */
  hyphens: auto;
  overflow-wrap: break-word;
  background: linear-gradient(180deg, var(--h1-from) 30%, var(--h1-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; }
.meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.chip b { color: var(--teal); font-weight: 650; }

h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--heading); }
h3 { font-size: 1.05rem; margin: 26px 0 8px; color: var(--heading); }
p, li { color: var(--body); }
ul, ol { padding-left: 1.2em; }
li { margin: 6px 0; }
li::marker { color: var(--teal); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card > :last-child { margin-bottom: 0; }
.card.highlight { background: var(--highlight); border-color: var(--highlight-line); }
.card.highlight p { font-size: 1.08rem; color: var(--text); }
.card.warning { border-color: var(--warning-line); background: var(--warning-tint); }
.card.warning strong { color: var(--warning); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid .card { margin: 0; }

/* Pasos numerados */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; }
ol.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
}

/* Listas con ícono: ✓ se borra, ● se conserva */
ul.check, ul.keep { list-style: none; padding: 0; }
ul.check li, ul.keep li { position: relative; padding-left: 30px; }
ul.check li::before, ul.keep li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}
ul.check li::before { content: "✓"; color: var(--teal); background: var(--teal-tint); }
ul.keep li::before { content: "•"; color: var(--violet); background: var(--violet-tint); font-size: 1rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

/* Tablas */
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; background: var(--tint-soft); }
td { color: var(--body); }

/* Política: índice al lado en pantallas anchas */
.doc { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.doc > * { min-width: 0; }
.toc { display: none; }
@media (min-width: 980px) {
  .doc { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  .toc {
    display: block;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .toc h4 { margin: 0 0 8px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.35; }
  .toc a:hover { color: var(--text); background: var(--tint); }
}

.toc a { display: flex; gap: 8px; align-items: baseline; }
.toc a .num { color: var(--teal); font-weight: 700; font-size: 0.8rem; min-width: 1.1em; }
.toc a[aria-current="true"] { color: var(--text); background: var(--teal-tint); }
.doc-body .card { padding: 30px 32px; scroll-margin-top: 96px; }
.doc-body .card > h2 { display: flex; align-items: center; gap: 14px; font-size: 1.45rem; margin-bottom: 16px; }
.doc-body .card > h2 .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 1rem;
  color: var(--teal);
  background: var(--teal-tint);
  box-shadow: inset 0 0 0 1px var(--teal-line);
}
.doc-body .card h3 { padding-top: 20px; border-top: 1px solid var(--line); }
.doc-body .card h3:first-of-type { margin-top: 18px; }

/*
 * Eliminar mi cuenta. Arriba, el título y al lado los dos tiempos (desde la app, por correo). Luego
 * las dos formas de hacerlo, con sus pasos unidos por una línea; y qué se elimina (en rojo) y qué
 * se conserva (en violeta), cada dato en su renglón con su ícono.
 */
.dhero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; padding: 56px 0 30px; }
.dhero h1 { margin-top: 20px; }
.glance {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--highlight-line);
  background: var(--highlight);
  box-shadow: var(--shadow);
}
.glance-row {
  --a: var(--teal);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.glance-row + .glance-row { --a: var(--primary); }
.glance-row .ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 17px; }
.glance-row .ico svg { width: 26px; height: 26px; }
.glance-row span:not(.ico) { color: var(--muted); font-size: 0.9rem; }
.glance-row b { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--heading); }

.options, .outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.option, .outcome {
  --a: var(--teal);
  position: relative;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.option:nth-child(2) { --a: var(--primary); }
.outcome.gone { --a: var(--danger); }
.outcome.kept { --a: var(--violet); }
.option::before, .outcome::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--a), transparent);
  opacity: 0.12;
  pointer-events: none;
}
.option > *, .outcome > * { position: relative; }
.option-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.option-head .ico { width: 56px; height: 56px; border-radius: 18px; flex: none; }
.option-head h2 { margin: 0; font-size: 1.45rem; }
.option-head .tag { margin: 0; color: var(--a); }
.option-time {
  margin-left: auto;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--a);
  background: color-mix(in srgb, var(--a) 14%, transparent);
}
ol.stepper { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.stepper li { counter-increment: step; position: relative; margin: 0; padding: 3px 0 20px 46px; }
ol.stepper li:last-child { padding-bottom: 0; }
ol.stepper li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--a);
  background: var(--menu);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--a) 55%, transparent);
}
/* La línea que une un paso con el siguiente. */
ol.stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}
.outcome h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 1.45rem; }
.outcome h2 .ico { width: 52px; height: 52px; border-radius: 17px; flex: none; }
.outcome h2 .ico svg { width: 26px; height: 26px; }
/* Cada dato, un renglón con su ícono: sin viñetas. */
ul.facts { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
ul.facts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--tint-soft);
  line-height: 1.55;
}
ul.facts .ico { width: 40px; height: 40px; border-radius: 13px; flex: none; }
ul.facts .ico svg { width: 20px; height: 20px; }
ul.facts li > span:last-child { padding-top: 1px; }
.callout {
  --a: var(--warning);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px solid var(--warning-line);
  background: var(--warning-tint);
}
.callout .ico { width: 44px; height: 44px; border-radius: 15px; flex: none; }
.callout .ico svg { width: 22px; height: 22px; }
.callout p { margin: 0; color: var(--text); }
.callout strong { color: var(--warning); }

.section { margin-top: 20px; }
.section > h2 { font-size: 1.6rem; margin-bottom: 6px; }
.section-lead { color: var(--muted); margin: 0; max-width: 760px; }

/*
 * Novedades: una línea de tiempo en una sola columna. Cada entrega es una tarjeta que se abre y se
 * cierra: arriba su fecha, versión y compilación; adentro, solo lo que cambió en ella.
 */
.news { max-width: 860px; margin: 0 auto; }
ol.log { position: relative; list-style: none; margin: 14px 0 0; padding: 0 0 0 40px; }
ol.log::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--teal), var(--line-strong) 220px);
}
.entry { position: relative; margin: 0 0 16px; scroll-margin-top: 92px; }
/* El punto de la entrega sobre la línea; el de la más reciente va encendido. */
.entry::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 27px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg);
}
.entry.latest::before { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 5px var(--teal-tint), 0 0 18px var(--teal); }
.entry details {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}
.entry.latest details { border-color: var(--highlight-line); background: var(--highlight); }
.entry details[open] { border-color: var(--line-strong); }
.entry summary { display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; list-style: none; }
.entry summary::-webkit-details-marker { display: none; }
.entry-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.entry time { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--heading); }
.entry-ver { font-size: 0.9rem; color: var(--muted); }
.entry-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.entry-meta .tag { margin: 0; padding: 4px 11px; border-radius: 999px; color: var(--teal); background: var(--teal-tint); white-space: nowrap; }
.entry-meta .tag.plain { color: var(--text); background: var(--tint); }
.entry details[open] .q-icon { transform: rotate(45deg); background: var(--teal-tint); }
ul.changes { list-style: none; margin: 0; padding: 0 22px 10px; }
ul.changes li {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 36px;
  border-top: 1px solid var(--line);
  color: var(--body);
  line-height: 1.6;
}
ul.changes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 15px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal);
  background: var(--teal-tint);
}
.hero .section-lead { margin-top: 12px; }

/* Preguntas frecuentes: el título a un lado y las preguntas, numeradas, al otro. */
.faq-band { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 48px; align-items: start; }
.faq-head { position: sticky; top: 104px; }
.faq-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; }
.faq-head p { margin: 0; color: var(--muted); }
.faq { display: grid; gap: 12px; }
details.qa {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 0 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
details.qa[open] { border-color: var(--teal-line); background: linear-gradient(135deg, var(--teal-tint), transparent 60%), var(--surface); }
details.qa summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.06rem;
  font-weight: 650;
  color: var(--heading);
}
details.qa summary::-webkit-details-marker { display: none; }
.q-num { flex: none; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; color: var(--teal); }
.q-text { flex: 1; }
/* El "+" que gira a "×" al abrir. */
.q-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); transition: transform 0.25s ease, background 0.2s ease; }
.q-icon::before, .q-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--teal); }
.q-icon::after { transform: rotate(90deg); }
details.qa[open] .q-icon { transform: rotate(45deg); background: var(--teal-tint); }
details.qa p { margin: 0; padding: 0 48px 22px 42px; color: var(--body); }

/* ---------- Inicio: página de producto ---------- */
.lhero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
  padding: 52px 0 36px;
}
.lhero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); margin-top: 20px; }
.lhero .lead { font-size: 1.16rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
ul.points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 24px 0 0; }
ul.points li { margin: 0; color: var(--muted); font-size: 0.95rem; font-weight: 550; }
ul.points li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 7px; }

/*
 * El teléfono y la tablet: el marco es una imagen con la pantalla transparente
 * (/img/frame-*.webp) y la captura va debajo, justo donde queda esa pantalla (.bezel).
 */
.stage { position: relative; display: grid; place-items: center; padding: 6px 0; }
.stage::before {
  content: "";
  position: absolute;
  inset: 6% 2%;
  background: radial-gradient(closest-side, var(--glow-a), transparent 72%);
  z-index: 0;
}
.phone, .tablet { position: relative; z-index: 1; filter: drop-shadow(0 30px 34px var(--device-shadow)); }
.phone::after, .tablet::after { content: ""; position: absolute; inset: 0; background: center / 100% 100% no-repeat; pointer-events: none; }
.phone .bezel, .tablet .bezel { position: absolute; overflow: hidden; background: #05070c; }
.phone .shot, .tablet .shot { height: 100%; }
/* Pixel 8: marco de 978 × 2100 con la pantalla en (33, 49)–(934, 2050). */
.phone { width: min(300px, 72vw); aspect-ratio: 978 / 2100; }
.phone::after { background-image: url("/img/frame-phone.webp"); }
.phone .bezel { inset: 2.2% 4.25% 2.2% 3.2%; border-radius: 7.2% / 3.3%; }
/* Tablet: marco de 2748 × 1803 con la pantalla en (94, 109)–(2653, 1708). */
.tablet { width: min(940px, 100%); margin: 0 auto; aspect-ratio: 2748 / 1803; }
.tablet::after { background-image: url("/img/frame-tablet.webp"); }
.tablet .bezel { inset: 5.9% 3.3% 5.1% 3.3%; border-radius: 2.6% / 4.1%; }

/* Cada captura viene en los dos temas y va como fondo: solo se descarga la del tema del sitio. */
.shot { display: block; width: 100%; background: #05070c var(--dark) center / cover no-repeat; }
:root[data-theme="light"] .shot { background-color: #f3f5fa; background-image: var(--light); }

/* Logos que flotan junto al teléfono de la portada. */
.float {
  position: absolute;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 16px 32px -12px var(--device-shadow), 0 0 0 1px var(--line);
  animation: bob 6s ease-in-out infinite;
}
.float img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.float.f1 { top: 9%; left: 6%; }
.float.f2 { top: 27%; right: 3%; animation-delay: -1.5s; }
.float.f3 { bottom: 27%; left: 1%; animation-delay: -3s; }
.float.f4 { bottom: 8%; right: 8%; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.band { padding: 54px 0 10px; }
.band-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.band-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 14px 0 10px; letter-spacing: -0.02em; }
.band-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.brands { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px 10px; margin: 0; padding: 0; list-style: none; }
.brands li { margin: 0; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: 0.8rem; line-height: 1.25; }
.brands img { width: 60px; height: 60px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -14px var(--device-shadow); }
.fine { text-align: center; color: var(--muted); font-size: 0.82rem; max-width: 760px; margin: 26px auto 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 46px 0;
}
.split.reverse .split-media { order: -1; }
.split h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 14px 0 12px; letter-spacing: -0.02em; }
.split p { font-size: 1.05rem; margin: 0 0 14px; }
.split ul.check { margin: 0; }
.split .phone { width: min(268px, 66vw); }

/*
 * "Todo lo que hace": un mosaico de tarjetas de distinto ancho (12 columnas), cada una con su
 * ilustración (tools/site_visuals.py) o un ícono grande, y un color de acento.
 */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  --a: var(--primary);
  --a-tint: var(--tint);
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
/* Un halo del color de la tarjeta en su esquina. */
.tile::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--a), transparent);
  opacity: 0.13;
  pointer-events: none;
}
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a) 55%, transparent); }
.tile > * { position: relative; }
.tile.w3 { grid-column: span 3; }
.tile.w5 { grid-column: span 5; }
.tile.w7 { grid-column: span 7; }
.tile.a-teal { --a: var(--teal); --a-tint: var(--teal-tint); }
.tile.a-violet { --a: var(--violet); --a-tint: var(--violet-tint); }
.tile.a-amber { --a: var(--warning); --a-tint: var(--warning-tint); }
.tile h3 { margin: 18px 4px 6px; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--heading); }
.tile p { margin: 0 4px; font-size: 0.94rem; line-height: 1.55; color: var(--muted); }
.tile.big h3 { font-size: 1.45rem; margin-top: 20px; }
.tile.big p { font-size: 1.02rem; }

/* El recuadro de la ilustración. */
.viz {
  display: grid;
  place-items: center;
  height: 158px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(130% 130% at 0% 0%, var(--a-tint), transparent 62%),
    var(--tint-soft);
  overflow: hidden;
}
.tile.big .viz { height: 204px; }
.viz svg { display: block; width: 100%; height: 100%; }
.viz .st { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.viz .c-teal { stroke: var(--teal); }
.viz .c-pri { stroke: var(--primary); }
.viz .c-vio { stroke: var(--violet); }
.viz .c-amb { stroke: var(--warning); }
.viz .c-line { stroke: var(--line-strong); }
.viz .c-muted { stroke: var(--muted); }
.viz .c-on { stroke: var(--on-accent); }
.viz .b-teal { fill: var(--teal); }
.viz .b-pri { fill: var(--primary); }
.viz .b-vio { fill: var(--violet); }
.viz .b-amb { fill: var(--warning); }
.viz .b-panel { fill: var(--menu); }
.viz .b-soft { fill: var(--tint); }
.viz .b-text { fill: var(--heading); }
.viz .b-muted { fill: var(--muted); }
.viz .b-on { fill: var(--on-accent); }
.viz .b-linef { fill: var(--line-strong); }
.viz .b-paper { fill: #ffffff; }
.viz .b-none { fill: none; }
.viz .s-teal { stop-color: var(--teal); }
.viz .scan { animation: scan 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px var(--teal)); }
@keyframes scan { from { transform: translateY(-50px); } to { transform: translateY(52px); } }

/* Dos tarjetas bancarias encimadas; la de enfrente lleva el logo de un banco del país. */
.cards { position: relative; width: 236px; height: 132px; }
.pcard { position: absolute; width: 190px; height: 118px; border-radius: 16px; box-shadow: 0 18px 30px -18px var(--device-shadow); }
.pcard.back { top: 0; right: 0; transform: rotate(7deg); background: linear-gradient(135deg, #7c3aed, #b9a2ff); opacity: 0.85; }
.pcard.front { left: 0; bottom: 0; transform: rotate(-4deg); background: linear-gradient(135deg, #16307f, #2f6fe0 55%, #2dd4bf); }
.pcard img { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; background: #ffffff; }
.pcard .chip { position: absolute; top: 16px; right: 16px; width: 30px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #d4a72c); }
.pcard .num { position: absolute; left: 14px; bottom: 12px; color: #ffffff; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.08em; }
.pcard .net { position: absolute; right: 14px; bottom: 12px; display: flex; }
.pcard .net i { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.pcard .net i + i { margin-left: -8px; background: rgba(255, 255, 255, 0.45); }

/* Los logos de tres suscripciones; una subió de precio. */
.subs { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sub { position: relative; width: 58px; height: 58px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 14px 24px -14px var(--device-shadow); }
.sub img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.sub:nth-child(2) { transform: translateY(-12px) scale(1.14); }
.sub b {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  line-height: 1;
  color: #2a1700;
  background: #fbbf24;
  box-shadow: 0 0 0 3px var(--menu);
}

.lang-chips { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; }
.lang-chips span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--menu);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}
.lang-chips span.on { border-color: transparent; background: var(--accent); color: var(--on-accent); }

/* Ícono grande para las tarjetas sin ilustración. */
.ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  color: var(--a);
  background: linear-gradient(140deg, color-mix(in srgb, var(--a) 30%, transparent), color-mix(in srgb, var(--a) 7%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 34%, transparent);
}
.ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Los mismos datos en la tablet y en el teléfono, que se encima en su esquina. */
.duo { max-width: 960px; margin: 0 auto; padding: 0 11% 3% 0; }
.duo .tablet { width: 100%; }
.duo .phone { position: absolute; right: 0; bottom: 0; width: 24%; z-index: 2; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.trio .tile { grid-column: auto; padding: 22px 22px 24px; }

/* Privacidad en el inicio: una tarjeta grande con el escudo y dos a su lado, con la ilustración a la izquierda. */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 16px; }
.privacy-grid .tile { grid-column: auto; }
.privacy-grid .tile.main { grid-row: span 2; }
.privacy-grid .tile.main .viz { flex: 1; min-height: 250px; height: auto; }
.privacy-grid .tile.main h3 { font-size: 1.45rem; margin-top: 22px; }
.privacy-grid .tile.main p { font-size: 1.02rem; }
.privacy-grid .tile.side { flex-direction: row; align-items: center; gap: 20px; padding: 18px; }
.privacy-grid .tile.side .viz { flex: none; width: 46%; height: 146px; }
.privacy-grid .tile.side h3 { margin: 0 0 6px; font-size: 1.15rem; }
.privacy-grid .tile.side p { margin: 0; }

/* Precio: el mes de prueba como un dial, y a su lado lo que incluye. */
.pricing {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 44px 48px;
  border-radius: 32px;
  border: 1px solid var(--highlight-line);
  background: var(--highlight);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pricing::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--teal), transparent);
  opacity: 0.14;
  pointer-events: none;
}
.pricing > * { position: relative; }
.trial { display: grid; place-items: center; }
.dial {
  display: grid;
  place-items: center;
  width: min(250px, 100%);
  aspect-ratio: 1;
  padding: 11px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #2dd4bf, #3b6bff, #b9a2ff, #2dd4bf);
  box-shadow: 0 0 70px -14px rgba(45, 212, 191, 0.55);
}
.dial > div {
  display: grid;
  place-content: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--menu);
  text-align: center;
}
.dial b {
  font-size: 5.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dial span { margin-top: 4px; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pricing h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 16px 0 22px; }
ul.perks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 28px; padding: 0; }
ul.perks li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 550;
  line-height: 1.4;
}
ul.perks li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--accent);
}

/* El cierre: la invitación a instalar, con el teléfono asomando desde abajo. */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 30px;
  align-items: center;
  margin: 64px 0 0;
  padding: 0 52px;
  border-radius: 32px;
  border: 1px solid var(--highlight-line);
  background: var(--highlight);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--primary), transparent);
  opacity: 0.2;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-text { padding: 52px 0; }
.cta-icon { display: block; width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 14px 34px -10px rgba(45, 212, 191, 0.6); }
.cta-band h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; margin: 22px 0 12px; }
.cta-band p { margin: 0 0 28px; font-size: 1.1rem; color: var(--body); }
.cta-phone { align-self: end; height: 340px; overflow: hidden; }
.cta-phone .phone { width: 262px; margin: 28px auto 0; }

/* ---------- Pie ---------- */
footer.site { max-width: 1120px; margin: 0 auto; padding: 30px 20px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer.site .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
footer.site .row .brand { font-size: 1rem; margin-right: auto; }
footer.site .row .brand img { width: 28px; height: 28px; border-radius: 8px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
footer.site p { color: var(--muted); font-size: 0.82rem; margin: 16px 0 0; max-width: 820px; }

@media (max-width: 900px) {
  .lhero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 38px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 0; }
  .split.reverse .split-media { order: 0; }
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 26px; }
  .options, .outcomes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dhero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 38px 0 20px; }
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .privacy-grid .tile.main { grid-row: auto; }
  .privacy-grid .tile.main .viz { min-height: 0; height: 220px; flex: none; }
  .pricing { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 34px 30px; }
  .dial { width: 200px; }
  .dial b { font-size: 4.4rem; }
  .faq-band { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq-head { position: static; text-align: center; }
  .cta-band { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 30px; text-align: center; }
  .cta-text { padding: 44px 0 8px; }
  .cta-icon { margin: 0 auto; }
  .cta-phone { height: 280px; }
  /* El mosaico pasa a dos columnas: las dos grandes a lo ancho y las demás por pares. */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .bento .tile { grid-column: span 1; }
  .bento .tile.big { grid-column: span 2; }
  .band { padding-top: 38px; }
  /* Con el botón de la app, el tema y el idioma ya no caben los enlaces: pasan al menú. */
  .topbar nav a.nav-link { display: none; }
  .more { display: block; }
}

/* La política en teléfono y tablet: el índice es una fila de píldoras que se queda arriba al leer. */
@media (max-width: 979px) {
  .toc {
    display: flex;
    gap: 8px;
    position: sticky;
    top: 61px;
    z-index: 5;
    margin: 0 -20px;
    padding: 10px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--topbar);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc h4 { display: none; }
  .toc a {
    flex: none;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 550;
    text-decoration: none;
    white-space: nowrap;
  }
  .toc a[aria-current="true"] { border-color: var(--teal-line); }
  .doc { gap: 18px; }
  .doc-body .card { scroll-margin-top: 130px; }
}

/* Tablas en teléfono: cada fila es una tarjeta y cada celda dice de qué columna es. */
@media (max-width: 640px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { margin: 0 0 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint-soft); }
  td { padding: 8px 0; border-bottom: 1px solid var(--line); }
  tr td:last-child { border-bottom: 0; }
  td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  ul.perks { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .card { padding: 20px; }
  .topbar .inner { padding: 10px 16px; gap: 10px; }
  .page { padding: 0 16px 56px; }
  .langs summary.lang { padding: 5px 9px; font-size: 0.85rem; }
  .langs summary.lang::after { margin-left: 3px; }
  /* El menú de idiomas se ancla a la barra, no a su botón: junto al botón de la app se salía. */
  .langs { position: static; }
  .langs .menu { right: 12px; top: calc(100% - 2px); }
  .hero { padding-top: 36px; }
  .btn.small { padding: 7px 11px; font-size: 0.85rem; }
  .float { width: 52px; height: 52px; }
  .brands { gap: 18px 6px; }
  .brands img { width: 52px; height: 52px; }
  .option, .outcome { padding: 20px 16px; border-radius: 22px; }
  .option-head { flex-wrap: wrap; gap: 12px; }
  .option-head .ico { width: 48px; height: 48px; border-radius: 15px; }
  .option-head h2, .outcome h2 { font-size: 1.22rem; }
  .option-time { margin-left: 0; }
  .glance { padding: 12px; border-radius: 22px; }
  .glance-row { padding: 12px; column-gap: 12px; }
  .glance-row b { font-size: 1.15rem; }
  ul.facts li { padding: 12px; gap: 12px; }
  .callout { align-items: flex-start; padding: 16px; }
  .duo { padding: 0 13% 5% 0; }
  .duo .phone { width: 31%; }
  .trio .tile { padding: 16px 16px 20px; }
  /* En la barra quedan el idioma, el botón de la app y el menú; el tema pasa al menú. */
  .topbar nav > .theme-toggle { display: none; }
  .toc { top: 57px; margin: 0 -16px; padding: 9px 16px; }
  .doc-body .card { padding: 22px 18px; }
  .doc-body .card > h2 { font-size: 1.22rem; gap: 12px; }
  .doc-body .card > h2 .num { width: 34px; height: 34px; border-radius: 11px; }
  .privacy-grid .tile.side { flex-direction: column; align-items: stretch; gap: 0; padding: 14px 14px 20px; }
  .privacy-grid .tile.side .viz { width: auto; }
  .privacy-grid .tile.side h3 { margin: 18px 4px 6px; }
  .privacy-grid .tile.side p { margin: 0 4px; }
  .privacy-grid .tile.main .viz { height: 190px; }
  .privacy-grid .tile.main h3 { font-size: 1.2rem; }
  .pricing { padding: 30px 20px; border-radius: 26px; text-align: center; }
  .pricing ul.perks { text-align: left; }
  .dial { width: 170px; }
  .dial b { font-size: 3.8rem; }
  details.qa { padding: 0 16px; border-radius: 18px; }
  details.qa summary { gap: 12px; padding: 17px 0; font-size: 1rem; }
  details.qa p { padding: 0 6px 18px 2px; }
  .q-icon { width: 28px; height: 28px; }
  .cta-band { margin-top: 44px; padding: 0 20px; border-radius: 26px; }
  .cta-text { padding-top: 36px; }
  .cta-phone { height: 240px; }
  .cta-phone .phone { width: 220px; }
  /* Novedades en teléfono: la línea más pegada y los datos de la entrega en dos renglones. */
  ol.log { padding-left: 28px; }
  ol.log::before { left: 6px; }
  .entry::before { left: -28px; top: 24px; width: 14px; height: 14px; }
  .entry details { border-radius: 20px; }
  .entry summary { flex-wrap: wrap; gap: 10px 12px; padding: 16px; }
  .entry-main { flex: 1 1 60%; }
  .entry time { font-size: 1.12rem; }
  .entry-meta { order: 3; flex-basis: 100%; justify-content: flex-start; }
  ul.changes { padding: 0 16px 6px; }
  /* En teléfono el mosaico es una fila que se desliza con el dedo: 18 tarjetas apiladas son demasiado largas. */
  .bento {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  .bento .tile, .bento .tile.big { flex: 0 0 80%; scroll-snap-align: start; box-shadow: none; }
  .bento .tile:hover { transform: none; }
  .tile { padding: 14px 14px 20px; border-radius: 22px; }
  .tile.big .viz { height: 158px; }
  .tile.big h3 { font-size: 1.1rem; margin-top: 18px; }
  .tile.big p { font-size: 0.94rem; }
  .bento .ico { margin: 49px 0; }
  .cards { transform: scale(0.92); }
}

@media (max-width: 400px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .viz .scan { animation: none; }
  .tile { transition: none; }
  .tile:hover { transform: none; }
  .play { transition: none; }
  .q-icon, details.qa { transition: none; }
}
