/* ============================================================
   SONIKIA — Landing
   Brand fonts: Decima Pro (display+body). Inter fallback.
   When DecimaPro arrives, drop @font-face below & it swaps in.
   ============================================================ */

/* --- Brand fonts: Decima Pro --- */
@font-face {
  font-family: "Decima Pro";
  src: url("fonts/DecimaPro.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Decima Pro";
  src: url("fonts/DecimaProBold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Brand palette (exact) */
  --navy:    #272C57;
  --navy-2:  #21264b;   /* slightly deeper for panels */
  --navy-3:  #1b1f3e;   /* deepest, hero vignette */
  --cream:   #F8F5EE;
  --amber:   #F1D432;
  --orange:  #D14E2F;
  --magenta: #B42E77;
  --green:   #3DC27A;
  --red:     #E24B4A;
  --blue:    #5B9BD5;   /* RELEVANTE badge (from app) */

  /* Official brand gradient — horizontal magenta→orange→amber, as used on
     every primary button inside the app. */
  --grad-brand: linear-gradient(90deg, var(--magenta) 0%, var(--orange) 52%, var(--amber) 100%);
  --grad-brand-diag: linear-gradient(135deg, var(--amber) 0%, var(--orange) 52%, var(--magenta) 100%);

  /* Tints derived for hairlines / muted text on navy */
  --line-navy:   rgba(248,245,238,0.12);
  --line-navy-2: rgba(248,245,238,0.07);
  --ink-navy:    #F8F5EE;
  --ink-navy-mut: rgba(248,245,238,0.62);
  --ink-navy-dim: rgba(248,245,238,0.40);

  /* On cream */
  --line-cream:   rgba(39,44,87,0.14);
  --ink-cream:    #272C57;
  --ink-cream-mut: rgba(39,44,87,0.66);

  --font-display: "Decima Pro", "Inter", system-ui, sans-serif;
  --font-body:    "Decima Pro", "Inter", system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink-navy);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--navy); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------------------------------------------------------- */
/* Layout helpers                                              */
/* ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 13vw, 168px); }
.section--cream { background: var(--cream); color: var(--ink-cream); }

.eyebrow {
  font-size: clamp(11px, 1vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--amber);
  display: inline-block;
}
.section--cream .eyebrow { color: var(--orange); }
.section--cream .eyebrow::before { background: var(--orange); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }

.h-display {
  font-size: clamp(34px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--ink-navy-mut);
  max-width: 56ch;
  margin: 22px 0 0;
  text-wrap: pretty;
}
.section--cream .lead { color: var(--ink-cream-mut); }

.section-head { max-width: 760px; }

/* ---------------------------------------------------------- */
/* Reveal primitives (scroll-driven)                          */
/* ---------------------------------------------------------- */
/* Reveal primitives. Base state is VISIBLE; the hidden→reveal effect only
   engages under html.fx, which JS keeps ONLY if the animation clock is live.
   (Some sandboxed preview iframes freeze CSS transitions/animations; this
   guarantees content is never stuck invisible there.) */
[data-reveal] { opacity: 1; transform: none; }
.fx [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.fx [data-reveal].in { opacity: 1; transform: none; }

/* draw-on-scroll: strokes complete by default; hidden only under .fx */
.draw path, .draw circle, .draw line, .draw rect, .draw polyline, .draw ellipse {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: 0;
}
.fx .draw path, .fx .draw circle, .fx .draw line, .fx .draw rect,
.fx .draw polyline, .fx .draw ellipse {
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 1.5s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.fx .draw.in path, .fx .draw.in circle, .fx .draw.in line, .fx .draw.in rect,
.fx .draw.in polyline, .fx .draw.in ellipse { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .fx [data-reveal] { opacity: 1; transform: none; transition: none; }
  .fx .draw path, .fx .draw circle, .fx .draw line, .fx .draw rect,
  .fx .draw polyline, .fx .draw ellipse { stroke-dashoffset: 0; transition: none; }
}

/* ---------------------------------------------------------- */
/* Header / nav                                               */
/* ---------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.stuck {
  background: rgba(27,31,62,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-navy);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateX(-6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.site-header.stuck .brand-lockup { opacity: 1; transform: none; pointer-events: auto; }
.brand-lockup .iso { width: 26px; height: 26px; }
.brand-lockup .mark { height: 15px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-size: 13.5px; color: var(--ink-navy-mut);
  letter-spacing: 0.01em; transition: color 0.25s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--ink-navy); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid var(--line-navy); border-radius: 100px;
  padding: 9px 18px; color: var(--ink-navy) !important;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--amber); border-color: var(--amber); color: var(--navy) !important; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav .nav-link { display: none; }
}

/* ---------------------------------------------------------- */
/* HERO                                                       */
/* ---------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  text-align: left; overflow: hidden;
  background: var(--navy-3);
  padding-block: clamp(96px, 14vh, 140px) clamp(72px, 10vh, 96px);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  display: none; /* el ambient__grid ya provee la retícula de fondo — evita encimado */
}

/* Giant gradient S, bleeding off the right edge */
.hero__glyph {
  position: absolute; top: 50%; right: clamp(-280px, -13vw, -130px);
  width: clamp(560px, 64vw, 1000px); height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 36px 100px rgba(180,46,119,0.42));
  will-change: transform;
}
/* Hero radar — born at center, fills the hero, sweeps clockwise (tenue) */
.hero__radar {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  -webkit-mask-image:
    radial-gradient(120% 120% at 50% 50%, #000 38%, transparent 86%),
    linear-gradient(to bottom, #000 52%, transparent 92%);
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(120% 120% at 50% 50%, #000 38%, transparent 86%),
    linear-gradient(to bottom, #000 52%, transparent 92%);
          mask-composite: intersect;
}
.hradar__rings, .hradar__beam {
  position: absolute; left: 50%; top: 50%;
  width: 150vmax; height: 150vmax;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.hradar__rings {
  background:
    repeating-radial-gradient(circle at center,
      transparent 0 6.4vmax,
      rgba(248,245,238,0.04) 6.4vmax, rgba(248,245,238,0.04) calc(6.4vmax + 1px),
      transparent calc(6.4vmax + 1px) 12.8vmax);
}
.hradar__rings::before, .hradar__rings::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: rgba(248,245,238,0.045);
}
.hradar__rings::before { width: 1px; height: 100%; transform: translate(-50%, -50%); }
.hradar__rings::after  { width: 100%; height: 1px; transform: translate(-50%, -50%); }
.hradar__beam {
  /* bright leading edge at top (0°), glow trailing counter-clockwise */
  background: conic-gradient(from 0deg,
    rgba(241,212,50,0.18) 0deg,
    rgba(241,212,50,0) 2deg,
    transparent 304deg,
    rgba(241,212,50,0.03) 332deg,
    rgba(241,212,50,0.16) 360deg);
  will-change: transform;
  animation: hradar-spin 13s linear infinite;
}
@keyframes hradar-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.hradar__blips { position: absolute; inset: 0; }
.hblip { position: absolute; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.hblip-dot { border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px 2px rgba(241,212,50,0.5); }
.hblip-s { color: var(--amber); }
.hblip-s svg { width: 100%; height: 100%; }
.hblip.go { animation: hblip-pulse 3.4s var(--ease-out) forwards; }
.hblip-s.go { animation: hblip-pulse-s 3.6s var(--ease-out) forwards; }
@keyframes hblip-pulse {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  16%  { opacity: 0.85; }
  45%  { opacity: 0.45; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}
@keyframes hblip-pulse-s {
  0%   { opacity: 0; }
  22%  { opacity: 0.2; }
  60%  { opacity: 0.11; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hradar__beam { animation: none; opacity: 0.45; }
}
/* left-to-right scrim keeps the headline legible over the glyph */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy-3) 0%, rgba(27,31,62,0.86) 34%, rgba(27,31,62,0.30) 58%, transparent 78%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, var(--navy-3) 100%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hero .h-display { margin-top: 4px; max-width: 16ch; }
.grad-text {
  background: linear-gradient(135deg, var(--amber) 0%, var(--orange) 52%, var(--magenta) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .tagline {
  font-size: clamp(16px, 1.9vw, 22px);
  color: var(--ink-navy-mut);
  margin: 28px 0 0; max-width: 46ch;
}
.hero__cta { margin-top: 38px; display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.hero__meta { margin: 26px 0 0; font-size: 14px; letter-spacing: 0.04em; color: var(--ink-navy-dim); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .hero__glyph { right: -32%; width: 120vw; opacity: 0.5; }
  .hero__scrim { background:
    linear-gradient(180deg, rgba(27,31,62,0.5) 0%, rgba(27,31,62,0.78) 60%, var(--navy-3) 100%); }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  padding: 14px 26px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--orange); color: var(--cream); }
.btn--grad {
  background: var(--grad-brand);
  background-clip: padding-box;
  border-color: transparent;
  color: var(--cream); font-weight: 700;
  box-shadow: 0 12px 34px -16px rgba(180,46,119,0.7);
}
.btn--grad:hover { filter: brightness(1.07); box-shadow: 0 18px 44px -16px rgba(209,78,47,0.8); }
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--ghost { border-color: var(--line-navy); color: var(--ink-navy); }
.btn--ghost:hover { border-color: var(--ink-navy-mut); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-navy-dim); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll .bar { width: 1px; height: 38px; background: linear-gradient(var(--amber), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll .bar { animation: scroll-pulse 2.2s var(--ease) infinite; }
}
@keyframes scroll-pulse { 0%,100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } }

/* ---------------------------------------------------------- */
/* Trust bar                                                  */
/* ---------------------------------------------------------- */
.trust { border-top: 1px solid var(--line-navy); border-bottom: 1px solid var(--line-navy); padding-block: clamp(40px, 6vw, 64px); }
.trust__row { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 40px); align-items: center; justify-content: space-between; }
.trust__sign { font-family: var(--font-display); font-size: clamp(18px, 2.1vw, 26px); letter-spacing: -0.02em; max-width: 22ch; line-height: 1.15; }
.trust__sign em { font-style: normal; color: var(--amber); }
.trust__hook { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.trust__cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 1.4vw, 16px); letter-spacing: 0.01em; color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(241, 212, 50, 0.4); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s, gap 0.2s; }
.trust__cta svg { width: 17px; height: 17px; transition: transform 0.2s; }
.trust__cta:hover { color: var(--cream); border-color: var(--cream); }
.trust__cta:hover svg { transform: translateX(4px); }
.trust__stats { display: flex; gap: clamp(22px, 4vw, 56px); }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.03em; color: var(--ink-navy); font-variant-numeric: tabular-nums; }
.stat__num .grad { background: linear-gradient(160deg, var(--amber), var(--orange) 55%, var(--magenta)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-navy-mut); margin-top: 10px; }

/* ---------------------------------------------------------- */
/* Cards (Problema)                                           */
/* ---------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 22px); margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; border: 1px solid var(--line-navy);
  border-radius: 16px; padding: clamp(26px, 2.4vw, 36px);
  background: linear-gradient(180deg, rgba(248,245,238,0.025), rgba(248,245,238,0));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s;
  overflow: hidden;
}
.card:hover { border-color: rgba(241,212,50,0.5); transform: translateY(-4px); }
.card__icon { width: 56px; height: 56px; margin-bottom: 24px; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.01em; margin: 0 0 10px; line-height: 1.12; }
.card p { margin: 0; color: var(--ink-navy-mut); font-size: 15.5px; }
.card__no { position: absolute; top: 22px; right: 24px; font-size: 12px; letter-spacing: 0.2em; color: var(--ink-navy-dim); font-variant-numeric: tabular-nums; }

.stroke-amber  { stroke: var(--amber); }
.stroke-orange { stroke: var(--orange); }
.stroke-magenta{ stroke: var(--magenta); }
.ico { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- */
/* Solución — veredictos                                      */
/* ---------------------------------------------------------- */
.solucion__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 5vw, 80px); align-items: center; margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 940px) { .solucion__grid { grid-template-columns: 1fr; } }

.mechanism { display: flex; flex-direction: column; gap: 26px; }
.mech-step { display: flex; gap: 18px; align-items: flex-start; }
.mech-step__n { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-navy); display: grid; place-items: center; font-family: var(--font-display); font-size: 15px; color: var(--amber); }
.mech-step h4 { margin: 6px 0 4px; font-size: 17px; font-family: var(--font-display); letter-spacing: -0.01em; }
.mech-step p { margin: 0; color: var(--ink-navy-mut); font-size: 15px; }
.formula { margin-top: 8px; padding: 18px 22px; border: 1px dashed var(--line-navy); border-radius: 12px; font-size: 15px; color: var(--ink-navy-mut); }
.formula b { color: var(--ink-navy); font-weight: 600; }
.formula .grad { background: linear-gradient(120deg, var(--amber), var(--orange), var(--magenta)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }

/* Verdict gauge */
.gauge { position: relative; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__needle { transform-origin: 300px 280px; transform: rotate(var(--angle, 42deg)); }
.fx .gauge__needle { transform: rotate(-90deg); transition: transform 1.3s var(--ease-out); }
.fx .gauge.in .gauge__needle { transform: rotate(var(--angle, 42deg)); }
.verdict-list { margin-top: 30px; display: grid; gap: 10px; }
.verdict {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--line-navy); border-radius: 12px;
  transition: border-color 0.3s, background 0.3s;
}
.verdict:hover { background: rgba(248,245,238,0.03); }
.verdict__dot { width: 11px; height: 11px; border-radius: 50%; }
.verdict__name { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; }
.verdict__range { font-size: 13px; color: var(--ink-navy-mut); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------------------------------------------------------- */
/* 8 Áreas (cream)                                            */
/* ---------------------------------------------------------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.2vw, 16px); margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 900px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .areas-grid { grid-template-columns: 1fr; } }

.area {
  position: relative; border: 1px solid var(--line-cream); border-radius: 14px;
  padding: 26px 24px 24px; background: rgba(255,255,255,0.35);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.area:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(39,44,87,0.4); }
.area__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; }
.area__icon { width: 40px; height: 40px; }
.area__icon .ico { stroke: var(--navy); stroke-width: 1.5; }
.area:hover .area__icon .ico { stroke: var(--orange); }
.area__count { font-family: var(--font-display); font-size: 13px; color: var(--ink-cream-mut); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.area__count b { color: var(--orange); font-size: 22px; }
.area h3 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.1; margin: 0; max-width: 14ch; }
.area__foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 14px; }
.area__bar { flex: 1; height: 5px; border-radius: 100px; background: rgba(39,44,87,0.10); overflow: hidden; }
.area__bar i { display: block; height: 100%; width: 0%; border-radius: 100px; background: linear-gradient(90deg, var(--orange), var(--amber)); transition: width 0.9s var(--ease-out); transition-delay: var(--bd, 0ms); }
.area__idx { flex: none; font-size: 11px; letter-spacing: 0.2em; color: rgba(39,44,87,0.32); font-variant-numeric: tabular-nums; }

/* verdict ring container */
.ring-wrap { display: flex; flex-direction: column; align-items: center; }
.ring-wrap .verdict-legend { justify-content: center; }

/* ---------------------------------------------------------- */
/* Cómo verificar                                             */
/* ---------------------------------------------------------- */
.verify__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 880px) { .verify__grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  border: 1px solid var(--line-navy); border-radius: 100px;
  padding: 11px 18px; font-size: 14px; color: var(--ink-navy);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.chip:hover { border-color: var(--amber); transform: translateY(-2px); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.fast-mode { margin-top: 34px; border: 1px solid var(--line-navy); border-radius: 16px; padding: 26px 28px; background: linear-gradient(120deg, rgba(241,212,50,0.06), rgba(180,46,119,0.04)); }
.fast-mode .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.fast-mode h4 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.fast-mode p { margin: 0; color: var(--ink-navy-mut); font-size: 15px; }

/* ---------------------------------------------------------- */
/* Autor (cream)                                              */
/* ---------------------------------------------------------- */
.author__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(40px, 6vw, 90px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .author__grid { grid-template-columns: 1fr; } }
.portrait { position: relative; aspect-ratio: 4/5; overflow: visible; isolation: isolate; }
/* warm brand halo bleeding behind the feathered photo */
.portrait::before {
  content: ""; position: absolute; inset: -6% -6% 2%; z-index: -1; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(60% 58% at 50% 34%, rgba(241,212,50,0.16), rgba(209,78,47,0.08) 46%, transparent 70%);
  filter: blur(6px);
}
.portrait svg { width: 100%; height: 100%; }
.portrait__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block;
  /* dissolve the frame edges into the cream — no hard card */
  -webkit-mask-image: radial-gradient(118% 92% at 50% 38%, #000 52%, rgba(0,0,0,0.55) 76%, transparent 95%);
          mask-image: radial-gradient(118% 92% at 50% 38%, #000 52%, rgba(0,0,0,0.55) 76%, transparent 95%);
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .portrait__img { animation: portrait-kb 16s ease-in-out infinite alternate; }
}
@keyframes portrait-kb {
  from { transform: scale(1.015) translateY(0); }
  to   { transform: scale(1.075) translateY(-1.6%); }
}
.author__bio h2 { margin-bottom: 8px; }
.author__lede { font-family: var(--font-display); font-weight: 700; color: var(--ink-cream) !important; font-size: clamp(20px, 2vw, 26px) !important; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 22px; }
.author__bio p { color: var(--ink-cream-mut); font-size: clamp(15.5px, 1.4vw, 17.5px); max-width: 60ch; }
.author__bio p strong { color: var(--ink-cream); font-weight: 600; }
.author__aside { display: flex; flex-direction: column; }
.author__pull { font-family: var(--font-display); font-weight: 700; color: var(--orange) !important; font-size: clamp(20px, 1.9vw, 26px) !important; letter-spacing: -0.01em; line-height: 1.15; margin: 26px 0 0 !important; max-width: 18ch !important; }
.author__sign { margin-top: 18px; font-family: var(--font-display); font-size: 16px; color: var(--ink-cream); line-height: 1.4; }
.author__sign span { color: var(--ink-cream-mut); font-family: var(--font-body); font-size: 13.5px; display: block; }
.author__sign span:first-child { color: var(--ink-cream); font-family: var(--font-display); font-size: 15px; }

/* ---------------------------------------------------------- */
/* FAQ                                                        */
/* ---------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; margin-top: clamp(40px, 5vw, 64px); }
.faq-item { border-top: 1px solid var(--line-navy); }
.faq-item:last-child { border-bottom: 1px solid var(--line-navy); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; color: var(--ink-navy); font-family: var(--font-display); font-size: clamp(17px, 1.8vw, 21px); letter-spacing: -0.01em; text-align: left; padding: 26px 56px 26px 0; position: relative; transition: color 0.25s; }
.faq-q:hover { color: var(--amber); }
.faq-q .plus { position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--amber); transition: transform 0.35s var(--ease), opacity 0.3s; }
.faq-q .plus::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q .plus::after  { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-q .plus::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; height: 0; }
.fx .faq-a { transition: height 0.4s var(--ease); }
.faq-a__inner { padding: 0 56px 28px 0; color: var(--ink-navy-mut); font-size: 16px; max-width: 64ch; }

/* ---------------------------------------------------------- */
/* CTA band                                                   */
/* ---------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }

/* ---------------------------------------------------------- */
/* Footer                                                     */
/* ---------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-navy); padding-block: clamp(56px, 7vw, 84px) 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }
.footer__brand .mark { height: 22px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--ink-navy-mut); font-size: 14.5px; max-width: 34ch; margin: 0; }
.footer__col h5 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-navy-dim); margin: 0 0 16px; font-weight: 600; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col a { color: var(--ink-navy-mut); font-size: 14.5px; transition: color 0.25s; }
.footer__col a:hover { color: var(--amber); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line-navy-2); }
.footer__bottom p { margin: 0; font-size: 13px; color: var(--ink-navy-dim); }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { font-size: 13px; color: var(--ink-navy-dim); transition: color 0.25s; }
.footer__legal a:hover { color: var(--ink-navy-mut); }

/* ============================================================
   SWIPE DEMO — the real ChecklistView, swipeable on the web
   ============================================================ */
.swipe__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 940px) { .swipe__grid { grid-template-columns: 1fr; gap: 56px; } }

.swipe__head { max-width: 18ch; }
.swipe__head .grad { background: var(--grad-brand-diag); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* gesture legend */
.gestures { margin-top: 30px; display: grid; gap: 12px; }
.gesture { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 13px 18px; border: 1px solid var(--line-navy); border-radius: 12px; transition: border-color 0.3s, background 0.3s; }
.gesture:hover { background: rgba(248,245,238,0.03); }
.gesture__arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 16px; font-weight: 700; }
.gesture__arrow svg { width: 17px; height: 17px; }
.gesture--si .gesture__arrow { color: var(--green); background: rgba(61,194,122,0.14); }
.gesture--no .gesture__arrow { color: var(--red); background: rgba(226,75,74,0.14); }
.gesture--na .gesture__arrow { color: var(--cream); background: rgba(248,245,238,0.10); }
.gesture__txt { font-size: 15px; color: var(--ink-navy-mut); }
.gesture__txt b { color: var(--ink-navy); font-weight: 600; font-family: var(--font-display); }

/* live provisional score */
.swipe__meter { margin-top: 30px; }
.swipe__meter-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.swipe__meter-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-navy-mut); }
.swipe__score { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.swipe__score .grad { background: var(--grad-brand-diag); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.swipe__score small { font-size: 0.4em; color: var(--ink-navy-dim); margin-left: 5px; letter-spacing: 0; }
.swipe__scorebar { height: 7px; border-radius: 100px; background: rgba(248,245,238,0.08); overflow: hidden; }
.swipe__scorebar i { display: block; height: 100%; width: 0%; border-radius: 100px; background: var(--grad-brand); transition: width 0.6s var(--ease-out); }

/* ---- the device / checklist frame ---- */
.deck-frame {
  position: relative; width: 100%; max-width: 440px; margin-inline: auto;
  border: 1px solid var(--line-navy); border-radius: 26px;
  background: linear-gradient(180deg, rgba(248,245,238,0.04), rgba(248,245,238,0.012));
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.7);
  /* no overflow:hidden here — lets cards fly visibly during swipe animation */
}
/* faint radar echo behind the deck (keeps the radar motif the user likes) */
.deck-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(241,212,50,0.05), transparent 70%);
}

.deck-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.deck-ring { position: relative; width: 46px; height: 46px; flex: none; }
.deck-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.deck-ring__bg { fill: none; stroke: rgba(248,245,238,0.12); stroke-width: 4; }
.deck-ring__fg { fill: none; stroke: url(#sonikiaGradient); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease-out); }
.deck-ring__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 0.9; letter-spacing: -0.02em; }
.deck-ring__num small { font-size: 8px; color: var(--ink-navy-dim); font-weight: 400; }
.deck-section { font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.deck-section span { color: var(--ink-navy-dim); }

/* segmented progress (8 sections) */
.deck-seg { display: flex; gap: 5px; margin-bottom: 22px; }
.deck-seg i { flex: 1; height: 5px; border-radius: 100px; background: rgba(248,245,238,0.10); overflow: hidden; position: relative; }
.deck-seg i::after { content: ""; position: absolute; inset: 0; width: var(--f, 0%); border-radius: 100px; background: var(--grad-brand); transition: width 0.5s var(--ease-out); }

/* card deck */
.deck { position: relative; height: 340px; touch-action: pan-y; }
@media (max-width: 600px) {
  .deck { height: 380px; }
  .sc-q { font-size: 20px; }
  .sc-hint { font-size: 13px; }
}
.deck__label {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.02em;
  opacity: 0; pointer-events: none;
}
.deck__label svg { width: 0.9em; height: 0.9em; }
.deck__label.si { color: var(--green); }
.deck__label.no { color: var(--red); }
.deck__label.na { color: var(--cream); }

.swipe-card {
  position: absolute; inset: 0; border-radius: 20px;
  border: 1.5px solid var(--line-navy);
  background: linear-gradient(165deg, rgba(45,51,96,0.96), rgba(33,38,75,0.96));
  backdrop-filter: blur(4px);
  padding: clamp(20px, 2.2vw, 26px);
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.8);
  z-index: 2; will-change: transform; overflow: hidden;
}
.swipe-card[data-depth] { z-index: 1; }
.swipe-card.is-drag { transition: none; cursor: grabbing; }
.swipe-card.snap { transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out), border-color 0.2s; }
.swipe-card.fly { transition: transform 0.5s var(--ease), opacity 0.5s var(--ease); }
.swipe-card:not(.is-drag) { cursor: grab; }

.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.sc-badge.vital { color: var(--red); background: rgba(226,75,74,0.16); }
.sc-badge.importante { color: var(--orange); background: rgba(209,78,47,0.18); }
.sc-badge.relevante { color: var(--blue); background: rgba(91,155,213,0.18); }
.sc-badge.complementario { color: var(--ink-navy-mut); background: rgba(248,245,238,0.08); }
.sc-why { background: none; border: 1px solid rgba(241,212,50,0.4); border-radius: 100px; padding: 6px 13px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--amber); cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.sc-why::before { content: "✦"; font-size: 11px; }
.sc-why:hover, .sc-why[aria-expanded="true"] { background: rgba(241,212,50,0.12); border-color: rgba(241,212,50,0.7); }
/* Por qué importa panel */
.sc-pqi {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.38s var(--ease-out), opacity 0.3s var(--ease-out);
  background: rgba(241,212,50,0.07); border-radius: 10px;
  margin: -2px 0 0;
}
.sc-pqi p { margin: 0; padding: 12px 14px; font-size: 13px; line-height: 1.52; color: var(--ink-navy-mut); }
.sc-q { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 25px); line-height: 1.12; letter-spacing: -0.015em; margin: 2px 0 0; }
.sc-hint { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-navy-mut); font-size: 14px; line-height: 1.4; }
.sc-hint::before { content: "💡"; font-size: 14px; line-height: 1.3; flex: none; }
.sc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.sc-num { font-size: 12px; color: var(--ink-navy-dim); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.sc-swipehint { font-size: 12px; color: var(--ink-navy-dim); display: inline-flex; align-items: center; gap: 7px; }
.sc-swipehint::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1px solid currentColor; opacity: 0.6; }

/* answer buttons */
.deck-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
/* answer buttons — square style matching app */
.ans { border: 1px solid rgba(248,245,238,0.14); border-radius: 16px; padding: 16px 10px 14px; background: rgba(248,245,238,0.06); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform 0.18s var(--ease), border-color 0.25s, background 0.25s, color 0.25s; color: var(--ink-navy-mut); font-family: var(--font-body); }
.ans:hover { transform: translateY(-2px); }
.ans svg { width: 22px; height: 22px; }
.ans span { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.ans--si:hover, .ans--si.lit { border-color: rgba(61,194,122,0.6); color: var(--green); background: rgba(61,194,122,0.12); }
.ans--no:hover, .ans--no.lit { border-color: transparent; color: #fff; background: var(--red); }
.ans--na:hover, .ans--na.lit { border-color: rgba(248,245,238,0.4); color: var(--cream); background: rgba(248,245,238,0.10); }

/* big question counter */
.deck-counter { text-align: center; margin: 16px 0 18px; }
.deck-counter__lbl { display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-navy-dim); margin-bottom: 4px; }
.deck-counter__row { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.deck-counter__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(54px, 8vw, 72px); line-height: 0.9; letter-spacing: -0.04em; background: var(--grad-brand-diag); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.deck-counter__max { font-size: 20px; color: var(--ink-navy-dim); font-family: var(--font-display); }

/* PQI overlay — slides in over the deck-frame */
.pqi-ov {
  position: absolute; inset: 0; z-index: 20; border-radius: inherit;
  background: linear-gradient(180deg, rgba(25,29,62,0.99) 0%, rgba(30,35,70,0.99) 100%);
  overflow-y: auto; overflow-x: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  -webkit-overflow-scrolling: touch;
}
.pqi-ov:not([aria-hidden="true"]) { opacity: 1; pointer-events: auto; transform: none; }
.pqi-ov__scroll { padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.pqi-ov__ctx { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-navy-dim); }
.pqi-ov__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.2vw, 28px); letter-spacing: -0.02em; margin: 4px 0 0; display: flex; align-items: center; gap: 11px; color: var(--cream); }
.pqi-spark { width: 28px; height: 28px; color: var(--amber); flex: none; }
.pqi-ov__weight { display: flex; gap: 14px; align-items: flex-start; background: rgba(226,75,74,0.12); border: 1px solid rgba(226,75,74,0.3); border-radius: 14px; padding: 16px 18px; }
.pqi-ov__weight-ico { font-size: 22px; line-height: 1; flex: none; margin-top: 1px; }
.pqi-ov__weight b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.pqi-ov__weight p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-navy-mut); }
.pqi-ov__body { margin: 0; font-size: clamp(15px, 2.2vw, 17px); line-height: 1.6; color: var(--ink-navy); }
.pqi-ov__verify { background: rgba(248,245,238,0.05); border: 1px solid rgba(248,245,238,0.10); border-radius: 14px; padding: 16px 18px; }
.pqi-ov__verify-head { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.pqi-ov__verify-head svg { width: 16px; height: 16px; }
.pqi-ov__verify-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-navy-mut); }
.pqi-ov__quote { margin: 0; border-left: 3px solid var(--orange); padding-left: 14px; font-style: italic; font-size: 14.5px; color: var(--amber); line-height: 1.4; }
.pqi-ov__close { width: 100%; padding: 17px; border-radius: 16px; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; background: var(--grad-brand); color: var(--cream); box-shadow: 0 10px 30px -14px rgba(180,46,119,0.7); transition: filter 0.2s; margin-top: auto; }
.pqi-ov__close:hover { filter: brightness(1.07); }

