/* ═══════════════════════════════════════════════════════════════════════════
   WOODY 4.0 — informe productivo (ES/EN)
   Dirección: Editorial Financial Minimalism + Bento ejecutivo.
   Base oscura neutra; el color SOLO trabaja (semáforos, "you", CTA).
   Oro = tu negocio / valor / desbloqueo. Sin librerías.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0c11;
  --bg-2: #0d1017;
  --panel: #12161f;
  --panel-2: #171c27;
  --line: rgba(233, 237, 245, 0.08);
  --line-2: rgba(233, 237, 245, 0.14);
  --ink: #f2efe8;
  --muted: #9aa3b4;
  --faint: #626b7a;
  --gold: #e3b34f;
  --gold-2: #f0c56a;
  --gold-dim: rgba(227, 179, 79, 0.14);
  --ok: #3dd68c;
  --ok-dim: rgba(61, 214, 140, 0.13);
  --warn: #f5a83c;
  --warn-dim: rgba(245, 168, 60, 0.13);
  --crit: #f26d7e;
  --crit-dim: rgba(242, 109, 126, 0.13);
  /* Dupla tipográfica: Geist (rigor de ingeniería, métricas/UI) +
     Newsreader (sentencia editorial de consultoría). Geist Mono para cifras. */
  --serif: "Newsreader", "Times New Roman", Georgia, serif;
  --sans: "Geist", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --rad: 18px;
  --rad-s: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sec-pad: clamp(72px, 11vh, 130px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.w40, body.w40 .w40-doc {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--gold); }
::selection { background: rgba(227, 179, 79, 0.28); }

/* Textura sutil de fondo — grano editorial, no ruido visual */
body.w40::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(227, 179, 79, 0.05), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(90, 120, 190, 0.04), transparent 55%);
}

