/* 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: 136px; gap: 16px;
}
.cabecera img { height: 99px; 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; } }

.hero h1 { font-size: clamp(34px, 6.2vw, 56px); font-weight: 800; }
.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; }

/* Entrada única y autoral del mockup: la única animación de scroll-load de
   la página. No se repite igual en cada sección — ver nota de motion. */
.maqueta > * { opacity: 0; animation: maqueta-in .6s cubic-bezier(.16,1,.3,1) forwards; }
.maqueta > *:nth-child(1) { animation-delay: 0s; }
.maqueta > *:nth-child(2) { animation-delay: .07s; }
.maqueta > *:nth-child(3) { animation-delay: .13s; }
.maqueta > *:nth-child(4) { animation-delay: .19s; }
.maqueta > *:nth-child(5) { animation-delay: .25s; }
.maqueta > *:nth-child(6) { animation-delay: .31s; }
.maqueta > *:nth-child(7) { animation-delay: .37s; }
@keyframes maqueta-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── 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; }

/* Expediente: los 3 riesgos como un único panel-dossier, no tarjetas
   repetidas. Refuerza el motivo "papel/reporte" que ya usa el resto del
   sitio en vez del grid genérico de icono+título+texto. */
.expediente {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden;
}
.expediente-fila {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 28px; border-bottom: 1px solid var(--border);
}
.expediente-fila:last-child { border-bottom: 0; }
.expediente-fila svg { flex: none; margin-top: 3px; }
.expediente-fila h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.expediente-fila p { color: var(--muted); font-size: 15.5px; }

/* Checklist: las 9 verificaciones como una sola planilla conectada, en el
   mismo lenguaje visual que la maqueta del hero (fila + check), no 9
   tarjetas blancas idénticas. */
.checklist {
  display: grid; grid-template-columns: 1fr;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden;
}
.checklist-fila {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 26px; border-bottom: 1px solid var(--border);
}
.checklist-fila .tic { margin-top: 3px; }
.checklist-fila h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.checklist-fila p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 859px) { .checklist-fila:last-child { border-bottom: 0; } }
@media (min-width: 860px) {
  .checklist { grid-template-columns: repeat(3, 1fr); }
  .checklist-fila { border-right: 1px solid var(--border); }
  .checklist-fila:nth-child(3n) { border-right: 0; }
  .checklist-fila:nth-last-child(-n+3) { border-bottom: 0; }
}

/* Tarifas del marketplace: mismo tratamiento de panel conectado que
   expediente/checklist, distinto de ambos por llevar el precio como cifra
   grande (dato real del negocio, no un stat decorativo). */
.tarifas {
  display: grid; grid-template-columns: 1fr;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden;
}
.tarifas-col { padding: 30px 28px; border-bottom: 1px solid var(--border); }
.tarifas-col:last-child { border-bottom: 0; }
.tarifas-col h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.tarifas-col p { color: var(--muted); font-size: 15.5px; }
.tarifas-precio {
  margin-top: 18px; font-family: var(--font-display); font-size: 26px;
  font-weight: 800; color: var(--brand-dark) !important;
}
.tarifas-precio span { font-size: 14.5px; color: var(--muted); font-weight: 600; }
@media (min-width: 860px) {
  .tarifas { grid-template-columns: repeat(3, 1fr); }
  .tarifas-col { border-bottom: 0; border-right: 1px solid var(--border); }
  .tarifas-col:last-child { border-right: 0; }
}

/* Pasos: sin badge numerado — el verbo en verde dentro del propio título
   carga la secuencia, siguiendo la misma convención de énfasis que ya usa
   el h1 y los h2 de sección (em = color de marca). */
.pasos { display: grid; gap: 22px; 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; }
.paso h3 { font-size: 20px; margin-bottom: 8px; }
.paso h3 em { font-style: normal; color: var(--brand); }
.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; }

/* Botón flotante de WhatsApp. Único lugar del sitio que usa el verde
   oficial de WhatsApp en vez del verde de marca: así se reconoce al
   instante como "hablar por WhatsApp", no como otro CTA del producto. */
.whatsapp-flotante {
  position: fixed;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.whatsapp-icono {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(6,90,50,.32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-flotante:hover .whatsapp-icono { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(6,90,50,.4); }
.whatsapp-etiqueta {
  font-family: var(--font-body); font-weight: 800; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(11,15,13,.72); padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}

/* 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; }
}