/* sc-why button — match app style: dark olive pill with sparkle */
.sc-why { background: rgba(241,212,50,0.15); border: 1px solid rgba(241,212,50,0.35); border-radius: 100px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--amber); cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.sc-why .spark { width: 14px; height: 14px; flex: none; }
.sc-why:hover { background: rgba(241,212,50,0.24); border-color: rgba(241,212,50,0.6); }
/* remove old ::before pseudo */
.sc-why::before { content: none; }

/* sc-badge: vital gets warning icon */
.sc-badge::before { content: none; }
.sc-badge.vital::before { content: "⚠"; margin-right: 5px; font-size: 11px; }

/* ============================================================
   VERDICT RING — the ResultView moment (score climbs in)
   ============================================================ */
.result__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 5vw, 76px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 940px) { .result__grid { grid-template-columns: 1fr; gap: 48px; } }

.ring { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__bg { fill: none; stroke: rgba(248,245,238,0.10); stroke-width: 14; }
.ring__fg { fill: none; stroke: url(#ringGradient); stroke-width: 14; stroke-linecap: round; filter: drop-shadow(0 0 18px rgba(61,194,122,0.4)); }
.ring__core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(61,194,122,0.22), transparent 68%); filter: blur(8px); }
.ring__eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-navy-dim); }
.ring__score { font-family: var(--font-display); font-weight: 700; font-size: clamp(70px, 11vw, 116px); line-height: 0.9; letter-spacing: -0.04em; color: var(--cream); font-variant-numeric: tabular-nums; }
.ring__max { font-size: 14px; color: var(--ink-navy-dim); margin-top: 2px; }
.ring__verdict { margin-top: 18px; text-align: center; }
.ring__verdict b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; color: var(--green); line-height: 1; }
.ring__verdict span { display: block; margin-top: 10px; color: var(--ink-navy-mut); font-size: 15px; max-width: 30ch; margin-inline: auto; }

