/* =============================================================
   Psicozona · styles.css
   Arquetipo 08 — Liquid Wave, llevado a un espacio de salud mental:
   aguas calmas, formas orgánicas que respiran, ningún borde duro.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #eaf6f3;
  --bg-2: #d8eee8;
  --paper: #fbfefd;
  --white: #ffffff;
  --deep: #0b4a4f;
  --deep-2: #083a3e;
  --ink: #06282b;
  --ink-soft: #2a4a4d;
  --ink-mute: #4d6a6c;
  --accent: #14a38b;
  --accent-ink: #0b7a69;
  --sun: #ffcf6e;
  --coral-ink: #9b3a2f;
  --on-deep: #e3f6f1;
  --on-deep-soft: rgba(227, 246, 241, 0.78);
  --line: rgba(6, 40, 43, 0.1);
  --line-strong: rgba(6, 40, 43, 0.2);

  /* Tonos de resultado */
  --tone-great: #34b88f;
  --tone-ok: #84d3a5;
  --tone-mild: #f2c24e;
  --tone-mod: #f29a55;
  --tone-high: #e36c5d;
  --tone-severe: #c4463f;

  /* Color del test activo (lo pisa cada tarjeta / el modal) */
  --c1: #a7ece0;
  --c2: #4fbfcf;

  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --shadow-soft: 0 1px 2px rgba(6, 40, 43, 0.05), 0 18px 40px -22px rgba(11, 74, 79, 0.28);
  --shadow-lift: 0 2px 4px rgba(6, 40, 43, 0.05), 0 34px 60px -26px rgba(11, 74, 79, 0.42);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --nav-h: 72px;
  --breath: 12s; /* 4 s inhalar · 2 s sostener · 6 s exhalar */
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
html.is-locked { overflow: hidden; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
kbd { font-family: inherit; }
::selection { background: #bfeee3; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}
[tabindex="-1"]:focus { outline: none; }

/* Defensa (gotcha A.4.5): nunca dejar invisible un texto partido por JS */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.7rem 1.1rem; border-radius: 12px;
  background: var(--deep); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.ico {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.noscript-note {
  margin-top: 2rem; padding: 1rem 1.2rem; border-radius: 16px;
  background: #fff4e0; color: #6b4a10; font-weight: 600;
}

/* =============================================================
   4. Typography helpers
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker::before {
  content: ""; width: 26px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M1 5c3-4 5-4 8 0s5 4 8 0 5-4 8 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M1 5c3-4 5-4 8 0s5 4 8 0 5-4 8 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title {
  margin-top: 0.9rem;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  letter-spacing: -0.035em;
}
.section-lead {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 40rem;
}

/* =============================================================
   5. Components
   ============================================================= */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 54px; padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.005em; line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft),
              background-color 0.3s, color 0.3s;
}
.btn:active { transform: translateY(-1px); transition-duration: 0.12s; }
.btn-primary {
  background: var(--deep); color: #f2fffb;
  box-shadow: 0 12px 30px -14px rgba(11, 74, 79, 0.7);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7); color: var(--deep);
  box-shadow: inset 0 0 0 1.5px rgba(11, 74, 79, 0.2);
}
.btn-ghost small {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem; border-radius: 99px;
  background: var(--sun); color: var(--ink);
}
.btn-wa {
  background: #25d366; color: #05301f;
  box-shadow: 0 12px 30px -14px rgba(18, 140, 70, 0.75);
}
.btn-sm { min-height: 46px; padding: 0.65rem 1.15rem; font-size: 0.95rem; }
.btn kbd {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem; border-radius: 7px;
  background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
@media (hover: none) { .btn kbd { display: none; } }

@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-3px); background: #0e5a60; box-shadow: 0 22px 44px -18px rgba(11, 74, 79, 0.75); }
  .btn-ghost:hover { transform: translateY(-3px); background: #fff; box-shadow: inset 0 0 0 1.5px rgba(11, 74, 79, 0.32), 0 16px 34px -18px rgba(11, 74, 79, 0.5); }
  .btn-wa:hover { transform: translateY(-3px); background: #2ee172; box-shadow: 0 22px 44px -18px rgba(18, 140, 70, 0.8); }
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 34px; height: 34px; flex: none; transition: transform 0.8s var(--ease-bounce); }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.035em;
  color: var(--deep);
}
.brand-tag {
  display: none;
  margin-left: 0.35rem; padding-left: 0.85rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.78rem; line-height: 1.2; font-weight: 600; color: var(--ink-mute);
}
@media (hover: hover) { .brand:hover .brand-mark { transform: rotate(-14deg) scale(1.06); } }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(251, 254, 253, 0.95);
  box-shadow: 0 1px 0 var(--line);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .nav.is-scrolled {
    background: rgba(251, 254, 253, 0.74);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
            backdrop-filter: blur(14px) saturate(160%);
  }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: none; gap: 2rem; font-weight: 600; font-size: 0.95rem; }
.nav-link { position: relative; padding: 0.3rem 0; color: var(--ink-soft); transition: color 0.3s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-soft);
}
@media (hover: hover) {
  .nav-link:hover { color: var(--deep); }
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav-help {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: #fff; color: var(--coral-ink);
  box-shadow: inset 0 0 0 1.5px rgba(227, 108, 93, 0.35), 0 6px 18px -12px rgba(155, 58, 47, 0.5);
  font-weight: 700; font-size: 0.88rem;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.nav-help .ico { width: 1.05em; height: 1.05em; }
@media (hover: hover) {
  .nav-help:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(227, 108, 93, 0.55), 0 12px 24px -14px rgba(155, 58, 47, 0.6); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(2.2rem, 6vw, 3.5rem));
  background: var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 48% at 82% 34%, rgba(127, 214, 208, 0.42), transparent 70%),
    radial-gradient(36% 40% at 4% 96%, rgba(255, 207, 110, 0.24), transparent 70%),
    radial-gradient(30% 34% at 38% 4%, rgba(156, 201, 240, 0.24), transparent 70%);
}
.hero-grid {
  display: grid; gap: 2rem; align-items: center;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero-copy { position: relative; z-index: 2; max-width: 40rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.85rem; font-weight: 700; color: var(--ink-soft);
  animation: fadeUp 0.9s var(--ease-out) 0.05s both;
}
.eyebrow-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #a7ece0 45%, #2fb5a0 100%);
  animation: dotBreath var(--breath) ease-in-out infinite;
}

