/* VerifiCar — landing de campaña
   Paleta y tipografía tomadas del modelo aprobado. CSS a mano en vez de
   Tailwind compilado: la página pesa ~15 KB en vez de los 355 KB del
   bundle React original, y en pauta móvil cada décima de carga cuenta. */

:root {
  --brand: #19b45a;
  --brand-dark: #0f8c43;
  --brand-soft: #e8f8ef;
  --ink: #0b0f0d;
  --ink-soft: #16211b;
  --muted: #6b7472;
  --paper: #f5f6f4;
  --border: #e4e7e5;
  --alert: #e0483b;
  --radius: 0.75rem;
  --max: 1120px;
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.envoltura { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

/* ── Cabecera ─────────────────────────────────────────────── */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.cabecera.desplazada { border-bottom-color: var(--border); }
.cabecera .envoltura {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.cabecera img { height: 38px; width: auto; }
.menu { display: none; gap: 28px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.menu a:hover { color: var(--brand-dark); }
@media (min-width: 900px) { .menu { display: flex; } }

/* ── Botones ──────────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-align: center;
}
/* El CTA usa el verde oscuro de la paleta, no el brillante: blanco sobre
   #19b45a da 2,72:1 de contraste (ilegible para vista reducida) y sobre
   #0f8c43 sube a 4,33:1. Mismo verde de marca, solo el tono oscuro. */
.boton-primario {
  background: var(--brand-dark); color: #fff;
  box-shadow: 0 10px 24px rgba(15,140,67,.30);
}
.boton-primario:hover { background: #0b6f34; transform: translateY(-2px); }
.boton-fantasma {
  background: #fff; color: var(--ink); border: 1.5px solid var(--border);
}
.boton-fantasma:hover { border-color: var(--brand); color: var(--brand-dark); }
.boton-sm { padding: 11px 20px; font-size: 15px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.insignia {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 6.2vw, 56px); font-weight: 800; margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-texto { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); margin-top: 20px; max-width: 54ch; }

.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-nota { font-size: 14.5px; color: var(--muted); margin-top: 16px; }
.hero-nota b { color: var(--ink); font-weight: 700; }

/* ── Buscador de placa ────────────────────────────────────── */
.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.buscador {
  display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap;
  max-width: 520px;
}
.buscador input {
  flex: 1 1 210px; min-width: 0;
  font-family: var(--font-mono); font-size: 19px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
  background: #fff; border: 2px solid var(--border); border-radius: 999px;
  padding: 15px 24px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.buscador input::placeholder { letter-spacing: 1px; font-weight: 500; color: #a8b0ad; }
.buscador input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.buscador input.campo-error { border-color: var(--alert); }
.buscador .boton { flex: 0 0 auto; }
@media (max-width: 460px) {
  .buscador input, .buscador .boton { flex: 1 1 100%; }
}
.buscador-error { color: var(--alert); font-size: 14px; font-weight: 600; margin-top: 10px; }

/* Variante sobre el fondo oscuro del CTA final */
.buscador-oscuro { margin: 30px auto 0; justify-content: center; }
.buscador-oscuro input { border-color: #2b332f; background: #fff; }
.buscador-oscuro input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(25,180,90,.22); }

.fichas { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; }
.fichas li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.tic { flex: none; width: 19px; height: 19px; }

/* Maqueta del reporte */
.maqueta {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; box-shadow: 0 24px 60px rgba(11,15,13,.10);
}
.maqueta-cab { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.placa {
  font-family: var(--font-mono); font-weight: 700; font-size: 21px;
  letter-spacing: 2px; color: var(--ink);
}
.sello { font-size: 12px; font-weight: 800; color: var(--brand-dark); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; }
.fila { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); }
.fila:last-of-type { border-bottom: 0; }
.fila-et { font-size: 14.5px; color: var(--muted); }
.fila-val { font-family: var(--font-mono); font-size: 14.5px; font-weight: 700; }
.val-ok { color: var(--brand-dark); }
.val-alerta { color: var(--alert); }
.maqueta-pie { margin-top: 14px; background: var(--paper); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 13px; }
.maqueta-pie .num { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.maqueta-pie .txt { font-size: 13.5px; color: var(--muted); font-weight: 600; line-height: 1.35; }

/* ── Secciones ────────────────────────────────────────────── */
.seccion { padding: 76px 0; }
.seccion-papel { background: var(--paper); }
.seccion-cab { max-width: 62ch; margin: 0 auto 44px; text-align: center; }
.seccion-cab h2 { font-size: clamp(27px, 4.4vw, 40px); font-weight: 800; }
.seccion-cab h2 em { font-style: normal; color: var(--brand); }
.seccion-cab p { color: var(--muted); margin-top: 15px; font-size: 17px; }

.rejilla { display: grid; gap: 20px; }
.rejilla-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .rejilla-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .rejilla-3 { grid-template-columns: repeat(3, 1fr); } }

.tarjeta {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease;
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,15,13,.08); }
.tarjeta h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.tarjeta p { color: var(--muted); font-size: 15.5px; }
.icono {
  width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icono-alerta { background: #fdecea; }

/* Pasos */
.pasos { display: grid; gap: 22px; counter-reset: paso; list-style: none; padding: 0; }
@media (min-width: 860px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; position: relative; }
.paso .n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.paso h3 { font-size: 19px; margin-bottom: 8px; }
.paso p { color: var(--muted); font-size: 15.5px; }

/* Precios */
.precios { display: grid; gap: 22px; }
@media (min-width: 860px) { .precios { grid-template-columns: repeat(3, 1fr); } }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan-destacado { border: 2px solid var(--brand); box-shadow: 0 18px 44px rgba(25,180,90,.14); position: relative; }
.plan-cinta {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; padding: 6px 15px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .cifra { font-family: var(--font-display); font-size: 42px; font-weight: 800; margin: 12px 0 2px; }
.plan .cifra small { font-size: 19px; color: var(--muted); font-weight: 600; }
.plan .antes { color: var(--muted); text-decoration: line-through; font-size: 17px; margin-left: 8px; font-weight: 600; }
.plan .detalle { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.plan .boton { margin-top: auto; width: 100%; }

/* CTA final */
.cta-final { background: var(--ink); color: #fff; padding: 76px 0; text-align: center; }
.cta-final h2 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; }
.cta-final h2 em { font-style: normal; color: var(--brand); }
.cta-final p { color: #a9b2af; margin-top: 16px; font-size: 17px; }
.cta-caja { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.cta-qr { margin: 34px auto 0; max-width: 168px; }
.cta-qr img { border-radius: 14px; background: #fff; padding: 9px; }
.cta-qr span { display: block; color: #7d8784; font-size: 12.5px; margin-top: 10px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.pregunta { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.pregunta summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: '+'; font-family: var(--font-mono); font-size: 22px; color: var(--brand);
  flex: none; transition: transform .2s;
}
.pregunta[open] summary::after { content: '\2212'; }
.pregunta p { padding: 0 24px 20px; color: var(--muted); font-size: 15.5px; }

/* Pie */
.pie { background: var(--ink); color: #8a938f; padding: 52px 0 34px; font-size: 14.5px; }
.pie-grid { display: grid; gap: 30px; }
@media (min-width: 780px) { .pie-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.pie img { height: 42px; width: auto; background: #fff; padding: 7px 11px; border-radius: 10px; }
.pie-desc { margin-top: 16px; max-width: 46ch; }
.pie-enlaces { display: grid; gap: 10px; }
.pie-enlaces a:hover { color: var(--brand); }
.pie-legal { border-top: 1px solid #22292680; margin-top: 34px; padding-top: 22px; font-size: 13px; color: #6a736f; display: grid; gap: 8px; }

/* Accesibilidad: respeta a quien pidió menos animación */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