/* desglose por sección (mini colored bars) */
.desglose { display: grid; gap: 11px; }
.desglose__title { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-navy-mut); margin: 0 0 6px; }
.dg-row { display: grid; grid-template-columns: 18px 1fr 64px auto; align-items: center; gap: 14px; }
.dg-row__n { font-size: 12px; color: var(--amber); font-variant-numeric: tabular-nums; }
.dg-row__name { font-size: 14.5px; color: var(--ink-navy); }
.dg-row__bar { height: 6px; border-radius: 100px; background: rgba(248,245,238,0.08); overflow: hidden; }
.dg-row__bar i { display: block; height: 100%; width: 0%; border-radius: 100px; transition: width 0.9s var(--ease-out); transition-delay: var(--bd, 0ms); }
.dg-row__val { font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; font-family: var(--font-display); font-weight: 700; }
@media (max-width: 520px) { .dg-row { grid-template-columns: 16px 1fr 40px; } .dg-row__bar { display: none; } }

/* verdict legend strip */
.verdict-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.vl { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line-navy); border-radius: 100px; padding: 8px 15px; font-size: 13px; color: var(--ink-navy-mut); }
.vl b { color: var(--ink-navy); font-weight: 600; }
.vl .d { width: 9px; height: 9px; border-radius: 50%; }

