/* Docta GEO · estilos base (landing, y después escaneo y resultado).
   Mobile-first: base a 375 px; se escala en 768 px y 1100 px. Sistema visual: docs/brief-front.md §1. */

:root {
  --bg: #F4F1EA;          /* blanco tiza */
  --surface: #FBFAF6;
  --bubble: #F1EEE6;
  --ink: #111110;
  --ink-2: #45433D;
  --ink-3: #6B6860;
  --line: #E2DDD2;
  --lime: #D4FF3A;        /* solo sobre negro o como bloque con texto negro */
  --on-dark: #FBFAF6;
  --on-dark-2: #C9C6BC;
  --on-dark-3: #B9B6AC;
  --dark-line: #3A3934;
  --dark-field: #1C1C1A;

  --font-title: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-pill: 999px;

  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --section-gap: clamp(72px, 10vw, 120px);
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); margin: 0; letter-spacing: -0.03em; overflow-wrap: normal; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .scan-form :focus-visible { outline-color: var(--lime); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; display: inline-flex; align-items: center; min-height: var(--tap); }
.skip:focus { left: var(--gutter); top: var(--gutter); z-index: 10; background: var(--ink); color: var(--on-dark); padding: 12px 16px; border-radius: var(--r-sm); }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  font: 700 16px/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-pill { border-radius: var(--r-pill); }
/* Botón de pago con la marca de Mercado Pago 2025 (celeste #00BCFF, azul #0A0080; logo oficial RGB sin editar). */
.btn-mp { background: #00BCFF; color: #0A0080; border-color: #00BCFF; font-size: 17px; gap: 0; padding: 0 6px 0 16px; }
.btn-mp span { white-space: nowrap; }
.btn-mp:hover { background: #33C9FF; border-color: #33C9FF; }
.btn-mp .mp-logo { flex-shrink: 0; width: 112px; height: 46px; }
@media (max-width: 359px) { .btn-mp { font-size: 15px; padding: 0 4px 0 12px; } .btn-mp .mp-logo { width: 96px; height: 40px; } }
@media (min-width: 768px) { .btn-mp { font-size: 19px; padding: 0 10px 0 22px; } .btn-mp .mp-logo { width: 124px; height: 50px; } }
.mp-note { margin: 0; font-size: 14px; color: var(--on-dark-2); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ------------------------------------------------------------------ títulos de sección */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.section { margin-top: var(--section-gap); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(32px, 7vw, 54px); line-height: 1.05; font-weight: 700; max-width: 860px; }

/* ------------------------------------------------------------------ 1. header */
.site-header { border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; min-height: var(--tap); padding: 8px 16px; background: var(--ink); border-radius: var(--r-pill); }
.logo img { width: 112px; height: auto; }
.nav { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav > .btn-dark { display: none; }
.nav-links { display: none; }
.nav-menu { position: relative; }
.nav-menu summary {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap);
  padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); font-weight: 600; cursor: pointer; list-style: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 220px;
  padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 0 20px 40px -20px rgba(17, 17, 16, .35);
}
.nav-menu a { display: flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.nav-menu a:hover { background: var(--bubble); }
.nav-menu .nav-cta { margin-top: 4px; background: var(--ink); color: var(--on-dark); }
.nav-menu .nav-cta:hover { background: var(--ink-2); }
.nav .btn-dark { padding: 0 16px; }

/* ------------------------------------------------------------------ 2. hero */
.hero { padding-top: 40px; }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "copy" "form" "chat"; }
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 20px; }
.tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.hero h1 { font-size: clamp(34px, 8.6vw, 62px); line-height: 1.07; font-weight: 700; letter-spacing: -0.04em; }
.hl { background: var(--ink); color: var(--lime); padding: 0 .22em; border-radius: 12px; white-space: nowrap; }
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-2); max-width: 560px; }

