/* Bel Go · sitio público, páginas legales y de error (ticket #345) */

:root {
  --bw-navy: #19123C;
  --bw-navy-2: #241a55;
  --bw-cyan: #00BCC8;
  --bw-cyan-50: #80DEE4;
  --bw-cyan-20: #CCF2F4;
  --bw-neon: #D8FF00;
  --bw-neon-50: #ECFF80;
  --bw-cream: #F3EEE8;
  --bw-ink-soft: #5b5577;
  --bw-line: rgba(25, 18, 60, .1);
  --bw-display: 'Archivo', 'Arial Black', sans-serif;
  --bw-body: 'Space Grotesk', -apple-system, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bw-cream);
  color: var(--bw-navy);
  font-family: var(--bw-body);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.bw-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.bw-display {
  font-family: var(--bw-display);
  font-weight: 900;
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.005em;
  margin: 0;
}

.bw-display span {
  display: inline-block;
  background: var(--bw-navy);
  color: var(--bw-neon);
  border-radius: 14px;
  padding: 8px 16px 4px;
  margin-top: 8px;
}

.bw-label {
  display: inline-block;
  font-family: var(--bw-display);
  font-weight: 800;
  font-stretch: 108%;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 12px;
}

.bw-label-cyan {
  color: #007c84;
}

.bw-label-neon {
  color: var(--bw-neon);
}

.bw-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.bw-pill-navy {
  background: var(--bw-navy);
  color: var(--bw-neon);
  font-family: var(--bw-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.bw-btn-navy {
  background: var(--bw-navy);
  color: var(--bw-neon) !important;
}

.bw-btn-navy:hover {
  background: var(--bw-navy-2);
}

/* ---------- Cabecera ---------- */
.bw-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bw-cyan);
}

.bw-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.bw-logo img {
  height: 34px;
  width: auto;
}

.bw-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

.bw-nav a:not(.bw-btn) {
  text-decoration: none;
}

.bw-nav a:not(.bw-btn):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Portada ---------- */
.bw-hero {
  position: relative;
  overflow: hidden;
  background: var(--bw-cyan);
}

.bw-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bw-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.bw-hero .bw-display {
  font-size: clamp(44px, 7vw, 84px);
  margin-top: 18px;
}

.bw-hero p {
  font-size: 19px;
  max-width: 36ch;
  margin: 22px 0 28px;
}

.bw-hero-phone {
  display: flex;
  justify-content: center;
}

.bw-phone {
  width: 280px;
  border: 10px solid var(--bw-navy);
  border-radius: 40px;
  overflow: hidden;
  background: var(--bw-navy);
  box-shadow: 0 30px 60px rgba(25, 18, 60, .25);
}

.bw-phone img {
  width: 100%;
  height: auto;
}

.bw-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bw-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: var(--bw-navy);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
}

.bw-store i {
  font-size: 26px;
  color: var(--bw-neon);
}

.bw-store small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: .8;
}

.bw-store:hover {
  background: var(--bw-navy-2);
}

.bw-store-neon {
  background: var(--bw-neon);
  color: var(--bw-navy);
}

.bw-store-neon i {
  color: var(--bw-navy);
}

.bw-store-neon:hover {
  background: var(--bw-neon-50);
}

/* ---------- Secciones ---------- */
.bw-section {
  padding: 88px 0;
}

.bw-h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 12px 0 36px;
}

.bw-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.bw-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bw-card {
  border-radius: 22px;
  padding: 22px;
}

.bw-card i {
  font-size: 26px;
}

.bw-card h3 {
  font-size: 19px;
  margin: 12px 0 6px;
}

.bw-card p {
  margin: 0;
  font-size: 15px;
  color: var(--bw-ink-soft);
}

.bw-card-white {
  background: #ffffff;
}

.bw-card-neon {
  background: var(--bw-neon-50);
}

.bw-card-cyan {
  background: var(--bw-cyan-20);
}

.bw-card-neon p,
.bw-card-cyan p {
  color: var(--bw-navy);
}

.bw-phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding-right: 60px;
}

.bw-phones .bw-phone {
  width: 250px;
  position: relative;
  z-index: 1;
}