.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(2.9rem, 1.5rem + 5.2vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero-title .w {
  display: inline-block;
  animation: wordRise 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
.hero-em {
  position: relative; display: inline-block;
  font-style: normal; color: var(--deep);
  white-space: nowrap;
  isolation: isolate;
}
.hero-em-wave {
  position: absolute; z-index: -1;
  left: -1%; bottom: -0.1em;
  width: 102%; height: 0.3em;
  overflow: visible;
}
.hero-em-wave path {
  fill: none; stroke: var(--sun); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: drawLine 1.5s var(--ease-out) 0.95s forwards;
}

.hero-sub {
  margin-top: 1.5rem; max-width: 33rem;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  color: var(--ink-soft);
  animation: fadeUp 1s var(--ease-out) 0.55s both;
}
.hero-actions {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  animation: fadeUp 1s var(--ease-out) 0.7s both;
}
.hero-facts {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem;
  animation: fadeUp 1s var(--ease-out) 0.85s both;
}
.hero-facts li { display: flex; align-items: center; gap: 0.6rem; }
.hero-facts strong {
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.04em;
  color: var(--deep);
}
.hero-facts span { font-size: 0.82rem; line-height: 1.25; font-weight: 600; color: var(--ink-mute); }

/* --- Signature: el círculo que respira --- */
.hero-visual { position: relative; display: grid; place-items: center; }
.orb {
  position: relative;
  width: clamp(280px, 36vw, 470px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  animation: fadeIn 1.4s var(--ease-out) 0.3s both;
}
.orb > * { grid-area: 1 / 1; }
.orb-ring {
  width: 100%; height: 100%; border-radius: 50%;
  border: 1.5px solid rgba(11, 74, 79, 0.16);
  animation: ringBreath var(--breath) ease-in-out infinite;
}
.orb-ring--2 {
  border-style: dashed; border-color: rgba(11, 74, 79, 0.14);
  animation: ringBreathWide var(--breath) ease-in-out infinite;
}
.orb-breath {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  animation: breathe var(--breath) ease-in-out infinite;
}
.orb-breath > * { grid-area: 1 / 1; }
.orb-blob { display: block; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.orb-blob--a {
  width: 84%; height: 84%;
  background: linear-gradient(140deg, #b3f0e4 0%, #6fcfd6 52%, #2f9fb3 100%);
  box-shadow:
    inset -26px -34px 70px rgba(11, 74, 79, 0.28),
    inset 18px 20px 50px rgba(255, 255, 255, 0.45),
    0 50px 90px -36px rgba(11, 74, 79, 0.5);
  animation: morph 16s ease-in-out infinite, spin 52s linear infinite;
}
.orb-blob--b {
  width: 62%; height: 62%;
  margin: -16% 0 0 -14%;
  background: linear-gradient(200deg, rgba(255, 236, 190, 0.95) 0%, rgba(255, 196, 160, 0.55) 55%, rgba(255, 255, 255, 0) 85%);
  opacity: 0.8;
  animation: morph 12s ease-in-out infinite reverse, spin 38s linear infinite reverse;
}
.orb-shine {
  width: 30%; height: 30%; margin: -30% 0 0 -26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
}
.orb-cue {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1rem, 0.8rem + 0.6vw, 1.35rem);
  letter-spacing: 0.01em;
  color: var(--deep);
}
.orb-cue > span { grid-area: 1 / 1; opacity: 0; animation: var(--breath) ease-in-out infinite; }
.orb-cue > span:nth-child(1) { animation-name: cueIn; }
.orb-cue > span:nth-child(2) { animation-name: cueHold; }
.orb-cue > span:nth-child(3) { animation-name: cueOut; }

.orb-note {
  position: absolute; left: 0; bottom: 2%;
  display: flex; align-items: flex-end; gap: 0.1rem;
  font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--ink-soft);
  transform: rotate(-5deg);
  animation: fadeIn 1.2s var(--ease-out) 1.6s both;
}
.orb-note svg {
  width: 54px; height: 40px; margin-bottom: 0.5rem;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* --- Olas --- */
.hero-waves { position: relative; margin-top: auto; line-height: 0; }
.waves { width: 100%; height: clamp(64px, 10vw, 140px); }
.waves-layers use { animation: waveMove 22s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite; }
.waves-layers use:nth-child(1) { animation-delay: -2s;  animation-duration: 14s; }
.waves-layers use:nth-child(2) { animation-delay: -3s;  animation-duration: 18s; }
.waves-layers use:nth-child(3) { animation-delay: -4s;  animation-duration: 24s; }
.waves-layers use:nth-child(4) { animation-delay: -5s;  animation-duration: 32s; }
.waves--light use:nth-child(1) { fill: rgba(251, 254, 253, 0.6); }
.waves--light use:nth-child(2) { fill: rgba(251, 254, 253, 0.42); }
.waves--light use:nth-child(3) { fill: rgba(251, 254, 253, 0.28); }
.waves--light use:nth-child(4) { fill: var(--paper); }
.waves--deep use:nth-child(1) { fill: rgba(11, 74, 79, 0.22); }
.waves--deep use:nth-child(2) { fill: rgba(11, 74, 79, 0.4); }
.waves--deep use:nth-child(3) { fill: rgba(11, 74, 79, 0.62); }
.waves--deep use:nth-child(4) { fill: var(--deep); }

/* ---------- Divisores con forma de ola ---------- */
.divider {
  position: absolute; top: -1px; left: 0;
  width: 100%; height: clamp(46px, 7vw, 100px);
  pointer-events: none;
}

/* ---------- Tests ---------- */
.tests {
  position: relative;
  background: var(--paper);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(6rem, 11vw, 9rem);
}
.test-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.test-grid > li { display: flex; }
.test-card {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100%;
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  transition: transform 0.55s var(--ease-soft), box-shadow 0.55s var(--ease-soft);
}
.test-card::before {
  content: ""; position: absolute; z-index: -1;
  width: 240px; height: 240px; right: -90px; top: -110px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  opacity: 0.2;
  transition: transform 1s var(--ease-soft), opacity 0.5s;
}
.test-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.test-icon {
  width: 64px; height: 64px; flex: none;
  display: grid; place-items: center;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  color: var(--ink);
  box-shadow: inset 0 -10px 18px rgba(6, 40, 43, 0.08), 0 14px 26px -18px rgba(6, 40, 43, 0.5);
  transition: border-radius 0.9s var(--ease-soft), transform 0.7s var(--ease-bounce);
}
.test-icon .ico { width: 28px; height: 28px; stroke-width: 1.8; }
.test-tag, .test-badge {
  padding: 0.3rem 0.65rem; border-radius: 99px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  white-space: nowrap;
}
.test-tag { background: var(--bg); color: var(--ink-soft); }
.test-badge { background: var(--sun); color: var(--ink); letter-spacing: 0.02em; }
.test-name { margin-top: 1.35rem; font-size: 1.6rem; letter-spacing: -0.03em; }
.test-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.test-link:focus-visible { outline: none; }
.test-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 30px; }
.test-hook {
  margin-top: 0.35rem;
  font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1.12;
  color: var(--accent-ink);
}
.test-about { margin-top: 0.8rem; font-size: 0.98rem; color: var(--ink-soft); }
.test-foot {
  margin-top: auto; padding-top: 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.test-meta { display: flex; gap: 0.5rem; font-size: 0.86rem; font-weight: 700; color: var(--ink-mute); }
.test-go {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--deep); color: #fff;
  transition: transform 0.5s var(--ease-bounce), background-color 0.3s;
}
@media (hover: hover) {
  .test-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(11, 74, 79, 0.16), var(--shadow-lift); }
  .test-card:hover::before { transform: scale(1.3) rotate(28deg); opacity: 0.32; }
  .test-card:hover .test-icon { border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%; transform: rotate(-8deg) scale(1.07); }
  .test-card:hover .test-go { transform: translateX(4px); background: #0e5a60; }
}
.test-card:active { transform: translateY(-2px); }

.tests-note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.92rem; color: var(--ink-mute);
}
.tests-note .ico { color: var(--accent-ink); }

/* ---------- Cómo funciona ---------- */
.how {
  position: relative;
  background: var(--bg-2);
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.how .divider path { fill: var(--paper); }
.steps {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; gap: 2.2rem;
}
.step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; align-items: start; }
.step-num {
  grid-row: span 2;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--deep);
  transition: border-radius 0.9s var(--ease-soft), transform 0.7s var(--ease-bounce);
}
.step:nth-child(2) .step-num { border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%; }
.step:nth-child(3) .step-num { border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%; }
.step-title { font-size: 1.35rem; letter-spacing: -0.02em; align-self: end; }
.step p { margin-top: 0.4rem; color: var(--ink-soft); }
@media (hover: hover) {
  .step:hover .step-num { border-radius: 34% 66% 55% 45% / 41% 52% 48% 59%; transform: rotate(-6deg) scale(1.06); }
}

.privacy {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 52rem;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px var(--line);
}
.privacy-icon {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, #b3f0e4, #6fcfd6);
  color: var(--deep);
}
.privacy-icon .ico { width: 26px; height: 26px; }
.privacy-title { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.015em; }
.privacy-text { margin-top: 0.2rem; font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- Ayuda ---------- */
.help {
  position: relative;
  background: var(--bg-2);
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem);
  scroll-margin-top: 1rem;
}
.help-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 2rem;
  padding: clamp(1.8rem, 5vw, 4rem);
  border-radius: 36px;
  background: var(--deep);
  color: var(--on-deep);
  box-shadow: 0 50px 100px -50px rgba(7, 51, 56, 0.8);
}
.help-card::before, .help-card::after {
  content: ""; position: absolute; z-index: -1;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  pointer-events: none;
}
.help-card::before {
  width: 420px; height: 420px; right: -140px; top: -180px;
  background: linear-gradient(140deg, rgba(127, 214, 208, 0.3), rgba(47, 159, 179, 0.05));
  animation: morph 18s ease-in-out infinite;
}
.help-card::after {
  width: 300px; height: 300px; left: -120px; bottom: -160px;
  background: linear-gradient(200deg, rgba(255, 207, 110, 0.22), rgba(255, 207, 110, 0));
  animation: morph 14s ease-in-out infinite reverse;
}
.help-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: var(--sun);
}
.help-icon .ico { width: 26px; height: 26px; }
.help-title {
  margin-top: 1.4rem;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  letter-spacing: -0.035em;
  color: #fff;
}
.help-text { margin-top: 1rem; font-size: 1.1rem; color: var(--on-deep-soft); max-width: 30rem; }
.help-note { grid-column: 1 / -1; margin-top: -0.8rem; font-size: 0.95rem; color: var(--on-deep-soft); }
.lines { display: grid; gap: 0.75rem; }
.line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1rem;
  padding: 1.05rem 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s, transform 0.45s var(--ease-soft), box-shadow 0.3s;
}
.line-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem);
  letter-spacing: -0.02em; line-height: 1.1;
  color: #fff;
  transition: color 0.3s;
}
.line-nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.line-or { font-size: 0.95rem; color: var(--on-deep-soft); }
.line-where { font-size: 0.95rem; color: var(--on-deep-soft); }
@media (hover: hover) {
  a.line:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(4px); box-shadow: inset 0 0 0 1px rgba(255, 207, 110, 0.45); }
  a.line:hover .line-num, .line--double a.line-num:hover { color: var(--sun); }
}
.help-card :focus-visible { outline-color: var(--sun); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--bg-2); color: var(--on-deep); }
.footer-waves { line-height: 0; }
.waves--footer { height: clamp(56px, 8vw, 110px); }
.footer-body { margin-top: -1px; background: var(--deep); padding: clamp(1.5rem, 4vw, 2.5rem) 0 2rem; }
.footer-top { display: grid; gap: 2.5rem; }
.footer .brand-name { color: #fff; }
.footer-disclaimer { margin-top: 1.2rem; max-width: 34rem; font-size: 0.95rem; color: var(--on-deep-soft); }
.footer-h {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sun);
}
.footer-col ul { margin-top: 0.9rem; display: grid; gap: 0.45rem; font-size: 0.93rem; color: var(--on-deep-soft); }
.footer-col a { color: #fff; font-weight: 700; }
.footer-small { margin-top: 0.9rem; font-size: 0.82rem; color: rgba(227, 246, 241, 0.6); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem; color: rgba(227, 246, 241, 0.7);
}
.footer-up { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: #fff; }
@media (hover: hover) {
  .footer-col a:hover, .footer-up:hover { color: var(--sun); }
}
.footer :focus-visible { outline-color: var(--sun); }

/* =============================================================
   7. Test runner (modal)
   ============================================================= */
.runner {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink);
  overflow: hidden;
}
.runner:not([open]) { display: none; }
.runner[open] { display: grid; place-items: center; }
.runner::backdrop { background: rgba(4, 32, 35, 0.55); }
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .runner::backdrop {
    background: rgba(4, 32, 35, 0.42);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
  }
}
.runner-panel {
  position: relative; isolation: isolate;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: var(--paper);
  animation: panelIn 0.6s var(--ease-out) both;
}
.runner-panel::before {
  content: ""; position: absolute; z-index: -1;
  width: 360px; height: 360px; top: -170px; right: -130px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  opacity: 0.35;
  animation: morph 16s ease-in-out infinite;
  pointer-events: none;
}

