/* Tito's Web — estilos
   Un solo motivo: el marco vertical 9:16 del reel. Azul noche y amarillo.
   Móvil primero (375 px) y escala hasta 1440 px. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2?v=20261102t") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --bg: #0A1224;
  --surface: #121C33;
  --surface-2: #1A2742;
  --surface-3: #243352;
  --deep: #060B18;
  --ink: #F2F5FA;
  --muted: #A9B6CC;
  --accent: #FFC629;
  --accent-strong: #FFD75E;
  --accent-ink: #0A1224;

  /* Tipo: cinco tamaños */
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --step-display: clamp(2.75rem, 1rem + 7vw, 7rem);

  /* Espacio */
  --m: clamp(20px, 2.2vw, 32px);
  --gap: clamp(12px, 1.4vw, 20px);
  --sec: clamp(96px, 11vw, 192px);
  --r: 12px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 1200ms;

  color-scheme: dark;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--ink); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }

.display {
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.head {
  font-size: var(--step-head);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h3 { font-size: var(--step-lead); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }

/* Botones y enlaces ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r);
  font-weight: 800;
  font-size: var(--step-body);
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--quiet { background: var(--surface-2); color: var(--ink); }
.btn--small { min-height: 48px; padding: 0 20px; font-size: var(--step-small); }
.btn--wide { width: 100%; }
.btn.is-done { background: var(--surface-3); color: var(--ink); }
.link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-strong); }
  .btn--quiet:hover { background: var(--surface-3); }
  .link:hover { text-decoration-color: currentColor; }
}

/* Cabecera --------------------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--m);
  min-height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--step-lead);
  letter-spacing: -0.02em;
  text-decoration: none;
  min-height: 48px;
}
.wordmark__mark { width: 14px; height: 25px; border-radius: 3px; background: var(--accent); }
.top__nav { display: none; }
.top__cta { display: none; }
.top__mobile {
  margin-left: auto;
  font-weight: 700;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}
@media (min-width: 900px) {
  .top__nav { display: flex; gap: 28px; margin-left: auto; }
  .top__nav a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.3em;
    text-decoration-thickness: 0.08em;
    transition: text-decoration-color var(--t-hover) ease;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
  .top__cta { display: inline-flex; }
  .top__mobile { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .top__nav a:hover { text-decoration-color: currentColor; }
}

/* 1 · Hero: los reels se ven enteros, sin recortes ni texto encima ---------------- */
.hero { position: relative; padding: 12px var(--m) 0; }
.hero__text { position: relative; z-index: 2; max-width: 40rem; }
.hero__lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; }
.hero__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.hero__note { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }

.hero__stage { margin-top: 36px; }
.hero__frame {
  background: var(--accent);
  border-radius: 24px;
  padding: 10px;
  overflow: hidden;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  transform-origin: 50% 0;
}
.mosaic__col { display: flex; flex-direction: column; gap: 8px; }
.mosaic__col:nth-child(3) { display: none; }

.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--deep);
}
.reel__media { width: 100%; height: 100%; object-fit: cover; }
/* El título del reel queda para lectores de pantalla: el vídeo ya lo cuenta */
.reel__cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 768px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__frame { padding: 14px; border-radius: 32px; }
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .mosaic__col { gap: 10px; }
  .mosaic__col:nth-child(3) { display: flex; }
}

@media (min-width: 1024px) {
  .hero {
    /* Dos filas de reels caben enteras en la pantalla, y nunca invaden el texto */
    --w: min(calc((100svh - 174px) / 2 * 9 / 16), calc((50vw - 84px) / 3));
    min-height: calc(100svh - 72px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: center;
    padding: 0 var(--m);
  }
  .hero__text { grid-column: 1 / span 6; max-width: none; padding-bottom: 6vh; }
  .hero__lead { max-width: 28ch; }
  .webs__copy p { max-width: 34ch; }
  .hero__stage {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--m);
    pointer-events: none;
  }
  .mosaic { grid-template-columns: repeat(3, var(--w)); }
}