/* ── Reveal system ─────────────────────────────────────────────────────────── */
/* --d: stagger por-elemento (lo asigna el JS a los hijos de cada grid/bento). */
.rv { opacity: 0; transform: translateY(30px) scale(0.985); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease), filter 0.95s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
/* Sentencias grandes: entran des-enfocadas → nítidas (peso editorial). */
.hv-line, .dv-title, .cta-title, .avc-line { filter: blur(14px); }
.hv-line.in, .dv-title.in, .cta-title.in, .in .avc-line, .avc-line.in { filter: blur(0); }
.ai-verdictcard.in .avc-line { filter: blur(0); }
.ai-verdictcard .avc-line { transition: filter 1.1s var(--ease) 0.15s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; filter: none !important; }
  .g-arc, .r-arc, .fill, .gap-fill, .pk-fill, #nw-fill { transition: none !important; }
  .hero-brand, .cue-beam, .cue-chevron, .cue-label, .ey-dot, .count, .mv-skeleton i, .rail-dot { animation: none !important; }
  .hero-shot .hs-canvas { opacity: 0; }
  .hero-shot .hs-img { opacity: 1; transition: none; }
  .rail-dot { opacity: 1; }
  .rail-track { transform: scaleY(1); transition: none; }
  .sec-head .sec-title, .sec-head .sec-sub { opacity: 1; transform: none; clip-path: none; transition: none; }
  .kw-row, .pk-row { opacity: 1; transform: none; transition: none; }
  .w40-section::before { transform: scaleX(1); transition: none; }
}
/* Modo QA (&motion=off): estado final sin animaciones, para capturas. */
.w40-static { scroll-behavior: auto; }
.w40-static .rv { opacity: 1 !important; transform: none !important; transition: none !important; filter: none !important; }
.w40-static .g-arc, .w40-static .r-arc, .w40-static .fill, .w40-static .gap-fill,
.w40-static .pk-fill, .w40-static #nw-fill, .w40-static .dvm-track i { transition: none !important; }
.w40-static .ey-dot, .w40-static .cue-beam, .w40-static .cue-chevron, .w40-static .cue-label,
.w40-static .hero-brand, .w40-static .mv-skeleton i, .w40-static .count { animation: none !important; }
.w40-static .sec-head .sec-title, .w40-static .sec-head .sec-sub { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.w40-static .sec-kicker::before { width: 30px !important; transition: none !important; }
.w40-static .w40-section::before { transform: scaleX(1) !important; transition: none !important; }
.w40-static .kw-row, .w40-static .pk-row { opacity: 1 !important; transform: none !important; transition: none !important; }
.w40-static .hero-shot .hs-canvas { opacity: 0 !important; }
.w40-static .hero-shot .hs-img { opacity: 1 !important; transition: none !important; }
.w40-static .w40-rail, .w40-static .rail-track { opacity: 1; transform: translateY(-50%) !important; transition: none !important; }
.w40-static .rail-track { transform: scaleY(1) !important; }
.w40-static .rail-dot { animation: none !important; opacity: 1 !important; }

/* ── Progress + topbar ─────────────────────────────────────────────────────── */
.w40-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: transparent; }
.w40-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 0.12s linear; }
.w40-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(18px, 4vw, 42px);
  background: rgba(10, 12, 17, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.w40-topbar.is-solid { background: rgba(10, 12, 17, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.tb-logo { display: flex; align-items: center; }
.tb-logo .brand-logo { height: 20px; width: auto; }
.tb-sep { width: 1px; height: 16px; background: var(--line-2); }
.tb-domain { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tb-chapter { margin-left: 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); flex: 1; text-align: center; transition: opacity 0.3s; }
.tb-cta { white-space: nowrap;
  margin-left: auto; cursor: pointer; border: 0; border-radius: 999px;
  padding: 9px 18px; font: 600 13px var(--sans); color: #14100a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 4px 18px rgba(227, 179, 79, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.tb-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(227, 179, 79, 0.35); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.w40-hero { position: relative; min-height: 92vh; display: grid; place-items: center; padding: 120px clamp(18px, 5vw, 48px) 40px; z-index: 1; }
.hero-in { max-width: 980px; width: 100%; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.ey-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-brand {
  margin: 30px 0 16px;
  font: 600 clamp(42px, 7.5vw, 88px)/1.04 var(--serif);
  letter-spacing: -0.01em;
  /* Marcas sin espacios (ej "RODGUARD_SECURITY_SYSTEMS": los "_" no
     quiebran línea) desbordaban el hero en mobile y ensanchaban toda la
     página. anywhere solo actúa cuando no hay punto de quiebre natural —
     nombres normales no cambian. */
  overflow-wrap: anywhere;
  background: linear-gradient(100deg, #c9c4b8 0%, #fdfcf9 25%, #fffdf6 50%, #c9c4b8 75%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brandsheen 2.6s var(--ease) 0.5s both;
}
@keyframes brandsheen { from { background-position: 120% 0; } to { background-position: 0% 0; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.chip-mono { font-family: var(--mono); font-size: 11.5px; }
.chip-dim { color: var(--muted); }
.chip-taken { border-color: rgba(245, 168, 60, 0.35); }
.chip-taken i { color: var(--warn); font-style: normal; }

.hero-verdict { margin: clamp(44px, 7vh, 74px) auto 0; max-width: 860px; }
.hv-line { font: 500 clamp(30px, 4.6vw, 54px)/1.16 var(--serif); letter-spacing: -0.01em; }
.hv-1 { color: var(--ok); transition-delay: 0.15s; }
.hv-2 { color: var(--ink); transition-delay: 0.3s; }
.hv-sub { margin: 26px auto 0; max-width: 640px; font-size: 16.5px; color: var(--muted); transition-delay: 0.45s; }
/* ── Screenshot del sitio del cliente — revelación pixelada ────────────────── */
.hero-shot { margin: clamp(44px, 7vh, 70px) auto 0; max-width: 780px; transition-delay: 0.5s; }
.hs-frame {
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: #0e1118; box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
  /* Corte vertical en degradado: el documento se disuelve hacia abajo. */
  -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 66%, transparent 99%);
}
.hs-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.hs-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.hs-dom { margin-left: 10px; font-size: 11.5px; color: var(--muted); }
.hs-live { margin-left: auto; font: 600 9.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.hs-stage { position: relative; height: clamp(240px, 34vh, 380px); background: #10131b; }
.hs-canvas, .hs-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-canvas { image-rendering: pixelated; opacity: 1; transition: opacity 0.45s ease; }
.hs-img { object-fit: cover; object-position: top center; opacity: 0; transition: opacity 0.45s ease; }
.hero-shot.done .hs-canvas { opacity: 0; }
.hero-shot.done .hs-img { opacity: 1; }

.hero-cue { margin-top: clamp(28px, 5vh, 52px); display: flex; flex-direction: column; align-items: center; gap: 14px; transition-delay: 0.6s; }
.cue-label { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); animation: cuelabel 2.6s ease-in-out infinite; }
@keyframes cuelabel { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.cue-track { position: relative; width: 2px; height: 84px; border-radius: 2px; background: rgba(233, 237, 245, 0.1); overflow: hidden; }
.cue-beam { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--gold) 55%, var(--gold-2)); box-shadow: 0 0 14px rgba(227, 179, 79, 0.65); animation: cuebeam 2.2s cubic-bezier(0.55, 0, 0.45, 1) infinite; }
@keyframes cuebeam { 0% { top: -45%; } 70%, 100% { top: 105%; } }
.cue-chevron { width: 22px; height: 22px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(227, 179, 79, 0.5)); animation: cuechev 2.2s cubic-bezier(0.55, 0, 0.45, 1) infinite; }
@keyframes cuechev { 0%, 55% { transform: translateY(0); opacity: 0.6; } 75% { transform: translateY(7px); opacity: 1; } 100% { transform: translateY(0); opacity: 0.6; } }

/* ── Section scaffolding ───────────────────────────────────────────────────── */
.w40-section { position: relative; padding: var(--sec-pad) clamp(18px, 5vw, 48px); z-index: 1; }
/* Hairline que se dibuja al entrar a cada sección (sweep de lujo, sutil). */
.w40-section::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 179, 79, 0.35), var(--line-2), transparent); transform: scaleX(0); transition: transform 1.4s var(--ease) 0.1s; }
.w40-section.insec::before { transform: scaleX(1); }
.sec-in { max-width: 1080px; margin: 0 auto; }
/* Fix 03/ago/2026: el cap de 760px partía en dos títulos largos (Exhibits
   E/H en desktop) con 1080px disponibles. El título usa el ancho completo
   de la sección; la medida de lectura de 760px queda SOLO en el subtítulo. */
.sec-head { margin-bottom: clamp(34px, 5vh, 56px); }
.sec-head .sec-sub { max-width: 760px; }
/* Coreografía interna del header de sección (dispara con .sec-head.in). */
.sec-kicker { display: flex; align-items: center; gap: 12px; font: 600 11.5px var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.sec-kicker::before { content: ""; width: 0; height: 1px; background: var(--gold); transition: width 0.9s var(--ease) 0.25s; }
.sec-head.in .sec-kicker::before { width: 30px; }
.sec-head .sec-title { opacity: 0; transform: translateY(34px); clip-path: inset(0 0 100% 0); transition: opacity 0.9s var(--ease) 0.12s, transform 0.9s var(--ease) 0.12s, clip-path 0.9s var(--ease) 0.12s; }
.sec-head.in .sec-title { opacity: 1; transform: none; clip-path: inset(-8% 0 -12% 0); }
.sec-head .sec-sub { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease) 0.35s, transform 0.8s var(--ease) 0.35s; }
.sec-head.in .sec-sub { opacity: 1; transform: none; }
.sec-title { font: 600 clamp(28px, 3.8vw, 44px)/1.12 var(--serif); letter-spacing: -0.01em; }
.sec-title em { font-style: italic; color: var(--gold-2); }
.sec-sub { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 620px; }
.sec-foot { margin-top: 26px; color: var(--muted); font-size: 15px; }
.sec-foot b { color: var(--ink); }

/* Status chips (semánticos, siempre icono/label + color) */
.st { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; }
.st-ok { color: var(--ok); background: var(--ok-dim); }
.st-warn { color: var(--warn); background: var(--warn-dim); }
.st-crit { color: var(--crit); background: var(--crit-dim); }

.you-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  font: 700 10px var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: #14100a; background: var(--gold);
  vertical-align: 2px;
}

/* ── 01 Scorecard bento ────────────────────────────────────────────────────── */
.score-bento {
  display: grid; gap: 14px;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas: "gauge a b" "gauge c d";
}
.sb-gauge { grid-area: gauge; }
.score-bento .sb-card:nth-of-type(2) { grid-area: a; }
.score-bento .sb-card:nth-of-type(3) { grid-area: b; }
.score-bento .sb-card:nth-of-type(4) { grid-area: c; }
.score-bento .sb-fact { grid-area: d; }

.sb-gauge, .sb-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 26px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.sb-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sb-gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }

.gauge-wrap { position: relative; width: min(250px, 60vw); }
.gauge { width: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 13; }
.g-bench { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 13; stroke-dasharray: 2.5 575.5; stroke-linecap: butt; }
.g-arc {
  fill: none; stroke: var(--crit); stroke-width: 13; stroke-linecap: round;
  stroke-dasharray: 0 578;
  transition: stroke-dasharray 1.6s var(--ease);
  filter: drop-shadow(0 0 10px rgba(242, 109, 126, 0.35));
}
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-num { font: 700 clamp(52px, 6vw, 68px)/1 var(--mono); letter-spacing: -0.04em; color: var(--crit); }
.g-max { font: 500 13px var(--mono); color: var(--faint); margin-top: 2px; }
/* El label reserva SIEMPRE la altura de 2 líneas: así una traducción larga
   (ej. "VISIBILIDADE NOS MOTORES DE PESQUISA") que envuelve a 2 líneas no
   cambia la altura del bloque y la cifra no se corre del centro entre idiomas.
   Texto centrado y ancho acotado al interior del anillo. */
.g-label {
  margin-top: 8px; height: 2.6em; width: 68%;
  display: flex; align-items: flex-start; justify-content: center;
  text-align: center; line-height: 1.25;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.sb-gauge-note { font-size: 13.5px; color: var(--muted); text-align: center; max-width: 300px; }
.bench-note { display: block; margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.bench-note b { color: var(--ink); }
.bench-tick { display: inline-block; width: 10px; height: 2px; background: rgba(255,255,255,0.5); vertical-align: 3px; margin-right: 6px; }

.sb-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mc-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mc-num { display: flex; align-items: baseline; gap: 5px; }
.mc-num .count { font: 700 40px/1 var(--mono); letter-spacing: -0.03em; }
.mc-unit { font: 500 13px var(--mono); color: var(--faint); }
.sb-card[data-status="ok"] .mc-num .count { color: var(--ok); }
.sb-card[data-status="crit"] .mc-num .count { color: var(--crit); }
.mc-bar { margin: 12px 0 12px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.mc-bar .fill { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.3s var(--ease) 0.2s; }
.sb-card[data-status="ok"] .fill { background: var(--ok); }
.sb-card[data-status="crit"] .fill { background: var(--crit); }
.mc-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mc-frac { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.mc-frac .count { font: 700 46px/1 var(--mono); color: var(--crit); }
.mc-of { font: 500 15px var(--mono); color: var(--faint); }

/* ── 02 Situation ──────────────────────────────────────────────────────────── */
.situ-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.situ-p { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.situ-p.lead { font: 400 clamp(20px, 2.4vw, 26px)/1.5 var(--serif); color: var(--ink); }
.situ-stats { display: grid; gap: 12px; }
.stat-tile {
  display: flex; align-items: center; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad-s);
  padding: 18px 20px;
}
.stx-num { font: 700 34px/1 var(--mono); letter-spacing: -0.03em; min-width: 86px; text-align: right; }
.stat-tile:nth-child(1) .stx-num { color: var(--crit); }
.stat-tile:nth-child(2) .stx-num { color: var(--ink); }
.stat-tile:nth-child(3) .stx-num { color: var(--crit); }
.stx-label { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.stx-foot { display: block; margin-top: 3px; font-size: 11.5px; color: var(--faint); }

/* ── 03 Diagnosis grid ─────────────────────────────────────────────────────── */
.diag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.diag-card {
  position: relative; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--rad);
  padding: 22px; color: var(--ink); font-family: var(--sans);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.diag-card::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0;
}
.diag-card[data-status="crit"]::before { background: var(--crit); }
.diag-card[data-status="warn"]::before { background: var(--warn); }
.diag-card[data-status="ok"]::before { background: var(--ok); }
.diag-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dc-metric { font-size: 12px; color: var(--faint); }
.dc-title { font: 600 17px/1.35 var(--sans); letter-spacing: -0.01em; }
.dc-ev { font-size: 13px; color: var(--muted); }
.dc-ref { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.dc-ref i { width: 14px; height: 1px; background: var(--gold); opacity: 0.7; }

/* ── 04 Keyword list ───────────────────────────────────────────────────────── */
.kw-list { border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; background: var(--panel); }
.kw-row { border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: var(--d, 0s); }
.kw-list.in .kw-row { opacity: 1; transform: none; }
.kw-row:last-child { border-bottom: 0; }
.kw-head {
  display: flex; align-items: center; gap: 16px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 17px 22px; color: var(--ink); font-family: var(--sans);
  transition: background 0.25s;
}
.kw-head:hover { background: rgba(255, 255, 255, 0.025); }
.kw-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: transparent; border: 2px solid var(--crit); }
.kw-row.is-found .kw-dot { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px rgba(61, 214, 140, 0.4); }
.kw-q { font-size: 15.5px; flex: 1; }
/* Branded KW guard: chip "Tu marca" en búsquedas del propio nombre */
.kw-brand { font: 600 10px var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--warn); border: 1px solid var(--warn-dim); background: var(--warn-dim); border-radius: 99px; padding: 3px 9px; flex: none; white-space: nowrap; }
.kw-note-list { margin-top: -4px; }
.kw-verdict { font: 600 12.5px var(--mono); color: var(--crit); letter-spacing: 0.04em; }
.kw-row.is-found .kw-verdict { color: var(--ok); }
.kw-x { position: relative; width: 12px; height: 12px; flex: none; opacity: 0.5; }
.kw-x::before, .kw-x::after { content: ""; position: absolute; background: var(--muted); left: 50%; top: 50%; transition: transform 0.3s var(--ease); }
.kw-x::before { width: 12px; height: 1.6px; transform: translate(-50%, -50%); }
.kw-x::after { width: 1.6px; height: 12px; transform: translate(-50%, -50%); }
.kw-row.is-openrow .kw-x::after { transform: translate(-50%, -50%) scaleY(0); }
.kw-panel { padding: 4px 22px 20px 47px; }
.kw-note { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.kw-top3 { list-style: none; display: grid; gap: 7px; }
.kw-top3 li { display: flex; gap: 14px; align-items: baseline; font-size: 13.5px; padding: 9px 14px; background: rgba(255, 255, 255, 0.025); border-radius: 9px; }
.t3-pos { color: var(--muted); font-size: 11.5px; flex: none; min-width: 24px; }
.kw-top3 li.t3-you { background: var(--gold-dim); border: 1px solid rgba(227, 179, 79, 0.35); }
.t3-you .t3-dom { color: var(--gold); }
.t3-you .t3-pos { color: var(--gold-2); }
.t3-youtag { font: 700 10px var(--mono); letter-spacing: 0.08em; background: var(--gold); color: #14120b; border-radius: 5px; padding: 2.5px 7px; margin-left: auto; flex: none; }
.t3-dom { color: var(--gold-2); font-size: 12px; flex: none; }
.t3-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 05 AI bento ───────────────────────────────────────────────────────────── */
.ai-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ai-verdictcard {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, rgba(61, 214, 140, 0.09), var(--panel));
  border: 1px solid rgba(61, 214, 140, 0.25); border-radius: var(--rad);
  padding: 26px 30px;
}
.avc-badge { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-dim); color: var(--ok); }
.avc-badge svg { width: 26px; height: 26px; }
.avc-line { font: 500 clamp(19px, 2.4vw, 24px)/1.35 var(--serif); }
.avc-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.ai-card, .ai-sources, .ai-query {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--rad); padding: 24px;
}
.aic-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.aic-name { font: 600 15px var(--sans); }
.ring-wrap { position: relative; width: 116px; margin: 6px auto 12px; }
.ring { width: 100%; transform: rotate(-90deg); }
.r-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 9; }
.r-arc { fill: none; stroke: var(--ok); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 314.2; transition: stroke-dasharray 1.4s var(--ease) 0.15s; }
.ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font: 700 24px var(--mono); font-variant-numeric: tabular-nums; color: var(--ok); }
.aic-note { font-size: 13.5px; color: var(--muted); text-align: center; }
.aic-note b { color: var(--ink); }
.aic-comp-label { margin: 14px 0 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.aic-comps { display: flex; flex-wrap: wrap; gap: 6px; }
.aic-comps .chip { font-size: 11.5px; padding: 4px 10px; }
.ai-sources { grid-column: span 2; }
.src-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 14px 0; }
.src-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 10px 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.src-list li.is-you { border-color: rgba(227, 179, 79, 0.4); color: var(--ink); background: var(--gold-dim); }
.src-list li.is-you .you-tag { margin-left: 0; }
.aic-foot { font-size: 13px; color: var(--muted); }
.ai-query { grid-column: 1 / -1; background: var(--bg-2); }
.aiq-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.aiq-text { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }
/* ── Transparencia IA (flag w40_ai_transparency): Q&A desplegables ────── */
.ai-qa { grid-column: 1 / -1; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--rad); padding: 24px; }
.qa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qa-provider { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.qa-item { border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.02); margin-bottom: 8px; overflow: hidden; }
.qa-item summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; user-select: none; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.8px solid var(--faint); border-bottom: 1.8px solid var(--faint); transform: rotate(-45deg); transition: transform 0.3s var(--ease); margin-right: 2px; }
.qa-item[open] summary::before { transform: rotate(45deg); }
.qa-q { flex: 1; font-size: 12.5px; line-height: 1.45; color: var(--muted); font-style: italic; min-width: 0; }
.qa-item[open] .qa-q { color: var(--ink); }
.qa-chip { flex: none; font: 700 10.5px var(--sans); letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.qa-chip.is-you { background: var(--ok-dim); color: var(--ok); }
.qa-chip.is-no { background: var(--crit-dim); color: var(--crit); }
.qa-body { padding: 2px 14px 14px 33px; border-top: 1px solid var(--line); }
.qa-label { margin: 12px 0 4px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.qa-full { font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.qa-ans { font-size: 13px; line-height: 1.7; color: var(--muted); white-space: pre-line; }
.qa-ans .qa-you { color: var(--gold-2); font-weight: 700; }
@media (max-width: 820px) { .qa-cols { grid-template-columns: 1fr; } }

/* ── 06 Gap chart + near-win ───────────────────────────────────────────────── */
.gap-chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 30px; }
.gap-row { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; margin-bottom: 22px; }
.gap-name { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.gap-tag { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.gap-tag-you { color: var(--gold); }
.gap-track { position: relative; height: 34px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; overflow: visible; }
.gap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; transition: width 1.5s var(--ease) 0.1s; }
.is-leader .gap-fill { background: linear-gradient(90deg, #454e60, #5a6478); }
.is-you .gap-fill { background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 18px rgba(227, 179, 79, 0.3); }
.gap-val { position: absolute; left: calc(var(--wf, 0%) + 12px); top: 50%; transform: translateY(-50%); font: 700 15px var(--mono); white-space: nowrap; }
.is-you .gap-val { color: var(--gold-2); }
.gap-note { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.gap-note b { color: var(--ink); }

.nearwin { margin-top: 16px; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(22px, 3vw, 40px); background: linear-gradient(135deg, var(--gold-dim), var(--panel)); border: 1px solid rgba(227, 179, 79, 0.3); border-radius: var(--rad); padding: 30px; align-items: center; }
.nw-flag { display: inline-block; font: 700 10.5px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #14100a; background: var(--gold); border-radius: 999px; padding: 5px 12px; }
.nw-kw { margin: 14px 0 8px; font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); }
.nw-sub { font-size: 14.5px; color: var(--muted); }
.nw-sub b { color: var(--ink); }
.nw-toggle { display: inline-flex; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.nwt { border: 0; cursor: pointer; border-radius: 999px; padding: 8px 16px; font: 600 12.5px var(--sans); color: var(--muted); background: transparent; transition: all 0.3s var(--ease); }
.nwt.is-on { background: var(--ink); color: #14100a; }
.nw-meter { margin-top: 18px; }
.nw-bar { height: 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.4); overflow: hidden; }
#nw-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 0.9s var(--ease); }
.nw-read { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.nw-val { font: 700 34px/1 var(--mono); color: var(--gold-2); }
.nw-unit { font-size: 12.5px; color: var(--faint); }
.nw-delta { font: 700 15px var(--mono); color: var(--ok); background: var(--ok-dim); border-radius: 999px; padding: 3px 10px; }
.nw-foot { margin-top: 14px; font-size: 11.5px; color: var(--faint); }

/* ── 07 Local pack ─────────────────────────────────────────────────────────── */
.pack-board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 30px; }
.pk-row { display: grid; grid-template-columns: 30px 1.4fr 74px 1fr 64px; gap: 14px; align-items: center; padding: 13px 10px; border-radius: 12px; opacity: 0; transform: translateX(-18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: var(--d, 0s); }
.pack-board.in .pk-row { opacity: 1; transform: none; }
.pk-row.is-you { background: var(--gold-dim); border: 1px solid rgba(227, 179, 79, 0.3); }
.pk-rank { font-size: 13px; color: var(--faint); text-align: center; }
.pk-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-rating { font-size: 12.5px; color: var(--warn); }
.pk-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.pk-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: #4a5468; transition: width 1.2s var(--ease); }
.pk-row.is-you .pk-fill { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.pk-rev { font: 700 15px var(--mono); text-align: right; }
.pack-board .gap-note { margin-top: 18px; }

/* ── 08 Brand SERP ─────────────────────────────────────────────────────────── */
.brand-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.serp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; }
.serp-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.serp-q { font-size: 12.5px; color: var(--muted); }
.serp-q::before { content: "🔍  "; font-size: 11px; }
.serp-list { list-style: none; }
.serp-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.serp-row:last-child { border-bottom: 0; }
.serp-row.is-own { background: var(--gold-dim); }
.serp-pos { font-size: 11.5px; color: var(--faint); flex: none; width: 28px; }
.serp-body { display: flex; flex-direction: column; min-width: 0; }
.serp-dom { font-size: 11px; color: var(--gold-2); }
.serp-row:not(.is-own) .serp-dom { color: var(--faint); }
.serp-title { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-row.is-own .serp-title { color: var(--ink); }
.brand-side { display: grid; gap: 14px; }
.bs-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 24px; }
.bs-big { font: 700 40px/1.1 var(--mono); margin: 12px 0 8px; }
.bs-card[data-status="ok"] .bs-big { color: var(--ok); }
.bs-card[data-status="warn"] .bs-big { color: var(--warn); }
.bs-text { font-size: 13.5px; color: var(--muted); }

/* ── 09 Homepage audit ─────────────────────────────────────────────────────── */
.home-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(22px, 3.5vw, 44px); align-items: start; }
.home-shot { position: sticky; top: 90px; }
.shot-frame { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.shot-scroll { max-height: 560px; overflow: hidden; position: relative; }
.shot-scroll::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(10, 12, 17, 0.65)); }
.shot-scroll img { width: 100%; display: block; transition: transform 6s ease-in-out; }
.home-shot:hover .shot-scroll img { transform: translateY(calc(-100% + 560px)); }
.home-shot figcaption { margin-top: 10px; font-size: 11px; color: var(--faint); text-align: center; }
.home-findings { display: grid; gap: 12px; }
.hf-item { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad-s); padding: 18px 20px; }
.hf-n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--warn-dim); color: var(--warn); font-size: 13px; font-weight: 700; }
.hf-title { font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.hf-fix { font-size: 13.5px; color: var(--muted); }
.hf-fix-label { display: inline-block; margin-right: 8px; font: 700 10px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ok); }
.hf-pos { background: var(--panel); border: 1px solid rgba(61, 214, 140, 0.2); border-radius: var(--rad-s); padding: 18px 20px; }
.hf-pos-label { font: 700 10.5px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ok); margin-bottom: 10px; }
.hf-pos-item { display: grid; grid-template-columns: 15px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 10px; }
.hf-pos-item:last-child { margin-bottom: 0; }
.hf-pos-item b { color: var(--ink); font-weight: 600; }
.hf-pos-item svg { width: 15px; height: 15px; color: var(--ok); margin-top: 3px; }
.hfp-text { display: block; }

/* ── 10 Technical ──────────────────────────────────────────────────────────── */
.tech-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tc-item { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad-s); padding: 15px 18px; }
.tc-ic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.tc-ic svg { width: 15px; height: 15px; }
.tc-item.is-ok .tc-ic { background: var(--ok-dim); color: var(--ok); }
.tc-item:not(.is-ok) .tc-ic { background: var(--warn-dim); color: var(--warn); }
.tc-item:not(.is-ok) { border-color: rgba(245, 168, 60, 0.3); }
.tc-label { flex: 1; font-size: 14px; }
.tc-state { font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }
.tc-item:not(.is-ok) .tc-state { color: var(--warn); font-weight: 700; }

/* ── 11 Market bento ───────────────────────────────────────────────────────── */
.mkt-bento { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; align-items: stretch; }
.mkt-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--rad); padding: 26px; display: flex; flex-direction: column; }
.mkt-num { font: 700 44px/1 var(--mono); color: var(--gold-2); }
.mkt-num svg { color: var(--ok); }
.mkt-label { margin: 8px 0 14px; font-size: 14px; color: var(--ink); font-weight: 600; }
.mkt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.mkt-chips .chip { font-size: 12px; }
.mkt-foot { margin-top: auto; font-size: 13px; color: var(--muted); }