.runner-top {
  position: sticky; top: 0; z-index: 5;
  padding: 1rem clamp(1.25rem, 4vw, 2.4rem) 0.95rem;
  background: rgba(251, 254, 253, 0.94);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .runner-top {
    background: rgba(251, 254, 253, 0.72);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
  }
}
.runner-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.runner-id { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.runner-dot {
  width: 16px; height: 16px; flex: none;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
}
.runner-name {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.runner-tag {
  padding: 0.18rem 0.55rem; border-radius: 99px;
  background: var(--bg); color: var(--ink-soft);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; white-space: nowrap;
}
.runner-close {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  transition: background-color 0.25s, transform 0.5s var(--ease-bounce);
}
@media (hover: hover) { .runner-close:hover { background: var(--bg-2); transform: rotate(90deg); } }
.runner-progress {
  margin-top: 0.9rem; height: 8px;
  border-radius: 99px; overflow: hidden;
  background: var(--bg-2);
}
.runner-progress-fill {
  display: block; height: 100%;
  width: calc(var(--p, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c2), var(--c1), var(--c2));
  background-size: 200% 100%;
  animation: liquid 3s linear infinite;
  transition: width 0.7s var(--ease-out);
}

.runner-stage {
  flex: 1;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.25rem, 4vw, 2.6rem) clamp(1.75rem, 4vw, 2.6rem);
}
.screen {
  flex: 1;
  display: flex; flex-direction: column;
  width: 100%; max-width: 40rem; margin-inline: auto;
  animation: screenIn 0.55s var(--ease-out) both;
}
.screen.is-back { animation-name: screenInBack; }
.screen-kicker {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.screen-title {
  margin-top: 0.5rem;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  letter-spacing: -0.04em;
}

/* --- Intro --- */
.intro-blob {
  width: 84px; height: 84px; margin-bottom: 1.6rem;
  display: grid; place-items: center;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  color: var(--ink);
  box-shadow: inset 0 -12px 22px rgba(6, 40, 43, 0.08), 0 20px 36px -22px rgba(6, 40, 43, 0.55);
  animation: morph 12s ease-in-out infinite;
}
.intro-blob .ico { width: 36px; height: 36px; stroke-width: 1.7; }
.intro-text { margin-top: 1rem; font-size: 1.12rem; color: var(--ink-soft); }
.intro-facts { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; padding: 0; }
.intro-facts li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.85rem; border-radius: 99px;
  background: var(--bg);
  font-size: 0.9rem; font-weight: 700; color: var(--ink-soft);
}
.intro-facts .ico { color: var(--accent-ink); }
.intro-note {
  margin-top: 1.2rem; padding: 0.8rem 1rem; border-radius: 14px;
  background: #fff6e2; color: #6b4a10; font-size: 0.95rem; font-weight: 600;
}
.intro-actions { margin-top: 2.2rem; }
/* Pantalla entre dos partes de un test */
.screen-bridge .intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; }