/* 2 · Así se hace: el reel limpio en su marco y, al lado, lo que se pidió ---------- */
.how { padding: var(--sec) var(--m) 0; display: grid; gap: 24px; }
.how__list { display: contents; }
.how__title { order: -1; font-size: var(--step-head); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.styles { order: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.styles__item {
  flex: none;
  font-size: var(--step-lead);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  min-height: 48px;
  color: var(--muted);
  text-align: left;
  transition: color var(--t-hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.styles__item[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
@media (hover: hover) and (pointer: fine) { .styles__item:hover { color: var(--ink); } }

.how__stage { order: 1; display: flex; justify-content: center; }
.player {
  width: min(100%, 78svh * 9 / 16 + 24px);
  padding: 10px;
  background: var(--accent);
  border-radius: 24px;
}
.player__video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--deep);
  transition: opacity 180ms ease;
}
.is-swapping .player__video { opacity: 0; }

.how__fact { order: 2; display: grid; gap: 14px; align-content: start; }
.how__hint { font-size: var(--step-small); color: var(--muted); }
.how__prompt { font-weight: 700; transition: opacity 180ms ease; }
.how__tools { font-size: var(--step-small); }
.how__fact .btn { justify-self: start; }

@media (min-width: 1024px) {
  .how {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: center;
  }
  .how__list { display: grid; grid-column: 1 / span 4; grid-row: 1; gap: 0; }
  .how__title { line-height: 1.12; margin-bottom: 8px; }
  .styles { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .styles__item { font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.03em; min-height: 0; }
  .how__stage { grid-column: 5 / span 4; grid-row: 1; }
  .player { padding: 14px; border-radius: 32px; }
  .how__fact { grid-column: 9 / span 4; grid-row: 1; padding-left: 12%; }
  .how__prompt { font-size: var(--step-lead); line-height: 1.3; }
}

/* 3 · Cómo funciona ------------------------------------------------------ */
.flow {
  padding: var(--sec) var(--m) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40vw;
  column-gap: 16px;
}
.flow__intro { grid-column: 1 / -1; display: grid; gap: 20px; max-width: 34rem; margin-bottom: 40px; }
.flow__figure { grid-column: 1; }
.flow-svg rect { transform-box: fill-box; transform-origin: center; }
.flow-svg rect[fill="#f4d96c"] { fill: var(--accent); }
.flow-svg rect[fill="#c9b763"] { fill: var(--muted); }
.flow-svg rect[fill="#2f6a44"] { fill: var(--surface-3); }
.flow-svg rect[fill="#7d7a45"] { fill: var(--muted); opacity: 0.55; }
.flow-svg--h { display: none; }
.flow__steps { grid-column: 2; display: grid; grid-template-rows: 1.15fr 1fr 1.1fr; }
.flow__steps li { display: grid; align-content: center; gap: 6px; }
.flow__steps h3 { font-size: var(--step-lead); }
.flow__steps p { line-height: 1.45; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
  .flow__intro { grid-column: 1 / span 2; margin-bottom: 56px; }
  .flow__figure { grid-column: 1 / -1; }
  .flow-svg--h { display: block; width: 100%; }
  .flow-svg--v { display: none; }
  .flow__steps { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); margin-top: 40px; }
  .flow__steps li { align-content: start; max-width: 24rem; }
}

/* 4 · El plan: dos campos de color que se tocan -------------------------------- */
.plans { margin-top: var(--sec); display: grid; }
.plan {
  padding: 36px var(--m) 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
}
.plan--main { background: var(--accent); color: var(--accent-ink); }
.plan--web { background: var(--surface-2); }
.plan--pro { background: var(--surface-3); }
.plan__top { display: grid; gap: 16px; }
.plan__name { font-size: var(--step-head); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.plan__for { font-size: var(--step-lead); line-height: 1.3; font-weight: 600; max-width: 26ch; }
.plan__list { display: grid; gap: 8px; margin-top: 8px; max-width: 34rem; font-weight: 600; }
.plan__list li { position: relative; padding-left: 22px; line-height: 1.35; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.22em;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: currentColor;
}
.plan__foot { display: grid; gap: 16px; }
.plan__price { font-size: var(--step-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.plan__once { font-size: var(--step-body); font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.plan__buy { width: 100%; }
.btn--dark { background: var(--accent-ink); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { background: color-mix(in srgb, var(--accent-ink) 82%, var(--accent)); }
}
@media (min-width: 1024px) {
  .plans { grid-template-columns: 5fr 4fr 4fr; }
  .plan { min-height: 76svh; padding: 56px 40px 40px; }
  .plan__list { font-size: var(--step-lead); gap: 12px; margin-top: 16px; }
  .plan__list li { padding-left: 28px; }
  .plan__list li::before { width: 10px; height: 18px; top: 0.26em; }
  .plan--main { padding-left: var(--m); }
  .plan--pro { padding-right: var(--m); }
  .plan__foot { justify-items: start; }
  .plan__buy { width: auto; }
  .plan__once { display: block; margin-top: 10px; line-height: 1.2; }
}

/* Banda de prompts ------------------------------------------------------- */
.band {
  margin: var(--sec) var(--m) 0;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 22px 24px;
}
.band__clip { overflow: hidden; }
.band__track { display: flex; width: max-content; }
.band__line { display: flex; flex: none; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; }
.band__line span { display: inline-flex; align-items: center; padding-right: 40px; }
.band__line span::before {
  content: "";
  width: 12px;
  height: 21px;
  margin-right: 40px;
  border-radius: 3px;
  background: var(--accent-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .band__track { animation: marquee 48s linear infinite; animation-play-state: paused; }
  .band.is-running .band__track { animation-play-state: running; }
  .band.is-running:hover .band__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes hero-settle { from { transform: translateY(10px); } }

/* 5 · Webs con IA --------------------------------------------------------- */
.webs { padding: var(--sec) var(--m) 0; display: grid; gap: 28px; }
.webs__plate {
  aspect-ratio: 1;
  border-radius: var(--r);
  background: var(--accent);
  padding: 7%;
  display: grid;
}
.site {
  --s-bg: #eef2f0;
  --s-ink: #12302a;
  --s-sea: #1f6f8b;
  container-type: inline-size;
  background: var(--s-bg);
  color: var(--s-ink);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}
.site__bar { display: flex; align-items: center; gap: 3cqw; padding: 2.6cqw 3.4cqw; background: #dde4e1; }
.site__dots { display: flex; gap: 1.4cqw; }
.site__dots i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #c7c3b4; }
.site__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.2cqw 2.6cqw;
  border-radius: 6px;
  background: var(--s-bg);
  font-size: 3cqw;
  font-weight: 700;
  color: #4b5a55;
  white-space: nowrap;
  overflow: hidden;
}
.site__live { width: 2cqw; height: 2cqw; border-radius: 50%; background: #c7c3b4; flex: none; transition: background-color 300ms ease; }
.site[data-phase="online"] .site__live { background: #2bb673; }
.site__view { position: relative; overflow: hidden; }
.site__chat { z-index: 1; }
.site__page { transition: visibility 0s; }
.site[data-phase="idea"] .site__page { visibility: hidden; transition: visibility 0s linear 500ms; }
.site__chat {
  position: absolute;
  inset: 6cqw;
  display: grid;
  align-content: center;
  gap: 2cqw;
  transition: opacity 400ms ease, transform 400ms var(--ease-out);
}
.site__chat-label { font-size: 3cqw; font-weight: 800; color: #6b7a74; }
.site__chat-text {
  font-size: 4.2cqw;
  line-height: 1.3;
  font-weight: 700;
  background: #dde4e1;
  padding: 4cqw 5cqw;
  border-radius: 4cqw 4cqw 4cqw 1cqw;
}
.site__page { padding: 4cqw 5cqw; display: grid; gap: 3.4cqw; align-content: start; }
.site__nav { display: flex; gap: 4cqw; font-size: 3.2cqw; align-items: baseline; }
.site__nav b { margin-right: auto; font-size: 3.8cqw; }
.site__hero { display: grid; gap: 2cqw; justify-items: start; }
.site__h { font-size: 8.4cqw; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.site__p { font-size: 3.4cqw; line-height: 1.35; color: #42534d; max-width: 34ch; }
.site__btn { margin-top: 1cqw; background: var(--s-sea); color: #fff; font-size: 3.2cqw; font-weight: 800; padding: 2cqw 4cqw; border-radius: 1.6cqw; }
.site__img { height: 22cqw; border-radius: 2cqw; overflow: hidden; }
.site__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.site__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; font-size: 2.8cqw; line-height: 1.3; }
.site__row span { background: #dde4e1; padding: 2cqw; border-radius: 1.6cqw; }
.site__row b { display: block; }

/* Fases de la web */
.site__page > * { transition: opacity 500ms ease, transform 600ms var(--ease-expo); }
.site[data-phase="idea"] .site__page > * { opacity: 0; transform: translateY(5cqw); }
.site[data-phase="idea"] .site__chat { opacity: 1; }
.site:not([data-phase="idea"]) .site__chat { opacity: 0; transform: translateY(-4cqw); pointer-events: none; visibility: hidden; transition: opacity 400ms ease, transform 400ms var(--ease-out), visibility 0s linear 400ms; }
.site:not([data-phase="idea"]) .site__page > *:nth-child(1) { transition-delay: 60ms; }
.site:not([data-phase="idea"]) .site__page > *:nth-child(2) { transition-delay: 160ms; }
.site:not([data-phase="idea"]) .site__page > *:nth-child(3) { transition-delay: 260ms; }
.site:not([data-phase="idea"]) .site__page > *:nth-child(4) { transition-delay: 360ms; }
.site[data-phase="diseno"] .site__btn { background: #b9c4c1; }
.site__btn { transition: background-color 400ms ease 500ms; }

.webs__text { display: grid; gap: 24px; align-content: start; }
.tabs { display: flex; gap: 22px; }
.tabs__item {
  min-height: 48px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--muted);
  transition: color var(--t-hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.tabs__item[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 0.1em; text-underline-offset: 0.3em; }
@media (hover: hover) and (pointer: fine) { .tabs__item:hover { color: var(--ink); } }
.webs__copy { display: grid; gap: 20px; }
.webs__copy p { font-size: var(--step-lead); line-height: 1.4; }
.cells { display: grid; gap: 8px; }
.cell {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 22px;
  border-radius: var(--r);
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.cell:active { transform: scale(0.98); }
.cell--ink { background: var(--accent); color: var(--accent-ink); }
.cell--tone { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) {
  .cell--ink:hover { background: var(--accent-strong); }
  .cell--tone:hover { background: var(--surface-3); }
}
@media (min-width: 1024px) {
  .webs { grid-template-columns: 1fr 1fr; column-gap: calc(var(--gap) * 2); min-height: 88svh; align-items: stretch; }
  .webs__plate { align-self: center; }
  .webs__text { align-content: space-between; padding: 12px 0; }
  .cells { grid-template-columns: 1fr 1fr; }
  .cell { min-height: 72px; }
}

/* 6 · Sobre Tito ----------------------------------------------------------- */
.about { padding: var(--sec) 10px 0; }
.about__panel {
  position: relative;
  background: var(--deep);
  border-radius: var(--r);
  overflow: hidden;
  padding: 36px calc(var(--m) - 10px + 8px) 28px;
  display: grid;
  gap: 32px;
}
.about__title { font-size: var(--step-head); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; }
.about__left { display: contents; }
.about__photo {
  order: 3;
  justify-self: center;
  position: relative;
  width: 62vw;
  aspect-ratio: 9 / 16;
  border-radius: 5vw;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.about__photo img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.about__right { display: grid; gap: 28px; }
.about__block { display: grid; gap: 8px; max-width: 32rem; }
.about__block h3 { font-size: var(--step-lead); }
.about__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.about__links .link { min-height: 48px; display: inline-flex; align-items: center; }
@media (min-width: 1024px) {
  .about { padding-left: 20px; padding-right: 20px; }
  .about__panel { grid-template-columns: 1fr 1fr; padding: 56px; column-gap: 48px; }
  .about__left { display: grid; align-content: space-between; gap: 48px; }
  .about__photo { order: 0; justify-self: start; width: min(24vw, 360px); border-radius: calc(min(24vw, 360px) * 0.07); }
  .about__right { padding-left: 16%; align-content: start; gap: 48px; }
}

/* 7 · Prueba social -------------------------------------------------------- */
.proof { padding: var(--sec) var(--m) 0; }
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.board__tile {
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--surface);
  display: grid;
  align-content: start;
  gap: 10px;
}
.board__tile:nth-child(even) { background: var(--surface-2); }
.board__tile--head { grid-column: 1 / -1; aspect-ratio: auto; min-height: 120px; background: var(--accent) !important; color: var(--accent-ink); align-content: end; }
.board__stars { width: 104px; height: auto; fill: var(--accent); }
.board__quote { margin: 0; font-size: var(--step-body); font-weight: 700; line-height: 1.35; }
.board__who { font-size: var(--step-small); color: var(--muted); }
@media (min-width: 1024px) {
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .board__tile { padding: 24px; min-height: 240px; }
  .board__tile--head { grid-column: span 2; grid-row: span 2; align-content: end; }
}

/* 8 · FAQ ------------------------------------------------------------------ */
.faq { padding: var(--sec) var(--m) 0; }
.faq__title { margin-bottom: 64px; }
.drawer { --step: calc((100% - 120px) / 8); }
.card {
  --card: var(--surface);
  position: relative;
  margin-top: 30px;
  background: var(--card);
  border-radius: 0 var(--r) var(--r) var(--r);
}
.card + .card { margin-top: 26px; }
.card:nth-child(3n + 2) { --card: var(--surface-2); }
.card:nth-child(3n + 3) { --card: var(--accent); color: var(--accent-ink); }
.card:not(:first-child) { border-top-left-radius: var(--r); }
.card__h { font-size: inherit; font-weight: inherit; letter-spacing: 0; line-height: inherit; }
.card__btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px 20px;
  min-height: 88px;
  -webkit-tap-highlight-color: transparent;
}
.card__tab {
  position: absolute;
  top: -30px;
  left: calc(var(--i) * var(--step));
  width: 120px;
  height: 30px;
  padding: 6px 12px 0;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--card);
  font-size: var(--step-small);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card:first-child .card__tab { left: 0; }
.card__q { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-body); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.card__q::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t-ui) var(--ease-out);
}
.card__btn[aria-expanded="true"] .card__q::after { transform: translateY(5px) rotate(-135deg); }
.card__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-ui) var(--ease-out); }
.card__a > div { overflow: hidden; }
.card__a p { padding: 0 20px 22px; max-width: 52ch; }
.card__a a { font-weight: 700; }
.card.is-open .card__a { grid-template-rows: 1fr; }
.no-js .card__a, html:not(.js) .card__a { grid-template-rows: 1fr; }
@media (min-width: 768px) {
  .faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .faq__title, .drawer { grid-column: 3 / span 8; }
  .drawer { --step: calc((100% - 180px) / 8); }
  .card { margin-top: 40px; }
  .card + .card { margin-top: 32px; }
  .card__tab { top: -40px; height: 40px; width: 180px; padding: 10px 18px 0; }
  .card__btn { padding: 22px 28px 26px; min-height: 96px; }
  .card__a p { padding: 0 28px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .card__a, .card__q::after { transition: none; }
}

/* 9 · CTA final ------------------------------------------------------------ */
.final { padding: var(--sec) var(--m) 0; display: grid; gap: 64px; overflow: hidden; }
.final__text { display: grid; gap: 18px; align-content: center; max-width: 30rem; }
.final__title { font-size: var(--step-head); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.final__fact { font-size: var(--step-lead); font-weight: 800; }
.final__actions { display: grid; gap: 10px; margin-top: 8px; }
.final__stage { order: 2; position: relative; height: 62svh; min-height: 380px; margin: 0 calc(-1 * var(--m)); overflow: hidden; }
.final__frame {
  position: absolute;
  left: 18vw;
  top: 4%;
  width: 100vw;
  aspect-ratio: 9 / 16;
  background: var(--accent);
  border-radius: 7vw;
  transform: rotate(-8deg);
  transform-origin: 0 0;
  padding: 10vw 9vw;
}
.cover { color: var(--accent-ink); display: grid; gap: 4vw; }
.cover__title { font-size: 13vw; font-weight: 800; line-height: 0.92; letter-spacing: -0.04em; }
.cover__sub { font-size: min(5.4vw, 24px); font-weight: 700; line-height: 1.25; max-width: 16ch; }
.cover__handle { font-weight: 800; font-size: min(4.4vw, 19px); }
@media (min-width: 600px) and (max-width: 1023px) {
  .final__frame { left: 30vw; width: 64vw; border-radius: 4.5vw; padding: 11vw 6vw; }
  .cover__title { font-size: 10vw; }
}
@media (min-width: 1024px) {
  .final { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); min-height: 92svh; padding-bottom: 0; }
  .final__stage { order: 0; grid-column: 1 / span 8; height: auto; min-height: 0; margin: 0 0 0 calc(-1 * var(--m)); align-self: stretch; }
  .final__frame { left: 10%; top: 9%; width: min(46vw, 640px); border-radius: calc(min(46vw, 640px) * 0.07); padding: 6% 6%; }
  .cover { gap: 1.6vw; }
  .cover__title { font-size: min(7.4vw, 104px); }
  .cover__sub { font-size: min(2.2vw, 30px); }
  .cover__handle { font-size: min(1.6vw, 22px); }
  .final__text { grid-column: 9 / span 4; padding: 64px 0 96px; }
}

/* 10 · Footer -------------------------------------------------------------- */
.foot { margin-top: clamp(72px, 8vw, 120px); padding: 0 var(--m) calc(104px + env(safe-area-inset-bottom)); background: var(--bg); }
.blocks { display: grid; gap: 10px; }
.blocks__svg { width: 100%; height: auto; overflow: visible; }
.blocks__svg--b { width: calc(308 / 565 * 100%); }
.blocks__svg rect { fill: var(--accent); }
.blocks__svg text { fill: var(--bg); font-family: var(--font); font-weight: 800; font-size: 104px; text-anchor: middle; }
.foot__cols { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.foot__col { display: grid; gap: 2px; align-content: start; }
.foot__col a { font-size: 0.9375rem; font-weight: 700; min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.foot__contact { grid-column: 1 / -1; display: grid; gap: 6px; align-content: start; font-size: 0.9375rem; }
.foot__last { margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) {
  .foot__col a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
}
@media (min-width: 768px) {
  .blocks { grid-template-columns: 565fr 308fr; column-gap: 28px; align-items: end; }
  .blocks__svg--b { width: 100%; }
  .foot { padding-bottom: 40px; }
  .foot__cols { grid-template-columns: repeat(3, 1fr) 2fr; }
  .foot__contact { grid-column: auto; }
}

/* Barra del pulgar (móvil) --------------------------------------------------- */
.thumbbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  transform: translateY(110%);
  transition: transform var(--t-ui) var(--ease-out);
}
.thumbbar.is-shown { transform: none; }
@media (min-width: 768px) { .thumbbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .thumbbar { transition: none; } }

/* Movimiento: entradas (solo con JS y sin movimiento reducido) ----------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* El hero llega antes: quien viene de un reel no espera */
  .js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: hero-rise 600ms var(--ease-expo) both; }
  .js .hero h1[data-reveal] { animation-name: hero-settle; } /* el titular se pinta desde el primer fotograma */
  .js .hero__text > :nth-child(2) { animation-delay: 60ms; }
  .js .hero__text > :nth-child(3) { animation-delay: 120ms; }
  .js .hero__text > :nth-child(4) { animation-delay: 180ms; }

  /* Firma: el marco del hero se abre como un obturador */
  .js .shutter { clip-path: inset(100% 0 0 0 round 0); transition: clip-path var(--t-open) var(--ease-in-out); }
  .js .shutter .mosaic { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0 0 0 0 round 0); }
  .js .shutter.is-in .mosaic { transform: none; }

  /* El diagrama: los marcos llegan de izquierda a derecha */
  .js [data-flow] rect { opacity: 0; transform: scale(0.85); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-expo); transition-delay: var(--d); }
  .js [data-flow].is-in rect { opacity: 1; transform: none; }
  .js [data-flow] { opacity: 1; transform: none; }
}
/* Red de seguridad: si algo sigue oculto, se muestra */
.js .reveal-all [data-reveal], .js.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; }
.js.reveal-all .shutter { clip-path: none !important; }
.js.reveal-all .shutter .mosaic { transform: none !important; }
.js.reveal-all [data-flow] rect { opacity: 1 !important; transform: none !important; }

/* Páginas legales ------------------------------------------------------------ */
.legal { padding: clamp(48px, 8vw, 120px) var(--m) 0; max-width: 46rem; display: grid; gap: 24px; }
.legal p { max-width: 60ch; }
.legal .link { justify-self: start; min-height: 48px; display: inline-flex; align-items: center; }

/* Movimiento reducido: versión estática de todo lo que se mueve */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .cell:active { transform: none; }
  .player__video, .how__prompt, .site__page > *, .site__chat { transition: none; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Nota legal junto a los botones de compra */
.plans__note { grid-column: 1 / -1; margin: 0; padding: 18px var(--m) 0; max-width: 62rem; font-size: var(--step-small); color: var(--muted); }
.plans__note a, .card__a a, .foot__contact a { text-decoration: underline; text-underline-offset: 0.2em; }

/* Páginas legales: lectura cómoda */
.legal h2 { margin-top: 16px; font-size: var(--step-lead); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.legal ul, .legal ol { display: grid; gap: 8px; padding-left: 22px; max-width: 60ch; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal a:not(.btn):not(.link) { font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.legal__date { font-size: var(--step-small); color: var(--muted); }
.legal__cta { justify-self: start; }

/* Formulario de desistimiento */
.withdraw { display: grid; gap: 10px; max-width: 32rem; }
.withdraw label { margin-top: 6px; font-weight: 700; font-size: var(--step-small); }
.withdraw .btn { justify-self: start; margin-top: 10px; }
.field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 2px solid var(--surface-3);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.0625rem;
  transition: border-color var(--t-hover) ease;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--accent); }

/* En tablet los planes van apilados: precio a un lado, botón al otro */
@media (min-width: 600px) and (max-width: 1023px) {
  .plan { padding-top: 56px; padding-bottom: 44px; }
  .plan__foot { grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; }
  .plan__buy { width: auto; }
}