/* ── Part-2 divider ────────────────────────────────────────────────────────── */
.w40-divider { position: relative; padding: clamp(90px, 14vh, 160px) clamp(18px, 5vw, 48px); text-align: center; background: linear-gradient(180deg, var(--bg), #0c0e15 40%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 1; }
.dv-in { max-width: 760px; margin: 0 auto; }
.dv-part { display: inline-block; font: 700 11.5px var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(227, 179, 79, 0.35); border-radius: 999px; padding: 8px 20px; }
.dv-title { margin: 26px 0 16px; font: 600 clamp(40px, 6vw, 64px)/1.05 var(--serif); }
.dv-sub { color: var(--muted); font-size: 16.5px; max-width: 600px; margin: 0 auto; }
.dv-sub b { color: var(--ink); font-family: var(--mono); font-size: 14.5px; }
.dv-meter { margin: 34px auto 0; max-width: 340px; }
.dvm-track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dvm-track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 1.2s var(--ease) 0.3s; }
.dv-meter.in .dvm-track i { width: var(--w, 16.6%); }
.dvm-label { display: block; margin-top: 10px; font-size: 11.5px; color: var(--faint); letter-spacing: 0.08em; }

/* ── 12 Moves ──────────────────────────────────────────────────────────────── */
.w40-plan .sec-in { display: grid; gap: 18px; max-width: 880px; }
.move { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; }
.move.is-open { border-color: rgba(61, 214, 140, 0.3); }
.mv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 22px 26px; }
.mv-n { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mv-title { font: 600 clamp(19px, 2.4vw, 24px)/1.25 var(--serif); flex: 1 1 100%; order: 3; }
.mv-pills { display: flex; gap: 7px; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; padding: 4px 11px; }
.pill svg { width: 11px; height: 11px; }
.pill-crit { color: var(--crit); background: var(--crit-dim); }
.pill-high { color: var(--warn); background: var(--warn-dim); }
.pill-fast { color: var(--ok); background: var(--ok-dim); }
.pill-free { color: #14100a; background: var(--gold); }
.pill-lock { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.mv-body, .mv-teaser { padding: 0 26px 26px; }
.mv-why { font-size: 15px; color: var(--muted); max-width: 700px; }
.mv-why b { color: var(--ink); }
.mv-eta { margin-top: 18px; font-size: 12px; color: var(--faint); }

.mv-deliv { margin-top: 22px; background: var(--bg-2); border: 1px solid rgba(227, 179, 79, 0.25); border-radius: var(--rad-s); padding: 22px; }
.dl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dl-flag { font: 700 10px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #14100a; background: var(--gold); border-radius: 999px; padding: 4px 11px; }
.dl-title { font-weight: 600; font-size: 15px; }
.dl-tabs { display: inline-flex; gap: 4px; background: rgba(255, 255, 255, 0.04); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.dlt { border: 0; cursor: pointer; border-radius: 999px; padding: 7px 16px; font: 600 12.5px var(--sans); color: var(--muted); background: transparent; transition: all 0.25s; }
.dlt.is-on { background: var(--ink); color: #14100a; }
.dl-subject { font-size: 12.5px; color: var(--gold-2); margin-bottom: 10px; }
.dl-copytext { white-space: pre-wrap; font: 400 13px/1.7 var(--mono); color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-height: 220px; overflow: auto; }
.dl-copy { margin-top: 12px; cursor: pointer; border: 1px solid rgba(227, 179, 79, 0.5); background: transparent; color: var(--gold-2); border-radius: 999px; padding: 8px 18px; font: 600 12.5px var(--sans); transition: all 0.25s; }
.dl-copy:hover { background: var(--gold-dim); }
.dl-copy.is-done { border-color: var(--ok); color: var(--ok); }

/* Todo el teaser bloqueado es superficie de compra: click → paywall. */
.move.is-locked .mv-teaser { position: relative; cursor: pointer; }
.move.is-locked .mv-teaser:hover .mv-skeleton i { animation-duration: 1.1s; }
.move.is-locked .mv-teaser:hover .mv-unlockbtn { background: var(--gold); color: #14100a; transform: translateY(-1px); }
.mv-skeleton { margin: 18px 0; display: grid; gap: 9px; }
.mv-skeleton i { display: block; height: 13px; border-radius: 6px; width: var(--w, 70%); background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mv-unlockbtn { cursor: pointer; border: 1px solid rgba(227, 179, 79, 0.5); background: var(--gold-dim); color: var(--gold-2); border-radius: 999px; padding: 10px 22px; font: 600 13px var(--sans); transition: all 0.25s var(--ease); }
.mv-unlockbtn:hover { background: var(--gold); color: #14100a; transform: translateY(-1px); }

/* ── 13 CTA ────────────────────────────────────────────────────────────────── */
.w40-cta { position: relative; padding: clamp(90px, 13vh, 150px) clamp(18px, 5vw, 48px); text-align: center; z-index: 1; }
.w40-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 340px at 50% 20%, rgba(227, 179, 79, 0.09), transparent 70%); pointer-events: none; }
.cta-in { position: relative; max-width: 1080px; margin: 0 auto; } /* 17/ago: mismo ancho que .sec-in (antes 680px: el bloque de cierre quedaba más angosto que el resto) */
.cta-title { font: 600 clamp(30px, 4.6vw, 48px)/1.15 var(--serif); margin-bottom: 36px; }
.stack { list-style: none; text-align: left; display: grid; gap: 10px; margin: 0 auto 40px; max-width: 760px; }
.stack li { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad-s); padding: 15px 20px; font-size: 14.5px; color: var(--muted); }
.stack li b { color: var(--ink); font-weight: 600; }
.stack li svg { flex: none; width: 17px; height: 17px; color: var(--muted); }
.stack li.is-un { border-color: rgba(61, 214, 140, 0.3); }
.stack li.is-un svg { color: var(--ok); }
.stk-tag { margin-left: auto; font: 600 10.5px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); }
.cta-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-main {
  cursor: pointer; border: 0; border-radius: 16px;
  padding: 20px 54px; font: 700 18px var(--sans); color: #14100a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 40px rgba(227, 179, 79, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.cta-main:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 18px 60px rgba(227, 179, 79, 0.45); }
.cta-under { font-size: 13px; color: var(--muted); }
.cta-decay { margin-top: 34px; font-size: 12.5px; color: var(--faint); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.w40-foot { padding: 60px clamp(18px, 5vw, 48px) 120px; border-top: 1px solid var(--line); text-align: center; }
.ft-method { max-width: 640px; margin: 0 auto 20px; font-size: 12.5px; color: var(--faint); line-height: 1.7; }
.ft-brand { font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }

/* ── Sticky CTA ────────────────────────────────────────────────────────────── */
/* Sticky de compra — 17/ago: barra full-width abajo (patrón del teaser),
   sustituye a la píldora flotante. [texto + garantía] ······ [precio] [botón] */
.w40-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(18, 22, 31, 0.96); color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 12px clamp(12px, 3vw, 24px) calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.4s var(--ease);
  border-top: 1px solid var(--line-2);
}
.w40-sticky[hidden] { display: block; visibility: hidden; }
.w40-sticky.is-on { transform: none; }
.w40-sticky.is-on[hidden] { visibility: visible; }
.w40-sticky .sk-in { display: flex; align-items: center; gap: 18px; max-width: 1080px; margin: 0 auto; }
.w40-sticky .sk-copy { min-width: 0; margin-right: auto; display: grid; gap: 2px; }
.sk-text { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-text b { color: var(--ink); }
.w40-sticky .sk-grt { text-align: left; font: 600 10.5px var(--sans); color: var(--faint); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w40-sticky .sk-grt .sk-cd { display: inline; margin: 0; font-size: inherit; color: #fca5a5; }
/* Garantía bajo cada CTA de move (zona clara) — misma promesa que el pop y reembolsos.php */
.w40-grt { margin: 8px 0 0; font: 500 11px var(--sans); color: var(--l-faint, #97907e); letter-spacing: 0.01em; }
.sk-btn { flex: none; cursor: pointer; border: 0; border-radius: 12px; padding: 12px 20px; font: 800 14px var(--sans); color: #14100a; background: linear-gradient(135deg, var(--gold), var(--gold-2)); transition: transform 0.15s ease; white-space: nowrap; }
.sk-btn:hover { transform: translateY(-1px); }

/* ══ ZONA CLARA — Part Two "da vuelta la página": diagnóstico oscuro,
      plan de acción sobre papel. Tokens invertidos, oro se oscurece. ══ */
.is-light {
  --l-bg: #f3efe6;
  --l-panel: #fffdf8;
  --l-line: rgba(24, 19, 12, 0.09);
  --l-line-2: rgba(24, 19, 12, 0.16);
  --l-ink: #1a1510;
  --l-muted: #5d5748;
  --l-faint: #97907e;
  --l-gold: #8a6a14;
  --l-ok: #157a4d;
  --l-warn: #a36207;
  --l-crit: #b02a41;
  background: var(--l-bg);
  color: var(--l-ink);
}
.w40-divider.is-light { background: linear-gradient(180deg, #f7f4ec, #f0ebdf); border-top: 1px solid rgba(227, 179, 79, 0.5); border-bottom-color: var(--l-line); }
.is-light .dv-part { color: var(--l-gold); border-color: rgba(138, 106, 20, 0.4); }
.is-light .dv-title { color: var(--l-ink); }
.is-light .dv-sub { color: var(--l-muted); }
.is-light .dv-sub b { color: var(--l-ink); }
.is-light .dvm-track { background: rgba(24, 19, 12, 0.1); }
.is-light .dvm-label { color: var(--l-faint); }
.w40-section.is-light::before { background: linear-gradient(90deg, transparent, rgba(138, 106, 20, 0.4), var(--l-line-2), transparent); }

.is-light .move { background: var(--l-panel); border-color: var(--l-line); box-shadow: 0 10px 30px rgba(24, 19, 12, 0.05); }
.is-light .move.is-open { border-color: rgba(21, 122, 77, 0.4); }
.is-light .mv-n { color: var(--l-gold); }
.is-light .mv-title { color: var(--l-ink); }
.is-light .mv-why { color: var(--l-muted); }
.is-light .mv-why b { color: var(--l-ink); }
.is-light .mv-eta { color: var(--l-faint); }
.is-light .pill-crit { color: var(--l-crit); background: rgba(176, 42, 65, 0.1); }
.is-light .pill-high { color: var(--l-warn); background: rgba(163, 98, 7, 0.1); }
.is-light .pill-fast { color: var(--l-ok); background: rgba(21, 122, 77, 0.1); }
.is-light .pill-lock { color: var(--l-muted); background: rgba(24, 19, 12, 0.07); }
.is-light .mv-deliv { background: #faf6ea; border-color: rgba(138, 106, 20, 0.3); }
.is-light .dl-title { color: var(--l-ink); }
.is-light .dl-tabs { background: rgba(24, 19, 12, 0.06); }
.is-light .dlt { color: var(--l-muted); }
.is-light .dlt.is-on { background: var(--l-ink); color: #fdfbf5; }
.is-light .dl-subject { color: var(--l-gold); }
.is-light .dl-copytext { background: rgba(24, 19, 12, 0.035); border-color: var(--l-line); color: #454034; }
.is-light .dl-copy { border-color: rgba(138, 106, 20, 0.5); color: var(--l-gold); }
.is-light .dl-copy:hover { background: rgba(138, 106, 20, 0.09); }
.is-light .dl-copy.is-done { border-color: var(--l-ok); color: var(--l-ok); }
.is-light .mv-skeleton i { background: linear-gradient(90deg, rgba(24,19,12,0.07) 25%, rgba(24,19,12,0.14) 50%, rgba(24,19,12,0.07) 75%); background-size: 200% 100%; }
.is-light .mv-unlockbtn { border-color: rgba(138, 106, 20, 0.55); background: rgba(138, 106, 20, 0.08); color: var(--l-gold); }
.is-light .mv-unlockbtn:hover { background: var(--gold); color: #14100a; }

.w40-cta.is-light::before { background: radial-gradient(700px 340px at 50% 20%, rgba(227, 179, 79, 0.18), transparent 70%); }
.is-light .cta-title { color: var(--l-ink); }
.is-light .stack li { background: var(--l-panel); border-color: var(--l-line); color: var(--l-muted); box-shadow: 0 6px 18px rgba(24, 19, 12, 0.04); }
.is-light .stack li b { color: var(--l-ink); }
.is-light .stack li svg { color: var(--l-faint); }
.is-light .stack li.is-un { border-color: rgba(21, 122, 77, 0.45); }
.is-light .stack li.is-un svg { color: var(--l-ok); }
.is-light .stk-tag { color: var(--l-ok); }
.is-light .cta-under { color: var(--l-muted); }
.is-light .cta-decay { color: var(--l-faint); }

.w40-foot.is-light { border-top-color: var(--l-line); }
.is-light .ft-method, .is-light .ft-brand { color: var(--l-faint); }

/* ── Micro-feedback de cifras ─────────────────────────────────────────────── */
.count { display: inline-block; font-variant-numeric: tabular-nums; }
.count.done { animation: numpop 0.5s var(--ease); }
@keyframes numpop { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* ── Riel de orientación (capítulos) ──────────────────────────────────────── */
/* Fijo a la derecha. Se dibuja al pasar el hero. Capítulos visitados =
   clickeables (volver atrás); futuros = atenuados, sin salto (la evidencia
   se lee en orden). El JS lo construye desde [data-chapter]. */
.w40-rail {
  position: fixed; right: clamp(14px, 2.2vw, 30px); top: 50%;
  height: min(52vh, 540px); z-index: 52;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  transform: translateY(-50%) translateX(26px); opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.w40-rail.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.rail-track { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(233, 237, 245, 0.1); border-radius: 2px; transform-origin: top; transform: scaleY(0); transition: transform 1s var(--ease) 0.15s; }
.w40-rail.is-on .rail-track { transform: scaleY(1); }
.rail-fill { position: absolute; top: 0; left: 50%; width: 2px; margin-left: -1px; height: 0; border-radius: 2px; background: linear-gradient(180deg, var(--gold), var(--gold-2)); box-shadow: 0 0 10px rgba(227, 179, 79, 0.5); transition: height 0.45s var(--ease); }
.rail-dot {
  position: relative; width: 20px; height: 20px; padding: 0; border: 0; cursor: pointer;
  background: transparent; display: grid; place-items: center;
  opacity: 0; animation: none;
}
.w40-rail.is-on .rail-dot { animation: dotin 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 0.2s); }
@keyframes dotin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.rail-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(233, 237, 245, 0.22); transition: all 0.3s var(--ease); }
.rail-dot.is-visited { cursor: pointer; }
.rail-dot.is-visited::before { border-color: var(--gold); background: rgba(227, 179, 79, 0.25); }
.rail-dot:not(.is-visited) { cursor: default; }
.rail-dot:not(.is-visited)::before { opacity: 0.45; }
.rail-dot.is-current::before { width: 9px; height: 9px; background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 0 5px rgba(227, 179, 79, 0.15), 0 0 14px rgba(227, 179, 79, 0.55); }
.rail-label {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%) translateX(8px);
  font: 600 10px var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; opacity: 0; pointer-events: none;
  background: rgba(10, 12, 17, 0.85); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; backdrop-filter: blur(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.rail-dot.is-current .rail-label, .rail-dot.is-visited:hover .rail-label { opacity: 1; transform: translateY(-50%); }
.rail-dot.is-current .rail-label { color: var(--gold-2); border-color: rgba(227, 179, 79, 0.4); }
.rail-dot.shake { animation: railshake 0.45s var(--ease); }
@keyframes railshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 55% { transform: translateX(3px); } 80% { transform: translateX(-2px); } }
/* Tema papel (Part Two) */
.w40-rail.on-light .rail-track { background: rgba(24, 19, 12, 0.14); }
.w40-rail.on-light .rail-dot::before { background: #f3efe6; border-color: rgba(24, 19, 12, 0.28); }
.w40-rail.on-light .rail-dot.is-visited::before { border-color: #8a6a14; background: rgba(138, 106, 20, 0.22); }
.w40-rail.on-light .rail-dot.is-current::before { background: #8a6a14; border-color: #a3831f; box-shadow: 0 0 0 5px rgba(138, 106, 20, 0.14); }
.w40-rail.on-light .rail-fill { background: linear-gradient(180deg, #8a6a14, #b8912c); box-shadow: none; }
.w40-rail.on-light .rail-label { color: #5d5748; background: rgba(255, 253, 248, 0.9); border-color: rgba(24, 19, 12, 0.12); }
.w40-rail.on-light .rail-dot.is-current .rail-label { color: #8a6a14; border-color: rgba(138, 106, 20, 0.35); }
@media (max-width: 1080px) { .w40-rail { display: none; } }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .score-bento { grid-template-columns: 1fr 1fr; grid-template-areas: "gauge gauge" "a b" "c d"; }
  .diag-grid { grid-template-columns: repeat(2, 1fr); }
  .situ-grid, .brand-grid, .home-grid, .nearwin { grid-template-columns: 1fr; }
  .home-shot { position: static; }
  .mkt-bento { grid-template-columns: 1fr 1fr; }
  .mkt-card:first-child { grid-column: 1 / -1; }
  .ai-bento { grid-template-columns: 1fr; }
  .ai-sources { grid-column: auto; }
}
@media (max-width: 640px) {
  .w40-topbar { gap: 10px; padding: 12px 16px; }
  .tb-chapter, .tb-domain { display: none; }
  .score-bento { grid-template-columns: 1fr; grid-template-areas: "gauge" "a" "b" "c" "d"; }
  .diag-grid, .tech-list { grid-template-columns: 1fr; }
  .gap-row { grid-template-columns: 1fr; gap: 8px; }
  .pk-row { grid-template-columns: 24px 1fr 60px 56px; }
  .pk-track { display: none; }
  .mkt-bento { grid-template-columns: 1fr; }
  .w40-sticky .sk-copy { display: none; }
  .w40-sticky .sk-in { justify-content: space-between; gap: 12px; flex-wrap: wrap; row-gap: 4px; }
  .w40-sticky .sk-btn { flex: 1; text-align: center; }
  /* La línea de pago único deja de vivir en la columna del precio (aplastaba
     el botón en locales largos) y pasa a fila completa bajo [precio | botón]. */
  .w40-sticky .sk-price.has-alt { display: contents; }
  .w40-sticky .sk-in .sk-alt { order: 9; flex-basis: 100%; text-align: left; }
  .w40-foot { padding-bottom: 110px; }
  .hv-sub { font-size: 15px; }
  .kw-q { font-size: 14px; }
}

/* ══ WOODY 4.0 — producción: piezas que el sandbox no tenía ══ */

/* Badge "informe completo" del topbar (pagado) */
.tb-paid { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--sans); color: var(--ok); background: var(--ok-dim); border-radius: 999px; padding: 8px 16px; }
.tb-paid svg { width: 13px; height: 13px; }

/* CTA de compra: los <a> heredan estilos de botón */
a.tb-cta, a.cta-main, a.sk-btn, a.mv-unlockbtn { text-decoration: none; display: inline-block; text-align: center; }
a.cta-main { padding: 20px clamp(22px, 6vw, 54px); white-space: nowrap; font-size: clamp(15px, 4.4vw, 18px); }

/* Precio en el bloque CTA */
.cta-price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 18px; }
.cta-price .yg-cta-now { font: 700 34px var(--mono); color: var(--l-ink); }
.cta-price .yg-cta-was { font: 500 18px var(--mono); color: var(--l-faint); }
.cta-price .yg-cta-off { font: 700 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #14100a; background: var(--gold); border-radius: 999px; padding: 4px 10px; }

/* Precio en el sticky */
.sk-price { flex: none; display: flex; align-items: baseline; gap: 8px; }
.sk-price .yg-cta-now { font: 800 19px var(--mono); color: var(--gold-2); }
.sk-price .yg-cta-off { display: none; }
.sk-price .yg-cta-was { font: 500 12px var(--mono); color: var(--muted); margin-right: 6px; }
/* Ancla de pago único bajo el precio de la sub (20/ago/2026).
   Sin nowrap y con min-width:0: en desktop cabe en una línea; en mobile
   la columna se encoge y el texto envuelve en vez de meterse bajo el botón. */
.sk-price.has-alt { flex: 0 1 auto; min-width: 0; flex-direction: column; align-items: flex-end; gap: 2px; }
.sk-price .sk-main { display: flex; align-items: baseline; gap: 8px; }
.w40-sticky .sk-alt { font: 600 10px var(--sans); color: var(--faint); text-align: right; line-height: 1.35; }
.w40-sticky .sk-alt b { color: var(--muted); white-space: nowrap; }
.w40-sticky .sk-alt .yg-cta-now { font: 800 10px var(--mono); color: var(--muted); }
.w40-sticky .sk-alt .yg-cta-was, .w40-sticky .sk-alt .yg-cta-off { display: none; }

/* Entregables abiertos (informe pagado) */
.dl-code { max-height: 320px; }
.dl-code .cm { color: var(--l-warn, #a36207); font-weight: 700; }
.is-light .dl-code .cm { color: #a36207; }
.dl-gaps { margin-top: 10px; font-size: 12.5px; color: var(--l-faint, #97907e); }
.dl-gaps b { color: inherit; }
.dl-article h4 { font: 600 18px/1.35 var(--serif); margin-bottom: 10px; color: var(--l-ink, #1a1510); }
.dl-article p { font-size: 14px; line-height: 1.7; color: var(--l-muted, #5d5748); margin-bottom: 10px; }
.cal-table { display: grid; gap: 8px; }
.cal-row { display: grid; grid-template-columns: 70px 1fr 1.4fr; gap: 14px; align-items: baseline; padding: 11px 14px; background: rgba(24, 19, 12, 0.035); border-radius: 10px; font-size: 13.5px; }
.cal-day { color: #8a6a14; font-weight: 700; font-size: 12px; }
.cal-kw { color: #1a1510; }
.cal-kw i { font-style: normal; color: #97907e; font-size: 11.5px; margin-left: 4px; }
.cal-title { color: #5d5748; }
.now-list { list-style: none; display: grid; gap: 8px; }
.now-list li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; font-size: 13.5px; color: #5d5748; padding: 9px 12px; background: rgba(24, 19, 12, 0.035); border-radius: 9px; }
.now-k { font-size: 11px; color: #8a6a14; font-weight: 700; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 14px 16px; background: rgba(24, 19, 12, 0.035); border-radius: 10px; }
.faq-q { font-weight: 600; font-size: 14.5px; color: #1a1510; margin-bottom: 6px; }
.faq-a { font-size: 13.5px; line-height: 1.65; color: #5d5748; }
.qf-list { list-style: none; display: grid; gap: 10px; }
.qf-list li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.6; color: #5d5748; }
.qf-list li b { color: #1a1510; }
.qf-list svg { width: 16px; height: 16px; color: #157a4d; margin-top: 3px; }

/* Sprint 30 días */
.ai30-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.ai30-step { background: rgba(24, 19, 12, 0.035); border-radius: 12px; padding: 16px 18px; }
.ai30-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.ai30-num { font: 700 13px var(--mono); color: #8a6a14; }
.ai30-days { display: block; font: 600 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #97907e; }
.ai30-head h4 { font: 600 15px/1.3 var(--sans); color: #1a1510; }
.ai30-tasks { list-style: none; display: grid; gap: 7px; }
.ai30-tasks li { font-size: 13px; line-height: 1.55; color: #5d5748; padding-left: 14px; position: relative; }
.ai30-tasks li::before { content: "·"; position: absolute; left: 2px; color: #8a6a14; font-weight: 700; }

/* Footer links */
.ft-links { margin-top: 12px; font-size: 12px; }
.ft-links a { color: var(--l-muted, #5d5748); text-decoration: none; border-bottom: 1px solid rgba(24, 19, 12, 0.2); }
.ft-links a:hover { color: var(--l-ink, #1a1510); }

/* Sticky demo de informe.php (familia woody) re-estilado para w40 */
body.w40 .wsticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; background: rgba(18, 22, 31, 0.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); }
body.w40 .wsticky-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 11px 18px; }
body.w40 .wsticky-text { font: 500 13px var(--sans); color: var(--muted); }
body.w40 .wdemo-tag { font: 700 10px var(--mono); letter-spacing: 0.14em; color: var(--gold); border: 1px solid rgba(227, 179, 79, 0.4); border-radius: 999px; padding: 2px 9px; margin-right: 8px; }
body.w40 .wsticky-cta { font: 700 13px var(--sans); color: #14100a; background: linear-gradient(135deg, var(--gold), var(--gold-2)); border-radius: 999px; padding: 9px 18px; text-decoration: none; }

/* Pastilla de operador: no la tape el topbar propio */
body.w40 .op-pill { top: 60px; }

/* ═══════════════════════════════════════════════════════════════════════
   CTA-BOX rediseñado + reseñas Trustpilot (17/ago/2026) — sección 13
   (is-light). Misma jerarquía que el teaser: kicker → título de decisión →
   OFERTA (tarjeta interior dorada: plan + precio/mes + riesgo) → urgencia →
   CTA → ancla del pago único → puntos → Paddle. Reseñas DEBAJO.
   ═══════════════════════════════════════════════════════════════════════ */
.w40-cta .cta-box {
  display: block; text-align: center; gap: 0;
  background: #fff; border: 1px solid var(--l-line-2); border-radius: 22px;
  padding: clamp(26px, 3.6vw, 44px) clamp(20px, 3.4vw, 44px);
  box-shadow: 0 28px 70px -34px rgba(24, 19, 12, .35);
  margin: 0 auto;
}
.w40-cta .cb-kicker { margin: 0 0 8px; font: 800 10.5px var(--mono); letter-spacing: .16em; color: #9a7422; }
.w40-cta .cb-title { margin: 0 0 18px; font: 600 clamp(20px, 2.4vw, 26px)/1.2 var(--serif, Georgia, serif); color: var(--l-ink); letter-spacing: -.01em; }
.w40-cta .cb-title b { border-bottom: 3px solid var(--gold); font-weight: 600; }
.w40-cta .cb-offer {
  position: relative; border: 2px solid var(--gold); border-radius: 16px;
  background: linear-gradient(180deg, rgba(227,179,79,.12), rgba(227,179,79,0) 60%), #fff;
  padding: 20px clamp(16px, 3vw, 28px) 18px;
  max-width: 640px; width: 100%; margin: 0 auto 18px;
}
.w40-cta .cb-plan { margin: 0 0 6px; font: 800 13px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--l-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.w40-cta .cb-plan-tag { font-size: 10px; letter-spacing: .08em; background: var(--gold); color: #14100a; border-radius: 999px; padding: 3px 8px; }
.w40-cta .cta-price { margin: 0 0 6px; flex-wrap: wrap; gap: 10px; }
.w40-cta .cta-price .yg-cta-now { font: 700 clamp(34px, 4.6vw, 46px)/1 var(--mono); letter-spacing: -.02em; }
.w40-cta .cta-price .yg-cta-per { font: 700 15px var(--sans); color: var(--l-muted); margin-left: -6px; }
.w40-cta .cb-risk { margin: 4px 0 0; font: 600 13px var(--sans); color: #1f7a4a; }
.w40-cta .w40-cd { margin: 10px 0 0; }
.w40-cta .cta-main { display: block; margin: 16px auto 0; max-width: 460px; }
.w40-cta .cb-alt { margin: 12px 0 0; font-size: 12.5px; color: var(--l-faint); }
.w40-cta .cb-alt b { color: var(--l-muted); font-weight: 700; }
.w40-cta .cb-alt .yg-cta-was, .w40-cta .cb-alt .yg-cta-off { display: none; }
.w40-cta .cb-alt .yg-cta-now { font: 700 12.5px var(--sans); color: var(--l-muted); }
.w40-cta .cb-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; max-width: 560px; margin-left: auto; margin-right: auto; }
.w40-cta .cb-points li { font-size: 13.5px; color: var(--l-muted); padding-left: 20px; position: relative; line-height: 1.45; }
.w40-cta .cb-points li::before { content: '✓'; position: absolute; left: 0; color: #1f7a4a; font-weight: 800; }
.w40-cta .cb-points b { color: var(--l-ink); }
.w40-cta .cta-trust { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--l-line-2); font-size: 10.5px; letter-spacing: .04em; color: var(--l-faint); }
/* Sticky: sufijo /mes junto al precio de la sub */
.sk-price .yg-cta-per { font: 700 11px var(--sans); color: var(--muted); margin-left: 2px; }
/* Reseñas */
.w40-reviews { margin: 26px auto 0; text-align: left; }
.w40-reviews .rvw-head { margin: 0 0 12px; font: 700 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--l-faint); }
.w40-reviews .rvw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.w40-reviews .rvw-card { margin: 0; background: #fff; border: 1px solid var(--l-line-2); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.w40-reviews .rvw-stars { margin: 0; display: flex; align-items: center; gap: 10px; color: #00b67a; font-size: 16px; letter-spacing: .12em; }
.w40-reviews .rvw-verified { display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px var(--sans); letter-spacing: .06em; color: #1f7a4a; text-transform: uppercase; }
.w40-reviews .rvw-verified svg { width: 12px; height: 12px; }
.w40-reviews .rvw-quote { margin: 0; font-size: 14px; line-height: 1.55; color: var(--l-muted); }
.w40-reviews .rvw-quote b { display: block; margin-bottom: 4px; color: var(--l-ink); }
.w40-reviews .rvw-who { margin-top: auto; font: 600 12.5px var(--sans); color: var(--l-faint); }
.w40-reviews .rvw-note { font-weight: 400; font-style: italic; }
.w40-reviews .rvw-link { margin: 10px 0 0; font-size: 12.5px; }
.w40-reviews .rvw-link a { color: var(--l-faint); text-decoration: underline; text-underline-offset: 3px; }
.w40-reviews .rvw-link a:hover { color: var(--l-ink); }
@media (max-width: 720px) {
  .w40-cta .cta-box { padding: 22px 16px; }
  .w40-cta .cb-offer { padding: 16px 12px 14px; }
  .w40-reviews .rvw-grid { grid-template-columns: 1fr; }
}

/* ══ Seguimiento · Historial (fase 2 suscripción, 18/ago/2026) ══ */
.w40-history { padding-top: clamp(24px, 4vh, 44px); padding-bottom: clamp(24px, 4vh, 44px); }
.w40-history::before { display: none; }
.hst-acc { border: 1px solid var(--line); border-radius: var(--rad); background: rgba(255, 255, 255, 0.015); }
.hst-summary { list-style: none; cursor: pointer; padding: 26px 26px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; user-select: none; }
.hst-summary::-webkit-details-marker { display: none; }
.hst-summary .sec-head { margin: 0; flex: 1; min-width: 0; }
.hst-summary .sec-head .sec-sub { margin-bottom: 0; }
.hst-toggle { flex: none; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font: 600 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.hst-toggle i { width: 8px; height: 8px; border-right: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold); transform: rotate(45deg); transition: transform 0.3s var(--ease); margin-top: -3px; }
.hst-acc[open] .hst-toggle i { transform: rotate(-135deg); margin-top: 3px; }
.hst-toggle-close { display: none; }
.hst-acc[open] .hst-toggle-open { display: none; }
.hst-acc[open] .hst-toggle-close { display: inline; }
.hst-body { padding: 0 26px 26px; }
.hst-acc[open] .hst-summary { padding-bottom: 18px; }
.w40-history .hst-delta { margin: 0 0 22px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--rad-s); background: rgba(255, 255, 255, 0.025); }
.hst-delta-head { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.hst-nochange { margin: 0; font-size: 14px; color: var(--muted); }
.hst-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hst-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; background: var(--panel); }
.hst-chip b { font-size: 11px; }
.hst-chip.is-good { border-color: rgba(61, 214, 140, 0.45); color: var(--ok); }
.hst-chip.is-bad { border-color: rgba(242, 109, 126, 0.45); color: var(--crit); }
.hst-chip.is-flat { color: var(--muted); }
.hst-chip-l { color: var(--ink); }
.hst-chip.is-good .hst-chip-l, .hst-chip.is-bad .hst-chip-l { color: var(--ink); }
.hst-chip-v { opacity: 0.9; }
.hst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hst-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--rad); padding: 22px 22px 18px; min-width: 0; }
.hst-card-wide { grid-column: 1 / -1; }
.hst-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hst-sub { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.hst-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--muted); }
.hst-legend .lg { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.hst-legend .lg-a { background: var(--gold); }
.hst-legend .lg-b { background: var(--muted); height: 0; border-top: 2px dashed var(--muted); }
.hst-legend .lg-band { background: var(--gold-dim); height: 10px; }
.hst-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hst-svg .hst-gl { stroke: var(--line); stroke-width: 1; }
.hst-svg .hst-ylab, .hst-svg .hst-xlab, .hst-svg .hst-null, .hst-svg .hst-barlab, .hst-svg .hst-last { font: 500 11px var(--mono); fill: var(--faint); }
.hst-svg .hst-null { fill: var(--muted); }
.hst-svg .hst-barlab { fill: var(--ink); font-weight: 600; }
.hst-svg .hst-last { fill: var(--ink); font-weight: 700; font-size: 12px; }
.hst-svg .hst-band { fill: var(--gold-dim); }
.hst-svg .hst-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.hst-svg .hst-line.is-dash { stroke-dasharray: 5 5; stroke-width: 1.8; }
.hst-svg .hst-line-a { stroke: var(--gold); }
.hst-svg .hst-line-b { stroke: var(--muted); }
.hst-svg .hst-line-c { stroke: #7fb3ff; }
.hst-svg .hst-line-d { stroke: var(--warn); }
.hst-svg .hst-dot { stroke: var(--panel); stroke-width: 2.4; }
.hst-svg .hst-dot-a { fill: var(--gold); }
.hst-svg .hst-dot-b { fill: var(--muted); }
.hst-svg .hst-dot-c { fill: #7fb3ff; }
.hst-svg .hst-dot-d { fill: var(--warn); }
.hst-svg .hst-halo { fill: none; stroke-width: 1.2; opacity: 0.55; }
.hst-svg .hst-halo-a { stroke: var(--gold); }
.hst-svg .hst-halo-b { stroke: var(--muted); }
.hst-svg .hst-halo-c { stroke: #7fb3ff; }
.hst-svg .hst-halo-d { stroke: var(--warn); }
.hst-svg .hst-dot-null { fill: var(--panel); stroke: var(--faint); stroke-width: 1.6; stroke-dasharray: 3 2; }
.hst-svg .hst-val { font: 600 11px var(--mono); fill: var(--muted); }
.hst-svg .hst-barlab.is-zero { fill: var(--faint); }
.hst-svg .hst-bar-track { fill: rgba(255, 255, 255, 0.05); }
.hst-svg .hst-bar-a { fill: var(--gold); }
.hst-svg .hst-bar-c { fill: #7fb3ff; }
.hst-svg .hst-bar-na { fill: var(--faint); }
.hst-bars2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hst-bars2 .hst-sub { display: block; }
.hst-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.hst-list li { padding: 4px 0; }
.hst-list li.is-good b { color: var(--ok); }
.hst-list li.is-bad b { color: var(--crit); }
.hst-foot { margin-top: 18px; }
.hst-next { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 720px) {
  .hst-grid { grid-template-columns: 1fr; }
  .hst-bars2 { grid-template-columns: 1fr; }
  .hst-card { padding: 18px 16px 14px; }
  .hst-summary { flex-direction: column; padding: 20px 16px 16px; }
  .hst-body { padding: 0 16px 18px; }
}
@media print { .hst-acc { border: none; } .hst-toggle { display: none; } }
@media print {
  .hst-card, .w40-history .hst-delta { break-inside: avoid; }
}

/* ══ Botón Imprimir / PDF (solo informe pago) ══ */
.tb-print { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: color 0.25s, border-color 0.25s; }
.tb-print:hover { color: var(--ink); border-color: var(--gold); }
.tb-print svg { width: 14px; height: 14px; }
.tb-print + .tb-paid { margin-left: 10px; }
@media (max-width: 720px) { .tb-print span { display: none; } .tb-print { padding: 7px 10px; } }

/* ══ IMPRESIÓN / GUARDAR COMO PDF ═══════════════════════════════════════════
   El informe es el producto: tiene que salir legible en papel y en PDF.
   Sin esto, imprimir daba páginas en blanco (todo nace en opacity:0 y se
   revela al scrollear) y texto casi blanco sobre papel blanco. El JS
   (finalizeAll) completa cifras/barras/gauge antes de imprimir. */
@media print {
  @page { margin: 14mm 12mm; }
  html, body.w40, body.w40 .w40-doc {
    background: #fff !important; color: #14171d !important;
    overflow: visible !important; height: auto !important;
  }
  /* Revelar TODO: en pantalla se revela al scrollear; en papel no hay scroll. */
  .rv, .rv.in, .sec-head, .sec-head .sec-title, .sec-head .sec-sub, .w40-section, .hst-card {
    opacity: 1 !important; transform: none !important; filter: none !important;
    clip-path: none !important; transition: none !important; animation: none !important;
  }
  /* Fuera todo lo que no es el informe. */
  .w40-topbar, .w40-progress, .w40-sticky, .tb-print, .cue, .cue-beam, .cue-chevron, .cue-label,
  .w40-rail, .w40-toast, .ppw-overlay, .w40-cta, #s-cta, #s-close, .share-trigger, .sh-modal,
  .hst-toggle, .w40-nav, .floating-cta, .w40-share { display: none !important; }
  /* Paleta de papel: el diseño es oscuro; en papel se invierte a legible. */
  .w40-section, .w40-hero, .sec-in, .hst-acc { background: #fff !important; }
  .sb-gauge, .sb-card, .hst-card, .hst-delta, .aic, .qa-item, .mv, .dv-meter, .pack-board, .kw-list,
  .gap-chart, .t3, .exh, .w40-card, .mc, .rvw, .jsonld-box {
    background: #fff !important; border-color: #d8dbe2 !important; box-shadow: none !important;
  }
  h1, h2, h3, h4, .sec-title, .g-num, .mc-num, .hst-last, b, strong { color: #0d1016 !important; }
  p, li, td, th, .mc-text, .sec-sub, .hst-sub, .mono, .qa-q, .qa-ans { color: #2b303a !important; }
  .sec-kicker, .mc-label, .hst-xlab, .hst-ylab, .hst-null, .hst-val, .g-max, .g-label { color: #5a616e !important; }
  a { color: #0d1016 !important; text-decoration: none !important; }
  /* Trazos de gráficos: se fuerzan a imprimirse (si no, el navegador los omite). */
  svg, .gauge, .hst-svg, .mc-bar, .fill, .pk-fill, .gap-fill, .dvm-track {
    -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;
  }
  .g-track, .hst-gl, .hst-bar-track { stroke: #d8dbe2 !important; }
  .hst-bar-track { fill: #eef0f4 !important; }
  /* Nada de cortar tarjetas ni tablas a la mitad. */
  .w40-section { break-inside: auto; page-break-inside: auto; padding: 18px 0 !important; }
  .sb-card, .sb-gauge, .hst-card, .aic, .mv, .t3, .qa-item, .rvw, table { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .w40-section + .w40-section { border-top: 1px solid #e4e7ec; }
}
