/* ═══════════════════════════════════════════════════════════════
   WellnessCreators · Vacante Editor de Video
   Sistema de diseño — "sala de edición"

   Concepto: quien lee esta página edita video para vivir. La página
   es la primera prueba de criterio que ve de nosotros, así que está
   construida con el vocabulario de su oficio: superficie oscura de
   suite de edición, timecode en vez de numeración decorativa, y una
   línea de tiempo que avanza con el scroll.

   Paleta bloqueada por marca (wellnesscreators.io): navy + dorado.
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1 · Tokens ─────────────────────────────────────────────── */

:root {
  /* Superficies — azul-negro de suite, no negro neutro */
  --ink:        #080B12;
  --ink-raised: #0F1626;
  --panel:      #0F172A;   /* wc-hero-dark-1 */
  --panel-2:    #1E3A5F;   /* wc-hero-dark-2 */
  --line:       #1C2740;
  --line-soft:  #141D31;

  /* Marca */
  --gold:       #FBBF24;
  --gold-hi:    #F59E0B;
  --gold-ink:   #0F172A;

  /* Panel invertido — papel de guion, cálido y mate */
  --paper:      #EDEAE3;
  --paper-ink:  #14181F;
  --paper-mute: #5B6472;

  /* Texto sobre oscuro */
  --fg:         #F2F5FA;
  --fg-soft:    #B9C3D4;
  --fg-mute:    #7E8AA0;

  /* Acento de rechazo — se usa en UNA sola sección */
  --reject:     #E5484D;

  /* Tipografía */
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body:    "DM Sans", system-ui, -apple-system, sans-serif;
  --mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Escala tipográfica */
  --t-hero:  clamp(2.4rem, 6.6vw, 4.9rem);
  --t-h2:    clamp(1.9rem, 4.4vw, 3.4rem);
  --t-h3:    clamp(1.15rem, 2vw, 1.5rem);
  --t-lead:  clamp(1.05rem, 1.9vw, 1.35rem);
  --t-body:  1.0625rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* Ritmo */
  --gutter:  clamp(1.25rem, 5vw, 2.5rem);
  --stack:   clamp(3.5rem, 9vw, 7rem);
  --max:     1180px;
  --max-read: 44rem;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;

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

/* ─── 2 · Base ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

strong { font-weight: 600; color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── 3 · Primitivas de layout ───────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--read { max-width: calc(var(--max-read) + var(--gutter) * 2); }

.band { padding-block: var(--stack); position: relative; }

/* ─── 4 · Timecode y etiquetas ───────────────────────────────
   El timecode reemplaza la numeración decorativa 01/02/03: marca
   posición real en el recorrido, que es lo que hace un timecode. */

.tc {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.4rem;
}

.tc::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.tc--paper { color: var(--paper-mute); }
.tc--reject { color: var(--reject); }

/* En móvil las etiquetas centradas se parten y la rayita queda huérfana. */
@media (max-width: 520px) {
  .hero .tc::before,
  .close .tc::before { display: none; }
}

/* ─── 5 · Firma: la línea de tiempo ──────────────────────────── */

.timeline {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--line-soft);
  z-index: 60;
}

.timeline__playhead {
  height: 100%;
  width: var(--progress, 0%);
  background: var(--gold);
  transition: width 90ms linear;
}

.topbar {
  position: fixed;
  inset-block-start: 3px;
  inset-inline: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__mark {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
}

.topbar__mark b { color: var(--fg); font-weight: 500; }

/* ─── 6 · Botones ────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--body);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.btn:hover { --btn-bg: var(--gold-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform 200ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--t-small); }

/* Secundario: link de texto, nunca compite con el primario */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--fg-soft);
  font-size: var(--t-small);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fg-soft) 40%, transparent);
  padding-bottom: 2px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.btn-text:hover { color: var(--fg); border-color: var(--gold); }