/* ============================================================
   COMPARTIR — PDF / tarjeta / Stories
   ============================================================ */
.share__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(40px, 5vw, 60px); }
@media (max-width: 820px) { .share__grid { grid-template-columns: 1fr; } }
.share-card { border: 1px solid var(--line-navy); border-radius: 18px; padding: clamp(24px, 2.4vw, 32px); background: linear-gradient(180deg, rgba(248,245,238,0.03), rgba(248,245,238,0)); transition: border-color 0.35s var(--ease), transform 0.35s var(--ease); overflow: hidden; }
.share-card:hover { transform: translateY(-4px); border-color: rgba(241,212,50,0.45); }
.share-card__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: var(--grad-brand); }
.share-card__ico svg { width: 24px; height: 24px; color: var(--cream); }
.share-card--stories .share-card__ico { background: linear-gradient(150deg, var(--green), #2f8f94); }
.share-card h4 { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; }
.share-card p { margin: 0; color: var(--ink-navy-mut); font-size: 14.5px; }

/* generic divider line that draws in */
.rule { height: 1px; background: var(--line-navy); transform-origin: left; }

/* ============================================================
   CONTINUITY — one continuous field behind every section
   ============================================================ */
main { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }

.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--navy-3); }
.ambient__grid {
  position: absolute; inset: -12%;
  background-image:
    linear-gradient(var(--line-navy-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-navy-2) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 30%, #000 0%, transparent 78%);
          mask-image: radial-gradient(130% 100% at 50% 30%, #000 0%, transparent 78%);
  /* y is driven from JS (scroll) for a slow continuous drift */
  transform: translate3d(0, var(--amb-y, 0px), 0);
}
.ambient__glow {
  position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  left: 50%; top: 50%;
  background: radial-gradient(circle, rgba(209,78,47,0.16), rgba(180,46,119,0.07) 45%, transparent 68%);
  /* position tracks scroll so the warm light "travels" down the page */
  transform: translate3d(-50%, calc(-50% + var(--glow-y, 0px)), 0);
  filter: blur(10px);
}
/* Hero owns its own dark field; let it sit cleanly over the ambient */
.hero { background: transparent; }

/* Cream panels blend with OPAQUE colors over a tight, fixed ~40px transition. */
.section--cream {
  background: linear-gradient(180deg,
    var(--navy-3) 0px,
    var(--cream) 40px,
    var(--cream) calc(100% - 40px),
    var(--navy-3) 100%);
}

/* ============================================================
   SiNo — Sí es / No es section
   ============================================================ */
.sino .eyebrow { justify-content: center; }
.sino__head { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: clamp(40px, 6vw, 64px); }
.sino__head .lead { margin-inline: auto; }

.sino__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 720px) { .sino__grid { grid-template-columns: 1fr; } }

.sino__col {
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--navy-2);
}
.sino__col--si { border: 1px solid rgba(61,194,122,0.22); }
.sino__col--no { border: 1px solid rgba(226,75,74,0.22); }