/* --- Pregunta --- */
.q-count { font-size: 0.92rem; font-weight: 600; color: var(--ink-mute); }
.q-count span { font-weight: 800; color: var(--ink); }
.q-part { /* en qué parte del test está (tests con varias partes) */
  margin-left: 0.5rem; padding: 0.15rem 0.6rem; border-radius: 99px;
  background: linear-gradient(120deg, var(--c1), var(--c2));
  font-style: normal; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--ink); white-space: nowrap;
}
.q-stem { margin-top: 1.4rem; font-size: 1rem; font-weight: 600; color: var(--ink-mute); }
.q-text {
  margin-top: 0.5rem;
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem);
  line-height: 1.2; letter-spacing: -0.025em;
}
.q-options { margin-top: 1.8rem; display: grid; gap: 0.65rem; }
.opt {
  position: relative;
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; min-height: 58px;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  text-align: left; font-weight: 600; font-size: 1.03rem; line-height: 1.3;
  transition: box-shadow 0.25s, background-color 0.25s, transform 0.35s var(--ease-soft);
}
.opt-key {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--bg);
  font-size: 0.9rem; font-weight: 800; color: var(--ink-soft);
  transition: background-color 0.25s, color 0.25s;
}
.opt-label { flex: 1; }
.opt-check {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.25s, transform 0.4s var(--ease-bounce);
}
@media (hover: hover) {
  .opt:hover {
    background: #f1faf8;
    background: color-mix(in srgb, var(--c1) 24%, #fff);
    box-shadow: inset 0 0 0 1.5px var(--c2);
    transform: translateX(4px);
  }
}
.opt:active { transform: scale(0.99); }
.opt.is-chosen {
  background: linear-gradient(120deg, var(--c1), var(--c2));
  box-shadow: 0 14px 28px -16px rgba(6, 40, 43, 0.5);
  transform: none;
}
.opt.is-chosen .opt-key { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.opt.is-chosen .opt-check { opacity: 1; transform: none; }

.q-foot {
  margin-top: auto; padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.q-nav {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0.4rem 0.2rem;
  font-weight: 700; color: var(--ink-soft);
  transition: color 0.25s, transform 0.35s var(--ease-soft);
}
.q-nav--next { color: var(--deep); }
@media (hover: hover) {
  .q-nav:hover { color: var(--deep); transform: translateX(-3px); }
  .q-nav--next:hover { transform: translateX(3px); }
}
.q-hint { display: none; font-size: 0.85rem; color: var(--ink-mute); }
@media (hover: hover) and (pointer: fine) { .q-hint { display: block; } }

/* --- Resultado --- */
.res-alert {
  margin-bottom: 2rem; padding: 1.3rem 1.4rem;
  border-radius: 22px;
  background: #fff1ec;
  box-shadow: inset 0 0 0 1.5px rgba(227, 108, 93, 0.42);
  color: #5b2a24;
}
.res-alert-title { font-weight: 800; font-size: 1.05rem; color: #8f3127; }
.res-alert p + p { margin-top: 0.35rem; }
.res-alert-lines { margin-top: 0.9rem; display: grid; gap: 0.4rem; list-style: none; padding: 0; }
.res-alert-lines a {
  font-weight: 800; color: #8f3127;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.res-alert .res-alert-note { margin-top: 0.8rem; font-size: 0.92rem; }

.res-score {
  margin-top: 0.8rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 3rem + 5vw, 6.2rem);
  line-height: 0.9; letter-spacing: -0.05em;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
.res-score small { margin-left: 0.25em; font-size: 0.3em; letter-spacing: 0; color: var(--ink-mute); }
.res-title {
  margin-top: 1rem;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  letter-spacing: -0.03em;
}
.res-title span {
  background-image: linear-gradient(var(--tone), var(--tone));
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding-inline: 0.05em;
}

.res-scale { position: relative; margin-top: 1.8rem; padding-top: 2.4rem; }
.res-track { display: flex; gap: 4px; height: 14px; }
.res-track .seg { flex: 1 1 0; border-radius: 99px; background: var(--tone); opacity: 0.32; }
.res-track .seg[data-active] { opacity: 1; }
.res-marker {
  position: absolute; top: calc(2.4rem + 7px);
  left: calc(var(--pos, 0) * 100%);
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #fff; border: 5px solid var(--ink);
  box-shadow: 0 8px 18px -6px rgba(6, 40, 43, 0.5);
  transition: left 1.4s var(--ease-out) 0.15s;
}
.res-marker-bubble {
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.6rem; border-radius: 99px;
  background: var(--ink); color: #fff;
  font-size: 0.75rem; font-weight: 800; white-space: nowrap;
}
.res-marker-bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--ink);
}
.res-legend {
  margin-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.45rem 1rem;
  list-style: none; padding: 0;
  font-size: 0.84rem; color: var(--ink-mute);
}
.res-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.res-legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.res-legend small { font-size: 0.78rem; opacity: 0.8; }
.res-legend li.is-active { color: var(--ink); font-weight: 800; }

/* Resultado de un test con varias partes: un bloque por parte, con el color de esa parte */
.res-head { margin-top: 0.5rem; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); letter-spacing: -0.035em; }
.res-parts { margin-top: 1.5rem; display: grid; gap: 1rem; }
.res-part {
  padding: 1.2rem 1.3rem 1.35rem;
  border-radius: 24px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 14px 30px -26px rgba(11, 74, 79, 0.5);
}
.res-part-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem;
  font-size: 0.95rem; font-weight: 700; color: var(--ink-soft);
}
.res-part-tag {
  padding: 0.2rem 0.65rem; border-radius: 99px;
  background: linear-gradient(120deg, var(--c1), var(--c2));
  font-family: var(--sans); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.res-part-top { margin-top: 0.9rem; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 1.3rem; }
.res-part .res-score { margin-top: 0; font-size: clamp(3rem, 2.5rem + 2.6vw, 4.2rem); }
.res-part .res-title { margin-top: 0; padding-bottom: 0.2rem; font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem); }
.res-part .res-scale { margin-top: 1.1rem; }
.res-sub-part { margin-top: 1.6rem; }
.res-part-h {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink);
}
.res-part-h + .res-p { margin-top: 0.7rem; }

/* Secciones de información del resultado */
.res-section {
  margin-top: 2.2rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.res-legend + .res-section { margin-top: 2rem; }
.res-h {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 1.22rem; letter-spacing: -0.02em;
}
.res-h .ico {
  width: 34px; height: 34px; padding: 7px; flex: none;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  color: var(--ink); stroke-width: 2;
}
.res-p { margin-top: 0.9rem; font-size: 1.04rem; line-height: 1.7; color: var(--ink-soft); }
.res-small { margin-top: 0.6rem; font-size: 0.88rem; color: var(--ink-mute); }

/* Bloques plegables del resultado ("es común que…", "lo que más pesó"): llegan cerrados */
.res-fold {
  margin-top: 1.2rem;
  border-radius: 20px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow 0.3s;
}
.res-fold--block { margin-top: 0.7rem; }
.res-fold > summary {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 62px; padding: 0.8rem 1rem 0.8rem 0.85rem;
  border-radius: inherit;
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 800; font-size: 1.04rem; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink);
}
.res-fold > summary::-webkit-details-marker { display: none; }
.res-fold > summary:focus-visible { outline-offset: 2px; border-radius: 20px; }
.res-fold > summary .ico {
  width: 36px; height: 36px; padding: 8px; flex: none;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  color: var(--ink); stroke-width: 2;
}
.res-fold-label { flex: 1; min-width: 0; }
.res-fold-hint { font-family: var(--sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0; color: var(--accent-ink); }
.res-fold-hint .when-open, .res-fold[open] .res-fold-hint .when-closed { display: none; }
.res-fold[open] .res-fold-hint .when-open { display: inline; }
.res-fold-chev {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.4s var(--ease-out);
}
.res-fold[open] .res-fold-chev { transform: rotate(180deg); }
.res-fold[open] { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.res-fold-body { padding: 0 1rem 1.15rem; animation: foldIn 0.4s var(--ease-out) both; }
.res-fold-body > :first-child { margin-top: 0.2rem; }
.res-fold-body .res-item { background: var(--bg); box-shadow: none; }
.res-fold-body .res-item-answer b { background: var(--white); }
@media (hover: hover) { .res-fold:not([open]):hover { box-shadow: inset 0 0 0 1.5px var(--c2); } }
@keyframes foldIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.res-bullets { margin-top: 0.7rem; display: grid; gap: 0.55rem; list-style: none; padding: 0; }
.res-bullets li { position: relative; padding-left: 1.6rem; line-height: 1.6; color: var(--ink-soft); }
.res-bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 12px; height: 12px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
}

/* Lo que más pesó */
.res-items { margin-top: 0.9rem; display: grid; gap: 0.5rem; list-style: none; padding: 0; }
.res-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.res-item-label { font-weight: 700; color: var(--ink); }
.res-item-answer {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
}
.res-item-answer b {
  min-width: 2.1em; padding: 0.1rem 0.45rem; border-radius: 99px;
  background: var(--bg); color: var(--ink);
  font-size: 0.8rem; font-weight: 800; text-align: center;
}
.res-item.is-max .res-item-answer b { background: linear-gradient(120deg, var(--c1), var(--c2)); }

/* Recomendaciones (resultado moderado o alto): panel destacado, lo más visible del resultado */
.res-recs {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 2rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: 30px;
  background: linear-gradient(165deg, #0b4a4f 0%, #0d5158 55%, #116069 100%);
  color: var(--on-deep);
  box-shadow: 0 34px 60px -34px rgba(7, 51, 56, 0.85);
}
.res-recs::before, .res-recs::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
}
.res-recs::before {
  width: 300px; height: 300px; right: -120px; top: -150px;
  background: linear-gradient(140deg, rgba(127, 214, 208, 0.34), rgba(47, 159, 179, 0.05));
  animation: morph 18s ease-in-out infinite;
}
.res-recs::after {
  width: 220px; height: 220px; left: -110px; bottom: -130px;
  background: linear-gradient(200deg, rgba(255, 207, 110, 0.26), rgba(255, 207, 110, 0));
  animation: morph 14s ease-in-out infinite reverse;
}
.res-recs-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem; border-radius: 99px;
  background: var(--sun); color: var(--ink);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.res-recs-kicker::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--deep);
  animation: dotBreath 2.4s ease-in-out infinite;
}
.res-recs-title {
  margin-top: 0.9rem;
  font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.1rem); letter-spacing: -0.03em;
  color: #fff;
}
.res-recs-intro { margin-top: 0.5rem; font-size: 1.05rem; line-height: 1.6; color: var(--on-deep-soft); }
.res-recs .recs { margin-top: 1.3rem; }
/* Dentro del panel, el número va en la misma línea que el título y el resto usa todo el ancho */
.res-recs .rec {
  grid-template-columns: auto minmax(0, 1fr); align-items: center; row-gap: 0.15rem;
  box-shadow: 0 20px 36px -26px rgba(0, 0, 0, 0.6);
}
.res-recs .rec-body { display: contents; }
.res-recs .rec-body > * { grid-column: 1 / -1; }
.res-recs .rec-body > .rec-title { grid-column: 2; margin-top: 0; }
.res-recs .rec-body > .rec-btn { justify-self: start; }
.res-recs .recs--single .rec { grid-template-columns: minmax(0, 1fr); }
.res-recs .recs--single .rec-body > .rec-title { grid-column: 1; }
.res-recs .rec-num { background: var(--sun); }
.res-recs .ebook-buy .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 539px) {
  /* En el celular el panel usa también el margen del modal, para no achicar las fichas */
  .res-recs { margin-inline: -0.6rem; padding: 1.3rem 0.8rem 0.9rem; border-radius: 26px; }
  .res-recs-kicker, .res-recs-title, .res-recs-intro { margin-left: 0.35rem; margin-right: 0.35rem; }
  .res-recs .rec { padding: 1.05rem 0.95rem 1.1rem; }
  .res-recs .pro, .res-recs .rec .ebook { padding: 0.95rem; }
}