/* ─── 7 · Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(7rem, 16vw, 11rem) 0;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--panel-2) 0%, transparent 62%),
    linear-gradient(180deg, var(--panel) 0%, var(--ink) 78%);
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.24;
  mask-image: radial-gradient(90% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero__inner { position: relative; text-align: center; }

.hero h1 {
  font-size: var(--t-hero);
  max-width: 19ch;
  margin-inline: auto;
}

.hero__sub {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--fg-soft);
  max-width: 26ch;
  margin: 1.1rem auto 0;
  text-wrap: balance;
}

.hero__sub em {
  font-style: normal;
  color: var(--gold);
}

.hero__lead {
  font-size: var(--t-lead);
  color: var(--fg-soft);
  max-width: 48ch;
  margin: 1.8rem auto 0;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  margin-top: 2.4rem;
}

.hero__terms {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}

.hero__terms b { color: var(--fg); font-weight: 500; }

/* ─── 8 · Tira de clips (referencias de estilo) ──────────────── */

.strip {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  position: relative;
}

/* La tira se puede arrastrar con el mouse, empujar con la rueda o mover con
   el teclado. El desplazamiento automático lo lleva el JS sobre scrollLeft,
   no una animación de CSS, justo para que el usuario pueda tomar el control
   en cualquier momento. */
.strip__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.strip__viewport::-webkit-scrollbar { display: none; }
.strip__viewport.is-dragging { cursor: grabbing; }
.strip__viewport.is-dragging .clip { pointer-events: none; }

.strip__track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  padding-inline: var(--gutter);
}

/* Altura fija y ancho variable: cada referencia se ve en su proporción real.
   Así la tira muestra de un vistazo que el puesto es vertical y largo. */
.clip {
  position: relative;
  flex: 0 0 auto;
  height: clamp(240px, 33vw, 352px);
  width: auto;
  aspect-ratio: var(--ar, 9 / 16);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}

.clip:hover, .clip:focus-visible {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold);
}

.clip video, .clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip__tc {
  position: absolute;
  inset-block-end: 0.55rem;
  inset-inline-start: 0.55rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--fg);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-sm);
}

.strip__fade {
  position: absolute;
  inset-block: 0;
  width: clamp(40px, 10vw, 140px);
  pointer-events: none;
  z-index: 2;
}

.strip__fade--l { inset-inline-start: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.strip__fade--r { inset-inline-end: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.strip__note {
  margin-top: 1.6rem;
  text-align: center;
  font-size: var(--t-small);
  color: var(--fg-mute);
  max-width: 52ch;
  margin-inline: auto;
}

/* Visor del clip a pantalla completa */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
}

.viewer[open] { display: grid; }

.viewer video {
  max-height: 84vh;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.viewer__close {
  position: absolute;
  inset-block-start: var(--gutter);
  inset-inline-end: var(--gutter);
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ─── 9 · Bloques de texto ───────────────────────────────────── */

.band h2 { font-size: var(--t-h2); max-width: 20ch; }

.band__lead {
  font-size: var(--t-lead);
  color: var(--fg-soft);
  max-width: var(--max-read);
  margin-top: 1.4rem;
}

.prose { max-width: var(--max-read); color: var(--fg-soft); }
.prose p + p { margin-top: 0; }

.kicker {
  font-family: var(--display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 34ch;
}

/* ─── 11 · Pistas (qué vas a editar) ─────────────────────────── */

.tracks { margin-top: 3rem; border-top: 1px solid var(--line); }

.track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.track__label {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.track h3 { font-size: var(--t-h3); }
.track p { color: var(--fg-soft); margin: 0; }

@media (min-width: 820px) {
  .track {
    grid-template-columns: 10rem 15rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

/* ─── 11b · Herramientas ─────────────────────────────────────── */

.tools { margin-top: 2.8rem; border-top: 1px solid var(--line); }

.toolrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

@media (min-width: 760px) {
  .toolrow { grid-template-columns: 12rem 1fr; gap: 2rem; }
}

.toolrow__label {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }

.chips li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--ink-raised);
  font-size: var(--t-small);
  color: var(--fg-soft);
}

.chips li.is-key { border-color: var(--gold); color: var(--fg); }

/* ─── 12 · Bento (lo que ponemos) ────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.9rem;
  margin-top: 2.8rem;
}

.tile {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-raised);
}

.tile h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
.tile p { margin: 0.6rem 0 0; font-size: var(--t-small); color: var(--fg-soft); }

.tile--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  grid-column: span 1;
}

.tile--gold h3, .tile--gold p { color: var(--gold-ink); }
.tile--gold p { opacity: 0.82; }

.tile__figure {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

@media (min-width: 700px) {
  .tile--wide { grid-column: span 2; }
}

/* ─── 13 · Panel invertido: lo que NO queremos ───────────────── */

.reject {
  background: var(--paper);
  color: var(--paper-ink);
}

.reject h2 { color: var(--paper-ink); }
.reject .band__lead { color: var(--paper-mute); }

.reject__list {
  list-style: none;
  margin: 2.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--paper-ink) 14%, transparent);
}

.reject__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--paper-ink) 14%, transparent);
}