.sino__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 clamp(20px, 2.5vw, 28px);
}
.sino__title--no { color: rgba(248,245,238,0.85); }

.sino__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }

.sino__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.55;
  color: var(--ink-navy);
}
.sino__col--no .sino__item { color: var(--ink-navy-mut); }

.sino__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.sino__cierre {
  text-align: center;
  margin: clamp(32px, 4vw, 48px) auto 0;
  max-width: 52ch;
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 18px);
  color: rgba(241,212,50,0.82);
  line-height: 1.55;
}

/* ============================================================
   Footer disclaimer
   ============================================================ */
.footer__disclaimer {
  border-top: 1px solid rgba(241,212,50,0.10);
  padding-top: clamp(24px, 3vw, 32px);
  margin-bottom: clamp(24px, 3vw, 32px);
}
.footer__disclaimer p {
  color: var(--ink-navy-dim);
  font-size: 11.5px;
  line-height: 1.7;
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

/* Result disclaimer under the verdict ring */
.result-note {
  margin: clamp(20px, 2.5vw, 28px) auto 0;
  max-width: 46ch;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-navy-dim);
}

/* ============================================================
   Legal pages (privacidad / terminos / cookies / eliminar)
   ============================================================ */
.legal-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-block: clamp(120px, 16vw, 168px) clamp(56px, 8vw, 96px);
}
.legal-wrap { max-width: 760px; }
.legal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 16px 0 0;
  text-wrap: balance;
}
.legal-sub {
  color: var(--ink-navy-mut);
  font-size: clamp(15px, 1.5vw, 19px);
  margin: 18px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.legal-updated {
  font-size: 13px;
  color: var(--ink-navy-dim);
  margin: 20px 0 0;
  letter-spacing: 0.02em;
}
.legal-body { margin-top: clamp(40px, 6vw, 64px); }
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.1vw, 25px);
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: clamp(34px, 4.5vw, 48px) 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--cream);
  margin: 22px 0 8px;
}
.legal-body p {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.8;
  color: var(--ink-navy-mut);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.legal-body ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-body li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  color: var(--ink-navy-mut);
}
.legal-body li::before { content: "—"; position: absolute; left: 0; color: var(--amber); }
.legal-body strong { color: var(--cream); font-weight: 600; }
.legal-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--cream); }
.legal-callout {
  border: 1px solid var(--line-navy);
  border-radius: 16px;
  padding: clamp(22px, 2.6vw, 30px);
  background: linear-gradient(120deg, rgba(241,212,50,0.05), rgba(180,46,119,0.04));
  margin: 0 0 28px;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-back {
  display: inline-block;
  margin-top: clamp(40px, 5vw, 56px);
  font-size: 15px;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--cream); }