.recs { margin-top: 1rem; display: grid; gap: 0.8rem; list-style: none; padding: 0; }
.rec {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem;
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: 22px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 14px 30px -26px rgba(11, 74, 79, 0.5);
}
.rec-num {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  font-family: var(--display); font-weight: 800; color: var(--ink);
}
.rec-title {
  margin-top: 0.4rem;
  font-family: var(--display); font-weight: 800; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink);
}
.rec-text { margin-top: 0.4rem; line-height: 1.6; color: var(--ink-soft); text-wrap: wrap; }
.rec-btn { margin-top: 1rem; }
.rec .ebook { padding: 1.2rem; }
/* Una sola recomendación: sin número */
.recs--single .rec { grid-template-columns: minmax(0, 1fr); }
.recs--single .rec-num { display: none; }
.recs--single .rec-title { margin-top: 0; }
@media (max-width: 539px) {
  .rec { grid-template-columns: minmax(0, 1fr); }
  .rec-num { width: 34px; height: 34px; }
  .rec .ebook-cover { width: 130px; }
}

/* Recomendación: ebook */
.ebook {
  margin-top: 1.1rem;
  display: grid; gap: 1.4rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ebook-cover {
  width: 150px; height: auto;
  justify-self: center;
  border-radius: 3px 9px 9px 3px;
  box-shadow:
    inset 3px 0 0 rgba(255, 255, 255, 0.18),
    0 2px 6px rgba(6, 40, 43, 0.25),
    0 26px 44px -20px rgba(6, 40, 43, 0.7);
  transform: perspective(900px) rotateY(-12deg) rotateX(2deg);
  transition: transform 0.7s var(--ease-soft);
}
@media (hover: hover) { .ebook:hover .ebook-cover { transform: perspective(900px) rotateY(0deg) translateY(-4px); } }
.ebook-meta {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
}
.ebook-title {
  margin-top: 0.35rem;
  font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.12; letter-spacing: -0.025em;
  color: var(--ink);
}
.ebook-sub { margin-top: 0.25rem; font-style: italic; color: var(--ink-soft); }
.ebook-author { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-mute); }
.ebook-inside-h { margin-top: 1.1rem; font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.ebook-inside { margin-top: 0.45rem; display: grid; gap: 0.4rem; list-style: none; padding: 0; }
.ebook-inside li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }
.ebook-inside li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 10px; height: 10px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--c1), var(--c2));
}
/* Ficha corta del ebook (en los resultados): el libro lleva a ebook.html */
.ebook-cover-link { display: block; justify-self: center; border-radius: 3px 9px 9px 3px; }
.ebook-cover-link:focus-visible { outline-offset: 6px; }
.ebook--compact .ebook-cover { width: 120px; }
.ebook--compact .ebook-buy { margin-top: 1rem; }
.ebook-more {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.95rem; font-weight: 700; color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.ebook-more .ico { width: 1em; height: 1em; transition: transform 0.35s var(--ease-soft); }
@media (hover: hover) { .ebook-more:hover .ico { transform: translateX(3px); } }
@media (min-width: 540px) {
  .ebook--compact { grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .ebook--compact .ebook-cover-link { justify-self: start; }
}
.ebook-buy { margin-top: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; }
.ebook-price {
  font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
}
.ebook-price small { font-size: 0.5em; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-mute); }
.ebook-note { margin-top: 0.7rem; font-size: 0.86rem; line-height: 1.5; color: var(--ink-mute); }
/* Botón de Mercado Pago (azul de la marca, oscurecido para que el texto blanco se lea bien) */
.btn-mp { background: #0a74b5; color: #fff; box-shadow: 0 12px 30px -14px rgba(10, 116, 181, 0.75); }
@media (hover: hover) { .btn-mp:hover { transform: translateY(-3px); background: #0b82c9; } }
@media (min-width: 540px) {
  .ebook { grid-template-columns: 150px 1fr; align-items: start; gap: 1.6rem; }
  .ebook-cover { justify-self: start; }
}

/* Recomendación: consultar. Ficha corta de quien atiende (la foto lleva a sobre-mi.html) */
.pro {
  margin-top: 1.1rem; padding: 1.1rem 1.2rem 1.25rem;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pro-intro { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.pro-id { margin-top: 0.85rem; display: flex; align-items: center; gap: 0.95rem; }
.pro-photo-link { flex: none; border-radius: 50%; }
.pro-photo {
  width: 68px; height: 68px; flex: none;
  border-radius: 50%; object-fit: cover; object-position: 50% 15%;
  background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c2), 0 14px 26px -16px rgba(6, 40, 43, 0.6);
  transition: transform 0.5s var(--ease-bounce);
}
@media (hover: hover) { .pro-photo-link:hover .pro-photo { transform: scale(1.06) rotate(-3deg); } }
.pro-name {
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink);
}
.pro-role { margin-top: 0.2rem; font-size: 0.92rem; font-weight: 700; line-height: 1.35; color: var(--accent-ink); }
.pro-role span { display: block; }
.pro-role .sep { display: none; }
.pro-actions { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.pro-actions .ebook-more { margin-top: 0; }

.res-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.res-fine { margin-top: 1.6rem; font-size: 0.82rem; line-height: 1.55; color: var(--ink-mute); }
.res-fine + .res-fine { margin-top: 0.5rem; }

/* ---------- Página desplegable encima del resultado (dialog + iframe) ---------- */
.sheet {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink);
  overflow: hidden;
}
.sheet:not([open]) { display: none; }
.sheet[open] { display: grid; place-items: center; }
.sheet::backdrop { background: rgba(4, 32, 35, 0.6); }
.sheet-panel {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  animation: sheetIn 0.55s var(--ease-out) both;
}
.sheet-bar {
  position: relative; z-index: 1; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem clamp(0.9rem, 3vw, 1.4rem);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.sheet-close {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 44px; padding: 0.5rem 1.05rem 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--deep); color: #f2fffb;
  font-weight: 700; font-size: 0.92rem; line-height: 1.2;
  transition: transform 0.45s var(--ease-soft), background-color 0.3s;
}
.sheet-close .ico { transition: transform 0.35s var(--ease-soft); }
@media (hover: hover) {
  .sheet-close:hover { background: #0e5a60; }
  .sheet-close:hover .ico { transform: translateX(-3px); }
}
.sheet-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.015em;
  color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sheet-frame { flex: 1; display: block; width: 100%; min-height: 0; border: 0; background: var(--bg); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@media (min-width: 720px) {
  .sheet[open] { padding: 1.5rem; }
  .sheet-panel {
    width: min(1120px, 100%);
    max-height: calc(100svh - 3rem);
    border-radius: 30px;
    box-shadow: 0 50px 120px -40px rgba(4, 32, 35, 0.75);
  }
}

/* sobre-mi.html cuando se muestra adentro del panel: sin su barra de arriba ni enlaces que salgan */
html.is-embedded { --nav-h: 0px; }
.is-embedded .nav, .is-embedded .skip-link, .is-embedded .footer-up { display: none; }

/* ---------- Páginas de los ebooks (ebook.html, jardin.html) ---------- */
/* Cada libro tiñe la página con los colores de su tapa
   (sobre-mi.html usa los mismos bloques, con los colores del sitio) */
.page-ebook, .page-perfil {
  --eb-1: #0a2a33; --eb-2: #0b3f46; --eb-3: #0f5a62;
  --eb-em: #9fe6dc; --eb-kicker: var(--sun);
  --eb-soft-1: #a3e9df; --eb-soft-2: #5bc2d4;
  --eb-glow: rgba(127, 214, 208, 0.24);
  --eb-foot: var(--deep);
}
.page-jardin {
  --eb-1: #0f1b16; --eb-2: #1c3327; --eb-3: #2d553f;
  --eb-em: #bfe8c6; --eb-kicker: #d6e7a1;
  --eb-soft-1: #c8f2d6; --eb-soft-2: #72d09c;
  --eb-glow: rgba(140, 205, 155, 0.24);
  --eb-foot: #1c3327;
}
.page-ebook .nav:not(.is-scrolled) .brand-name { color: #fff; }
.nav-buy { min-height: 42px; padding-inline: 1rem; }

.eb-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vw, 3rem));
  background:
    radial-gradient(45% 50% at 78% 30%, var(--eb-glow), transparent 70%),
    radial-gradient(30% 35% at 8% 88%, rgba(255, 207, 110, 0.12), transparent 70%),
    linear-gradient(180deg, var(--eb-1) 0%, var(--eb-2) 55%, var(--eb-3) 100%);
  color: var(--on-deep);
}
.eb-hero-grid { display: grid; gap: 2.8rem; align-items: center; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.eb-kicker {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--eb-kicker);
  animation: fadeUp 0.9s var(--ease-out) 0.05s both;
}
.eb-title {
  margin-top: 1rem; max-width: 13ch;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em;
  color: #fff;
  animation: fadeUp 1s var(--ease-out) 0.15s both;
}
.eb-title em { font-style: normal; color: var(--eb-em); }
.eb-lead {
  margin-top: 1.3rem; max-width: 36rem;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  color: var(--on-deep-soft);
  animation: fadeUp 1s var(--ease-out) 0.3s both;
}
.eb-lead strong { color: #fff; }
.eb-chips { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; animation: fadeUp 1s var(--ease-out) 0.45s both; }
.eb-chips li {
  padding: 0.4rem 0.85rem; border-radius: 99px;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 0.86rem; font-weight: 600; color: var(--on-deep);
}
.eb-buy { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; }
.eb-hero .eb-buy { animation: fadeUp 1s var(--ease-out) 0.55s both; }
.eb-price {
  font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); color: #fff;
}
.eb-price small { font-size: 0.42em; letter-spacing: 0.04em; color: var(--on-deep-soft); }
.eb-buy-note { margin-top: 0.7rem; font-size: 0.9rem; color: var(--on-deep-soft); }

/* El libro en 3D */
.eb-hero-book { position: relative; display: grid; place-items: center; perspective: 1400px; }
.eb-hero-book::before {
  content: ""; position: absolute; z-index: -1; width: 120%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--eb-glow) 0%, transparent 62%);
}
.book3d {
  position: relative;
  width: clamp(190px, 26vw, 320px);
  transform: rotateY(-16deg) rotateX(3deg);
  animation: bookFloat 7s ease-in-out infinite, fadeIn 1.2s var(--ease-out) 0.3s both;
}
.book3d img {
  position: relative; z-index: 2;
  width: 100%; height: auto;
  border-radius: 3px 10px 10px 3px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 60px 120px -40px rgba(0, 0, 0, 0.55);
}
.book3d::before { /* las hojas */
  content: ""; position: absolute; z-index: 1;
  top: 1.5%; bottom: 1.5%; right: -11px; width: 13px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(180deg, #f4efe4 0 2px, #d9d1bf 2px 3px);
}
.book3d::after { /* brillo del lomo */
  content: ""; position: absolute; z-index: 3; inset: 0 auto 0 0; width: 8%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.eb-hero-waves { position: relative; line-height: 0; }
.eb-boat {
  position: absolute; z-index: 1;
  left: 18%; bottom: 58%;
  width: clamp(26px, 3vw, 40px); height: auto;
  transform-origin: 50% 90%;
  animation: boatBob 6s ease-in-out infinite;
}

/* Secciones */
.eb-section { position: relative; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.eb-narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.eb-pain { background: var(--paper); }
.eb-checks { margin-top: 2rem; display: grid; gap: 0.75rem; }
.eb-checks li {
  position: relative;
  padding: 1rem 1.2rem 1rem 3.3rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  font-weight: 600; line-height: 1.5; color: var(--ink);
}
.eb-checks li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.05rem;
  width: 24px; height: 24px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--eb-soft-1), var(--eb-soft-2));
}
.eb-checks li::after {
  content: ""; position: absolute; left: 1.47rem; top: 1.38rem;
  width: 9px; height: 5px;
  border-left: 2.5px solid var(--deep); border-bottom: 2.5px solid var(--deep);
  transform: rotate(-45deg);
}
.eb-pain-close { margin-top: 1.8rem; font-size: 1.12rem; color: var(--ink-soft); }
.eb-pain-close strong { color: var(--deep); }

.eb-idea { background: var(--bg-2); padding-top: clamp(6rem, 12vw, 8.5rem); padding-bottom: 2rem; }
.eb-idea .divider path { fill: var(--paper); }
.eb-ideas { margin-top: 2.5rem; display: grid; gap: 1rem; }
.eb-idea-card {
  padding: 1.6rem;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
}
.eb-idea-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: linear-gradient(140deg, var(--eb-soft-1), var(--eb-soft-2));
  font-family: var(--display); font-weight: 800; color: var(--ink);
}
.eb-idea-card h3 { margin-top: 1rem; font-size: 1.3rem; letter-spacing: -0.02em; }
.eb-idea-card p { margin-top: 0.5rem; color: var(--ink-soft); }

.eb-route { background: var(--bg-2); padding-top: clamp(3rem, 7vw, 5rem); }
.eb-steps { position: relative; max-width: 46rem; margin: 2.5rem auto 0; display: grid; gap: 0.9rem; }
.eb-steps::before {
  content: ""; position: absolute; left: 35px; top: 1.5rem; bottom: 1.5rem; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(11, 74, 79, 0.28) 0 6px, transparent 6px 12px);
}
.eb-step {
  position: relative;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1.2rem 1.3rem 1.25rem 0.75rem;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.eb-step-num {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--eb-soft-2);
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--deep);
}
.eb-step h3 { margin-top: 0.55rem; font-size: 1.18rem; letter-spacing: -0.015em; }
.eb-step p { margin-top: 0.35rem; color: var(--ink-soft); }
.eb-step-badge {
  display: inline-block; margin-top: 0.2rem !important;
  padding: 0.15rem 0.6rem; border-radius: 99px;
  background: var(--sun); color: var(--ink) !important;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.eb-step-badge + h3 { margin-top: 0.4rem; }
.eb-step-badge--bonus { background: #ffd6c6; }
.eb-step--key {
  background: linear-gradient(135deg, var(--eb-2), var(--eb-3));
  box-shadow: 0 30px 60px -30px rgba(7, 51, 56, 0.75);
}
.eb-step--key h3 { color: #fff; }
.eb-step--key p { color: var(--on-deep-soft); }
.eb-step--key .eb-step-num { background: var(--sun); box-shadow: none; color: var(--ink); }

.eb-made { background: var(--paper); padding-top: clamp(6rem, 12vw, 8.5rem); }
.eb-made .divider path { fill: var(--bg-2); }
.eb-features { margin-top: 2.5rem; display: grid; gap: 1rem; }
.eb-features li { padding: 1.4rem 1.5rem; border-radius: 22px; background: var(--bg); }
.eb-features h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; letter-spacing: -0.015em; }
.eb-features h3::before {
  content: ""; width: 26px; height: 10px; flex: none;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M1 5c3-4 5-4 8 0s5 4 8 0 5-4 8 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M1 5c3-4 5-4 8 0s5 4 8 0 5-4 8 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.eb-features p { margin-top: 0.4rem; font-size: 0.98rem; color: var(--ink-soft); }
.eb-quote { max-width: 40rem; margin: 3rem auto 0; text-align: center; }
.eb-quote blockquote p {
  font-family: var(--hand); font-weight: 700; line-height: 1.15;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  color: var(--deep);
}
.eb-quote figcaption { margin-top: 0.8rem; font-size: 0.9rem; color: var(--ink-mute); }

.eb-fit { background: var(--paper); padding-top: 0; }
.eb-fit-grid { margin-top: 2.2rem; display: grid; gap: 1rem; }
.eb-fit-card { padding: 1.6rem 1.7rem; border-radius: 26px; }
.eb-fit-card--yes { background: #eaf8f2; box-shadow: inset 0 0 0 1.5px rgba(52, 184, 143, 0.35); }
.eb-fit-card--no { background: #fff5f1; box-shadow: inset 0 0 0 1.5px rgba(227, 108, 93, 0.3); }
.eb-fit-card h3 { font-size: 1.2rem; }
.eb-fit-card ul { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.eb-fit-card li { position: relative; padding-left: 1.7rem; line-height: 1.55; color: var(--ink-soft); }
.eb-fit-card li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.eb-fit-card--yes li::before { content: "✓"; color: #1f8f6b; }
.eb-fit-card--no li::before { content: "✕"; color: #c4463f; }
.eb-fit-card a { color: var(--coral-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.eb-author { background: var(--bg); }
.eb-author-head { margin-top: 1.1rem; display: flex; align-items: center; gap: 0.9rem; }
.eb-author-head .section-title { margin-top: 0; font-size: clamp(1.5rem, 0.6rem + 4.2vw, 3.6rem); }
.eb-author-photo {
  width: 72px; height: 72px; flex: none;
  border-radius: 50%; object-fit: cover; object-position: 50% 15%;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--eb-soft-2), 0 16px 30px -18px rgba(6, 40, 43, 0.6);
}
.eb-author-role { margin-top: 0.35rem; font-weight: 700; line-height: 1.35; color: var(--accent-ink); }
.eb-author-role span { display: block; }
.eb-author-role .sep { display: none; }
.eb-faq { background: var(--paper); }
.eb-faq-list { margin-top: 2rem; display: grid; gap: 0.6rem; }
.eb-faq-list details { border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.eb-faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 700; color: var(--ink);
  cursor: pointer; list-style: none;
}
.eb-faq-list summary::-webkit-details-marker { display: none; }
.eb-faq-list summary::after {
  content: "+"; flex: none;
  font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--accent-ink);
  transition: transform 0.3s var(--ease-out);
}
.eb-faq-list details[open] summary::after { transform: rotate(45deg); }
.eb-faq-list details p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.eb-faq-list a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.eb-final {
  position: relative;
  padding: clamp(4rem, 9vw, 6rem) 0;
  background: linear-gradient(180deg, var(--eb-3) 0%, var(--eb-1) 100%);
  color: var(--on-deep);
}
.eb-final-grid { display: grid; gap: 2rem; justify-items: center; text-align: center; }
.eb-final-cover {
  width: 170px; height: auto;
  border-radius: 3px 9px 9px 3px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  transform: rotate(-4deg);
}
.eb-final-title { max-width: 18ch; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); letter-spacing: -0.035em; color: #fff; }
.eb-final-text { margin-top: 0.8rem; color: var(--on-deep-soft); }
.eb-final-text strong { color: #fff; }
.eb-final .eb-buy { justify-content: center; }

.footer--ebook { background: var(--eb-foot); }
.footer--ebook .footer-body { padding: 2.4rem 0 calc(2rem + 76px); background: var(--eb-foot); }
.footer-help { margin-top: 0.9rem; font-size: 0.92rem; color: var(--on-deep-soft); }
.footer-help a { color: #fff; font-weight: 700; }
.footer--ebook .footer-bottom { margin-top: 2rem; }

/* Barra de compra fija */
.eb-buybar {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(251, 254, 253, 0.97);
  box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -20px rgba(6, 40, 43, 0.45);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .eb-buybar { background: rgba(251, 254, 253, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.eb-buybar.is-visible { transform: none; }
.eb-buybar-inner { width: min(100%, 46rem); margin-inline: auto; display: flex; align-items: center; gap: 0.8rem; }
.eb-buybar img { width: 34px; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5); }
.eb-buybar p { flex: 1; min-width: 0; display: grid; line-height: 1.25; font-size: 0.92rem; color: var(--ink); }
.eb-buybar p strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-buybar p span { font-size: 0.82rem; color: var(--ink-mute); }

@keyframes bookFloat {
  0%, 100% { transform: rotateY(-16deg) rotateX(3deg) translateY(0); }
  50%      { transform: rotateY(-12deg) rotateX(2deg) translateY(-10px); }
}
@keyframes boatBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-4px) rotate(3deg); }
}

@media (min-width: 720px) {
  .eb-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .eb-hero { min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; }
  .eb-hero-grid { flex: 1; grid-template-columns: 1.15fr 0.85fr; }
  .eb-hero-waves { margin-top: auto; }
  .eb-ideas { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .eb-features { grid-template-columns: repeat(3, 1fr); }
  .eb-fit-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .eb-final-grid { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 4rem; align-items: center; }
  .eb-final .eb-buy { justify-content: flex-start; }
  .footer--ebook .footer-body { padding-bottom: 2rem; }
}

/* ---------- Página del profesional (sobre-mi.html) ----------
   Solo se llega desde las recomendaciones de un resultado moderado o alto.
   Reusa los bloques de las páginas de los ebooks (eb-*) y el hero del inicio. */
.pf-visual { position: relative; z-index: 1; display: grid; justify-items: start; }
.pf-orb {
  position: relative;
  width: 200px; aspect-ratio: 1;
  display: grid; place-items: center;
  animation: fadeIn 1.2s var(--ease-out) 0.2s both;
}
.pf-orb > * { grid-area: 1 / 1; }
.pf-orb .orb-ring { display: none; }
.portrait { position: relative; isolation: isolate; width: 86%; }
.portrait::before { /* halo de color detrás de la foto */
  content: ""; position: absolute; inset: -9%; z-index: -1;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(160deg, #c3f2e7 0%, #7fd0d4 52%, #f9d9a8 100%);
  animation: morph 18s ease-in-out infinite;
}
.portrait-blob {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  border-radius: 46% 54% 52% 48% / 42% 46% 54% 58%;
  background: #cfc6ba;
  box-shadow: 0 40px 70px -40px rgba(11, 74, 79, 0.6);
  animation: morphPortrait 20s ease-in-out infinite;
}
.portrait-blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pf-hero .hero-title { font-size: clamp(2.9rem, 1.6rem + 4.6vw, 5.4rem); }
.pf-hero .hero-sub { max-width: 35rem; }
.pf-hero .hero-sub strong { color: var(--ink); }
.pf-chips { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; animation: fadeUp 1s var(--ease-out) 0.85s both; }
.pf-chips li {
  padding: 0.4rem 0.85rem; border-radius: 99px;
  background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.86rem; font-weight: 700; color: var(--ink-soft);
}

.pf-what { background: var(--paper); padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.pf-text { margin-top: 1.2rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem); color: var(--ink-soft); }
.pf-text strong { color: var(--ink); }
.pf-note { margin-top: 2.2rem; max-width: none; background: var(--bg); align-items: flex-start; }
.pf-note .privacy-text strong { color: var(--ink); }

.pf-how { background: var(--bg-2); padding-top: clamp(6rem, 12vw, 8.5rem); }
.pf-how .divider path { fill: var(--paper); }
.pf-tag {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0.3rem 0.95rem;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: linear-gradient(140deg, var(--eb-soft-1), var(--eb-soft-2));
  font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; color: var(--ink);
}
.pf-how .eb-idea-card h3 { font-size: 1.22rem; }
.pf-how-close { margin-top: 2rem; max-width: 44rem; font-size: 1.08rem; color: var(--ink-soft); }
.pf-how-close strong { color: var(--deep); }

.pf-path { background: var(--paper); padding-top: clamp(6rem, 12vw, 8.5rem); }
.pf-path .divider path { fill: var(--bg-2); }
.section-head--center .section-lead { margin-inline: auto; }
.eb-step .pf-where { margin-top: 0.2rem; font-size: 0.9rem; font-weight: 700; color: var(--accent-ink); }
.eb-step--key .pf-where { color: var(--eb-em); }
.pf-more { max-width: 46rem; margin: 2.2rem auto 0; }
.pf-more-h { font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.015em; color: var(--ink); }
.pf-more ul { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.pf-more li {
  position: relative; padding: 0.85rem 1rem 0.9rem 2.6rem;
  border-radius: 16px; background: var(--bg);
  font-weight: 700; line-height: 1.4; color: var(--ink);
}
.pf-more li::before {
  content: ""; position: absolute; left: 1rem; top: 1.15rem;
  width: 12px; height: 12px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(140deg, var(--eb-soft-1), var(--eb-soft-2));
}
.pf-more li span { display: block; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }

.pf-final-inner { display: grid; justify-items: center; text-align: center; }
.pf-final .eb-final-title { max-width: 16ch; }
.pf-final .eb-final-text { max-width: 34rem; font-size: 1.08rem; }
.pf-final .btn { margin-top: 1.8rem; }
.pf-final-note { margin-top: 1rem; font-size: 0.92rem; color: var(--on-deep-soft); }
.pf-urgent {
  margin-top: 2.2rem; padding-top: 1.4rem; max-width: 34rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem; color: var(--on-deep-soft);
}
.pf-urgent a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pf-final :focus-visible { outline-color: var(--sun); }

.eb-buybar--pro img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--eb-soft-2); }
.pf-bar-more { display: none; }

@media (min-width: 540px) {
  .eb-buybar .pf-bar-more { display: inline; }
}
@media (min-width: 720px) {
  .pf-orb { width: 240px; }
  .pf-more ul { grid-template-columns: repeat(2, 1fr); }
  .pf-more li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .hero.pf-hero { min-height: 86vh; min-height: 86svh; }
  .pf-visual { justify-items: center; }
  .pf-orb { width: clamp(320px, 33vw, 430px); }
  .pf-orb .orb-ring { display: block; }
  .portrait { width: 70%; }
}
@media (max-width: 959px) {
  .pf-visual { order: -1; }
}

/* ---------- Páginas de pago (comprar.php / descarga.php) ---------- */
body.pago {
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(40% 40% at 85% 10%, rgba(127, 214, 208, 0.4), transparent 70%),
    radial-gradient(40% 40% at 5% 95%, rgba(255, 207, 110, 0.22), transparent 70%),
    var(--bg);
}
.pago-main {
  width: min(100% - 2 * var(--gutter), 34rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3rem) 0 2.5rem;
  display: grid; gap: 1.4rem;
}
.pago-brand { justify-self: center; }
.pago-card {
  display: grid; justify-items: center; gap: 0.9rem;
  padding: clamp(1.6rem, 5vw, 2.4rem);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  text-align: center;
}
.pago-cover {
  width: 120px; height: auto; margin-bottom: 0.4rem;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 2px 6px rgba(6, 40, 43, 0.25), 0 24px 40px -20px rgba(6, 40, 43, 0.7);
}
.pago-covers { display: flex; justify-content: center; gap: 0.9rem; }
.pago-covers .pago-cover { width: 96px; }
.pago-title { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.3rem); letter-spacing: -0.035em; }
.pago-text { color: var(--ink-soft); }
.pago-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.4rem; }
.pago-box {
  width: 100%; display: grid; gap: 0.35rem;
  margin-top: 0.4rem; padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--bg);
  text-align: left; font-size: 0.93rem; color: var(--ink-soft);
}
.pago-box strong { color: var(--ink); }
.pago-msg {
  width: 100%; padding: 0.8rem 1rem; border-radius: 14px;
  background: #fff4e0; color: #6b4a10;
  font-size: 0.93rem; font-weight: 600; text-align: left;
}
.pago-form { width: 100%; display: grid; gap: 0.6rem; text-align: left; }
.pago-form label { font-weight: 700; font-size: 0.92rem; }
.pago-form input {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem;
  border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1.05rem; letter-spacing: 0.04em;
}
.pago-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pago-small { font-size: 0.9rem; color: var(--ink-mute); }
.pago-small a, .pago-foot a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pago-foot { text-align: center; font-size: 0.9rem; }
.footer-ebook { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   8. Effects (reveal, keyframes)
   ============================================================= */

/* Reveal: solo se oculta si main.js arrancó (clase .reveal-on) */
[data-reveal] {
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-on [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(28px); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wordRise {
  from { opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

@keyframes breathe {
  0%      { transform: scale(0.8); }
  33.333% { transform: scale(1); }
  50%     { transform: scale(1); }
  100%    { transform: scale(0.8); }
}
@keyframes ringBreath {
  0%      { transform: scale(0.84); opacity: 0.25; }
  33.333% { transform: scale(1.02); opacity: 1; }
  50%     { transform: scale(1.02); opacity: 1; }
  100%    { transform: scale(0.84); opacity: 0.25; }
}
@keyframes ringBreathWide {
  0%      { transform: scale(0.9) rotate(0deg); opacity: 0; }
  33.333% { transform: scale(1.14) rotate(30deg); opacity: 0.9; }
  50%     { transform: scale(1.14) rotate(36deg); opacity: 0.9; }
  100%    { transform: scale(0.9) rotate(60deg); opacity: 0; }
}
@keyframes dotBreath {
  0%      { transform: scale(0.82); }
  33.333% { transform: scale(1); }
  50%     { transform: scale(1); }
  100%    { transform: scale(0.82); }
}
@keyframes cueIn   { 0% { opacity: 0; } 4% { opacity: 1; } 30% { opacity: 1; } 33.333% { opacity: 0; } 100% { opacity: 0; } }
@keyframes cueHold { 0%, 33.333% { opacity: 0; } 36% { opacity: 1; } 47% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cueOut  { 0%, 50% { opacity: 0; } 53% { opacity: 1; } 96% { opacity: 1; } 100% { opacity: 0; } }

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  25%      { border-radius: 58% 42% 38% 62% / 55% 37% 63% 45%; }
  50%      { border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%; }
  75%      { border-radius: 34% 66% 55% 45% / 41% 52% 48% 59%; }
}
@keyframes morphPortrait {
  0%, 100% { border-radius: 46% 54% 52% 48% / 42% 46% 54% 58%; }
  50%      { border-radius: 54% 46% 44% 56% / 50% 40% 60% 50%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes waveMove {
  0%   { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}
@keyframes liquid { to { background-position: -200% 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes screenIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes screenInBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

/* =============================================================
   9. Responsive (mobile-first)
   ============================================================= */

/* Mobile / tablet: el círculo pasa a ser un fondo que respira detrás del título */
@media (max-width: 959px) {
  .hero-visual {
    position: absolute; z-index: 0;
    top: calc(var(--nav-h) - 0.5rem); right: -24vw;
    width: min(80vw, 440px);
    opacity: 0.55;
    pointer-events: none;
  }
  .orb { width: 100%; }
  .orb-cue, .orb-note { display: none; }
}

@media (max-width: 539px) {
  .hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.1rem; }
  .hero-facts li { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .hero-facts strong { font-size: 1.5rem; line-height: 1; }
}

@media (min-width: 540px) {
  .step { column-gap: 1.4rem; }

  .eb-author-head { gap: 1.1rem; }
  .eb-author-photo { width: 88px; height: 88px; }
  .eb-author-role span, .eb-author-role .sep,
  .pro-role span, .pro-role .sep { display: inline; }
}

@media (min-width: 720px) and (max-width: 959px) {
  .hero-visual { right: -12vw; opacity: 0.6; }
}

@media (min-width: 720px) {
  .brand-tag { display: block; }
  .test-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: stretch; }
  .help-card { padding: clamp(2.4rem, 5vw, 4rem); }

  .runner[open] { padding: 2rem; }
  .runner-panel {
    width: min(780px, 100%); height: auto;
    max-height: min(900px, calc(100svh - 4rem));
    border-radius: 34px;
    box-shadow: 0 50px 120px -40px rgba(4, 32, 35, 0.7);
  }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }

  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-grid { flex: 1; grid-template-columns: 1.08fr 0.92fr; gap: 2rem; }

  .test-grid { gap: 1.5rem; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .steps::before {
    content: ""; position: absolute; z-index: 0;
    top: 24px; left: calc(100% / 6); right: calc(100% / 6); height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10c10-8 30-8 40 0s30 8 40 0' fill='none' stroke='%230b4a4f' stroke-opacity='.3' stroke-width='2' stroke-dasharray='3 7' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 80px 20px;
  }
  .step { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .step-num { position: relative; z-index: 1; margin-bottom: 1.3rem; }
  .step p { max-width: 20rem; }

  .help-card { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 4rem; }
  .help-note { margin-top: -2.4rem; }

  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; gap: 4rem; }
}

@media (min-width: 1280px) {
  .hero-grid { gap: 3rem; }
  .test-card { padding: 1.9rem 1.9rem 1.6rem; }
}

/* =============================================================
   10. Reduced motion — solo lo intrusivo (ver gotcha A.2)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Las olas siguen, pero mucho más lentas */
  .waves-layers use { animation-duration: 60s !important; }
  .orb-ring--2 { animation: none; opacity: 0.5; }
}

/* =============================================================
   11. Print
   ============================================================= */
@media print {
  .nav, .hero-waves, .hero-visual, .footer-waves, .runner { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .help-card, .footer-body { background: #fff !important; color: #000 !important; }
}