.reject__mark {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--reject);
  padding-top: 0.35em;
}

.reject__item h3 {
  font-size: var(--t-h3);
  color: var(--paper-ink);
  letter-spacing: -0.02em;
}

.reject__item p {
  grid-column: 2;
  margin: 0.45rem 0 0;
  color: var(--paper-mute);
  max-width: 58ch;
}

/* ─── 14 · Dos columnas (para ti / no es para ti) ────────────── */

.split {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.8rem;
}

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

.split h3 {
  font-size: var(--t-h3);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.split ul { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.9rem; }

.split li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  font-size: var(--t-small);
  color: var(--fg-soft);
}

.split li::before {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
}

.split--yes li::before { content: "▸"; color: var(--gold); }
.split--no  li::before { content: "×"; color: var(--reject); }

/* ─── 15 · Proceso (aquí la numeración sí es una secuencia) ──── */

.steps { counter-reset: step; margin-top: 2.8rem; display: grid; gap: 0; }

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 1.9rem;
  border-top: 1px solid var(--line);
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--gold);
  line-height: 1.5;
}

.step h3 { font-size: var(--t-h3); }
.step p { margin: 0.5rem 0 0; color: var(--fg-soft); max-width: 56ch; }

/* ─── 16 · FAQ ───────────────────────────────────────────────── */

.faq { margin-top: 2.8rem; border-top: 1px solid var(--line); max-width: var(--max-read); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--gold);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { padding-bottom: 1.35rem; color: var(--fg-soft); font-size: var(--t-small); }

/* ─── 17 · Cierre ────────────────────────────────────────────── */

.close { text-align: center; }
.close h2 { margin-inline: auto; max-width: 22ch; }
.close .prose { margin-inline: auto; text-align: center; margin-top: 1.6rem; }
.close .hero__cta { margin-top: 2.4rem; }

/* ─── 18 · Pie ───────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.2rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* ─── 19 · Revelado al hacer scroll ───────────────────────────
   El ocultamiento inicial depende de la clase .js que pone un script
   en línea en el <head>. Si el JS falla o tarda, el contenido se ve:
   nunca puede quedar una sección invisible en una página cuyo único
   trabajo es que la lean. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* ─── 20 · Tarjeta de identidad (bloque de confianza) ────────── */

.idcard {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: 2.2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-raised);
}

.idcard__photo {
  flex: 0 0 auto;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--t-micro);
}

.idcard__name { margin: 0; font-size: var(--t-small); color: var(--fg); }
.idcard__meta { margin: 0.3rem 0 0; font-size: var(--t-micro); color: var(--fg-mute); }

/* ─── 21 · Marcador de dato pendiente ─────────────────────────
   Hace visible en pantalla cada dato que todavía no tenemos, para
   que no se publique nada inventado por descuido. Se retira cuando
   se llenen (ver Anexo B del copy). */

.todo {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 1px dashed var(--gold);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.todo--ink,
.tile--gold .todo {
  border-color: color-mix(in srgb, var(--gold-ink) 45%, transparent);
  background: color-mix(in srgb, var(--gold-ink) 10%, transparent);
  color: var(--gold-ink);
}

.reject .todo {
  border-color: var(--reject);
  background: color-mix(in srgb, var(--reject) 10%, transparent);
  color: var(--reject);
}

/* ═══════════════════════════════════════════════════════════════
   QUIZ — una pregunta por pantalla
   ═══════════════════════════════════════════════════════════════ */

.quiz {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: 5.5rem 3rem;
  overflow: hidden;
}

.qbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--line-soft);
  z-index: 60;
}

.qbar__fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 320ms var(--ease);
}

.qcount {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-end: var(--gutter);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  z-index: 60;
}

.qback {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: var(--gutter);
  z-index: 60;
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  cursor: pointer;
}