/* Top scroll-progress thread — the page reads as ONE continuous scroll */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
  transform: scaleX(var(--p, 0)); transform-origin: left;
  background: linear-gradient(90deg, var(--amber), var(--orange) 52%, var(--magenta));
  box-shadow: 0 0 16px rgba(180,46,119,0.5);
}


/* ============================================================
   V2 — Capa envolvente: "El expediente"
   ============================================================ */

/* — Selección de marca + grano de película — */
::selection { background: var(--amber); color: #272C57; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 240; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

/* — Riel de checkpoints (espejo de las 8 secciones de la app) — */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 65; display: flex; flex-direction: column; gap: 13px; }
.rail i { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1.5px solid rgba(150, 152, 175, 0.5); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s; }
.rail i.on { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 10px rgba(241, 212, 50, 0.55); transform: scale(1.2); }
@media (max-width: 1100px) { .rail { display: none; } }

/* — La linterna (El problema) — */
.linterna { position: relative; }
.lant {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: rgba(13, 16, 38, 0.78);
  -webkit-mask-image: radial-gradient(circle clamp(240px, 28vw, 380px) at var(--lx, 50%) var(--ly, 38%), transparent 0 36%, black 80%);
  mask-image: radial-gradient(circle clamp(240px, 28vw, 380px) at var(--lx, 50%) var(--ly, 38%), transparent 0 36%, black 80%);
}
@media (prefers-reduced-motion: reduce) { .lant { display: none; } }

