/* Modo oscuro por defecto; claro solo si se elige con el botón (theme.js). */
:root {
  --bg: #0b1220;
  --surface: #121a2c;
  --header: rgba(18, 26, 44, 0.92);
  --border: #1e293b;
  --border-strong: #334155;
  --text: #e2e8f0;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --eyebrow: #22d3ee;
  --primary: #7c5cff;
  --primary-bg: linear-gradient(135deg, #7c5cff, #22d3ee);
  --primary-hover-bg: linear-gradient(135deg, #6a4cf0, #1cc0da);
  --icon-bg: rgba(124, 92, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.4);
  --card-shadow: none;
  --pass-bg: linear-gradient(145deg, #22c55e, #0f5f3a);
  --pass-shadow: 0 30px 80px rgba(34, 197, 94, 0.25);
  --pass-tilt: rotate(2deg);
  --ok: #22c55e;
  --fail: #ef4444;
  --radius-btn: 999px;
  --radius-card: 16px;
  --radius-icon: 12px;
  --radius-pass: 28px;
  --sun: block;
  --moon: none;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --header: rgba(11, 29, 58, 0.97);
  --border: #e2e7ef;
  --border-strong: #c9d2df;
  --text: #0b1d3a;
  --text-2: #334155;
  --muted: #5b6b82;
  --accent: #3b2f9e;
  --eyebrow: #3b2f9e;
  --primary: #3b2f9e;
  --primary-bg: #3b2f9e;
  --primary-hover-bg: #2e2480;
  --icon-bg: #eceafb;
  --shadow: rgba(15, 23, 42, 0.12);
  --card-shadow: 0 1px 2px rgba(11, 29, 58, 0.04), 0 10px 28px rgba(11, 29, 58, 0.07);
  --pass-bg: linear-gradient(150deg, #16a34a 0%, #15803d 55%, #14532d 100%);
  --pass-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  --pass-tilt: rotate(2deg);
  --ok: #15803d;
  --fail: #b91c1c;
  --radius-btn: 10px;
  --radius-card: 14px;
  --radius-icon: 10px;
  --radius-pass: 20px;
  --sun: none;
  --moon: block;
  color-scheme: light;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a {
  color: var(--accent);
}
.test-notice {
  margin: 0;
  padding: 8px 16px;
  background: #f59e0b;
  color: #0b1220;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: var(--header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.accent {
  color: var(--accent);
}
.top-end {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle,
.theme-toggle:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .sun {
  display: var(--sun);
}
.theme-toggle .moon {
  display: var(--moon);
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.top nav a:hover {
  color: var(--text);
}
.top nav a.nav-cta {
  padding: 4px 12px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  color: var(--text);
}
.access .grid {
  margin: 24px 0;
}
.access-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.access-card:hover {
  border-color: var(--primary);
}
.access-card h2 {
  margin: 0;
}
.access-card p {
  flex: 1;
}
.access-card .button {
  align-self: flex-start;
}
.access-app {
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h2 {
  font-size: 24px;
  font-weight: 650;
  margin: 0 0 12px;
}
h3 {
  margin: 0 0 8px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 72px 0 56px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--eyebrow);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pass {
  padding: 24px;
  border-radius: var(--radius-pass);
  background: var(--pass-bg);
  box-shadow: var(--pass-shadow);
  color: #fff;
  transform: var(--pass-tilt);
}
.pass-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.pass-status {
  margin: 10px 0 18px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}
.pass-days {
  font-weight: 600;
}
.pass-bar {
  height: 6px;
  margin: 8px 0 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}
.pass-bar span {
  display: block;
  width: 88%;
  height: 100%;
  border-radius: 99px;
  background: #fff;
}
.pass-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-btn);
  background: #fff;
  color: #0b1220;
  font-weight: 700;
}
.icon {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin: 0 0 12px;
  border-radius: var(--radius-icon);
  background: var(--icon-bg);
  color: var(--accent);
}
.pass-qr .icon {
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
}
.faq details {
  margin: 0 0 10px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p {
  margin: 8px 0 0;
  color: var(--text-2);
}
.nav-mobile {
  display: none;
  position: relative;
}
.nav-mobile summary {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.nav-mobile summary span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: 52px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 50px var(--shadow);
}
.nav-mobile nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.nav-mobile nav a:hover {
  background: var(--border);
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
  .pass {
    transform: none;
  }
}
@media (max-width: 1100px) {
  .nav-desktop {
    display: none !important;
  }
  .nav-mobile {
    display: block;
  }
}
.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 680px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.button,
button {
  display: inline-block;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--primary-bg);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
button:hover {
  background: var(--primary-hover-bg);
}
.button.secondary,
.button.secondary:hover {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.steps b {
  display: block;
  margin-bottom: 4px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card,
.lab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 20px;
  transition: border-color 0.2s;
}
.card:hover,
.lab:hover {
  border-color: var(--border-strong);
}
.card p,
.lab p {
  margin: 4px 0;
}
.trust-link {
  grid-column: 1 / -1;
  margin: 0;
}
.trust-intro {
  padding-top: 48px;
}
.trust ul {
  padding-left: 20px;
}
.trust li {
  margin: 0 0 8px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.filter {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.filter.active {
  border-color: var(--accent);
  color: var(--text);
}
.labs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tests {
  color: var(--accent);
  font-size: 14px;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--border);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
.apply {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 16px;
  margin-top: 20px;
}
.apply label {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.apply .wide {
  grid-column: 1 / -1;
}
.apply input,
.apply select,
.apply textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.apply .check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.apply .check input {
  width: auto;
  margin: 3px 0 0;
}
.apply button {
  justify-self: start;
}
.hp {
  position: absolute;
  left: -10000px;
}
.notice {
  padding: 12px 16px;
  border-radius: 12px;
}
.notice.ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--ok);
}
.notice.fail {
  background: rgba(239, 68, 68, 0.15);
  color: var(--fail);
}
footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.download {
  display: flex;
  align-items: center;
  gap: 32px;
}
.download-qr {
  flex: 0 0 200px;
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
}
.download-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.qr-hint {
  font-size: 18px;
}
.button-hint {
  display: none;
}
@media (max-width: 720px), (pointer: coarse) {
  .download-qr,
  .qr-hint {
    display: none;
  }
  .button-hint {
    display: block;
  }
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-links a {
  color: var(--muted);
}
.legal {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.legal h1 {
  font-size: clamp(28px, 5vw, 38px);
}
.legal h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}
.legal li {
  margin: 0 0 8px;
}
.legal code {
  overflow-wrap: anywhere;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
.pending {
  background: #f59e0b;
  color: #0b1220;
  padding: 0 4px;
  border-radius: 4px;
}

.help details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.help summary {
  cursor: pointer;
  font-weight: 600;
}

.help details p {
  margin: 8px 0 0;
}

.help ol li {
  margin-bottom: 8px;
}

.help figure {
  margin: 20px 0;
}

.help figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}

.help figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 44px;
  box-sizing: border-box;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.lang-switch a[aria-current='true'] {
  background: var(--accent);
  color: var(--surface);
}
.courtesy {
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
}
@media (max-width: 420px) {
  .top-end {
    gap: 8px;
  }
  .lang-switch a {
    padding: 0 6px;
  }
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.demo-qr {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.demo-qr svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.plan .price {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0;
}
.plan ul {
  padding-left: 20px;
  margin: 12px 0 16px;
}
.company {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
}
.company dd {
  margin: 0;
}
@media (max-width: 720px) {
  .demo {
    grid-template-columns: 1fr;
  }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.trust-strip div {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}
.trust-strip div:last-child {
  border-right: 0;
}
.trust-strip b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 15px;
}
@media (max-width: 720px) {
  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }
  .trust-strip div:nth-child(2) {
    border-right: 0;
  }
  .trust-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}
/* Claro: cabecera, portada y pie en azul marino; secciones alternadas. */
:root[data-theme='light'] .top {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
:root[data-theme='light'] .top .accent,
:root[data-theme='light'] .hero .eyebrow {
  color: #22d3ee;
}
:root[data-theme='light'] .top nav a {
  color: #c9d6ea;
}
:root[data-theme='light'] .top nav a:hover {
  color: #fff;
}
:root[data-theme='light'] .top nav a.nav-cta {
  border-color: #fff;
  background: #fff;
  color: #0b1d3a;
}
:root[data-theme='light'] .top .nav-mobile nav a {
  color: var(--text);
}
:root[data-theme='light'] .theme-toggle,
:root[data-theme='light'] .lang-switch,
:root[data-theme='light'] .nav-mobile summary {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #e6ecf5;
}
:root[data-theme='light'] .lang-switch a {
  color: #c9d6ea;
}
:root[data-theme='light'] .lang-switch a[aria-current='true'] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
:root[data-theme='light'] .nav-mobile summary span {
  background: #e6ecf5;
}
:root[data-theme='light'] .hero,
:root[data-theme='light'] #como-funciona,
:root[data-theme='light'] #preguntas {
  position: relative;
  z-index: 0;
}
:root[data-theme='light'] .hero {
  padding: 88px 0 96px;
  color: #fff;
}
:root[data-theme='light'] .hero::before,
:root[data-theme='light'] #como-funciona::before,
:root[data-theme='light'] #preguntas::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
}
:root[data-theme='light'] .hero::before {
  background: radial-gradient(1200px 500px at 85% 20%, rgba(59, 47, 158, 0.55), transparent 60%),
    linear-gradient(180deg, #0b1d3a 0%, #102a52 100%);
}
:root[data-theme='light'] #como-funciona::before,
:root[data-theme='light'] #preguntas::before {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
:root[data-theme='light'] .hero h1 {
  color: #fff;
}
:root[data-theme='light'] .hero .lead {
  color: #c9d6ea;
}
:root[data-theme='light'] .hero .button {
  background: #fff;
  color: #0b1d3a;
}
:root[data-theme='light'] .hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}
:root[data-theme='light'] .trust-strip {
  position: relative;
  margin-top: -40px;
}
:root[data-theme='light'] h1,
:root[data-theme='light'] h2 {
  letter-spacing: -0.02em;
}
:root[data-theme='light'] main section > h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--primary);
}
:root[data-theme='light'] footer {
  background: #0b1d3a;
  box-shadow: 0 0 0 100vmax #0b1d3a;
  clip-path: inset(0 -100vmax);
  color: #c9d6ea;
}
:root[data-theme='light'] footer a {
  color: #e6ecf5;
}
@media (max-width: 760px) {
  :root[data-theme='light'] .hero {
    padding: 40px 0 72px;
  }
}