.scan-form { grid-area: form; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--ink); color: var(--on-dark); border-radius: var(--r-md); }
.scan-form label { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--lime); }
.scan-row { display: flex; flex-direction: column; gap: 10px; }
.scan-row input {
  width: 100%; min-height: 56px; padding: 0 18px;
  border: 1px solid var(--dark-line); border-radius: var(--r-sm); background: var(--dark-field); color: var(--on-dark);
  font: 17px var(--font-body);
}
.scan-row input::placeholder { color: #8A877E; }
.scan-row .btn { min-height: 56px; }
.scan-foot { display: flex; flex-direction: column; gap: 12px; }
.ts { min-height: 65px; max-width: 100%; }
.note { font-size: 13px; color: var(--on-dark-3); }
.form-error { font-size: 15px; font-weight: 600; color: #FFB4A8; }
.form-error:empty, .scan-status:empty { display: none; }
.scan-status { font-size: 15px; color: var(--lime); }
.busy-help { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 15px; font-weight: 600; }

.chat {
  grid-area: chat; display: flex; flex-direction: column; gap: 14px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 30px 60px -30px rgba(17, 17, 16, .25);
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.chat-head span:last-child { padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.bubble { padding: 14px 18px; font-size: 16px; line-height: 1.5; }
.bubble-q { align-self: flex-end; max-width: 88%; background: var(--ink); color: var(--on-dark); border-radius: 20px 20px 4px 20px; }
.bubble-a { max-width: 92%; background: var(--bubble); border-radius: 20px 20px 20px 4px; display: flex; flex-direction: column; gap: 8px; }
.chat-miss { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--ink); color: var(--on-dark); border-radius: 16px; line-height: 1.45; }
.chat-miss .q { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--ink); font: 700 20px var(--font-title); }
.chat-miss strong { color: var(--lime); }
.chat > * { animation: rise .5s ease both; }
.chat > :nth-child(2) { animation-delay: .15s; }
.chat > :nth-child(3) { animation-delay: .45s; }
.chat > :nth-child(4) { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ 3. franja de motores */
.engines { display: flex; flex-direction: column; margin-top: var(--section-gap); background: var(--ink); color: var(--on-dark); overflow: hidden; }
.engines-label { display: flex; align-items: center; min-height: 48px; padding: 0 var(--gutter); background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.engines-view { overflow: hidden; display: flex; align-items: center; min-height: 88px; }
.engines-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.engines-track ul { display: flex; align-items: center; }
.engines-track li { display: inline-flex; align-items: center; gap: 32px; padding-left: 32px; font: 700 28px/1 var(--font-title); letter-spacing: -0.03em; white-space: nowrap; }
.engines-track li::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ 4. cómo funciona */
.how { padding-block: 64px; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-md); }
.card .n { font: 700 48px/1 var(--font-title); letter-spacing: -0.04em; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.card p { font-size: 17px; line-height: 1.6; }
.card-lime { background: var(--lime); color: var(--ink); }
.card-lime p { color: var(--ink-2); }
.card-dark { background: var(--ink); color: var(--on-dark); }
.card-dark .n { color: var(--lime); }
.card-dark p { color: var(--on-dark-2); }
.card-gray { background: var(--ink-2); color: var(--on-dark); }
.card-gray .n { color: var(--lime); }

/* ------------------------------------------------------------------ 5. lo que está en juego */
.risks { display: grid; gap: 12px; }
.risk { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 24px; border: 1px solid var(--ink); border-radius: var(--r-md); }
.risk .n { font: 800 48px/1 var(--font-title); letter-spacing: -0.04em; }
.risk h3 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.risk-dark { background: var(--ink); color: var(--on-dark); }
.risk-dark .n { color: var(--lime); }
.risk-dark p { color: var(--on-dark-2); }
.risk-light { background: var(--surface); }
.risk-light p, .risk-lime p { color: var(--ink-2); }
.risk-lime { background: var(--lime); }
.stakes-note { margin-top: 24px; font-size: 17px; color: var(--ink-2); }
.stakes-note strong { color: var(--ink); }

/* ------------------------------------------------------------------ 6. bloque negro */
.why { display: grid; gap: 32px; padding: 32px 20px; background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); }
.why-copy { display: flex; flex-direction: column; gap: 18px; }
.why .eyebrow { color: var(--lime); }
.why h2 { font-size: clamp(30px, 6.4vw, 50px); line-height: 1.07; font-weight: 700; }
.why p { font-size: 18px; line-height: 1.6; color: var(--on-dark-2); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--on-dark); border-radius: 20px; }
.stat b { font: 700 clamp(34px, 8vw, 52px)/1 var(--font-title); color: var(--lime); letter-spacing: -0.03em; }
.stat span { font-size: 14px; line-height: 1.4; color: var(--on-dark-2); }

/* ------------------------------------------------------------------ 7. precios */
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink-3); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.plan-price b { font: 700 clamp(40px, 10vw, 52px)/1.05 var(--font-title); letter-spacing: -0.03em; }
.plan-price span { font-size: 15px; color: var(--ink-3); }
.plan ul { display: flex; flex-direction: column; gap: 12px; flex-grow: 1; font-size: 16px; line-height: 1.4; }
.plan li::before { content: "✓ "; font-weight: 700; }
.plan .btn { min-height: 56px; padding: 0 14px; font-size: 15px; }
.plan-hot { background: var(--ink); color: var(--on-dark); border-color: var(--ink); box-shadow: 0 40px 70px -35px rgba(17, 17, 16, .55); }
.plan-hot .plan-name { color: var(--lime); }
.plan-hot .plan-price span { color: var(--on-dark-3); }
.plan-hot ul { color: #E6E3D9; }
.badge { padding: 6px 12px; background: var(--lime); color: var(--ink); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }

/* ------------------------------------------------------------------ 8. FAQ */
.faq { display: grid; gap: 24px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--tap); padding: 20px 0; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 20px;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 760px; }

/* ------------------------------------------------------------------ 9. footer */
.site-footer { margin-top: var(--section-gap); padding-block: 56px 32px; background: var(--ink); color: var(--on-dark); }
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.footer-cta h2 { font-size: clamp(34px, 8vw, 64px); line-height: 1.04; font-weight: 700; max-width: 820px; }
.footer-cta h2 span { color: var(--lime); }
.footer-cta .btn { min-height: 56px; padding: 0 28px; font-size: 17px; }
.footer-bottom { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark-3); }
.footer-bottom img { width: 150px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.footer-links a:hover { color: var(--on-dark); text-decoration: underline; }

/* ------------------------------------------------------------------ escaneo en vivo */
.scan-view { padding-block: 32px 72px; }
.scan-top { display: flex; flex-direction: column; gap: 16px; }
.scan-top h2 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; font-weight: 700; overflow-wrap: anywhere; }
.scan-top h2:focus { outline: none; }
.scan-top .btn { align-self: flex-start; }
.scan-progress { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.phase-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.phase-chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-3);
}
.chip-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.phase-chips li[data-state="running"] { color: var(--ink); border-color: var(--ink); }
.phase-chips li[data-state="running"] .chip-mark { background: var(--ink); animation: pulse .9s ease-in-out infinite; }
.phase-chips li[data-state="done"] { color: var(--on-dark); background: var(--ink); border-color: var(--ink); }
.phase-chips li[data-state="done"] .chip-mark { background: var(--lime); }
.phase-chips li[data-state="failed"], .phase-chips li[data-state="stopped"] { color: var(--ink); border-color: var(--ink); border-style: dashed; }
.phase-chips li[data-state="failed"] .chip-mark, .phase-chips li[data-state="stopped"] .chip-mark { width: auto; height: auto; background: none; }
.phase-chips li[data-state="failed"] .chip-mark::before, .phase-chips li[data-state="stopped"] .chip-mark::before { content: "!"; font-weight: 800; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar { flex: 1; height: 10px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.bar .fill { display: block; width: 0; height: 100%; background: var(--ink); border-radius: inherit; transition: width .3s ease; }
.bar-pct { font: 600 14px var(--font-mono); min-width: 4ch; text-align: right; }
.scan-hint { font-size: 13px; color: var(--ink-3); }
.scan-view:not([data-status="running"]) .scan-hint { display: none; }

.scan-error, .scan-refresh { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 20px; border-radius: var(--r-md); }
.scan-error { background: var(--ink); color: var(--on-dark); }
.scan-error:focus { outline: 3px solid var(--lime); outline-offset: 3px; }
.scan-error-msg { font-size: 18px; font-weight: 700; }
.scan-error-note { font-size: 14px; color: var(--on-dark-3); }
.scan-refresh { background: var(--surface); border: 1px solid var(--line); }
.scan-refresh .form-error { color: #B3261E; }
/* Diagnóstico incompleto: sin número, con los motivos que el dueño puede comprobar. */
.scan-incomplete { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 2px dashed var(--ink); }
.scan-incomplete-t, .res-incomplete-t { font: 800 22px/1.2 var(--font-title); letter-spacing: -0.02em; }
.reasons { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 600; list-style: disc; }
.score-card .reasons { color: var(--on-dark); }
.res-score .btn { align-self: flex-start; }
.issue-table tr[data-ok="null"] td { color: var(--ink-3); font-weight: 500; }

.scan-grid { display: grid; gap: 16px; margin-top: 24px; }
.log-panel { display: flex; flex-direction: column; background: var(--ink); color: var(--on-dark); border-radius: var(--r-md); overflow: hidden; }
.log-head { display: flex; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--dark-line); font: 600 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-3); }
.log-head span:last-child { color: var(--lime); }
.log { max-height: 240px; overflow-y: auto; margin: 0; padding: 14px 18px; list-style: none; font: 13px/1.6 var(--font-mono); }
.log li { display: grid; grid-template-columns: 48px 16px minmax(0, 1fr); gap: 6px; color: var(--on-dark-3); animation: rise .3s ease both; }
.log li[data-mark="run"], .log li[data-mark="find"] { color: var(--on-dark); }
.log .log-t { color: #8A877E; }
.log li[data-mark="run"] .log-mark, .log li[data-mark="find"] .log-mark { color: var(--lime); }
.log-text { overflow-wrap: anywhere; }

.scan-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.facts { display: grid; gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.fact-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fact-v { font: 700 20px/1.3 var(--font-title); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.fact-v[data-status="waiting"], .fact-v[data-status="pending"], .fact-v[data-status="failed"], .fact-v[data-status="unverified"] { font: 500 16px var(--font-body); color: var(--ink-3); }
.fact-v.typing { animation: type .3s steps(24, end) both; }
.panel { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.panel-head h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); }
.panel-head span { font: 500 13px var(--font-mono); color: var(--ink-3); }
.rows { display: grid; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row-status { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-weight: 600; text-align: right; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #C9C6BC; flex-shrink: 0; }
.row[data-status="waiting"] .row-status { color: #8A877E; font-weight: 500; }
.row[data-status="checking"] .dot { background: var(--ink); animation: pulse .9s ease-in-out infinite; }
.row[data-status="yes"] .dot { background: var(--ink); }
.row[data-status="blocked"] .dot, .row[data-status="no"] .dot { background: transparent; border: 2px solid var(--ink); }
.row[data-status="failed"] .row-status, .row[data-status="unverified"] .row-status { color: var(--ink-3); font-weight: 500; }
.row[data-status="failed"] .dot, .row[data-status="unverified"] .dot { background: transparent; border: 2px dashed #8A877E; }
.panel-cached { display: none; }
.panel-cached p { font-size: 18px; font-weight: 700; }
.scan-view.is-cached .panel-live, .scan-view.is-cached .log-panel, .scan-view.is-cached .scan-progress { display: none; }
.scan-view.is-cached .panel-cached { display: block; }
.score-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--ink); color: var(--on-dark); border-radius: var(--r-md); }
.score-k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.score { display: flex; align-items: baseline; gap: 6px; }
.score b { font: 800 64px/1 var(--font-title); letter-spacing: -0.04em; }
.scan-view[data-status="running"] .score b, .scan-view[data-status="error"] .score b, .scan-view[data-status="cut"] .score b { color: var(--dark-line); }
.score span { font-size: 18px; color: var(--on-dark-3); }
.score-card .btn { min-height: 56px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ------------------------------------------------------------------ resultado */
.result-view { padding-block: 32px 72px; }
.res-head { display: flex; flex-direction: column; gap: 12px; }
.res-head h1 { font-size: clamp(30px, 7vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; overflow-wrap: break-word; }
.site-header .header-in > .btn { white-space: nowrap; padding: 0 14px; font-size: 15px; }
.nowrap { white-space: nowrap; }
.res-head h1:focus { outline: none; }
.res-meta { font-size: 15px; color: var(--ink-2); }
.res-share { font-size: 13px; color: var(--ink-3); }
.method-link, .why-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: var(--tap); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.why-link { color: var(--lime); }
.res-missing { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; font-size: 17px; color: var(--ink-2); }

.res-body { display: flex; flex-direction: column; gap: 40px; margin-top: 28px; }
.res-score .score b { font-size: clamp(72px, 18vw, 120px); }
.res-phrase { font: 700 clamp(20px, 4vw, 26px)/1.3 var(--font-title); letter-spacing: -0.02em; max-width: 720px; }
.res-fixed { font-size: 14px; color: var(--on-dark-3); }
.res-section { display: flex; flex-direction: column; gap: 16px; }
.res-section-head { display: flex; flex-direction: column; gap: 6px; }
.res-section h2 { font-size: clamp(24px, 5vw, 36px); line-height: 1.12; font-weight: 700; }
.res-section h3 { font-size: 18px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

.area-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.area { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.area-n { font: 700 18px var(--font-title); }
.area-txt { display: flex; flex-direction: column; gap: 2px; }
.area-txt span { font-size: 14px; color: var(--ink-2); }
.area-bar { grid-column: 2; height: 8px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.area-bar span { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.area[data-exam="true"] .area-bar { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.area-label { grid-column: 2; font-size: 14px; font-weight: 700; }

.res-facts { margin: 0; }
.res-facts dd { margin: 0; }

.issue-list { display: grid; gap: 16px; }
.issue { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 0; }
.issue-tag { align-self: flex-start; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--bubble); }
.issue[data-sev="critical"] .issue-tag { background: var(--ink); color: var(--lime); }
.issue[data-sev="high"] .issue-tag { background: var(--ink); color: var(--on-dark); }
.issue h3 { font: 700 20px/1.25 var(--font-title); letter-spacing: -0.02em; }
.issue-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.issue-table th, .issue-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.issue-table thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.issue-table tbody th { font-weight: 500; padding-right: 12px; }
.issue-table td, .issue-table thead th:last-child { text-align: right; }
.issue-table td { font-weight: 700; white-space: nowrap; }
.issue-table tr[data-ok="false"] td { color: var(--ink); }
.issue-table tr[data-ok="true"] td { color: var(--ink-3); font-weight: 600; }
.issue-note { font-size: 14px; color: var(--ink-2); font-style: italic; }
.issue-cost { font-size: 15px; color: var(--ink-2); }
.issue-cost b { color: var(--ink); }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.issue-lock { padding-top: 12px; border-top: 1px dashed var(--line); }

.res-counts .sev-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sev-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-size: 14px; }
.sev-list b { font: 800 30px/1 var(--font-title); }
.sev-list li[data-sev="critical"][data-zero="false"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.sev-list li[data-zero="true"] { color: var(--ink-3); }
.sev-list li[data-sev="critical"][data-zero="false"] b { color: var(--lime); }
.res-note { font-size: 14px; color: var(--ink-3); }
.by-area { display: flex; flex-direction: column; gap: 10px; }
.by-area ul { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.by-area li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.by-area-name { font-weight: 700; }
.by-area-detail { grid-column: 1; font-size: 14px; color: var(--ink-2); }
.by-area li b { grid-row: 1; grid-column: 2; font: 800 22px/1 var(--font-title); }
.by-area li .lock { grid-column: 1 / -1; font-size: 13px; }

.res-cta { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); }
.res-cta .eyebrow { color: var(--lime); }
.res-cta h2 { font-size: clamp(26px, 5.6vw, 40px); line-height: 1.1; font-weight: 700; }
.cta-list { display: grid; gap: 8px; color: var(--on-dark-2); }
.cta-list li::before { content: "✓ "; color: var(--lime); font-weight: 700; }
.cta-status { font-weight: 700; color: var(--lime); }
.lead-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.lead-form label { font-size: 16px; font-weight: 600; }
.lead-row { display: flex; flex-direction: column; gap: 10px; }
.lead-row input { width: 100%; min-height: 56px; padding: 0 18px; border: 1px solid var(--dark-line); border-radius: var(--r-sm); background: var(--dark-field); color: var(--on-dark); font: 17px var(--font-body); }
.lead-row .btn { min-height: 56px; }
.lead-status:empty { display: none; }
.lead-status { font-size: 15px; font-weight: 600; color: #FFB4A8; }
.lead-status[data-ok="true"] { color: var(--lime); }
.lead-form.is-sent .lead-row { display: none; }
.res-cta .note a { display: inline-block; padding-block: 12px; color: var(--on-dark); }

.res-impl { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; border: 1.5px solid var(--ink); border-radius: var(--r-md); font-size: 17px; font-weight: 600; }
.res-footer { margin-top: 0; padding-block: 8px 32px; }

/* ------------------------------------------------------------------ metodología */
.method-view { padding-block: 24px 72px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.method-head { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; max-width: 860px; }
.method-head h1 { font-size: clamp(32px, 7.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.035em; }
.method-section { display: flex; flex-direction: column; gap: 14px; margin-top: 48px; max-width: 860px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.method-section h2 { font-size: clamp(24px, 5vw, 34px); line-height: 1.15; font-weight: 700; color: var(--ink); }
.method-section b { color: var(--ink); }
.weights { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.weights li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.w-name { font-weight: 700; color: var(--ink); }
.w-what { grid-column: 1; font-size: 15px; }
.w-points { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 800 32px/1 var(--font-title); color: var(--ink); }
.method-note { font-size: 15px; }
.rules { display: grid; gap: 12px; margin: 0; padding: 0; }
.method-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 56px; padding: 28px 22px; background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); }
.method-cta h2 { font-size: clamp(26px, 5.6vw, 40px); line-height: 1.1; font-weight: 700; }
.method-cta .btn { min-height: 56px; padding: 0 28px; }

/* ------------------------------------------------------------------ WhatsApp flotante */
.wa-float {
  position: fixed; z-index: 30;
  right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #FFFFFF;
  box-shadow: 0 12px 28px -10px rgba(17, 17, 16, .55);
  transition: opacity .2s ease, visibility .2s ease;
}
.wa-float:hover { background: var(--ink-2); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* Espacio final para que el botón no tape el último contenido de cada página. */
.site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ------------------------------------------------------------------ teléfonos anchos */
@media (min-width: 480px) {
  .nav > .btn-dark { display: inline-flex; }
  .nav-menu .nav-cta-item { display: none; }
}

/* ------------------------------------------------------------------ tablet */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .scan-form { padding: 28px; }
  .scan-row { flex-direction: row; }
  .scan-row .btn { flex-shrink: 0; padding: 0 26px; }
  .scan-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .chat { padding: 32px; border-radius: 28px; }
  .engines { flex-direction: row; }
  .engines-label { min-height: 120px; padding: 0 40px 0 var(--gutter); }
  .engines-view { min-height: 120px; }
  .engines-track li { gap: 56px; padding-left: 56px; font-size: 40px; }
  .engines-track li::after { width: 14px; height: 14px; }
  .section-head { flex-direction: row-reverse; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
  .section-head .eyebrow { flex-shrink: 0; }
  .how { padding-block: 96px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .card { padding: 36px; }
  .risks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { padding: 56px; }
  .stat { padding: 28px; }
  .stat span { font-size: 15px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-links { flex-direction: row; gap: 28px; }
  .scan-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .scan-top .btn { align-self: auto; }
  .scan-error, .scan-refresh { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .scan-error-msg { flex-basis: 100%; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .log { max-height: 320px; }
  .res-section-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
  .area { grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) 280px; align-items: center; }
  .area-bar, .area-label { grid-column: auto; }
  .area-label { text-align: right; }
  .issue-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-row { flex-direction: row; }
  .lead-row .btn { flex-shrink: 0; padding: 0 26px; }
  .res-cta { padding: 40px; }
  .method-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; }
  .res-impl { flex-direction: row; align-items: center; justify-content: space-between; }
  .by-area li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; align-items: center; }
  .by-area-detail { grid-column: auto; }
  .by-area li b { grid-row: auto; grid-column: auto; }
  .by-area li .lock { grid-column: auto; }
}

/* ------------------------------------------------------------------ desktop (mockup de 1440 px) */
@media (min-width: 1100px) {
  :root { --gutter: 80px; }
  .header-in { min-height: 100px; }
  .logo img { width: 128px; }
  .nav { gap: 36px; }
  .nav-menu { display: none; }
  .nav-links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
  .nav-links a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
  .nav-links a:hover { text-decoration: underline; }
  .nav .btn-dark { padding: 0 22px; border-radius: var(--r-pill); }
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "copy chat" "form form"; column-gap: 64px; row-gap: 48px; align-items: center; }
  .hero-copy { gap: 28px; }
  .risks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .risk { min-height: 300px; padding: 28px; }
  .risk .n { font-size: 64px; }
  .risk h3 { font-size: 23px; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; padding: 64px; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .plan { padding: 40px; }
  .faq { grid-template-columns: 420px minmax(0, 1fr); gap: 64px; }
  .faq .section-head { flex-direction: column; align-items: flex-start; justify-content: flex-start; margin-bottom: 0; }
  .faq summary { font-size: 21px; padding: 26px 0; }
  .site-footer { padding-block: 80px calc(112px + env(safe-area-inset-bottom)); }
  .footer-cta { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .footer-bottom { margin-top: 56px; padding-top: 32px; }
  .scan-view { padding-block: 56px 96px; }
  .scan-grid { grid-template-columns: 520px minmax(0, 1fr); gap: 24px; align-items: start; }
  .scan-view.is-cached .scan-grid { grid-template-columns: minmax(0, 1fr); }
  .result-view { padding-block: 56px 96px; }
  .method-view { padding-block: 32px 96px; }
  .wa-float { right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); }
  .res-body { gap: 56px; }
  .res-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .res-cta { padding: 56px; }
  .log { max-height: 560px; min-height: 420px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}

/* ------------------------------------------------------------------ sin movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* El marquee queda quieto: todos los motores visibles en varias líneas, sin la copia duplicada. */
  .engines-track { width: auto; flex-wrap: wrap; }
  .engines-track ul { flex-wrap: wrap; row-gap: 12px; padding-block: 16px; }
  .engines-track ul[aria-hidden="true"] { display: none; }
}

/* Legales */
.legal-view .rules { list-style: none; }
.legal-form { display: grid; gap: 10px; max-width: 560px; }
.legal-form label { font-weight: 700; color: var(--ink); }
.legal-form input, .legal-form textarea { min-height: var(--tap); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--surface); }
.legal-form .btn { justify-self: start; margin-top: 6px; }
.form-status { font-weight: 600; color: var(--ink); }