/* — Ticker de preguntas fantasma (detrás del deck) — */
.swipe { position: relative; overflow: hidden; }
.swipe__grid { position: relative; z-index: 2; }
.qticker {
  position: absolute; top: 0; bottom: 0; right: clamp(-60px, -1vw, 10px); width: min(360px, 30vw);
  overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
}
.qticker__col { display: flex; flex-direction: column; gap: 38px; animation: qtick 70s linear infinite; }
.qticker__col p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.8vw, 23px); line-height: 1.25; letter-spacing: -0.01em; color: rgba(248, 245, 238, 0.05); }
@keyframes qtick { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .qticker__col { animation: none; } }
@media (max-width: 900px) { .qticker { display: none; } }

/* — Veredicto que barre la escala — */
#result-ring { transition: stroke-dashoffset 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), stroke 0.45s ease; }
#verdict-name { transition: color 0.35s ease; }
#verdict-caption { min-height: 4.2em; }
.verdict-legend .vl { opacity: 0.45; transition: opacity 0.3s, transform 0.3s; }
.verdict-legend .vl.on { opacity: 1; transform: translateY(-2px); }

/* — Sellos oficiales (Cómo verificar) — */
#verificar .chips { gap: 14px; }
#verificar .chip {
  border-radius: 9px;
  border: 1.5px solid rgba(241, 212, 50, 0.55);
  outline: 1px solid rgba(241, 212, 50, 0.28);
  outline-offset: -6px;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 700;
  padding-block: 14px;
  transform: rotate(var(--rot, 0deg));
}
#verificar .chip:hover { border-color: var(--amber); transform: rotate(var(--rot, 0deg)) translateY(-2px); }
#verificar .chip:nth-child(odd) { --rot: -1.7deg; }
#verificar .chip:nth-child(3n) { --rot: 1.6deg; }
#verificar .chip:nth-child(4n) { --rot: -0.7deg; }
.fx #verificar .chips .chip { opacity: 0; }
.fx #verificar .chips.in .chip { animation: stampIn 0.5s cubic-bezier(0.16, 1.1, 0.3, 1) both; }
.fx #verificar .chips.in .chip:nth-child(1) { animation-delay: 0.05s; }
.fx #verificar .chips.in .chip:nth-child(2) { animation-delay: 0.22s; }
.fx #verificar .chips.in .chip:nth-child(3) { animation-delay: 0.39s; }
.fx #verificar .chips.in .chip:nth-child(4) { animation-delay: 0.56s; }
.fx #verificar .chips.in .chip:nth-child(5) { animation-delay: 0.73s; }
.fx #verificar .chips.in .chip:nth-child(6) { animation-delay: 0.90s; }
@keyframes stampIn {
  0%   { opacity: 0; transform: scale(1.9) rotate(var(--rot, 0deg)); filter: blur(2px); }
  55%  { opacity: 1; transform: scale(0.93) rotate(var(--rot, 0deg)); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(var(--rot, 0deg)); }
}

