/* SR Trainer · estilos (v2)
   Identidad tomada de los videos de la marca: tipografía condensada en mayúsculas, palabras clave en
   azul, esquinas de visor y fondo azul noche. Las fuentes (Oswald y Archivo) están en fonts.css. */

:root {
  color-scheme: dark;

  /* Color de la marca */
  --bg: #070b14;
  --bg-deep: #04070e;
  --surface: #0e1626;
  --surface-2: #16223a;
  --ink: #eef3fb;
  --muted: #a6b4c9;
  --accent: #38c6ff;
  --accent-strong: #8ddfff;
  --accent-ink: #03121e;
  --blue: #1f6bff;
  --paper: #dfe5ec;
  --paper-ink: #08101d;
  --paper-muted: #3d4b60;
  --coupon-field: #a9e7ff;
  --coupon-field-hover: #c4efff;
  --coupon-field-focus: #ffffff;
  --coupon-placeholder: #24506a;
  --submit-hover: #10304a;
  --error: #5c0018;
  --error-ring: #8a0f2a;
  --scrim: rgba(3, 6, 12, 0.72);

  /* Tipo */
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-text: 'Archivo', system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  --step-hero: calc((100vw - 2 * var(--margin)) / 5.75);

  /* Espacio */
  --margin: clamp(1rem, 3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --bar-h: 4rem;

  /* Movimiento (curvas de Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;

  --z-bar: 50;
  --z-dock: 40;
  --z-skip: 60;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 1rem); scrollbar-color: var(--surface-2) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed; left: var(--margin); top: 0.75rem; z-index: var(--z-skip);
  padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--t-ui) var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* ---------- Tipo de marca ---------- */

.display, .hero__title, .closing__title, .coupon__title, .footer__name, .bar__brand {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.002em;
}
.display { font-size: var(--step-head); line-height: 1.02; text-wrap: balance; }
.hl { color: var(--accent); }

/* ---------- Controles ---------- */

.icon { width: 1.25em; height: 1.25em; flex: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3.25rem; padding: 0.8rem 1.4rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: var(--step-body); line-height: 1.2; text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: var(--step-small); }
.button--large { min-height: 3.5rem; padding: 0.9rem 1.6rem; }
.button--block { width: 100%; }
.button--ghost { background: var(--surface-2); color: var(--ink); }

.link {
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em; text-decoration-color: var(--accent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--ghost:hover { background: var(--accent); color: var(--accent-ink); }
  .link:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
}

/* Esquinas de visor: el sello visual de los videos de SR Trainer */
.hud { position: relative; }
.hud__c { position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2; }
.hud__c--tl { top: -8px; left: -8px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); }
.hud__c--tr { top: -8px; right: -8px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); }
.hud__c--bl { bottom: -8px; left: -8px; border-bottom: 3px solid var(--accent); border-left: 3px solid var(--accent); }
.hud__c--br { bottom: -8px; right: -8px; border-bottom: 3px solid var(--accent); border-right: 3px solid var(--accent); }

/* ---------- Barra ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-bar); height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--margin);
  transition: background-color var(--t-ui) ease;
}
.bar.is-solid { background: var(--bg-deep); }
.bar__brand { font-size: 1.5rem; line-height: 1; text-decoration: none; display: inline-flex; align-items: center; gap: 0.22em; min-height: 44px; }
.bar__brand span { color: var(--accent); }
.bar__links { display: none; }
.bar__actions { display: flex; align-items: center; gap: 0.5rem; }
.bar__menu {
  min-height: 2.75rem; padding: 0.5rem 1rem; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: var(--step-small);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.bar__menu:active { transform: scale(0.97); }

/* ---------- 1. Portada ---------- */

.hero { display: grid; padding: 0 var(--margin) clamp(3rem, 6vw, 5rem); }
.hero__portrait { order: 1; margin: calc(var(--bar-h) + 0.5rem) 8px 0; }
.hero__portrait .hud { height: 40svh; min-height: 280px; }
.hero__portrait picture { display: block; height: 100%; }
/* El logotipo se muestra completo sobre el mismo negro de su fondo */
.hero__portrait .hud { background: #000104; }
.hero__portrait img { width: 100%; height: 100%; object-fit: contain; }
.hero__portrait figcaption { display: none; }
@media (max-width: 959.98px) { .hero__portrait .hud__c--bl, .hero__portrait .hud__c--br { display: none; } }
.hero__copy { order: 2; position: relative; z-index: 3; display: grid; gap: 1rem; margin-top: 1.25rem; font-size: var(--step-hero); }
.hero__title { font-size: 1em; line-height: 0.86; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.hero__title [data-line] { display: block; white-space: nowrap; }
.hero__copy > :not(.hero__title) { font-size: var(--step-body); }
.hero__copy > .hero__lead { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; max-width: 34ch; text-wrap: pretty; padding-top: 0.25rem; }
.hero__who { color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.hero__who strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.hero__actions .button { flex: 1 1 100%; }
.hero__actions .link { display: inline-flex; align-items: center; min-height: 44px; }
.hero__copy > .hero__note { font-size: var(--step-small); color: var(--muted); margin-top: -0.4rem; }
.hero__facts { order: 3; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.hero__facts li:nth-child(n+3) { display: none; }
@media (min-width: 640px) { .hero__facts li:nth-child(n+3) { display: list-item; } }
.hero__facts li { background: var(--surface); padding: 0.45rem 0.8rem; font-size: var(--step-small); font-weight: 500; }

/* ---------- 2. Problema ---------- */

.problem { padding: var(--section) var(--margin); display: grid; gap: 2.5rem; background: var(--bg-deep); }
.problem .display { font-size: min(var(--step-head), calc((100vw - 2 * var(--margin)) / 7.6)); }
.problem__list { display: grid; gap: 1.25rem; }
.problem__list li { position: relative; padding-left: 1.75rem; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; text-wrap: pretty; }
.problem__list li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 0.7rem; height: 0.7rem; background: var(--accent); }
.problem__answer { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; color: var(--muted); text-wrap: pretty; }
.problem__answer strong { color: var(--ink); font-weight: 650; }

/* ---------- 3. Método (escena) ---------- */

.method { padding: var(--section) var(--margin); }
.method__intro { display: grid; gap: 1.25rem; margin-bottom: 3rem; max-width: 40rem; }
.method__intro p { color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.method__stage { display: none; }
.method__steps { display: grid; gap: 3.5rem; }
.step { display: grid; gap: 0.6rem; }
.step__num {
  display: inline-block; justify-self: start; background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1; padding: 0.3rem 0.5rem;
}
.step h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); line-height: 1; }
.step p:not(.step__num) { max-width: 40ch; text-wrap: pretty; }
/* En teléfono y tablet cada etapa muestra su propia pantalla real (composición terminada, sin scroll ligado) */
.step__img { width: min(100%, 26rem); aspect-ratio: 720 / 768; object-fit: cover; margin-bottom: 0.75rem; background: var(--surface); }

/* ---------- 4. Asesoría ---------- */

.service { padding: var(--section) var(--margin); background: var(--surface); display: grid; gap: 3rem; }
.service__head { display: grid; gap: 1.25rem; }
.service__head p { color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.service__body { display: grid; gap: 3rem; }
.includes { display: grid; gap: 1.75rem; }
.includes li { display: grid; gap: 0.3rem; padding-left: 1.75rem; position: relative; }
.includes li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.7rem; background: var(--accent); }
.includes h3 { font-size: var(--step-lead); font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
.includes p { color: var(--muted); max-width: 48ch; }
.ticket { background: var(--bg); padding: 1.75rem 1.5rem; display: grid; gap: 1.25rem; align-content: start; }
.ticket__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.ticket__facts dt { font-size: var(--step-small); color: var(--muted); }
.ticket__facts dd { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem); line-height: 1.1; }
.ticket__note { color: var(--muted); font-size: var(--step-small); }
.ticket__alt { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.goals h3 { font-size: var(--step-small); color: var(--muted); font-weight: 600; margin-bottom: 0.9rem; }
.goals ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.goals li { background: var(--surface-2); padding: 0.55rem 0.9rem; font-size: var(--step-small); font-weight: 500; }

/* ---------- 5. Por qué conmigo ---------- */

.coach { padding: var(--section) var(--margin); display: grid; gap: 3rem; }
.coach__media { padding: 8px; max-width: 30rem; }
.coach__media picture { display: block; }
.coach__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.coach__text { display: grid; gap: 1.25rem; }
.coach__text > p { max-width: 54ch; text-wrap: pretty; }
.coach__text > .coach__lead { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; }
.coach__promise { border-left: 4px solid var(--accent); padding-left: 1rem; font-weight: 500; }
.creds { margin-top: 1rem; }
.creds h3 { font-size: var(--step-small); color: var(--muted); font-weight: 600; margin-bottom: 0.9rem; }
.creds ul { display: grid; gap: 0.7rem; }
.creds li { line-height: 1.35; }

/* ---------- 6. Videos ---------- */

.videos { padding: var(--section) 0; background: var(--bg-deep); }
.videos__head { display: grid; gap: 1.25rem; padding: 0 var(--margin); margin-bottom: 2.5rem; }
.videos__head p { color: var(--muted); max-width: 46ch; }
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 20rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--margin) 1rem; scroll-padding: 0 var(--margin);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; display: grid; gap: 0.35rem; align-content: start; }
.reel__play {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; margin-bottom: 0.6rem;
  border: 0; background: var(--surface); cursor: pointer; overflow: hidden;
}
.reel__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.reel__icon {
  position: absolute; left: 50%; top: 50%; width: 4.25rem; height: 4.25rem; margin: -2.125rem 0 0 -2.125rem;
  background: var(--accent); border-radius: 50%;
  transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) ease;
}
.reel__icon::after {
  content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.7rem 0 0.7rem 1.15rem; border-color: transparent transparent transparent var(--accent-ink);
}
.reel__play:active .reel__icon { transform: scale(0.94); }
.reel__play:focus-visible { outline-offset: 4px; }
.reel h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.reel p { color: var(--muted); font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) {
  .reel__play:hover img { transform: scale(1.03); }
  .reel__play:hover .reel__icon { transform: scale(1.08); background: var(--accent-strong); }
}
@media (max-width: 639.98px) {
  .reels { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 1.5rem 0.75rem; padding-bottom: 0; }
  .reel:first-child { grid-column: 1 / -1; }
  .reel:first-child .reel__play { aspect-ratio: 4 / 5; }
  .reel h3 { font-size: 1.25rem; }
  .reel:not(:first-child) .reel__icon { width: 3.25rem; height: 3.25rem; margin: -1.625rem 0 0 -1.625rem; }
  .reel:not(:first-child) .reel__icon::after { border-width: 0.55rem 0 0.55rem 0.9rem; }
}
@media (min-width: 640px) and (max-width: 959.98px) {
  .reels { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
}
.videos__more { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 2rem var(--margin) 0; }

.player { width: min(92vw, 26rem); max-height: 92svh; padding: 0; border: 0; background: #000; color: var(--ink); overflow: visible; }
.player::backdrop { background: var(--scrim); }
.player__video { width: 100%; height: auto; max-height: 84svh; aspect-ratio: 9 / 16; background: #000; }
.player__close {
  position: absolute; right: 0; bottom: 100%; margin-bottom: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1rem;
  border: 0; background: var(--ink); color: var(--paper-ink); font-weight: 650; cursor: pointer;
}

/* ---------- 7. Preguntas ---------- */

.faq { padding: var(--section) var(--margin); display: grid; gap: 2.5rem; }
.faq__side { display: grid; gap: 1.25rem; align-content: start; }
.faq__side p { color: var(--muted); text-wrap: pretty; }
.faq__list { display: grid; gap: 6px; }
.tile { background: var(--surface); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.tile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 4rem; padding: 1rem 1.25rem; font-weight: 600; line-height: 1.3;
}
.tile summary::-webkit-details-marker { display: none; }
.tile summary:focus-visible { outline-offset: -2px; }
.tile__plus { position: relative; flex: none; width: 16px; height: 16px; }
.tile__plus::before, .tile__plus::after {
  content: ''; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor;
  transition: transform var(--t-ui) var(--ease-out);
}
.tile__plus::after { transform: rotate(90deg); }
.tile[open] { background: var(--accent); color: var(--accent-ink); }
.tile[open] .tile__plus::after { transform: rotate(0deg); }
.tile__answer { padding: 0 1.25rem 1.5rem; }
.tile__answer p { max-width: 56ch; text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) { .tile:not([open]) summary:hover { background: var(--surface-2); } }

/* ---------- 8. Ficha de inicio ---------- */

.coupon-section { padding: 0 max(16px, var(--margin)) var(--section); }
.coupon { position: relative; display: grid; background: var(--accent); color: var(--accent-ink); --perf-y: 0px; }
.coupon::before, .coupon::after {
  content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--bg);
  top: var(--perf-y); transform: translateY(-50%);
}
.coupon::before { left: -14px; }
.coupon::after { right: -14px; }
.coupon__stub { display: grid; gap: 1.25rem; align-content: start; padding: 2rem 1.25rem 2.25rem; }
.coupon__title { font-size: var(--step-head); line-height: 0.92; max-width: 8ch; }
.coupon__focus { display: none; gap: 0.35rem; align-content: start; max-width: 34ch; }
.coupon__focus-label { font-weight: 750; }
.coupon__note { max-width: 40ch; }
.coupon__fields { display: grid; gap: 8px; align-content: start; padding: 1.75rem 1.25rem 1.5rem; border-top: 5px dotted var(--bg); /* taste-skill-ignore: perforación del cupón */ }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--step-small); font-weight: 650; }
.field__hint { font-size: var(--step-small); font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 3.375rem; padding: 0.75rem 1rem; background: var(--coupon-field); color: var(--accent-ink);
  border: 0; border-radius: 0; font-size: max(16px, var(--step-body)); appearance: none; -webkit-appearance: none;
  transition: background-color var(--t-hover) ease;
}
.field select {
  padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2303121e' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field select option { background: var(--paper); color: var(--paper-ink); }
.field input::placeholder { color: var(--coupon-placeholder); opacity: 1; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 0; background-color: var(--coupon-field-focus); }
.field [aria-invalid='true'] { outline: 3px solid var(--error-ring); outline-offset: 0; }
.field__error { font-size: var(--step-small); font-weight: 650; color: var(--error); }
.coupon__submit {
  min-height: 3.5rem; margin-top: 0.25rem; padding: 0.75rem 1rem; background: var(--accent-ink); color: var(--ink);
  border: 0; cursor: pointer; font-weight: 650; font-size: var(--step-body);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.coupon__submit:active { transform: scale(0.98); }
.coupon__submit:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .coupon__submit:hover { background: var(--submit-hover); }
  .field input:hover, .field select:hover { background-color: var(--coupon-field-hover); }
}
.coupon__status { display: grid; gap: 0.5rem; padding-top: 0.75rem; }
.coupon__status .link { color: var(--accent-ink); text-decoration-color: currentColor; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 9. Cierre ---------- */

.closing { padding: var(--section) var(--margin); background: var(--blue); color: #fff; display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.closing__title { font-size: min(8rem, calc((100vw - 2 * var(--margin)) / 6.8)); line-height: 1.16; }
.closing .hl { color: var(--accent-ink); }
.closing > p { font-size: var(--step-lead); max-width: 30ch; }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; padding-top: 0.5rem; width: 100%; }
.closing__actions .button { flex: 1 1 100%; max-width: 26rem; }
.closing .button { background: var(--ink); color: var(--paper-ink); }
.closing .button--ghost { background: var(--accent-ink); color: var(--ink); }
.closing :focus-visible { outline-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .closing .button:hover { background: #fff; color: var(--paper-ink); }
  .closing .button--ghost:hover { background: var(--submit-hover); color: var(--ink); }
}

/* ---------- Pie ---------- */

.footer { background: var(--paper); color: var(--paper-ink); padding: 2rem var(--margin) 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.footer__name { font-size: calc((100vw - 2 * var(--margin)) / 5.02); line-height: 0.85; white-space: nowrap; }
.footer__name span { color: var(--blue); }
.footer__row { display: grid; gap: 2.5rem; padding-top: 3rem; }
.footer__places { display: grid; gap: 1.25rem; }
.footer__places span { display: block; font-size: var(--step-small); color: var(--paper-muted); }
.footer__places a {
  font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.01em; text-decoration: underline;
  text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; text-decoration-color: transparent;
  transition: text-decoration-color var(--t-hover) ease; display: inline-flex; align-items: center; min-height: 44px;
}
.footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; font-size: var(--step-small); }
.footer__links ul { display: grid; align-content: start; }
.footer__links li:not(:has(a)) { padding-block: 0.6rem; }
.footer__links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; transition: transform var(--t-hover) var(--ease-out); }
.footer__legal p { text-wrap: pretty; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding-top: 3rem; font-size: var(--step-small); color: var(--paper-muted); }
.footer__legal .link { color: var(--paper-ink); text-decoration-color: var(--paper-ink); display: inline-flex; align-items: center; min-height: 44px; }
.footer :focus-visible { outline-color: var(--paper-ink); }
@media (hover: hover) and (pointer: fine) {
  .footer__places a:hover { text-decoration-color: currentColor; }
  .footer__links a:hover { transform: translateX(6px); }
}

/* ---------- Acceso flotante ---------- */

.dock {
  position: fixed; z-index: var(--z-dock); left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.25rem; padding: 0.75rem 1.25rem;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 650;
  transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) var(--ease-out), background-color var(--t-hover) ease;
}
.dock:active { transform: scale(0.97); }
.js .dock:not(.is-on) { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui); }
@media (hover: hover) and (pointer: fine) { .dock:hover { background: var(--accent-strong); } }


/* ---------- Menú móvil ---------- */

.sheet {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 14px var(--margin) calc(20px + env(safe-area-inset-bottom));
  border: 0; background: var(--bg); color: var(--ink); flex-direction: column;
}
.sheet[open] { display: flex; }
.sheet::backdrop { background: var(--scrim); }
.sheet__top { display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; }
.sheet nav { display: grid; gap: 0.25rem; padding: 2.5rem 0 2rem; }
.sheet nav a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.5rem, 12vw, 3.5rem); line-height: 1.1; text-decoration: none; }
.sheet .button { margin-top: auto; }

