/* Razor — sitio web. Mismos tokens que la app (src/theme/tokens.ts). */
/* Plus Jakarta Sans (SIL OFL 1.1, assets/fonts/PlusJakartaSans-OFL.txt), servida desde el propio sitio por la CSP (font-src 'self'). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-alt: #eeeeeb;
  --elevated: #ffffff;
  --text: #0e0e10;
  --text-muted: #5f5f66;
  --text-faint: #8a8a92;
  --border: rgba(14, 14, 16, 0.08);
  --border-strong: rgba(14, 14, 16, 0.16);
  --accent: #2e55e6;
  --accent-soft: rgba(46, 85, 230, 0.1);
  --on-accent: #ffffff;
  --success: #16875a;
  --success-soft: rgba(22, 135, 90, 0.1);
  --danger: #cc3d3d;
  --danger-soft: rgba(204, 61, 61, 0.1);
  --warning: #b57a0c;
  --overlay: rgba(10, 10, 11, 0.35);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a0a0b;
    --surface: #141416;
    --surface-alt: #1c1c1f;
    --elevated: #1a1a1d;
    --text: #f2f2f0;
    --text-muted: #a0a0a7;
    --text-faint: #6e6e76;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.14);
    --accent: #7b93ff;
    --accent-soft: rgba(123, 147, 255, 0.14);
    --on-accent: #0a0a0b;
    --success: #3ccb8a;
    --success-soft: rgba(60, 203, 138, 0.14);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, 0.14);
    --warning: #f2b544;
    --overlay: rgba(0, 0, 0, 0.6);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 60px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-alt: #1c1c1f;
  --elevated: #1a1a1d;
  --text: #f2f2f0;
  --text-muted: #a0a0a7;
  --text-faint: #6e6e76;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #7b93ff;
  --accent-soft: rgba(123, 147, 255, 0.14);
  --on-accent: #0a0a0b;
  --success: #3ccb8a;
  --success-soft: rgba(60, 203, 138, 0.14);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.14);
  --warning: #f2b544;
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
p {
  margin: 0;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--text-muted);
}
.faint {
  color: var(--text-faint);
}
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: var(--r-md);
}
.skip:focus {
  top: 12px;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 14px;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  height: 26px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-alt);
  text-decoration: none;
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.icon-btn:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  padding: 0 30px 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.menu-toggle {
  display: none;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    margin: 0;
    padding: 12px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    animation: drop 0.25s var(--ease);
  }
  .nav-links.open a {
    padding: 12px 10px;
    font-size: 16px;
  }
  .nav-right .btn-ghost-sm {
    display: none;
  }
}
@media (max-width: 520px) {
  .nav-right .select {
    max-width: 112px;
  }
}

/* ---------- Botones ---------- */
.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn[disabled],
.btn.loading {
  opacity: 0.55;
  pointer-events: none;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-alt);
}
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-sm {
  --h: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-lg {
  --h: 52px;
  padding: 0 26px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}

/* ---------- Tarjetas y secciones ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.pad {
  padding: 24px;
}
section {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 10px;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  text-align: center;
  overflow: hidden;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.045em;
  margin: 22px auto 0;
  max-width: 900px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--success);
}
.hero-shot {
  margin: 56px auto 0;
  max-width: 1040px;
  position: relative;
}
.hero-shot::before {
  content: '';
  position: absolute;
  inset: 10% 8% -6%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  filter: blur(40px);
  z-index: -1;
}
.window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.window-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.window img {
  width: 100%;
  height: auto;
}

/* ---------- Funciones ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding: 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.feature .ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.feature .ico svg {
  width: 20px;
  height: 20px;
}
.feature h3 {
  font-size: 17px;
  margin-top: 18px;
  letter-spacing: -0.02em;
}
.feature p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- Galería ---------- */
.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 600 14px/1 var(--font);
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tabs button[aria-selected='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.gallery-stage {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) {
  .gallery-stage {
    grid-template-columns: 1fr;
  }
}
.gallery-stage .window img {
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.gallery-stage .swap img {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
}
.shot-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Privacidad (banda) ---------- */
.band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .band {
    grid-template-columns: 1fr;
  }
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
/* Lo que incluye la compra, en negrita para que se lea de un vistazo. */
.checklist li span {
  font-weight: 650;
}
.checklist li:last-child {
  border-bottom: 0;
}
.checklist svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* ---------- Precio ---------- */
.price-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.price-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}
.price {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-top: 16px;
  line-height: 1;
}
.price small {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 4px;
}
.price-note {
  margin-top: 10px;
  color: var(--text-muted);
}
.price-card ul {
  text-align: left;
  margin: 28px 0;
}
.price-card .btn {
  width: 100%;
}
.platforms {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-top: 4px;
}
.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.faq details p {
  padding: 0 4px 22px;
  color: var(--text-muted);
  animation: fade-up 0.35s var(--ease);
}

/* Pasos de instalación (Descargas) */
.install-help {
  margin-top: 28px;
  max-width: none;
}
.install-help h3 {
  font-size: 17px;
}
.install-help > p {
  margin-top: 6px;
}
.install-help ol {
  margin: 0;
  padding: 0 4px 22px 22px;
  color: var(--text-muted);
  display: grid;
  gap: 8px;
  animation: fade-up 0.35s var(--ease);
}
.install-help ol b {
  color: var(--text);
}

/* ---------- Pie ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.site-footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a,
.linklike {
  color: var(--text-muted);
}
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.site-footer a:hover,
.linklike:hover {
  color: var(--text);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Formularios ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.input {
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input[readonly] {
  background: var(--surface-alt);
  color: var(--text-muted);
}
.hint {
  font-size: 12.5px;
  color: var(--text-faint);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-muted);
}
.check input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form {
  display: grid;
  gap: 16px;
}
.alert {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  display: none;
  animation: fade-up 0.3s var(--ease);
}
.alert.show {
  display: block;
}
.alert.error {
  background: var(--danger-soft);
  color: var(--danger);
}
.alert.ok {
  background: var(--success-soft);
  color: var(--success);
}
.alert.info {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Cuenta ---------- */
.auth-shell {
  min-height: calc(100vh - 64px - 200px);
  display: grid;
  place-items: center;
  padding: 56px 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
}
.auth-card h1 {
  font-size: 28px;
}
.auth-card .sub {
  margin: 8px 0 24px;
  color: var(--text-muted);
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  margin-bottom: 24px;
  position: relative;
}
.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  height: 36px;
  font: 600 14px/1 var(--font);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s;
}
.seg button[aria-selected='true'] {
  color: var(--text);
}
.seg .thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--surface);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s var(--ease);
}
.seg[data-active='1'] .thumb {
  transform: translateX(100%);
}
.dash {
  padding: 48px 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .dash {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 2px;
}
@media (max-width: 820px) {
  .side {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
}
.side button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 500 14.5px/1 var(--font);
  padding: 11px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.side button svg {
  width: 17px;
  height: 17px;
}
.side button:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.side button[aria-selected='true'] {
  background: var(--accent-soft);
  color: var(--accent);
}
.side .sep {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.panel {
  display: none;
  gap: 16px;
}
.panel.active {
  display: grid;
  animation: fade-up 0.4s var(--ease);
}
.panel h2 {
  font-size: 26px;
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.status.ok {
  background: var(--success-soft);
  color: var(--success);
}
.status.no {
  background: var(--surface-alt);
  color: var(--text-muted);
}
.status .face {
  font-size: 15px;
  line-height: 1;
}
/* Frases clave dentro de los textos (p. ej. «sin tarjeta»). */
.hl {
  font-weight: 700;
  color: inherit;
}
.btn .hl {
  color: var(--accent);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.dl {
  padding: 20px;
  display: grid;
  gap: 14px;
}
.dl.recommended {
  border-color: var(--accent);
}
.dl .os {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.dl .os svg {
  width: 22px;
  height: 22px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.table th {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.table tr:last-child td {
  border-bottom: 0;
}
.danger-zone {
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}
.skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-alt), var(--border-strong), var(--surface-alt));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ---------- Páginas legales ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
}
.doc .updated {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 14px;
}
.doc .lang-note {
  margin-top: 20px;
}
.doc h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.doc h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}
.doc p,
.doc li {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.doc p + p {
  margin-top: 12px;
}
.doc ul {
  padding-left: 20px;
}
.doc strong {
  color: var(--text);
}
.doc .table {
  margin: 16px 0;
}
.doc .toc {
  margin-top: 28px;
  padding: 18px 22px;
}
.doc .toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
@media (max-width: 600px) {
  .doc .toc ol {
    columns: 1;
  }
}
.doc .toc li {
  font-size: 14px;
}
.table-wrap {
  overflow-x: auto;
}

/* ---------- Cookies ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 560px;
  padding: 20px;
  background: var(--elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  animation: rise 0.5s var(--ease);
}
.cookie-bar h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.cookie-bar p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.cookie-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  flex: 1 1 auto;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--overlay);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fade 0.25s var(--ease);
}
.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  animation: pop 0.4s var(--ease);
}
.modal h2 {
  font-size: 22px;
}
.modal .lead {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.cat {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cat:last-of-type {
  border-bottom: 0;
}
.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cat-head strong {
  font-size: 15px;
}
.cat p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  transition: background 0.25s var(--ease), border-color 0.25s;
}
.switch span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease);
}
.switch input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + span::after {
  transform: translateX(18px);
}
.switch input:disabled + span {
  opacity: 0.6;
}
.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: rise 0.35s var(--ease);
}

/* ---------- Entrada al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate(var(--tx, 0), 16px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.toast {
  --tx: -50%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.pill svg,
.platforms svg {
  width: 14px;
  height: 14px;
}
.platforms {
  align-items: center;
  gap: 6px;
}

[hidden] {
  display: none !important;
}

.only-mobile {
  display: none;
}
@media (max-width: 860px) {
  .nav-links.open .only-mobile {
    display: block;
  }
}
@media (max-width: 520px) {
  .nav {
    gap: 12px;
  }
  .nav-right {
    gap: 4px;
  }
  .nav-right #nav-buy {
    display: none;
  }
}
.doc article {
  padding-top: 20px;
}

.devices {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.device-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.device-row:last-child {
  border-bottom: 0;
}
.device-row > svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}
