/* ¿Tu web cumple? — same design family as librodigital.pe and datosprivados.registio.app:
   cream paper, Fraunces serif headings with a red italic accent, Instrument Sans text, mono labels, ink pill buttons. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f7f3ea; --paper: #fdfaf3; --card: #fffdf8; --line: #e3d9c6; --line2: #d6c9b0;
  --ink: #1b1611; --muted: #5c5246; --soft: #8a7d6b;
  --red: #c02b0a; --red-dark: #9e2208; --crimson: #b0241c;
  --ok: #1e6b30; --ok-bg: #e4f1e2; --warn: #8a4b05; --warn-bg: #fbeed3; --info: #5b3f8c; --info-bg: #ece6f6; --gray-bg: #ece6da;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans);
  background-image: radial-gradient(rgba(27,22,17,.07) 1px, transparent 1px); background-size: 22px 22px; }
a { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
p { margin: 0 0 12px; }
em { font-style: italic; }

/* Header / footer */
.top { max-width: 1120px; width: 100%; margin: 0 auto; padding: 18px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; flex: none; }
.wordmark { font: 500 1.3rem/1 var(--serif); letter-spacing: -.03em; }
.wordmark em, h1 em, h2 em { color: var(--red); font-family: var(--serif); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.nav a:hover { color: var(--ink); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px 16px 40px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

main { flex: 1; max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 16px 48px; }
.view.narrow { max-width: 44rem; margin: 0 auto; }
h1 { margin: 14px 0 14px; font: 500 clamp(2.6rem, 9vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
h1:focus { outline: none; }
.narrow h1, #v-result h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h2 { font: 500 clamp(1.8rem, 5vw, 2.7rem)/1.1 var(--serif); letter-spacing: -.025em; margin: 6px 0 10px; }
h3 { font: 600 1.1rem/1.3 var(--sans); margin: 0 0 6px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.lead strong { color: var(--ink); font-weight: 600; }
.eyebrow, .mono { font: 400 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-block; margin: 0; padding: 5px 12px; border: 1px solid rgba(27,22,17,.15); border-radius: 999px; background: var(--paper); }
.red { color: var(--red); }

/* Buttons and fields */
.pillbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 0; border-radius: 999px; background: var(--ink); color: #f7f2e8;
  font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s; }
.pillbtn:hover { background: var(--red); }
.pillbtn:disabled { opacity: .45; cursor: default; background: var(--ink); }
.pillbtn.wide { display: flex; width: 100%; margin: 16px 0 10px; background: var(--red); }
.pillbtn.wide:hover { background: var(--red-dark); }
.pillbtn.wide:disabled { background: var(--red); }
.link { padding: 0; border: 0; background: none; color: var(--red); font: inherit; text-decoration: underline; cursor: pointer; }
input[type=text], input[type=email] { width: 100%; padding: 12px 14px; font: 16px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line2); border-radius: 10px; }
input::placeholder { color: #a99d89; }
input[type=email]:focus-visible { border-color: var(--red); outline: 2px solid rgba(192,43,10,.2); outline-offset: 0; }
input:disabled { opacity: .6; }
.msg { margin: 8px 0 0; color: var(--red); font-weight: 600; }
.msg:empty { display: none; }
.ts:not(:empty) { margin-top: 10px; min-height: 65px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 48px 0 64px; align-items: center; }
.scanbox { margin-top: 26px; background: var(--card); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 18px 40px -24px rgba(27,22,17,.35); max-width: 34rem; }
.scanbox:focus-within { border-color: var(--red); }
/* Once the captcha (or a message) shows, the pill becomes a rounded card so the widget fits. */
.scanbox:has(.ts:not(:empty)), .scanbox:has(.msg:not(:empty)), .scanbox:has(.soon:not([hidden])) { border-radius: 22px; padding-bottom: 10px; }
.scanrow { display: flex; gap: 8px; align-items: center; }
.scanbox input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 0; font-size: 17px; }
.scanbox input:focus-visible { outline: none; }
.scanbox .ts, .scanbox .soon, .scanbox .msg { padding: 0 12px 6px 0; }
.soon { margin: 8px 0 4px; color: var(--warn); font-size: .95rem; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.ticks li::before { content: "✓ "; color: var(--red); font-weight: 700; }

/* The sample result, styled like LibroDigital's paper sheet */
.paper { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 26px 26px 22px; transform: rotate(-1.5deg);
  box-shadow: 0 30px 60px -25px rgba(27,22,17,.35); max-width: 440px; justify-self: center; width: 100%; }
.paper-domain { font: 500 1.6rem/1.2 var(--serif); letter-spacing: -.02em; margin: 4px 0 18px; padding-bottom: 12px; border-bottom: 1px dashed var(--line2); }
.meter { margin-bottom: 14px; }
.meter-top { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 6px; }
.meter-top b { font: 500 .95rem var(--mono); }
.bar { height: 8px; border-radius: 99px; background: var(--gray-bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--red); transform-origin: left; animation: grow 1.2s ease-out both .3s; }
.bar .w83 { width: 83%; background: var(--ok); } .bar .w44 { width: 44%; }
@keyframes grow { from { transform: scaleX(0); } }
.paper-list { list-style: none; margin: 18px 0 0; padding: 0; font-size: .88rem; }
.paper-list li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.paper-list .pill { min-width: 86px; text-align: center; }
.stamp { position: absolute; right: -14px; bottom: -22px; width: 92px; height: 92px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); transform: rotate(12deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font: .6rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(253,250,243,.85); }
.stamp b { font: 600 1.5rem/1.1 var(--serif); letter-spacing: 0; }

/* Landing blocks */
.block { padding: 56px 0 8px; border-top: 1px solid var(--line); }
.sub { color: var(--muted); margin: 0 0 24px; max-width: 42rem; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; }
.tab span { font: .75rem var(--mono); padding: 1px 8px; border-radius: 99px; background: var(--gray-bg); color: var(--muted); }
.tab[aria-selected=true] { background: var(--ink); color: #f7f2e8; border-color: var(--ink); }
.tab[aria-selected=true] span { background: var(--red); color: #fff; }
.tabpanel .mono { margin-bottom: 14px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; transition: border-color .2s, transform .2s; }
.mini:hover { border-color: var(--red); transform: translateY(-2px); }
.mini b { display: block; font-weight: 600; margin-bottom: 4px; }
.mini span { color: var(--muted); font-size: .88rem; }
.more { margin-top: 14px; }
.more summary, .faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.more summary { color: var(--red); }
.more summary::after { content: " ↓"; }
.more[open] summary::after { content: " ↑"; }
.more ol { columns: 2; column-gap: 32px; margin: 12px 0 0; padding-left: 22px; font-size: .92rem; color: var(--muted); }
.more li { margin: 4px 0; break-inside: avoid; }
.more small { color: var(--red); }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 18px 20px 6px 0; }
.steps b { display: block; font: 400 .8rem var(--mono); color: var(--red); letter-spacing: .1em; margin-bottom: 6px; }
.steps strong { display: block; font: 500 1.35rem/1.2 var(--serif); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .92rem; }
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.prod { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.prod:hover { border-color: var(--ink); box-shadow: 0 18px 40px -26px rgba(27,22,17,.4); }
.prod-text { color: var(--muted); }
.go { color: var(--red); font-weight: 600; margin-top: auto; }
.wm-ld { display: inline-flex; align-items: center; gap: 8px; font: 600 1.35rem/1 var(--serif); letter-spacing: -.02em; }
.wm-ld img { border-radius: 6px; }
.wm-ld em { color: var(--red); font-style: normal; }
.wm-dp { display: inline-flex; align-items: baseline; font: 400 1.5rem/1 var(--serif); letter-spacing: -.03em; }
.wm-dp em { color: var(--crimson); letter-spacing: -.05em; }
.wm-dp i { width: 5px; height: 5px; border-radius: 50%; background: var(--crimson); margin-left: 3px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Pills */
.pill, .pill-band span { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 .74rem/1.4 var(--sans); white-space: nowrap; }
.pill-band { margin: 0 0 4px; min-height: 1.6em; }
.b-completo, .p-visible { background: var(--ok-bg); color: var(--ok); }
.b-parcial, .p-not_visible { background: var(--warn-bg); color: var(--warn); }
.b-bajo { background: #f8dfd7; color: var(--red-dark); }
.p-manual_review { background: var(--info-bg); color: var(--info); }
.p-not_checked, .p-not_applicable, .b-none { background: var(--gray-bg); color: var(--muted); }

/* Scanning view: a paper-style browser with a red scan line */
.scanner { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 16px 0; box-shadow: 0 30px 60px -30px rgba(27,22,17,.35); }
.sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sc-dots i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line2); margin-right: 5px; }
.sc-pct { font: 500 2.4rem/1 var(--serif); color: var(--red); font-variant-numeric: tabular-nums; }
.wire { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--card); }
.wire > * { transition: background-color .4s, border-color .4s, color .4s; }
.wf-bar { display: flex; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.wf-bar i { height: 6px; flex: 1; border-radius: 3px; background: var(--gray-bg); }
.wf-bar i:first-child { flex: 0 0 22%; background: var(--line2); }
.wf-hero { height: 42px; border-radius: 6px; background: var(--gray-bg); margin-bottom: 12px; border: 1px solid transparent; }
.wf-lines { display: grid; gap: 7px; margin-bottom: 12px; }
.wf-lines i { height: 7px; border-radius: 4px; background: var(--gray-bg); transition: background-color .4s; }
.wf-lines i:nth-child(2) { width: 88%; } .wf-lines i:nth-child(3) { width: 94%; } .wf-lines i:nth-child(4) { width: 60%; }
.wf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .78rem/1 var(--sans); padding: 7px 12px; border: 1px dashed var(--line2); border-radius: 999px; color: var(--soft); }
.wire .lit.wf-bar, .wire .lit.wf-hero { border-color: var(--ok); background-color: var(--ok-bg); }
.wire .lit i { background: #9fcf9f; }
.chip.lit { border-style: solid; border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.chip.lit::before { content: "✓ "; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); box-shadow: 0 0 10px 2px rgba(192,43,10,.35); animation: scan 2.6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes scan { from { top: 0; } to { top: calc(100% - 2px); } }
.scanner.done .scanline { display: none; }
.sc-bar { height: 6px; border-radius: 3px; background: var(--gray-bg); margin: 12px 0 8px; overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .5s; }
.sc-path { font: .8rem/1.4 var(--mono); color: var(--muted); margin: 0 0 8px; overflow-wrap: anywhere; }
.sc-log { list-style: none; margin: 0; padding: 10px 0 0; max-height: 13rem; overflow-y: auto; border-top: 1px dashed var(--line2); font: .8rem/1.7 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.sc-log li::before { content: "› "; color: var(--soft); }
.sc-log li.found { color: var(--ok); }
.sc-log li.found::before { content: "✓ "; color: var(--ok); }
.queue { font-weight: 600; color: var(--warn); }
.slow-note { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; background: var(--card); }
.slow-note p { margin: 0 0 8px; }
.slow-note .actions { margin: 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Result */
.split.result { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: start; margin-top: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.score { text-align: center; padding: 20px 14px; }
.score h2 { font: 600 1rem/1.3 var(--sans); margin: 0 0 6px; letter-spacing: 0; }
.ring { --v: 0; --c: var(--red); width: 104px; height: 104px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--gray-bg) 0); }
.ring > span { width: 84px; height: 84px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 500 1.6rem var(--serif); }
.score .ring { --c: var(--red); }
#r-checks h3 { font: 500 1.35rem/1.2 var(--serif); margin: 4px 0 6px; }
#r-checks h3 + .checks { margin-bottom: 20px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.checks li:last-child { border-bottom: 0; }
.checks .info { display: block; font-size: .78rem; color: var(--muted); }
.legend { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.ai-note { padding: 10px 12px; border-radius: 10px; background: var(--info-bg); color: var(--info); font-size: .9rem; }
.platform-note { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--info-bg); color: var(--info); }
.side { position: static; }
.ptitle { font: 500 1.6rem/1.15 var(--serif); letter-spacing: -.02em; margin: 0 0 6px; }
.form label[for] { display: block; font-size: .9rem; font-weight: 600; margin: 14px 0 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-size: .93rem; cursor: pointer; background: var(--paper); }
.check:hover { border-color: var(--line2); }
.check small { display: block; color: var(--muted); font-size: .82rem; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--red); }
.products { display: grid; gap: 12px; margin: 14px 0; }
.product { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.product span { display: block; margin-top: 4px; font-weight: 400; font-size: .88rem; color: var(--red); }
.product.later span { color: var(--warn); }
a.product:hover { border-color: var(--ink); }

/* Plain pages (/privacidad, /confirmar) */
.doc { max-width: 46rem; overflow-wrap: anywhere; }
.doc h2 { font-size: 1.5rem; margin: 28px 0 8px; }
.doc ul { margin: 0 0 12px; padding-left: 1.2rem; }
.doc li { margin-bottom: 8px; }
.status-line { font-weight: 600; }
.status-line:empty { display: none; }

.landing { overflow-x: clip; }
@media (max-width: 900px) {
  .hero, .prods { grid-template-columns: 1fr; }
  /* Phones: score first, then the email form, then the full list of checks. */
  .split.result { display: flex; flex-direction: column; gap: 14px; }
  .split.result > div:first-child { display: contents; }
  .split.result .scores { order: 1; margin: 0; }
  .split.result #r-prio { order: 2; margin: 0; }
  .split.result .side { order: 3; }
  .split.result #r-ai { order: 4; margin: 0; }
  .split.result .checks-panel { order: 5; }
  .split.result .legend { order: 6; margin: 0; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero { gap: 44px; padding-top: 28px; }
  .side { position: static; }
}
@media (max-width: 560px) {
  .scanbox { border-radius: 16px; padding: 8px; }
  .scanrow { flex-direction: column; align-items: stretch; }
  .scanbox input { padding: 10px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-bottom: 1px solid var(--line); padding-right: 0; }
  .more ol { columns: 1; }
  .paper { padding: 20px 18px; }
  .stamp { right: -6px; width: 80px; height: 80px; }
  .scores { gap: 10px; }
}
@media (max-width: 400px) {
  .cards4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scanline { animation: none; display: none; }
  .bar i { animation: none; }
  .wire > *, .wf-lines i, .sc-bar i, .mini { transition: none; }
}

/* ---- Landing v3: restored content, interactive ---- */
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; }

/* Live scanner demo (hero) */
.viz { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 30px 60px -25px rgba(27,22,17,.35); }
.viz-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.viz-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); flex: none; }
.viz-url { flex: 1; min-width: 0; margin-left: 6px; font: .74rem var(--mono); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-pct { font: 500 1.6rem/1 var(--serif); color: var(--red); min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.viz-page { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--card); }
.viz-page > * { transition: background-color .35s, border-color .35s, color .35s; }
.vp-nav { display: flex; gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.vp-nav i { height: 6px; flex: 1; border-radius: 3px; background: var(--gray-bg); }
.vp-nav i:first-child { flex: 0 0 22%; background: var(--line2); }
.vp-hero { height: 54px; border-radius: 6px; background: var(--gray-bg); margin-bottom: 12px; border: 1px solid transparent; }
.vp-lines { display: grid; gap: 7px; margin-bottom: 12px; padding: 4px; border-radius: 6px; border: 1px solid transparent; }
.vp-lines i { height: 7px; border-radius: 4px; background: var(--gray-bg); }
.vp-lines i:nth-child(2) { width: 88%; } .vp-lines i:nth-child(3) { width: 94%; } .vp-lines i:nth-child(4) { width: 60%; }
.vp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-row span { font: 600 .74rem/1 var(--sans); padding: 7px 10px; border: 1px dashed var(--line2); border-radius: 999px; color: var(--soft); transition: all .35s; }
.viz .on.vp-nav, .viz .on.vp-hero, .viz .on.vp-lines { border-color: var(--ok); background-color: var(--ok-bg); }
.viz .on.vp-row, .viz .vp-row .on { border-style: solid; border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.viz .vp-row .on::before { content: "✓ "; }
.viz .vp-row .miss { border-style: solid; border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.viz .vp-row .miss::before { content: "! "; }
.viz-progress { height: 5px; border-radius: 3px; background: var(--gray-bg); margin: 12px 0 8px; overflow: hidden; }
.viz-progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .6s ease; }
.viz-log { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px dashed var(--line2); font: .76rem/1.7 var(--mono); color: var(--muted); min-height: 8.6em; }
.viz-log li { animation: logIn .35s ease-out both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-log li::before { content: "› "; color: var(--soft); }
.viz-log li.ok { color: var(--ok); } .viz-log li.ok::before { content: "✓ "; color: var(--ok); }
.viz-log li.warn { color: var(--warn); } .viz-log li.warn::before { content: "! "; color: var(--warn); }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } }

/* Stats */
.stats { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stats strong { display: block; font: 500 2.4rem/1.1 var(--serif); color: var(--red); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .88rem; }

/* Area tabs as big cards */
.areatabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.areatab { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 14px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.areatab:hover { border-color: var(--ink); }
.at-num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--gray-bg); font: 500 1.6rem/1 var(--serif); color: var(--ink); transition: all .2s; }
.at-text b { display: block; font-weight: 600; font-size: 1.02rem; }
.at-text small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.areatab[aria-selected=true] { border-color: var(--ink); background: var(--paper); box-shadow: 0 18px 40px -26px rgba(27,22,17,.45); }
.areatab[aria-selected=true] .at-num { background: var(--red); color: #fff; }
.checklist { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checklist li { counter-increment: c; display: flex; gap: 12px; align-items: baseline; padding: 11px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; animation: logIn .3s ease-out both; }
.checklist li::before { content: counter(c, decimal-leading-zero); font: .75rem var(--mono); color: var(--red); flex: none; }
.checklist small { margin-left: auto; padding-left: 8px; font: .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--soft); white-space: nowrap; }

/* 4 steps with a connecting line */
.steps { grid-template-columns: repeat(4, 1fr) !important; }

/* Sample result */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.gauges { display: flex; gap: 14px; margin-bottom: 8px; }
.gauge { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--paper); }
.gauge strong { font-size: .95rem; }
.ring.r83 { --v: 83; --c: var(--ok); } .ring.r44 { --v: 44; }
.samples details { border-bottom: 1px solid var(--line); }
.samples summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; font-size: .93rem; }
.samples summary::-webkit-details-marker { display: none; }
.samples summary > span:first-child::before { content: "+ "; color: var(--red); font-weight: 700; }
.samples details[open] summary > span:first-child::before { content: "− "; }
.samples details p { margin: 0 0 8px; padding: 0 0 0 16px; font-size: .88rem; color: var(--muted); }
.samples details[open] { background: linear-gradient(var(--paper), var(--paper)); }
.fake-input { padding: 12px 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: #a99d89; margin: 12px 0 2px; }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .areatabs, .checklist { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr !important; }
  .gauges { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .viz-log li, .checklist li { animation: none; }
  .viz-progress i { transition: none; }
}
/* Grid children must be able to shrink below their content width (long URL in the demo, long words). */
.hero > *, .split > *, .areatabs > *, .stats > *, .prods > * { min-width: 0; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hero h1 { font-size: 2.1rem; } .viz-pct { font-size: 1.3rem; } }
/* Address field: a clear, labelled input (Jan: "I almost did not find it"). */
.scanbox { border: 2px solid var(--ink) !important; border-radius: 18px !important; padding: 14px 14px 14px 16px !important; background: #fff; box-shadow: 0 0 0 5px rgba(192,43,10,.08), 0 18px 40px -24px rgba(27,22,17,.35); }
.scanbox:focus-within { border-color: var(--red) !important; box-shadow: 0 0 0 5px rgba(192,43,10,.18), 0 18px 40px -24px rgba(27,22,17,.35); }
.scanlabel { display: block; font: 600 .95rem/1.3 var(--sans); color: var(--ink); margin: 0 0 8px 2px; }
.scanrow { background: var(--bg); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 5px 5px 14px; }
.globe { display: inline-flex; color: var(--red); flex: none; }
.scanbox input { font-size: 18px !important; color: var(--ink); }
.scanbox input::placeholder { color: #8a7d6b; }
.scanbox .ts, .scanbox .soon, .scanbox .msg { padding: 6px 0 0 !important; }
.cached-note { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--warn); background: var(--warn-bg); color: var(--warn); font-size: .92rem; border-radius: 0 8px 8px 0; }
@media (max-width: 560px) {
  .scanrow { border-radius: 14px; padding: 8px; flex-direction: row !important; flex-wrap: wrap; }
  .scanrow { align-items: center !important; column-gap: 8px; }
  .scanrow input { flex: 1 1 calc(100% - 40px); min-width: 0; padding: 8px 0 !important; }
  .scanrow .pillbtn { flex: 1 1 100%; }
}

/* ---- Result view v2: priorities, area tabs, filters, expandable rows ---- */
#v-result .score[data-band=completo] .ring { --c: #2f8a45; }
#v-result .score[data-band=parcial] .ring { --c: #d98a14; }
#v-result .score[data-band=bajo] .ring { --c: var(--red); }
.prio { background: #fdf1ec; border: 1px solid #f3d3c6; border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.prio-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.prio-n { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; font: 500 1.6rem/1 var(--serif); }
.prio-txt strong { display: block; font: 500 1.35rem/1.2 var(--serif); }
.prio-txt span { color: var(--muted); font-size: .9rem; }
.prio-list { margin: 0 0 14px; padding-left: 22px; font-size: .93rem; }
.prio-list li { margin: 4px 0; }
.prio-list li::marker { color: var(--red); font-weight: 700; }
.checks-panel { padding: 16px; }
.rtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.rtab { text-align: left; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; transition: all .2s; }
.rtab b { display: block; font: 500 1.15rem/1.2 var(--serif); }
.rtab small { color: var(--muted); font-size: .82rem; }
.rtab:hover { border-color: var(--ink); }
.rtab[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #f7f2e8; }
.rtab[aria-selected=true] small { color: #d8cfbf; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 .82rem var(--sans); cursor: pointer; }
.fchip b { font: .72rem var(--mono); padding: 1px 7px; border-radius: 99px; background: var(--gray-bg); }
.fchip[aria-pressed=true] { border-color: var(--red); color: var(--red); background: #fdf1ec; }
.fchip[aria-pressed=true] b { background: var(--red); color: #fff; }
.crows { display: grid; gap: 8px; }
.crow { border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; background: #fff; transition: box-shadow .2s; animation: logIn .25s ease-out both; }
.crow:hover { box-shadow: 0 10px 24px -18px rgba(27,22,17,.5); }
.crow.s-visible { border-left-color: #2f8a45; } .crow.s-not_visible { border-left-color: #d98a14; }
.crow.s-manual_review { border-left-color: #7b5cb8; } .crow.s-not_checked, .crow.s-not_applicable { border-left-color: var(--line2); }
.crow summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: .94rem; }
.libro-rec { border: 1px dashed var(--line2); border-radius: 12px; background: var(--paper); margin-top: 6px; }
.libro-rec > summary { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; cursor: pointer; }
.libro-rec > summary b { font: 500 1.05rem/1.2 var(--serif); }
.libro-rec > summary small { color: var(--muted); font-size: .82rem; }
.libro-rec[open] { padding-bottom: 8px; }
.libro-rec > .crow { margin: 8px 10px 0; }
.crow summary::-webkit-details-marker { display: none; }
.crow summary::after { content: "+"; color: var(--red); font-weight: 700; margin-left: 2px; }
.crow[open] summary::after { content: "−"; }
.ctitle { flex: 1; min-width: 0; }
.ctitle small { display: block; font-size: .76rem; color: var(--muted); }
.sicon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 .85rem/1 var(--sans); }
.i-visible { background: var(--ok-bg); color: var(--ok); } .i-not_visible { background: var(--warn-bg); color: var(--warn); }
.i-manual_review { background: var(--info-bg); color: var(--info); } .i-not_checked, .i-not_applicable { background: var(--gray-bg); color: var(--muted); }
.cbody { padding: 0 14px 14px 52px; font-size: .9rem; color: var(--muted); }
.cbody p { margin: 0 0 6px; }
.cbody .link { font-size: .88rem; }
@media (max-width: 560px) {
  .crow summary { flex-wrap: wrap; gap: 6px 10px; position: relative; padding-right: 30px; }
  .crow summary .ctitle { flex: 1 1 calc(100% - 40px); }
  .crow summary .pill { margin-left: 36px; }
  .crow summary::after { position: absolute; right: 14px; top: 14px; }
  .cbody { padding-left: 14px; }
  .rtabs { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .crow { animation: none; } }

/* Site footer with all legal links (all pages). */
.sitefoot { margin-top: 32px; border-top: 1px solid var(--line); background: var(--paper); }
.sf-grid { max-width: 1120px; margin: 0 auto; padding: 36px 16px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.sf-brand p { color: var(--muted); font-size: .88rem; margin: 10px 0 0; max-width: 22rem; }
.sf-brand a:not(.brand) { color: var(--ink); }
.sf-col { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.sf-col b { font: 400 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.sf-col a { color: var(--ink); text-decoration: none; }
.sf-col a:hover { color: var(--red); text-decoration: underline; }
.sf-libro { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--red); border-radius: 12px; color: var(--red) !important; font-weight: 600; background: #fff; width: fit-content; }
.sf-libro:hover { background: #fdf1ec; text-decoration: none !important; }
.sf-legal { max-width: 1120px; margin: 0 auto; padding: 14px 16px 28px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .sf-grid { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }

/* WhatsApp click-to-chat under the report form: the visitor starts the conversation */
.wabtn { display: block; margin: 12px 0 0; padding: 13px 18px; border: 1.5px solid #1f8f4e; border-radius: 14px; background: #f1faf4; color: #14633a; font-weight: 600; text-align: center; text-decoration: none; }
.wabtn:hover, .wabtn:focus-visible { background: #e2f4e9; }
.wabtn small { display: block; margin-top: 3px; font-weight: 400; font-size: .82rem; color: #3d5a48; }
.wabtn[hidden] { display: none; }

/* Applicability card (APPLICABILITY_PUBLIC). */
.appl { margin-bottom: 14px; border-left: 4px solid var(--line2); }
.appl[data-verdict=obligatorio] { border-left-color: var(--red); }
.appl[data-verdict=zona_gris] { border-left-color: #d98a14; }
.appl[data-verdict=no_obligatorio_web] { border-left-color: #2f8a45; }
.appl-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.eyebrow-sm { font: 400 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.appl-verdict { font: 500 1.35rem/1.2 var(--serif); }
.appl-conf { font-size: .8rem; color: var(--muted); }
.appl-reasons { margin: 4px 0 10px; padding-left: 20px; font-size: .9rem; color: var(--muted); }
.appl-rec { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.appl-extra { font-size: .9rem; margin-bottom: 8px; }
.appl-foot { font-size: .78rem; color: var(--soft); margin: 0; }

/* "¿Esta web es tuya?" and the owner's rescan */
.owner { margin: 0 0 14px; padding: 16px 18px; }
.owner-q { margin: 0 0 10px; font-weight: 600; }
.owner-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pillbtn.ghost { padding: 9px 18px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.pillbtn.ghost:hover, .pillbtn.ghost[aria-pressed="true"] { background: var(--ink); color: #f7f2e8; }
.owner #rescan-btn { margin-top: 8px; }
.owner .ts { margin-top: 8px; }

/* Cookie notice (analytics consent). Same choice as librodigital.pe. */
.ck-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 20px;padding:14px 18px;background:var(--ink);color:#fff;font:14px/1.45 var(--sans)}
.ck-bar p{margin:0;max-width:62ch}
.ck-bar a{color:#fff;text-decoration:underline}
.ck-actions{display:flex;gap:8px}
.ck-btn{min-width:96px;padding:9px 16px;border-radius:8px;border:1px solid #fff;font:600 14px var(--sans);cursor:pointer}
.ck-reject{background:transparent;color:#fff}
.ck-accept{background:#fff;color:var(--ink)}
.ck-btn:focus-visible{outline:3px solid var(--warn-bg);outline-offset:2px}

/* "¿Cómo funciona?" link + video dialog */
.howto { margin: 14px 0 0; font-size: 15px; }
.howto .link { color: var(--red); font-weight: 600; text-decoration: none; }
.howto .link:hover, .howto .link:focus-visible { text-decoration: underline; }
.videodlg { padding: 0; border: 0; border-radius: 16px; background: #000; width: min(960px, 94vw); max-width: 94vw; overflow: visible; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.videodlg::backdrop { background: rgba(27,22,17,.72); }
.videodlg video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
.dlgclose { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.dlgclose:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (max-width: 640px) { .dlgclose { top: 6px; right: 6px; } }