.qback[hidden] { display: none; }
.qback:hover { color: var(--fg); }

/* Pantallas */
.q {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.q.is-active { opacity: 1; transform: none; pointer-events: auto; }
.q.is-out { opacity: 0; transform: translateY(-22px); }

.q__tc {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.q h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  line-height: 1.12;
  max-width: 24ch;
}

.q__help {
  margin-top: 0.9rem;
  color: var(--fg-soft);
  font-size: var(--t-small);
  max-width: 52ch;
}

/* Opciones */
.opts { display: grid; gap: 0.6rem; margin-top: 2rem; }

.opt {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  text-align: start;
  padding: 1.05rem 1.15rem;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background 140ms var(--ease), transform 140ms var(--ease);
}

.opt:hover { border-color: var(--gold); transform: translateX(2px); }

.opt__key {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-mute);
}

.opt.is-sel { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--ink-raised)); }
.opt.is-sel .opt__key { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); }

/* Formularios */
.qform { display: grid; gap: 1.1rem; margin-top: 2rem; }

.qfield label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.45rem;
}

.qfield input,
.qfield select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--t-body);
}

.qfield input::placeholder { color: var(--fg-mute); }
.qfield input:focus, .qfield select:focus { border-color: var(--gold); outline: none; }

.qphone { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 0.5rem; }

.qerr { color: var(--reject); font-size: var(--t-small); margin-top: 0.5rem; }
.qerr[hidden] { display: none; }

.qnav { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.qnav__hint { font-family: var(--mono); font-size: var(--t-micro); color: var(--fg-mute); }

/* Trampa anti-spam: invisible para personas, tentadora para bots */
.qhoney {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Pantalla de análisis */
.qload { text-align: center; }
.qload__dots { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.5rem; }

.qload__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.1s var(--ease) infinite;
}

.qload__dot:nth-child(2) { animation-delay: 0.15s; }
.qload__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* Páginas de resultado */
.result { min-height: 100svh; display: grid; align-items: center; padding-block: 5rem; }
.result h1 { font-size: var(--t-h2); max-width: 20ch; }
.result .prose { margin-top: 1.5rem; }

.result__box {
  margin-top: 2.2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-raised);
}

.result__box h3 { font-size: var(--t-h3); margin-bottom: 0.8rem; }

.result__list { margin: 0; padding-left: 1.1rem; color: var(--fg-soft); font-size: var(--t-small); }
.result__list li { margin-bottom: 0.55rem; }

/* ─── 23 · Marca de versión (empresa A / B) ──────────────────── */

.topbar__variant {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-inline-start: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.625rem;
  color: var(--fg-mute);
  vertical-align: middle;
}

/* ─── 24 · Botón secundario ──────────────────────────────────── */

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn--ghost:hover { background: var(--ink-raised); border-color: var(--gold); }

.btn.is-off {
  background: var(--ink-raised);
  color: var(--fg-mute);
  border: 1px dashed var(--line);
  cursor: default;
  pointer-events: none;
}

/* ─── 25 · Canales de referencia ─────────────────────────────── */

.channels {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-raised);
  color: var(--fg);
  text-decoration: none;
  font-size: var(--t-small);
  transition: border-color 140ms var(--ease);
}

.channel:hover { border-color: var(--gold); }
.channel__go { font-family: var(--mono); font-size: var(--t-micro); color: var(--fg-mute); flex: 0 0 auto; }
.channel:hover .channel__go { color: var(--gold); }

/* ─── 26 · Ventana de referentes ─────────────────────────────── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(8px);
}

.sheet[open] { display: flex; }

.sheet__panel {
  width: min(100%, 62rem);
  max-height: 88svh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

@media (min-width: 760px) {
  .sheet { align-items: center; }
  .sheet__panel { border-bottom: 1px solid var(--line); border-radius: var(--r-lg); }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.sheet__head h2 { font-size: var(--t-h3); }

.sheet__close {
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.sheet__close:hover { border-color: var(--gold); }

.sheet__body { overflow-y: auto; padding: 1.4rem var(--gutter) 2rem; }

.sheet__strip {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.6rem;
  scrollbar-width: thin;
}

.sheet__strip .clip { height: clamp(200px, 42vw, 280px); }

/* ─── 27 · Accesibilidad y movimiento reducido ───────────────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