/* — Firma del autor (trazo SVG naranja) — */
.sign-flourish { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sign-name { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.01em; color: var(--ink-navy); }
.sign-stroke { width: clamp(150px, 16vw, 220px); height: auto; overflow: visible; }
.sign-stroke path { stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 240; stroke-dashoffset: 240; }
.sign-flourish.in .sign-stroke path { animation: signDraw 1.1s 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
html:not(.fx) .sign-stroke path { stroke-dashoffset: 0; }
@keyframes signDraw { to { stroke-dashoffset: 0; } }

/* — Retrato duotono que se revela — */
.portrait--duo .portrait__img { filter: grayscale(0.92) sepia(0.3) hue-rotate(-14deg) saturate(1.5) contrast(1.05); transition: filter 0.7s ease; }
.portrait--duo:hover .portrait__img { filter: none; }

/* — Estado del caso (CTA final) — */
.case-status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 9px 18px; border: 1px solid rgba(248, 245, 238, 0.16); border-radius: 100px;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; letter-spacing: 0.14em; color: rgba(248, 245, 238, 0.72);
}
.case-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: casePulse 2.2s infinite; }
@keyframes casePulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 194, 122, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 194, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 194, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .case-status__dot { animation: none; } }

/* — FAQ como transcripción de interrogatorio — */
.faq-pfx { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; color: var(--amber); margin-right: 10px; font-size: 0.82em; font-weight: 400; }
.faq-pfx--r { color: var(--ink-navy-mut); }
.faq-item.open .faq-a__inner::after { content: "\258C"; margin-left: 7px; color: var(--amber); animation: caretBlink 1.05s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .faq-item.open .faq-a__inner::after { animation: none; } }

/* — Odómetro en los stats 59 / 8 / 4 — */
.odo { display: inline-flex; }
/* el clip de gradiente del padre no alcanza a los dígitos anidados:
   se neutraliza y cada dígito recibe su propio gradiente */
.stat__num .grad.odo { background: none; -webkit-text-fill-color: currentColor; color: var(--orange); }
.odo__col { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1); }
.odo__strip i {
  font-style: normal; display: block; height: 1em; line-height: 1;
  background: linear-gradient(160deg, var(--amber), var(--orange) 55%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* — Radar: hallazgos detectados — */
.hblip-tag {
  position: absolute; transform: translate(-50%, -50%); opacity: 0;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; white-space: nowrap;
  color: rgba(241, 212, 50, 0.9); background: rgba(39, 44, 87, 0.55);
  border: 1px solid rgba(241, 212, 50, 0.28); border-radius: 4px; padding: 4px 9px;
}
.hblip-tag.go { animation: tagPing 3.6s ease both; }
@keyframes tagPing {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  12%  { opacity: 0.95; transform: translate(-50%, -50%) scale(1); }
  70%  { opacity: 0.8; }
  100% { opacity: 0; }
}