/* ---------- Tablet ---------- */

@media (min-width: 640px) and (max-width: 959.98px) {
  :root { --step-hero: calc((100vw - 2 * var(--margin)) / 7); }
  .hero__portrait .hud { height: 50svh; max-height: 34rem; }
  .hero__copy { margin-top: 1.75rem; }
  .hero__actions .button { flex: 0 0 auto; }
  .service__body { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: start; }
  .coach { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: start; }
  .method__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .closing__actions .button { flex: 0 1 auto; }
}

/* ---------- Escritorio ---------- */

@media (min-width: 960px) {
  :root { --bar-h: 4.5rem; --step-hero: min(11rem, calc((100vw - 2 * var(--margin)) * 0.545 / 5.75)); }
  .bar__links { display: flex; gap: 1.75rem; font-size: var(--step-small); }
  .bar__links a { position: relative; text-decoration: none; padding-block: 0.5rem; }
  .bar__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease-out); }
  .bar__menu { display: none; }

  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end;
    min-height: 100svh; padding-top: calc(var(--bar-h) + 2rem); padding-bottom: 3rem;
  }
  .hero__copy { order: 0; grid-column: 1 / span 7; grid-row: 1; margin: 0; align-self: center; gap: 1.25rem; }
  .hero__who { order: 0; }
  .hero__portrait { order: 0; grid-column: 8 / -1; grid-row: 1; margin: 0 8px 0 0; align-self: center; }
  .hero__portrait .hud { height: min(70svh, 46rem); }
  .hero__portrait figcaption { display: block; margin-top: 1.1rem; font-size: var(--step-small); color: var(--muted); }
  .hero__portrait figcaption strong { color: var(--ink); font-weight: 600; margin-right: 0.4rem; }
  .hero__actions .button { flex: 0 0 auto; }
  .hero__facts { grid-column: 1 / -1; grid-row: 2; margin-top: 2.5rem; }

  .problem { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .problem .display { grid-column: 1 / span 6; font-size: min(var(--step-head), calc((100vw - 2 * var(--margin)) * 0.47 / 7.6)); }
  .problem__list, .problem__answer { grid-column: 7 / -1; }

  /* Escena del método: la pantalla se queda fija y el video avanza con el scroll */
  .method__intro { margin-bottom: 3rem; }
  .method__track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 7rem); }
  .method__stage { display: block; position: sticky; top: calc(var(--bar-h) + 2vh); height: calc(100svh - var(--bar-h) - 4vh); align-self: start; padding: 8px; }
  .screen { position: relative; height: calc(100% - 1.5rem); aspect-ratio: 720 / 768; max-width: 100%; margin-inline: auto; background: var(--surface); }
  .screen__video, .screen__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .screen__still { opacity: 0; transition: opacity 500ms var(--ease-out); }
  .screen__still[data-on] { opacity: 1; }
  .screen__video { opacity: 0; transition: opacity 400ms ease; }
  .method.is-scrubbing .screen__video { opacity: 1; }
  .method__progress { height: 4px; background: var(--surface-2); margin: 1.1rem auto 0; width: min(100%, calc((100svh - var(--bar-h) - 4vh - 1.5rem - 16px) * 0.9375)); }
  .method__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .method__steps { gap: 0; }
  .step { min-height: 78svh; align-content: center; padding-block: 10svh; transition: opacity 400ms var(--ease-out); }
  .step__img { display: none; }
  .js .step:not(.is-active) { opacity: 0.55; }

  .service { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .service__head { grid-column: 1 / span 7; }
  .service__body { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .includes { grid-column: 1 / span 6; }
  .ticket { grid-column: 8 / -1; position: sticky; top: calc(var(--bar-h) + 2rem); padding: 2.25rem; }
  .goals { grid-column: 1 / span 8; }

  .coach { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .coach__media { grid-column: 1 / span 5; max-width: none; }
  .coach__text { grid-column: 7 / -1; }

  .reels { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: var(--gutter); }
  .faq { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .faq__side { grid-column: 1 / span 4; position: sticky; top: calc(var(--bar-h) + 2rem); }
  .faq__list { grid-column: 6 / -1; gap: 8px; }
  .tile summary { min-height: 4.5rem; padding: 1.25rem 1.5rem; }
  .tile__answer { padding: 0 1.5rem 1.75rem; }

  .coupon-section { padding: 0 var(--margin) var(--section); }
  .coupon { grid-template-columns: 46% 54%; max-width: 72rem; margin-inline: auto; min-height: 28rem; }
  .coupon::before, .coupon::after { left: 46%; right: auto; transform: translate(-50%, -50%); }
  .coupon::before { top: 0; }
  .coupon::after { top: 100%; }
  .coupon__stub { padding: 3rem; grid-template-rows: auto 1fr auto; }
  .coupon__focus { display: grid; }
  .field__hint { display: none; }
  .coupon__fields { padding: 3rem; border-top: 0; border-left: 5px dotted var(--bg); /* taste-skill-ignore: perforación del cupón */ gap: 10px; }

  .closing__actions .button { flex: 0 1 auto; }

  .footer__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .footer__places { grid-column: 1 / span 5; }
  .footer__links { grid-column: 7 / -1; }

  .dock { left: auto; right: 24px; bottom: 24px; }
}
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .bar__links a:hover::after { transform: scaleX(1); }
}

/* ---------- Movimiento ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Portada: el titular sube desde su línea base, la foto se abre y lo demás llega en menos de un segundo */
  .js .hero__title [data-line] { transform: translateY(105%); animation: line-up 800ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms + 80ms); }
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
  .js .hero__portrait img { clip-path: inset(100% 0 0 0); animation: shutter 1000ms var(--ease-in-out) 120ms forwards; }
  .js .hero__portrait .hud__c { opacity: 0; animation: corner 500ms var(--ease-out) 700ms forwards; }

  /* Entradas por sección, una vez */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .coupon[data-reveal] { transform: translateY(24px) scale(0.98); }
  .js .coupon[data-reveal].is-in { transform: none; }

  /* Preguntas: transición interrumpible */
  .tile__answer { transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
  @starting-style { .tile[open] .tile__answer { opacity: 0; transform: translateY(-6px); } }

  .player[open] { animation: pop var(--t-ui) var(--ease-out); }
  .sheet[open] { animation: sheet-in var(--t-ui) var(--ease-out); }
  .sheet[open] nav a { animation: sheet-link 260ms var(--ease-out) both; }
  .sheet[open] nav a:nth-child(2) { animation-delay: 30ms; }
  .sheet[open] nav a:nth-child(3) { animation-delay: 60ms; }
  .sheet[open] nav a:nth-child(4) { animation-delay: 90ms; }
  .sheet[open] nav a:nth-child(5) { animation-delay: 120ms; }
  .sheet[open] nav a:nth-child(6) { animation-delay: 150ms; }
}

/* El nombre del pie crece un poco al llegar (ligado al scroll, solo transform) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .footer__name { transform-origin: 0 100%; animation: footer-grow linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}

@keyframes line-up { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shutter { to { clip-path: inset(0 0 0 0); } }
@keyframes corner { from { opacity: 0; transform: scale(1.4); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes sheet-link { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes footer-grow { from { transform: scale(0.94); } to { transform: scale(1); } }

/* Movimiento reducido: sin desplazamientos ni escalas; se conservan color y opacidad */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:active, .bar__menu:active, .coupon__submit:active, .dock:active, .reel__play:active .reel__icon { transform: none; }
  .js .dock:not(.is-on) { transform: none; }
  .tile__plus::before, .tile__plus::after, .footer__links a, .bar__links a::after, .skip, .reel__play img { transition: none; }
  .footer__links a:hover, .reel__play:hover img { transform: none; }
}