.bw-phones .bw-phone-back {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 40px;
  width: 220px;
  opacity: .95;
}

.bw-section-navy {
  background: var(--bw-navy);
  color: #ffffff;
}

.bw-section-navy .bw-h2 {
  color: #ffffff;
}

.bw-driver {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bw-lead {
  font-size: 18px;
  color: #d9d4f0;
  margin: 0 0 28px;
  max-width: 44ch;
}

.bw-steps {
  list-style: none;
  counter-reset: paso;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.bw-steps li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  align-items: center;
  background: var(--bw-navy-2);
  border-radius: 18px;
  padding: 16px 18px;
}

.bw-steps li::before {
  content: counter(paso);
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bw-neon);
  color: var(--bw-navy);
  font-family: var(--bw-display);
  font-weight: 900;
  font-size: 20px;
}

.bw-steps b {
  font-size: 17px;
}

.bw-steps span {
  color: #d9d4f0;
  font-size: 15px;
}

.bw-cta {
  background: var(--bw-neon);
  padding: 72px 0;
}

.bw-cta-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.bw-cta .bw-display {
  font-size: clamp(34px, 5vw, 56px);
}

/* ---------- Pie ---------- */
.bw-footer {
  background: var(--bw-navy);
  color: #d9d4f0;
  padding: 56px 0 24px;
}

.bw-footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.bw-footer-logo {
  height: 34px;
  width: auto;
}

.bw-footer p {
  margin: 12px 0 0;
}

.bw-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bw-footer-links .bw-label {
  color: var(--bw-cyan-50);
  margin-bottom: 4px;
}

.bw-footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.bw-footer-links a:hover {
  text-decoration: underline;
}

.bw-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

/* ---------- Páginas legales ---------- */
.bw-page-head {
  background: var(--bw-cyan);
  padding: 56px 0 48px;
}

.bw-page-head .bw-display {
  font-size: clamp(34px, 5vw, 56px);
}

.bw-page-head p {
  margin: 14px 0 0;
  font-size: 17px;
}

.bw-legal {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px clamp(20px, 5vw, 56px);
  margin: -24px auto 72px;
  max-width: 900px;
  position: relative;
}

.bw-legal h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}

.bw-legal h3 {
  font-size: 17px;
  margin: 22px 0 8px;
}

.bw-legal > h3:first-child {
  margin-top: 0;
  color: var(--bw-ink-soft);
  font-weight: 500;
}

.bw-legal p,
.bw-legal li {
  color: #2b2550;
  text-align: left !important;
}

.bw-legal br + br {
  display: none;
}

/* ---------- Páginas de error ---------- */
.bw-error {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.bw-error .bw-route {
  opacity: .9;
}

.bw-error-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 44px clamp(24px, 5vw, 56px);
  max-width: 560px;
  text-align: center;
}

.bw-error-code {
  font-family: var(--bw-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 96px;
  line-height: 1;
  color: var(--bw-cyan);
}

.bw-error-card .bw-display {
  font-size: 30px;
  margin: 12px 0;
}

.bw-error-card p {
  color: var(--bw-ink-soft);
  margin: 0 0 26px;
}

.bw-error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bw-btn-ghost {
  background: #ffffff;
  border: 1.5px solid var(--bw-line);
  color: var(--bw-navy);
}

/* ---------- Versiones de prueba (#404) ---------- */
.bw-gate {
  text-align: left;
  width: 100%;
}

.bw-gate .bw-display {
  margin: 10px 0 12px;
}

.bw-field {
  display: block;
  margin-bottom: 16px;
}

.bw-field span {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.bw-field input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--bw-line);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  color: var(--bw-navy);
  background: #ffffff;
}

.bw-field input:focus {
  outline: 0;
  border-color: var(--bw-navy);
}

.bw-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FBE3E3;
  color: #7f1d1d;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

