/* Informe público del motor de diagnóstico: base común (layouts/public) + informe (public/resultado y sus parciales).
   Se sirve versionado con ?v=filemtime desde layouts/public.blade.php. Los estilos propios de cada pantalla pequeña
   (acceso, verificar, inicio…) siguen en su @section('styles'). */

@font-face { font-family: InterTight; src: url('../brand/inter-tight.woff2') format('woff2'); font-display: swap; font-weight: 400 800; }
:root {
    --orange: #f8931f; --orange-light: #ffb65c; --orange-pale: #ffe0b8; --orange-ink: #9e5a08;
    --ink: #1a1a1a; --ink-2: #3b3a37; --muted: #615c58; --paper: #faf8f4; --sand: #f0ebe3; --card: #fff; --line: #e2ddd4; --soft: #f2eee8;
    --field: #8f887d;
    --accent: var(--orange); --accent-ink: var(--orange-ink);
    --p-ink: #a4161a; --p-bg: #fdeceb; --r-ink: #7a4b00; --r-bg: #fff3d6; --o-ink: #17613a; --o-bg: #e6f3eb; --m-ink: #5f5b54; --m-bg: #efece6;
    --good: #1f8a4c; --fair: #b7791f; --poor: #d9480f; --bad: #c92a2a; --none: #8f887d;
    --radius: 10px; --shadow: 0 1px 2px rgba(26,26,26,.03), 0 10px 28px -20px rgba(26,26,26,.2);
    --max: 1180px; --pad: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media screen and (max-width: 1079.98px) { html:has(> body.is-app) { scroll-padding-top: 140px; } }
body { margin: 0; font: 16px/1.55 InterTight, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 3px; border-radius: 4px; }
.closing a:focus-visible, .closing button:focus-visible { outline-color: var(--ink); }
/* Encabezados que reciben el foco al cambiar de sección: no son controles, no llevan recuadro. */
[tabindex="-1"]:focus { outline: none; }
img { max-width: 100%; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 5px; background: var(--ink); color: var(--paper); font-weight: 650; font-size: 14px; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--max); padding-inline: var(--pad); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,248,244,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; line-height: 0; }
.brand img { width: 176px; height: 28px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-note { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.ghost { appearance: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 5px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.ghost:hover { border-color: var(--ink-2); }
@media (max-width: 860px) { .nav-note { display: none; } }
@media (max-width: 600px) { .hide-sm { display: none; } .brand img { width: 140px; height: 22px; } }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 650; color: #52320d; margin: 0 0 12px; overflow-wrap: anywhere; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
h1, h2, h3, h4 { letter-spacing: -.045em; line-height: 1.06; margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3, h4 { font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.2; }
.muted { color: var(--muted); }
.section { padding: 64px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }
.grid { display: grid; gap: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 650; background: var(--m-bg); color: var(--m-ink); white-space: nowrap; }
.chip.priority, .chip.critical, .chip.high { background: var(--p-bg); color: var(--p-ink); }
.chip.review, .chip.medium { background: var(--r-bg); color: var(--r-ink); }
.chip.ok, .chip.none { background: var(--o-bg); color: var(--o-ink); }
.chip.low, .chip.unknown { background: var(--m-bg); color: var(--m-ink); }
.chip.outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fcfbf8; white-space: nowrap; }
/* Primera columna como encabezado de fila: se ve como una celda normal. */
tbody th[scope="row"] { text-transform: none; letter-spacing: normal; font-size: inherit; font-weight: 400; color: inherit; background: none; white-space: normal; vertical-align: top; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td, tr:last-child th[scope="row"] { border-bottom: 0; }
td strong, th[scope="row"] strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid transparent; border-radius: 5px; padding: 14px 20px; min-height: 50px; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.3; cursor: pointer; text-decoration: none; background: var(--orange); color: var(--ink); transition: background .2s, transform .2s; }
.button:hover { background: #ffaa42; transform: translateY(-1px); }
.button[disabled], .button[aria-busy="true"] { cursor: progress; opacity: .75; transform: none; }
.button-ink { background: var(--ink); color: var(--paper); }
.button-ink:hover { background: #000; }
.button.light { background: var(--card); color: var(--ink); border-color: var(--line); }
.button.light:hover { border-color: var(--ink-2); background: var(--card); }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.closing { background: var(--orange); padding: 64px 0; margin-top: 72px; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.closing .eyebrow { color: var(--ink); }
.closing .eyebrow::before { background: var(--ink); }
.closing h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 16ch; }
.closing p { margin: 14px 0 0; color: #3a2a12; max-width: 46ch; }
.closing-actions { display: grid; gap: 10px; min-width: min(320px, 100%); }
.closing-actions .button { background: var(--ink); color: var(--paper); }
.closing-actions .button:hover { background: #000; }
.closing-actions a.plain { font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; color: var(--muted); font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; }
.footer-top p { margin: 0; color: var(--ink-2); font-size: 14px; }
.footer-contact { display: flex; gap: 40px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); }
.footer-contact h2 { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; font-weight: 650; }
.footer-contact a { display: block; text-decoration: none; color: var(--ink-2); padding: 2px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; letter-spacing: .06em; }
.footer-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--orange-ink); text-decoration: underline; }

/* Casillas de consentimiento sobre fondo claro (verificar, ampliar). */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); font-weight: 400; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--orange-ink); }
.consent a { color: inherit; }
.consent .req { color: var(--p-ink); font-weight: 650; }
.consents { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.consents legend { padding: 0; margin-bottom: 2px; font-size: .82rem; font-weight: 650; }

/* ---------- Informe ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 56px 0 24px; }
.hero h1 { overflow-wrap: anywhere; }
.hero-meta { color: var(--muted); margin: 14px 0 0; font-size: 1.02rem; }
.verdict { display: flex; gap: 24px; align-items: center; margin-top: 30px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--soft); }
.ring .value { stroke-linecap: round; }
.ring .label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring strong { font-size: 2.4rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.ring small { color: var(--muted); font-size: .78rem; }
.tone-good .value { stroke: var(--good); } .tone-fair .value { stroke: var(--fair); } .tone-poor .value { stroke: var(--poor); } .tone-bad .value { stroke: var(--bad); } .tone-muted .value { stroke: var(--none); }
.verdict h2 { font-size: 1.6rem; }
.verdict p { margin: 8px 0 12px; color: var(--muted); max-width: 46ch; }
.tally { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.phone { margin: 0; width: 236px; padding: 10px; border-radius: 38px; background: #1a1a1a; box-shadow: 0 30px 60px -30px rgba(26,26,26,.55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone img { display: block; width: 100%; height: auto; border-radius: 29px; background: #fff; }
.phone figcaption { color: #cfcac1; font-size: .75rem; text-align: center; padding: 8px 0 2px; }
.coverage { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 20px; margin-top: 8px; font-size: .88rem; color: var(--ink-2); }
.coverage span { display: inline-flex; align-items: center; gap: 8px; }
.coverage svg { color: var(--orange-ink); }
.prio { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.prio-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.prio-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--orange); }
.prio-num { font-size: .78rem; font-weight: 750; color: var(--orange-ink); letter-spacing: .1em; }
.prio-card p { margin: 0; color: var(--ink-2); }
.prio-card .evidence { font-size: .86rem; color: var(--muted); }
.how { margin: 0; padding: 14px 16px 14px 34px; background: var(--soft); border-radius: 8px; font-size: .9rem; display: grid; gap: 6px; }
.how-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 4px 0 -4px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.areas { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.area { padding: 20px; display: grid; gap: 10px; text-decoration: none; transition: border-color .2s; }
.area:hover { border-color: var(--ink-2); }
.area-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.area-score { font-size: 2rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bg-good { background: var(--good); } .bg-fair { background: var(--fair); } .bg-poor { background: var(--poor); } .bg-bad { background: var(--bad); } .bg-muted { background: var(--none); }
.area small { color: var(--muted); font-size: .84rem; }
.film { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; padding: 20px; }
.film figure { margin: 0; text-align: center; }
.film img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); background: #fff; display: block; }
.film figcaption { font-size: .75rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.scores { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini { padding: 18px; display: flex; align-items: center; gap: 14px; }
.mini .ring { width: 64px; height: 64px; }
.mini .ring strong { font-size: 1.2rem; }
.metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { padding: 18px; }
.metric b { display: block; font-size: 1.5rem; letter-spacing: -.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.metric small { color: var(--muted); font-size: .78rem; display: block; }
.metric .chip { margin-top: 8px; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--soft); margin: 14px 0 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; list-style: none; padding: 0; margin: 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.opps { list-style: none; margin: 0; padding: 0; }
.opps li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.opps li:last-child { border-bottom: 0; }
.two { grid-template-columns: 1.1fr .9fr; }
.crops { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.crop-card { overflow: hidden; }
.crop { position: relative; overflow: hidden; background: #f1efe9; border-bottom: 1px solid var(--line); }
.crop img { position: absolute; max-width: none; height: auto; display: block; }
.crop .mark { position: absolute; border: 2px solid var(--bad); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(26,26,26,.16); }
.crop-card .body { display: block; padding: 14px 16px 16px; }
.crop-card p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.ver { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
.kind { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; display: block; }
tr.has-vulns td, tr.has-vulns th { border-bottom: 0; }
.vulns-row td { padding: 0 16px 18px; }
.vulns-row td > div { border: 1px solid var(--line); border-radius: 8px; background: #fcfbf8; overflow: hidden; }
.vulns-head { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.vulns { list-style: none; margin: 0; padding: 0; }
.vulns li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px 170px; gap: 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .88rem; }
.vulns li:first-child { border-top: 0; }
.vulns .vuln-sev { justify-self: start; }
.vulns .vuln-type .chip { margin-left: 6px; }
.vulns .vuln-risk { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
.vulns .vuln-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.vulns .vuln-id .muted { font-family: InterTight, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.vulns-row .pv-unfold { border-radius: 0; }
.vuln-summary { margin-top: 16px; display: grid; gap: 12px; border-color: var(--p-bg); }
.vuln-summary p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.vuln-summary .button { justify-self: start; }
.flash { padding: 12px 16px; border-radius: 6px; margin: 18px 0 0; }
.flash.ok { background: var(--o-bg); color: var(--o-ink); }
.flash.bad { background: var(--p-bg); color: var(--p-ink); }
.pv-notice { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; margin-top: 32px; padding: 28px 32px; border-radius: var(--radius); border: 1px solid var(--orange-pale); background: linear-gradient(135deg, #fff 0%, #fff4e4 100%); box-shadow: var(--shadow); }
.pv-notice + .pv-view > .section:first-child, .pv-notice + .pv-view > header:first-child, .pv-main > .flash + .pv-view > header:first-child { padding-top: 24px; }
.pv-notice-copy { flex: 1 1 420px; min-width: 0; }
.pv-notice-copy p { overflow-wrap: anywhere; }
.pv-notice h2, .pv-notice-title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.045em; line-height: 1.06; font-weight: 650; color: var(--ink); }
.pv-notice-copy > p:last-child { margin: 10px 0 0; color: var(--ink-2); max-width: 62ch; }
.pv-notice.is-done { border-color: #bfe0cb; background: linear-gradient(135deg, #fff 0%, #e9f6ee 100%); }
.pv-notice.is-failed { border-color: #f3c4c4; background: linear-gradient(135deg, #fff 0%, #fdeceb 100%); }
.pv-notice-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--o-ink); color: #fff; flex: none; }
.pv-meter { flex: 1 1 300px; max-width: 420px; display: grid; gap: 10px; }
.pv-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.pv-meter-top b { font-size: 1.6rem; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-meter-bar { height: 10px; border-radius: 99px; background: rgba(26,26,26,.08); overflow: hidden; }
.pv-meter-bar i { position: relative; display: block; height: 100%; border-radius: 99px; background: var(--orange); transition: width .8s ease; overflow: hidden; }
.pv-meter-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: pv-sweep 1.8s ease-in-out infinite; }
.is-complete .pv-meter-bar i { background: var(--good); }
.is-complete .pv-meter-bar i::after { display: none; }
@keyframes pv-sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .pv-meter-bar i { transition: none; } .pv-meter-bar i::after { display: none; } }
.pv-meter .button { justify-self: start; }
.pv-meter .button[hidden] { display: none; }
.pv-main > .flash { margin-top: 24px; }
.pv-lock { position: relative; width: 100%; appearance: none; border: 0; background: none; font: inherit; font-size: .93rem; text-align: left; cursor: pointer; color: var(--muted); }
.pv-lock.pv-sub { font-size: .88rem; }
.pv-lock svg { flex: none; color: var(--orange-ink); }
.pv-lock:hover { color: var(--ink); }
.pv-lock.is-wait { cursor: default; }
.pv-lock small { flex: none; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-ink); }
.pv-side-cta > .button { justify-content: center; }
.pv-side-bar { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.pv-side-bar i { display: block; height: 100%; border-radius: 99px; background: var(--orange); transition: width .8s ease; }
/* Ventana de pago. Escritorio: dos paneles a la altura de la pantalla (qué incluye | pago), cada uno con su
   desplazamiento vertical. Por debajo de 900 px: página completa con un solo desplazamiento vertical. Nunca horizontal. */
.paywall { --paywall-gap: 48px; width: min(1040px, calc(100vw - var(--paywall-gap))); max-width: none; height: auto; max-height: calc(100dvh - var(--paywall-gap)); margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(23, 21, 18, .32); overflow: hidden; overscroll-behavior: contain; }
.paywall::backdrop { background: rgba(23, 21, 18, .56); }
.paywall:not([open]) { display: none; }
body:has(.paywall[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .paywall[open] { animation: paywall-in .18s ease-out; }
    @keyframes paywall-in { from { opacity: 0; transform: translateY(8px); } }
}
.paywall-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; max-height: inherit; min-width: 0; }
.paywall-info, .paywall-buy { min-width: 0; max-height: calc(100dvh - var(--paywall-gap)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.paywall-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.paywall-close:hover { background: rgba(255, 255, 255, .24); }
.paywall-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.paywall-head { padding: 36px 36px 26px; background: linear-gradient(135deg, #fff 0%, #fff4e4 100%); border-bottom: 1px solid var(--line); }
.paywall-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); overflow-wrap: anywhere; }
.paywall-head p { overflow-wrap: anywhere; }
.paywall-head > p:last-child { margin: 12px 0 0; color: var(--ink-2); max-width: 58ch; }
.paywall-gains { padding: 26px 36px 34px; }
.paywall-gains-title { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.paywall-gains .gains { margin: 0; font-size: .93rem; }
.paywall-gains .gains li { overflow-wrap: anywhere; }
.paywall-buy { display: grid; align-content: start; gap: 14px; padding: 64px 28px 28px; background: var(--ink); color: #d9d4ca; }
.paywall-buy .price strong { color: #fff; }
.paywall-buy .price span, .paywall-buy .fine { color: #c9c3b8; }
.paywall-buy form { display: grid; gap: 12px; }
.paywall-buy label, .paywall-buy legend { font-size: .82rem; font-weight: 650; color: #fff; }
.paywall-buy .opt { font-weight: 400; color: #c9c3b8; }
.paywall-buy input[type=text], .paywall-buy input[type=email], .paywall-buy input[type=tel] { width: 100%; padding: 11px 13px; border-radius: 5px; border: 1px solid var(--field); background: #262522; color: #fff; font: inherit; margin-top: 4px; }
.paywall-buy input[aria-invalid="true"] { border-color: #ff8a8a; }
/* Fondo oscuro: el foco va en naranja claro (contraste 8:1), no en el naranja oscuro del resto. */
.paywall-buy input:focus-visible, .paywall-buy button:focus-visible, .paywall-buy a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.paywall-buy .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; font-weight: 400; color: #d9d4ca; }
.paywall-buy .consent input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--orange); }
.paywall-buy .consent a { color: #ffb65c; }
.paywall-buy .consent .req { color: #ffb3b3; }
.paywall-buy .hp, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.paywall-buy .button { width: 100%; }
.paywall-buy .flash { margin: 0; }
.paywall-buy .flash.bad { background: #5c1d1d; color: #ffe3e3; }
/* Verificación de Cloudflare Turnstile: se reserva el alto del widget (65 px) para que el botón no salte al pintarse.
   panel.js lo pinta a todo el ancho si caben 300 px y en formato compacto si no: nunca desborda. */
.captcha { min-height: 65px; max-width: 100%; min-width: 0; overflow: hidden; }
.captcha.is-compact { min-height: 140px; }
.captcha[aria-invalid="true"] { outline: 2px solid var(--p-ink); outline-offset: 4px; border-radius: 6px; }
.captcha-note { margin: 0; font-size: .84rem; color: var(--muted); }
.paywall-buy .captcha[aria-invalid="true"] { outline-color: #ff8a8a; }
.paywall-buy .captcha-note { color: #c9c3b8; }
/* Móvil y tableta: página completa. Un solo desplazamiento (el de la ventana) y el cierre siempre a la vista. */
@media (max-width: 899.98px) {
    .paywall { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; overflow-x: hidden; overflow-y: auto; }
    .paywall-layout { display: block; max-height: none; }
    .paywall-info, .paywall-buy { max-height: none; overflow: visible; }
    .paywall-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; background: var(--card); color: var(--ink); box-shadow: 0 2px 10px rgba(23, 21, 18, .18); }
    .paywall-close:hover { background: var(--soft); }
    .paywall-close:focus-visible { outline-color: var(--orange-ink); }
    .paywall-head { padding: 28px 20px 22px; padding-right: 64px; }
    .paywall-gains { padding: 22px 20px 26px; }
    .paywall-buy { padding: 26px 20px max(32px, env(safe-area-inset-bottom)); }
}
@media (max-width: 680px) {
    .pv-notice { padding: 22px; margin-top: 20px; }
}
.gains { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: .95rem; }
.gains li { display: flex; gap: 10px; align-items: flex-start; }
.gains li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan-group + .plan-group { margin-top: 26px; }
.plan-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.task { border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task summary { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; }
.task .box { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 5px; margin-top: 2px; }
.task .t { font-weight: 620; }
.task .sub, .site-issues .sub { color: var(--muted); font-size: .84rem; display: block; margin-top: 2px; font-weight: 400; }
.task .how { margin: 0 20px 18px 56px; }
.checks details { border-bottom: 1px solid var(--line); }
.checks details:last-child { border-bottom: 0; }
.checks summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.checks summary .summary-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.2; font-weight: 650; }
.check { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-top: 1px dashed var(--line); font-size: .92rem; }
.check p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.check .check-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.check-links a, .prio-link { color: var(--ink); font-size: .86rem; font-weight: 620; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.check-links a:hover, .prio-link:hover { color: var(--orange-ink); }
.prio-link { align-self: flex-start; margin-top: auto; padding-top: 4px; }
.meta-row + .prio-link { margin-top: 0; }
.strengths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.strengths li { padding: 16px 18px; display: flex; gap: 10px; }
.strengths svg { flex: none; color: var(--o-ink); margin-top: 3px; }
.site-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 18px; display: grid; gap: 4px; }
.stat small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; }
.stat b { font-size: 2rem; letter-spacing: -.05em; line-height: 1.1; font-weight: 700; }
.stat span { color: var(--muted); font-size: .84rem; }
.stat.is-bad b { color: var(--bad); }
.site-issues details { border-bottom: 1px solid var(--line); }
.site-issues details:last-child { border-bottom: 0; }
.site-issues summary { display: grid; grid-template-columns: 64px minmax(0, 1fr) 16px; gap: 14px; align-items: center; padding: 16px 20px; }
.site-issues summary .chip { justify-content: center; }
.site-issues .t { font-weight: 620; }
.site-issues .chev { color: var(--muted); transition: transform .2s; }
.site-issues details[open] .chev { transform: rotate(180deg); }
.issue-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; padding: 0 20px 22px 98px; }
.issue-body p { margin: 0 0 12px; color: var(--ink-2); font-size: .93rem; }
.samples { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: start; }
.samples table { font-size: .86rem; }
.samples td, .samples th { padding: 9px 12px; }
.samples td strong { overflow-wrap: anywhere; }
.samples .more { margin: 0; padding: 10px 12px; font-size: .84rem; border-top: 1px solid var(--line); background: #fcfbf8; }
.upsell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; padding: 40px; align-items: center; background: linear-gradient(135deg, #fff 0%, #fff4e4 100%); border-color: var(--orange-pale); }
.upsell h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.upsell .lede { color: var(--ink-2); margin: 14px 0 0; max-width: 56ch; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.price-card form { display: grid; gap: 12px; }
.price-card .button { width: 100%; }
.price-card .consent { font-size: .8rem; }
.price { margin: 0; display: grid; gap: 2px; }
.price strong { font-size: clamp(2.6rem, 5vw, 3.4rem); letter-spacing: -.05em; line-height: 1; font-weight: 700; }
.price span { color: var(--muted); font-size: .86rem; }
.code-ready { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em !important; font-size: 2.2rem !important; }
.fine { margin: 0; color: var(--muted); font-size: .82rem; }
.stat .vis-star { font-size: 1.2rem; color: var(--orange-ink); margin-left: 4px; letter-spacing: 0; }
.vis-sub { margin: 30px 0 14px; }
.vis-path { overflow-wrap: anywhere; font-size: .88rem; }
.vis-meta { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: 2px; overflow-wrap: anywhere; }
.vis-right { text-align: right; flex: none; }
.vis-you td, .vis-you th { background: #fcfbf8; }
.vis-place .vis-name { margin: 10px 0 4px; }
.vis-facts { list-style: none; margin: 8px 0 0; padding: 0; }
.vis-facts li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.vis-facts li:last-child { border-bottom: 0; }
.vis-facts li > span:first-child { color: var(--muted); }
.vis-quotes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.vis-pair { display: flex; gap: 6px; flex: none; align-items: flex-start; }
.vis-ask { list-style: none; margin: 0; padding: 0; }
.vis-ask li { padding: 16px 24px; border-top: 1px solid var(--line); }
.vis-ask p { margin: 0; }
.vis-ask .vis-q { font-weight: 620; margin-bottom: 8px; }
.vis-excerpt { margin-top: 10px !important; font-size: .88rem; padding-left: 14px; border-left: 3px solid var(--line); }
.vis-more summary { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 4px 16px; padding: 20px 24px; cursor: pointer; }
.vis-more summary .muted { font-size: .88rem; grid-column: 1; grid-row: 2; }
.vis-more .chev { color: var(--muted); transition: transform .2s; grid-column: 2; grid-row: 1 / span 2; }
.vis-more[open] .chev { transform: rotate(180deg); }
.vis-months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 150px; margin-top: 16px; }
.vis-months div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.vis-months i { display: block; width: 100%; max-width: 40px; background: var(--orange); border-radius: 4px 4px 0 0; }
.vis-months b { font-size: .75rem; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vis-months span { font-size: .75rem; color: var(--muted); text-align: center; }
.vis-note { font-size: .82rem; margin: 18px 0 0; max-width: 90ch; }
.vis-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat.is-toggle { appearance: none; display: flex; flex-direction: column; align-items: flex-start; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.is-ready .stat.is-toggle { transition: border-color .2s ease, box-shadow .2s ease; }
.stat.is-toggle .stat-more { margin-top: auto; padding-top: 6px; }
.stat.is-toggle:hover { border-color: var(--ink-2); }
.stat.is-toggle[aria-expanded="true"] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange), var(--shadow); }
.stat .stat-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink); font-size: .82rem; font-weight: 620; }
.stat .stat-more span { color: inherit; font-size: inherit; }
.is-ready .stat-more .chev { transition: transform .2s ease; }
.is-toggle[aria-expanded="true"] .stat-more .chev { transform: rotate(180deg); }
.is-toggle[aria-expanded="true"] .is-closed, .is-toggle[aria-expanded="false"] .is-open { display: none; }
.vis-list { margin-top: 16px; }
.vis-list-head { padding-bottom: 6px; }
.vis-list-head p { margin: 6px 0 0; font-size: .9rem; max-width: 80ch; }
.vis-list-head.is-flush { padding: 0; }
.vis-out { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.vis-out:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.vis-links td:first-child { min-width: 200px; }
.vis-links .vis-anchor { overflow-wrap: anywhere; }
.vis-bars.vis-ladder { margin-top: 18px; }
.vis-bars.vis-ladder li { grid-template-columns: minmax(0, 1fr) minmax(90px, 1.4fr) 40px; }
.vis-ladder .is-you { font-weight: 650; }
.bg-you { background: var(--orange); }
@media print { [data-stat-panel][hidden] { display: block !important; } .stat-more { display: none !important; } }
.vis-go { position: relative; color: inherit; text-decoration: none; transition: border-color .2s ease; }
.vis-go:hover { border-color: var(--ink-2); }
.vis-arrow { position: absolute; top: 16px; right: 18px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.vis-go:hover .vis-arrow { transform: translateX(3px); color: var(--ink); }
.vis-score { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: center; margin-bottom: 16px; }
.vis-score-head { display: flex; gap: 20px; align-items: center; }
.vis-score-head h3 { font-size: 1.5rem; letter-spacing: -.04em; }
.vis-score-head .muted { margin: 8px 0 0; font-size: .88rem; max-width: 34ch; }
.vis-parts { list-style: none; margin: 0; padding: 0; }
.vis-parts li > * { display: grid; grid-template-columns: minmax(0, 1fr) 96px 30px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: .92rem; }
.vis-parts li:last-child > * { border-bottom: 0; }
.vis-parts a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.vis-parts .bar { display: block; height: 6px; }
.vis-parts b { text-align: right; }
/* Línea de tendencia: gris con contraste 3,5:1 sobre blanco. */
.vis-spark { color: var(--field); vertical-align: middle; margin-left: 10px; }
.vis-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.vis-trio { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.vis-season i { background: #f4c48a; }
.vis-season i.is-peak { background: var(--orange); }
.vis-bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.vis-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 64px; gap: 12px; align-items: center; }
.vis-bars li > span:first-child { overflow-wrap: anywhere; }
.vis-bars.is-tight li { grid-template-columns: minmax(0, 1fr) 56px 44px; }
.vis-bars .bar { display: block; height: 6px; }
.vis-bars b { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .86rem; }
.vis-questions { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; }
.vis-questions li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: .92rem; }
.vis-questions li::before { content: "?"; position: absolute; left: 0; top: 10px; font-weight: 750; color: var(--orange-ink); }
.vis-spot { border-top: 1px solid var(--line); }
.vis-spot summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; padding: 14px 24px; }
.vis-spot summary:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.vis-spot .chev { color: var(--muted); transition: transform .2s; }
.vis-spot[open] .chev { transform: rotate(180deg); }
.vis-spot-body { padding: 0 24px 20px; }
.vis-spot-body .table-wrap { border: 1px solid var(--line); }
.vis-spot-body table { font-size: .88rem; }
.vis-spot-body td, .vis-spot-body th { padding: 10px 14px; }
.vis-tags { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; color: var(--ink-2); }
.vis-tags span { color: var(--muted); }
.vis-heat { margin: 18px auto 0; max-width: 330px; display: grid; justify-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.vis-heat-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) 14px; gap: 8px; align-items: center; width: 100%; text-align: center; }
.vis-heat-grid { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.vis-heat-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.vis-heat-grid .is-top { background: #1f7a4d; }
.vis-heat-grid .is-mid { background: #8cc3a2; color: #123d27; }
.vis-heat-grid .is-low { background: #f2b45c; color: #4d2f05; }
.vis-heat-grid .is-out { background: #c0392b; }
.vis-heat-grid .is-none { background: var(--soft); color: var(--muted); }
.vis-heat-grid .is-home { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.vis-check { list-style: none; margin: 10px 0 0; padding: 0; font-size: .92rem; }
.vis-check li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vis-check li:last-child { border-bottom: 0; }
.vis-check li::before { content: "✓"; content: "✓" / ""; flex: none; width: 1em; font-weight: 800; color: #1f7a4d; }
.vis-check li.is-no { color: var(--ink-2); }
.vis-check li.is-no::before { content: "✕"; content: "✕" / ""; color: #c0392b; }
.vis-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vis-chips li { border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px; font-size: .84rem; color: var(--ink-2); overflow-wrap: anywhere; }
.vis-chips b { margin-left: 6px; color: var(--muted); font-weight: 600; }
.vis-ask .vis-q a { color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pv-unfold { display: block; width: 100%; padding: 14px 20px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: #fcfbf8; color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 620; cursor: pointer; }
.pv-unfold:hover { background: var(--soft); color: var(--ink); }
.pad > .pv-unfold { margin: 14px -24px -24px; width: calc(100% + 48px); }
@media screen { .pv-on [data-fold]:not(.is-unfolded) .pv-fold { display: none; } }
@media print { .pv-unfold { display: none; } }
.limits-box { padding: 24px 0 4px; border-top: 1px solid var(--line); }
.limits-box h2 { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; font-weight: 650; }
.limits { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; max-width: 90ch; }
.limits-box p { margin: 14px 0 0; max-width: 90ch; }
@media (max-width: 1080px) {
    .site-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .phone { width: 200px; margin-inline: auto; }
    .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .two, .upsell, .issue-body, .vis-score { grid-template-columns: 1fr; }
    .issue-body { padding-left: 20px; }
    .vis-score { gap: 18px; }
}
@media (max-width: 640px) {
    .film { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .metrics, .site-stats, .vis-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vis-spot summary { padding: 14px 16px; }
    .vis-spot-body { padding: 0 16px 16px; }
    .vis-spot-body .table-wrap { border: 0; }
    .vis-parts li > * { grid-template-columns: minmax(0, 1fr) 64px 28px; gap: 10px; }
    .samples thead, .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .samples tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
    .samples tr:last-child { border-bottom: 0; }
    .samples td { display: block; padding: 0; border: 0; }
    .samples td + td { margin-top: 2px; }
    /* En móvil la tabla se apila: la cabecera queda solo para lectores de pantalla y panel.js pone los roles
       table/row/cell/columnheader para que siga siendo una tabla. La etiqueta visible de cada celda no se lee dos veces. */
    .stack-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 16px; border-bottom: 1px solid var(--line); }
    .stack-table td, .stack-table tbody th { display: block; padding: 0; border: 0; overflow-wrap: anywhere; }
    .stack-table td:first-child, .stack-table tbody th:first-child { grid-column: 1 / -1; }
    .pv-vs.stack-table tr { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 20px; }
    .pv-vs.stack-table td, .pv-vs.stack-table th { padding: 0; background: none; }
    .pv-vs.stack-table td[data-label]::before { letter-spacing: .05em; }
    .stack-table tr.vis-you { background: #fcfbf8; }
    .vis-top5 tr { grid-template-columns: 34px minmax(0, .8fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.5fr); gap: 8px 10px; padding: 14px 10px; }
    .vis-top5 td:first-child { grid-column: 1; }
    .vis-top5 td[data-label="Negocio"] { grid-column: 2 / -1; }
    .vis-top5 td:nth-child(n+3) { font-size: .9rem; overflow-wrap: normal; }
    .vis-top5 td:nth-child(3) { grid-column: 2; }
    .vis-top5 td:nth-child(4) { grid-column: 3; }
    .vis-top5 td:nth-child(5) { grid-column: 4; }
    .vis-top5 td:nth-child(6) { grid-column: 5; }
    .seo-table td[data-label="Título"] { grid-column: 1 / -1; }
    .stack-table td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
    .vis-top5 td[data-label]::before { letter-spacing: .04em; }
    .vis-top5 td[data-label="Negocio"]::before { display: none; }
    .stack-table tr.has-vulns { border-bottom: 0; padding-bottom: 8px; }
    .stack-table tr.vulns-row { display: block; padding: 0 16px 16px; }
    .vulns li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sev id" "type type" "fix fix"; gap: 6px 12px; }
    .vulns .vuln-sev { grid-area: sev; }
    .vulns .vuln-id { grid-area: id; text-align: right; }
    .vulns .vuln-type { grid-area: type; }
    .vulns .vuln-type .chip { display: flex; width: fit-content; margin: 6px 0 0; }
    .vulns .vuln-fix { grid-area: fix; color: var(--ink-2); font-size: .84rem; }
    .site-issues summary { grid-template-columns: 56px minmax(0, 1fr) 16px; gap: 10px; padding: 14px 16px; }
    .issue-body { padding: 0 16px 18px; }
}
@media (max-width: 560px) {
    .vis-bars.vis-ladder li { grid-template-columns: minmax(0, 1fr) 40px; row-gap: 6px; }
    .vis-bars.vis-ladder li > .bar { grid-column: 1 / -1; grid-row: 2; }
    .verdict { flex-direction: column; align-items: flex-start; }
    .check { grid-template-columns: 1fr; gap: 6px; }
    .task summary { grid-template-columns: 22px minmax(0, 1fr); }
    .task summary .chip { grid-column: 2; justify-self: start; }
    .task .how { margin-left: 20px; }
    .upsell { padding: 26px 22px; gap: 28px; }
    .price-card { padding: 20px; }
    .mini { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
    th, td { padding: 12px; }
}

.pv-brand { display: none; }
.pv-side-head { padding: 0 12px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.pv-side-head strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.pv-side-head span { color: var(--muted); font-size: .8rem; }
.pv-nav { display: grid; gap: 2px; }
.pv-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 560; transition: background .15s ease, color .15s ease; }
.pv-link:hover { background: var(--soft); color: var(--ink); }
.pv-link.is-current { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); font-weight: 650; }
.pv-count { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.pv-link.is-current .pv-count { background: var(--orange-pale); color: #7a4506; }
.pv-group { margin: 18px 12px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.pv-sub { position: relative; padding-left: 28px; font-size: .88rem; font-weight: 500; }
.pv-sub::before { content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transform: translateY(-50%); }
.pv-sub.is-current::before { background: var(--orange); }
.pv-side-cta { margin-top: 22px; padding: 18px; border-radius: var(--radius); background: var(--ink); color: #d9d4ca; display: grid; gap: 12px; font-size: .86rem; }
.pv-side-cta strong { color: #fff; font-size: .98rem; }
.pv-side-cta .button { width: 100%; padding: 11px 14px; font-size: .88rem; background: var(--orange); color: var(--ink); }
.pv-side-cta .button:focus-visible { outline-color: var(--orange); }
.pv-view > .section:first-child, .pv-view > header:first-child { padding-top: 40px; }
.pv-main [id] { scroll-margin-top: 104px; }
.pv-kicker { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ring.is-md { width: 104px; height: 104px; }
.ring.is-md strong { font-size: 1.9rem; }
.pv-second { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); align-items: flex-start; }
.pv-second > div:last-child { flex: 1 1 auto; min-width: 0; }
.pv-parts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; font-size: .84rem; width: min(100%, 380px); }
.pv-parts li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 30px; gap: 12px; align-items: center; }
.pv-parts .bar { display: block; height: 6px; }
.pv-parts b { text-align: right; font-variant-numeric: tabular-nums; }
.pv-parts .is-off { color: var(--muted); }
.pv-inventory { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); overflow: hidden; padding: 0; margin-top: 8px; }
.pv-inventory div { box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); padding: 18px 20px; display: grid; gap: 2px; align-content: start; }
.pv-inventory b { font-size: 1.75rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pv-inventory span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.pv-sources { margin: 12px 2px 0; color: var(--muted); font-size: .82rem; }
.pv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 16px; }
.pv-kpi { padding: 20px; display: grid; gap: 6px; align-content: start; }
.pv-kpi small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; }
.pv-kpi b { font-size: 1.9rem; letter-spacing: -.05em; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-kpi span { color: var(--muted); font-size: .86rem; }
.pv-kpi .chip { justify-self: start; margin-top: 4px; }
.pv-vs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 20px 6px; flex-wrap: wrap; }
.pv-vs-head a { font-size: .88rem; color: var(--ink-2); }
.pv-vs td, .pv-vs th { padding: 12px 20px; }
.pv-vs .vis-you td, .pv-vs .vis-you th { font-weight: 650; }
@media screen and (min-width: 641px) and (max-width: 1180px) {
    .vis-rivals th, .vis-rivals td { padding-inline: 10px; }
    .vis-rivals th { white-space: normal; }
    .vis-rivals tbody th { overflow-wrap: anywhere; }
}
@media screen and (min-width: 1080px) {
    .is-app { --side: 272px; }
    .is-app .site-header, .is-app .closing, .is-app .site-footer, .pv-shell { margin-left: var(--side); }
    .is-app .wrap { max-width: none; }
    .is-app .site-header .brand { display: none; }
    .is-app .nav-actions { flex: 1; }
    .is-app .nav-note { margin-right: auto; }
    .pv-shell { width: auto; }
    .pv-main { max-width: 1680px; }
    .pv-side { position: fixed; inset: 0 auto 0 0; z-index: 25; width: var(--side); display: flex; flex-direction: column; padding: 0 14px 24px; background: var(--sand); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .pv-brand { display: flex; align-items: center; flex: none; min-height: 77px; margin: 0 -14px 20px; padding: 0 26px; border-bottom: 1px solid var(--line); line-height: 0; }
    .pv-nav { margin-bottom: 22px; }
    .pv-side .pv-link:hover { background: rgba(255,255,255,.7); }
    .pv-side .pv-count { background: rgba(255,255,255,.75); }
    .pv-side-cta { margin-top: auto; }
}
@media screen and (min-width: 1280px) {
    .pv-inventory { grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); }
}
@media screen and (max-width: 1079.98px) {
    .pv-side { position: sticky; top: 77px; z-index: 15; margin-inline: calc(var(--pad) * -1); padding: 10px var(--pad); background: rgba(250,248,244,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
    .pv-nav { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--field) transparent; padding-bottom: 4px; }
    .pv-nav::-webkit-scrollbar { height: 4px; }
    .pv-nav::-webkit-scrollbar-thumb { background: var(--field); border-radius: 4px; }
    /* Pista de que la barra sigue: un degradado en el lado por el que hay más secciones (lo activa panel.js). */
    .pv-side::before, .pv-side::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; pointer-events: none; opacity: 0; transition: opacity .2s ease; z-index: 1; }
    .pv-side::before { left: 0; background: linear-gradient(to right, rgba(250,248,244,1) 20%, rgba(250,248,244,0)); }
    .pv-side::after { right: 0; background: linear-gradient(to left, rgba(250,248,244,1) 20%, rgba(250,248,244,0)); }
    .pv-side.has-more-left::before, .pv-side.has-more-right::after { opacity: 1; }
    .pv-side-head, .pv-group, .pv-side-cta { display: none; }
    .pv-sub { padding-left: 14px; font-weight: 560; }
    .pv-sub::before { display: none; }
    .pv-link { flex: none; white-space: nowrap; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: .86rem; scroll-snap-align: start; }
    .pv-link.is-current { background: var(--ink); color: var(--paper); box-shadow: none; border-color: var(--ink); }
    .pv-link.is-current .pv-count { background: rgba(255,255,255,.16); color: var(--paper); }
    .pv-lock { width: auto; gap: 8px; font-size: .86rem; background: #fdf6ec; border-style: dashed; border-color: #e8cfa8; }
    .pv-lock.pv-sub { font-size: .86rem; }
    .pv-main [id] { scroll-margin-top: 140px; }
}
@media screen and (max-width: 560px) {
    .pv-parts li { grid-template-columns: 112px minmax(0, 1fr) 28px; }
    .pv-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pv-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 56px 0 8px; }
.pv-step { display: grid; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.pv-step:hover { border-color: var(--ink-2); }
.pv-step small { color: var(--muted); font-size: .78rem; }
.pv-step strong { font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.pv-step.is-next { grid-column: 2; text-align: right; }
.pv-step.is-prev small::before { content: "← "; content: "← " / ""; }
.pv-step.is-next small::after { content: " →"; content: " →" / ""; }
@media screen { .pv-on .pv-view:not(.is-current) { display: none; } }
@media print { .pv-side, .pv-pager { display: none; } }

@media print {
    .site-header, .no-print, form, .closing, .skip-link { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; }
    .section { padding-top: 28px; break-inside: avoid; }
}