.bw-btn-block {
  width: 100%;
  height: 52px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

.bw-btn i {
  font-size: 18px;
}

.bw-btn-ghost {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.bw-pill-neon {
  background: var(--bw-neon);
  color: var(--bw-navy);
  font-weight: 700;
}

.bw-tests-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.bw-tests-head .bw-display {
  margin-top: 14px;
}

.bw-tests-head p {
  max-width: 60ch;
}

.bw-tests {
  display: grid;
  gap: 20px;
  margin-top: -24px;
  margin-bottom: 72px;
  position: relative;
}

.bw-test-app {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px clamp(20px, 4vw, 36px);
}

.bw-test-app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.bw-test-app-head h2 {
  margin: 6px 0 0;
  font-size: 26px;
}

.bw-test-latest {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
}

.bw-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 20px;
}

.bw-test-meta dt {
  font-size: 12px;
  color: var(--bw-ink-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}

.bw-test-meta dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.bw-btn-download {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.bw-test-info h3 {
  font-size: 17px;
  margin: 28px 0 10px;
}

.bw-test-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bw-test-notes li {
  background: var(--bw-cream);
  border-radius: 12px;
  padding: 10px 14px;
}

.bw-test-notes-sm li {
  padding: 6px 10px;
  font-size: 14px;
}

.bw-ticket {
  display: inline-block;
  background: var(--bw-navy);
  color: var(--bw-neon);
  border-radius: 999px;
  padding: 1px 8px;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 700;
}

.bw-test-qr {
  text-align: center;
}

.bw-qr {
  display: inline-block;
  padding: 12px;
  border-radius: 18px;
  border: 1.5px solid var(--bw-line);
  background: #ffffff;
}

.bw-qr img,
.bw-qr canvas {
  display: block;
}

.bw-test-qr p {
  font-size: 13px;
  color: var(--bw-ink-soft);
  margin: 10px 0 0;
}

.bw-test-history {
  margin-top: 24px;
  border-top: 1px solid var(--bw-line);
  padding-top: 16px;
}

.bw-test-history summary {
  cursor: pointer;
  font-weight: 700;
}

.bw-test-history > ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.bw-test-history > ul > li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.bw-test-history small {
  display: block;
  color: var(--bw-ink-soft);
  margin: 2px 0 8px;
}

.bw-test-empty,
.bw-muted {
  color: var(--bw-ink-soft);
  margin: 0;
}

.bw-test-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bw-test-help > div {
  background: var(--bw-cyan-20);
  border-radius: 24px;
  padding: 24px 28px;
}

.bw-test-help h2 {
  font-size: 19px;
  margin: 0 0 10px;
}

.bw-test-help ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.bw-test-help p {
  margin: 0;
}

/* ---------- Guía de uso (#461) ---------- */
.bw-guia-indice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -24px;
  margin-bottom: 72px;
  position: relative;
}

.bw-guia-tarjeta {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.bw-guia-tarjeta h2 {
  font-size: 24px;
  margin: 8px 0 8px;
}

.bw-guia-tarjeta p {
  color: var(--bw-ink-soft);
  margin: 0 0 22px;
  flex: 1;
}

.bw-guia-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bw-guia-pie {
  grid-column: 1 / -1;
  color: var(--bw-ink-soft);
  margin: 0;
}

.bw-guia-volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.bw-guia {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  align-items: start;
  margin: 32px auto 72px;
}

.bw-guia-toc {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  font-size: 14px;
}

.bw-guia-toc .bw-label {
  display: block;
  color: var(--bw-ink-soft);
  margin-bottom: 10px;
}

.bw-guia-toc ol,
.bw-guia-toc ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.bw-guia-toc a {
  text-decoration: none;
}

.bw-guia-toc a:hover {
  text-decoration: underline;
}

.bw-guia-cuerpo {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.bw-guia-seccion {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px clamp(20px, 4vw, 36px);
  scroll-margin-top: 96px;
}

.bw-guia-seccion h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  margin: 0 0 12px;
}

.bw-guia-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bw-neon);
  color: var(--bw-navy);
  font-family: var(--bw-display);
  font-weight: 900;
  font-size: 16px;
}

.bw-guia-intro {
  margin: 0 0 14px;
}

.bw-guia-pasos {
  margin: 0 0 16px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.bw-guia-pasos li::marker {
  font-weight: 700;
  color: #007c84;
}

.bw-guia-nota {
  display: flex;
  gap: 10px;
  background: var(--bw-neon-50);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 15px;
}

.bw-guia-nota i {
  font-size: 20px;
  line-height: 1.3;
}

.bw-guia-figuras {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.bw-guia-escritorio {
  grid-template-columns: 1fr;
}

.bw-guia-telefono {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.bw-guia-figuras figure {
  margin: 0;
}

.bw-guia-figuras img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--bw-line);
  background: var(--bw-cream);
}

.bw-guia-telefono img {
  border-radius: 22px;
}

.bw-guia-figuras figcaption {
  font-size: 13px;
  color: var(--bw-ink-soft);
  margin-top: 8px;
  text-align: center;
}

/* ---------- Instructivo en PDF (A4) ---------- */
@page {
  size: A4;
  margin: 14mm 12mm;
}

.bw-pdf {
  background: #ffffff;
  font-size: 11pt;
}

.bw-pdf-portada {
  position: relative;
  overflow: hidden;
  height: 269mm;
  margin: -14mm -12mm 0;
  padding: 22mm 18mm;
  background: var(--bw-cyan);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  break-after: page;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.bw-pdf-logo {
  position: relative;
  height: 16mm;
  width: auto;
}

.bw-pdf-titulo {
  position: relative;
}

.bw-pdf-titulo .bw-display {
  font-size: 34pt;
  margin: 8mm 0 5mm;
}

.bw-pdf-titulo p {
  font-size: 14pt;
  max-width: 120mm;
  margin: 0;
}

.bw-pdf-fecha {
  position: relative;
  margin: 0;
  font-weight: 600;
}

.bw-pdf-contenido {
  break-after: page;
}

.bw-pdf-contenido .bw-display {
  font-size: 22pt;
  margin: 0 0 8mm;
}

.bw-pdf-contenido ol {
  margin: 0;
  padding-left: 8mm;
  display: grid;
  gap: 3mm;
  font-size: 12pt;
}

.bw-pdf .bw-guia-cuerpo {
  display: block;
}

.bw-pdf .bw-guia-seccion {
  border: 1px solid var(--bw-line);
  border-radius: 6mm;
  padding: 7mm;
  margin: 0 0 6mm;
  break-inside: auto;
}

.bw-pdf .bw-guia-seccion h2 {
  font-size: 16pt;
  break-after: avoid;
}

.bw-pdf .bw-guia-num,
.bw-pdf .bw-guia-nota,
.bw-pdf .bw-pill-navy {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.bw-pdf .bw-guia-figuras figure {
  break-inside: avoid;
}

.bw-pdf .bw-guia-telefono {
  grid-template-columns: repeat(4, 1fr);
  gap: 5mm;
}

.bw-pdf .bw-guia-escritorio img {
  max-height: 150mm;
  object-fit: contain;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bw-hero-in,
  .bw-split,
  .bw-driver,
  .bw-footer-in {
    grid-template-columns: 1fr;
  }

  .bw-hero-in {
    padding-top: 36px;
  }

  .bw-hero-phone .bw-phone {
    width: 240px;
  }

  .bw-phones {
    padding-right: 0;
  }

  .bw-phones .bw-phone-back {
    display: none;
  }

  .bw-section {
    padding: 64px 0;
  }

  .bw-test-latest,
  .bw-test-help,
  .bw-guia-indice,
  .bw-guia {
    grid-template-columns: 1fr;
  }

  .bw-guia-toc {
    position: static;
  }

  .bw-test-qr {
    display: none;
  }
}

@media (max-width: 620px) {
  .bw-wrap {
    padding: 0 16px;
  }

  .bw-tests-head {
    flex-direction: column;
  }

  .bw-btn-download {
    width: 100%;
  }

  .bw-nav a:not(.bw-btn) {
    display: none;
  }

  .bw-cards {
    grid-template-columns: 1fr;
  }

  .bw-hero p {
    font-size: 17px;
  }

  .bw-display span {
    white-space: normal;
  }

  .bw-legal {
    border-radius: 18px;
    margin-top: -16px;
  }
}
