:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --ink: #f5f1e8;
  --ink-dim: rgba(245, 241, 232, 0.62);
  --ink-faint: rgba(245, 241, 232, 0.32);
  --ink-ghost: rgba(245, 241, 232, 0.14);
  --accent: #ff5b1f;
  --accent-2: #ffb46b;
  --accent-glow: rgba(255, 91, 31, 0.45);
  --line: rgba(245, 241, 232, 0.10);
  --line-strong: rgba(245, 241, 232, 0.22);

  /* --display: Jost — sans geométrica inspirada en Futura, sin italic */
  --display: "Jost", "Futura", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --serif: var(--display); /* alias por compatibilidad */
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x: clip — NO uses 'hidden', rompe position: sticky */
  overflow-x: clip;
  cursor: none;
}
html { overflow-y: visible; }
a { color: inherit; }

/* ==================== CURSOR ==================== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 220ms ease, height 220ms ease, background 220ms ease, border-color 220ms ease;
  mix-blend-mode: difference;
}
.cursor.is-link {
  width: 38px; height: 38px;
  background: var(--ink);
}
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ==================== GRAIN ==================== */
.grain {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(8,8,10,0.85), rgba(8,8,10,0.0));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.brand-name em {
  font-family: var(--display);
  /* Sin italic — énfasis vía color y peso */
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-size: 1em;
  letter-spacing: -0.005em;
}
.logo-mark {
  position: relative;
  width: 24px; height: 24px;
  display: inline-grid; place-items: center;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe5cf, var(--accent) 55%, #5a1500 100%);
  box-shadow: 0 0 18px var(--accent-glow);
}
.logo-ring {
  position: absolute; inset: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.5;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.nav .sep { color: var(--ink-faint); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
#clock { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cta {
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: all 240ms ease;
}
.cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 91, 31, 0.06);
}

/* ==================== STAGE / STICKY ==================== */
.stage {
  height: 700vh;
  /* Mobile usa unidades dinámicas para evitar bouncing por la barra del navegador */
  height: 700dvh;
  position: relative;
  z-index: 1;
}
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  perspective: 1600px;
  background: #000;
}

.canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
  transform-origin: 50% 50%;
}
canvas#seq {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  filter: contrast(1.08) saturate(0.95) brightness(0.9);
}


/* atmospherics */
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, transparent 40%, rgba(8,8,10,0.55) 78%, rgba(8,8,10,0.95) 100%),
    linear-gradient(180deg, rgba(8,8,10,0.5) 0%, transparent 18%, transparent 78%, rgba(8,8,10,0.7) 100%);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image:
    linear-gradient(rgba(245,241,232,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,241,232,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.scanline {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.018) 3px,
    rgba(255, 255, 255, 0.018) 4px
  );
  mix-blend-mode: overlay;
}

/* Letterboxing */
.letterbox {
  position: absolute; left: 0; right: 0; pointer-events: none; z-index: 6;
  height: 60px;
  background: linear-gradient(180deg, #000, transparent);
}
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; transform: scaleY(-1); }

/* ==================== HUD ==================== */
.hud {
  position: absolute; inset: 0; pointer-events: none; z-index: 7;
}
.corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--accent-2);
  border-style: solid;
  border-width: 0;
  opacity: 0.85;
}
.corner.tl { top: 110px; left: 28px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 110px; right: 28px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 64px; left: 28px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 64px; right: 28px; border-bottom-width: 1px; border-right-width: 1px; }

.hud-readout {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  /* single-line + pill style para garantizar visibilidad sobre el canvas */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 5px 10px;
  background: rgba(8, 8, 10, 0.55);
  border: 1px solid var(--line);
  border-radius: 3px;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.hud-readout .hud-label {
  color: var(--accent-2);
  opacity: 0.9;
  font-size: 9.5px;
}
.hud-readout .hud-val {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hud-readout .muted { color: var(--ink-faint); }

/* Posicionados con clearance real del topbar (≈61px) y letterbox */
.tl-r { top: 74px; left: 28px; }
.tr-r { top: 74px; right: 28px; }
.bl-r { bottom: 28px; left: 28px; }
.br-r { bottom: 28px; right: 28px; }

.rec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff3a3a;
  box-shadow: 0 0 8px #ff3a3a;
  animation: blink 1.1s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.15; }
}

/* ==================== OVERLAYS ==================== */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  /* padding-top 140px asegura clearance: topbar (~61px) + HUD top pill (74+22=96px) + buffer */
  padding: clamp(140px, 14vh, 168px) clamp(36px, 6vw, 88px) clamp(96px, 11vh, 132px);
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  transform-style: preserve-3d;
}
.overlay.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* Step 0 — HERO (bottom-left anchor) */
.overlay.step-hero {
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  max-width: 64ch;
}

/* Step 1 — DIAGNOSIS (right side w/ sidemeta) */
.overlay.step-1 {
  justify-content: flex-end;
  align-items: center;
  text-align: right;
}
/* step-body sin max-width — el título toma el ancho que necesite */
.overlay.step-1 .step-body {
  margin-left: auto;
  max-width: min(720px, 90%); /* tope generoso para que el título de 2 palabras quepa siempre */
}
.overlay.step-1 .display {
  margin-left: auto;
  /* permite que el título se ajuste sin desbordar */
  max-width: 100%;
}
.overlay.step-1 .lede {
  max-width: 46ch; /* lectura cómoda independiente del título */
  margin-left: auto;
}

/* Step 2 — DESIGN (left, full bleed feel) */
.overlay.step-2 {
  justify-content: flex-start;
  align-items: center;
}
.overlay.step-2 .step-body {
  max-width: min(720px, 90%);
}
.overlay.step-2 .display { max-width: 100%; }
.overlay.step-2 .lede { max-width: 52ch; }

/* Step 3 — SCALE / CTA (center) */
.overlay.step-3 {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* Foco oscuro radial detrás del contenido de fase 3 — mejora el contraste sobre la cara reensamblada (frames finales muy brillantes) */
.overlay.step-3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(8, 8, 10, 0.72) 0%,
    rgba(8, 8, 10, 0.5) 35%,
    rgba(8, 8, 10, 0.15) 65%,
    transparent 85%
  );
  opacity: 0;
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  z-index: -1;
}
.overlay.step-3.is-active::before {
  opacity: 1;
}

/* sidemeta panel on step 1 (top-left of its overlay) */
.sidemeta {
  position: absolute;
  top: clamp(120px, 12vh, 160px);
  left: clamp(36px, 6vw, 88px);
  display: grid;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-left: 14px;
  /* la línea izquierda ahora es animada (drip vertical) — pseudo-elemento */
}
.sidemeta::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: drip 2.4s ease-in-out infinite;
  transform-origin: top;
}
.sidemeta > div { display: grid; gap: 3px; }
.sidemeta .hud-label {
  color: var(--accent-2);
  opacity: 0.75;
  font-size: 9.5px;
}

/* ==================== TYPOGRAPHY ==================== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.kicker.center { justify-content: center; align-self: center; }
.kicker .dash {
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: drip-x 2.2s ease-in-out infinite;
  transform-origin: left;
}

.display {
  font-family: var(--display);
  /* Jost weight 400 mantiene la elegancia Futura/Helvetica al display size */
  font-weight: 400;
  /* IMPORTANTE: tamaños fijados para preservar el fit de bloques que ya ajustamos */
  font-size: min(clamp(56px, 9vw, 140px), 14vh);
  line-height: 0.96;
  /* Tracking ligero para que la geometría respire */
  letter-spacing: -0.025em;
  margin: 0 0 22px 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.display.sm {
  /* Cap reducido (88px) para que palabras largas como "Desmontamos" no se salgan del contenedor 46ch */
  font-size: min(clamp(40px, 6.5vw, 88px), 15vh);
  line-height: 1.0;
}
.display em {
  /* Sin italic — énfasis vía peso (semibold) + gradient color */
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.028em;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #fff1e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

/* ============================================================
   ANYBODY (Google Fonts) — cada letra de "Creative" usa una
   combinación distinta de wdth × wght del mismo family.
   El gradient se hereda del rule .display em base y atraviesa
   todas las letras gracias a background-clip:text en el parent.
   ============================================================ */
.display em.flex {
  font-family: "Anybody", "Jost", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  display: inline-block;
}

.display em.flex .l {
  font-family: inherit;
  display: inline-block;
}

/* Cada letra: combinación única de width × weight */
.display em.flex .l-1 { font-variation-settings: "wdth" 125, "wght" 900; font-weight: 900; } /* C — heavy wide   */
.display em.flex .l-2 { font-variation-settings: "wdth"  80, "wght" 300; font-weight: 300; } /* R — thin narrow  */
.display em.flex .l-3 { font-variation-settings: "wdth" 100, "wght" 600; font-weight: 600; } /* E — mid semibold */
.display em.flex .l-4 { font-variation-settings: "wdth" 115, "wght" 800; font-weight: 800; } /* A — bold extended*/
.display em.flex .l-5 { font-variation-settings: "wdth"  90, "wght" 400; font-weight: 400; } /* T — light condensed */
.display em.flex .l-6 { font-variation-settings: "wdth"  75, "wght" 900; font-weight: 900; } /* I — heavy narrow */
.display em.flex .l-7 { font-variation-settings: "wdth" 120, "wght" 200; font-weight: 200; } /* V — thin wide    */
.display em.flex .l-8 { font-variation-settings: "wdth"  95, "wght" 700; font-weight: 700; } /* E — bold balanced*/

.display.center { text-align: center; }
.display .line { display: block; }
.display .accent {
  color: var(--accent);
}

/* Word-by-word reveal */
[data-reveal] {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(8px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1),
              transform 800ms cubic-bezier(.2,.7,.2,1),
              filter 800ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0ms);
}
.overlay.is-active [data-reveal] {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 50ch;
  margin: 0 0 22px 0;
  letter-spacing: -0.005em;
  /* sombra sutil para legibilidad sobre frames brillantes del video */
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.lede strong { color: var(--ink); font-weight: 500; }
.lede.center { margin-left: auto; margin-right: auto; }

/* meta row in hero */
.meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}
.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink);
}
.muted { color: var(--ink-faint); }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.hint-bar {
  width: 1px; height: 22px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip {
  0% { opacity: 0; transform: scaleY(0.2); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}
@keyframes drip-x {
  0% { opacity: 0; transform: scaleX(0.2); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); transform-origin: right; }
}

/* chips */
.chips {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  transition: all 220ms ease;
}
.chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* CTA big */
.cta.big {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: #0a0a0a;
  background: var(--accent);
  font-family: var(--sans);
  font-size: 15px;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.cta.big:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 50px var(--accent-glow);
  background: #ff7140;
}
.cta.big span { transition: transform 220ms ease; }
.cta.big:hover span { transform: translateX(4px); }
.micro {
  margin-top: 18px;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.micro a { color: var(--accent-2); text-decoration: none; border-bottom: 1px dashed var(--accent-2); }
.micro.center { text-align: center; }

/* ==================== PROGRESS RAIL ==================== */
.rail {
  position: fixed;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: 25;
  display: grid;
  gap: 14px;
}
.rail .tick {
  display: grid;
  grid-template-columns: 32px 12px;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 240ms ease;
}
.rail .tick .bar {
  width: 12px; height: 1px;
  background: var(--ink-faint);
  transition: all 240ms ease;
}
.rail .tick.on { color: var(--accent); }
.rail .tick.on .bar {
  background: var(--accent);
  width: 22px;
  box-shadow: 0 0 8px var(--accent);
}

/* ==================== LINKTREE (pills minimalistas animados) ==================== */
.links {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: clamp(80px, 14vh, 160px) clamp(28px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.links-inner {
  max-width: 520px;
  margin: 0 auto;
}
.links-inner > .kicker {
  justify-content: center;
  margin-bottom: 40px;
}
.link-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Pill button: borde fino, relleno naranja desliza en hover */
.link-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 360ms ease,
              color 360ms ease,
              transform 360ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.link-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 100%);
  transform: translateX(-101%);
  transition: transform 580ms cubic-bezier(.65, 0, .35, 1);
  z-index: -1;
}
.link-pill:hover {
  border-color: var(--accent);
  color: #0a0a0a;
  transform: translateY(-2px);
}
.link-pill:hover::before { transform: translateX(0); }
.link-pill:hover .link-arrow {
  transform: translateX(6px);
  opacity: 1;
}

.link-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}
.link-icon svg { display: block; }

.link-platform {
  flex: 1;
  font-family: var(--display);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.link-arrow {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 18px;
  opacity: 0.5;
  transition: transform 360ms cubic-bezier(.2,.7,.2,1), opacity 360ms ease;
}

/* WhatsApp CTA — relleno por defecto, glow en hover */
.link-pill.link-pill--cta {
  border-color: var(--accent);
  color: #0a0a0a;
}
.link-pill.link-pill--cta::before { transform: translateX(0); }
.link-pill.link-pill--cta .link-arrow { opacity: 1; }
.link-pill.link-pill--cta:hover {
  box-shadow: 0 8px 40px rgba(255, 91, 31, 0.35);
  transform: translateY(-2px);
}
.link-pill.link-pill--cta:hover::before {
  background: linear-gradient(95deg, #ff7140 0%, var(--accent-2) 100%);
}

@media (max-width: 720px) {
  .links { padding: 64px 20px 80px; }
  .link-pill { padding: 14px 22px; gap: 12px; }
  .link-platform { font-size: 14.5px; }
  .link-arrow { font-size: 16px; }
}

/* ==================== MARQUEE STRIP ==================== */
.strip {
  position: relative;
  z-index: 2;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
}
.marquee { position: relative; width: 100%; overflow: hidden; }
.marquee .track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  /* Sin italic — geometría limpia Futura/Jost */
  font-style: normal;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.marquee .dot {
  color: var(--accent);
  font-style: normal;
  font-size: 0.45em;
  transform: translateY(-0.15em);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==================== FOOTER ==================== */
.foot {
  position: relative;
  z-index: 2;
  padding: 30px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--bg);
}
.foot-l, .foot-r { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot .brand-name.small { font-size: 14px; }
.foot a.wa-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  transition: color 220ms ease, border-color 220ms ease;
}
.foot a.wa-link:hover { color: var(--accent); border-color: var(--accent); }
.foot .mono { font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; }
.foot .sep { color: var(--ink-faint); }

/* Social icons */
.foot .socials {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.foot .social {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}
.foot .social:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 91, 31, 0.06);
  transform: translateY(-1px);
}
.foot .social svg { display: block; }

@media (max-width: 720px) {
  .foot { padding: 22px 18px; gap: 14px; }
  .foot-r { gap: 10px; }
  .foot .sep { display: none; }
  .foot a.wa-link { font-size: 10px; }
  .foot .social { width: 30px; height: 30px; }
}

/* ==================== TABLET ==================== */
@media (max-width: 1100px) {
  .topbar { padding: 16px 22px; }
  .overlay { padding: clamp(92px, 11vh, 132px) clamp(28px, 5vw, 64px) clamp(80px, 10vh, 120px); }
  .corner.tl, .corner.tr { top: 78px; }
  .corner.bl, .corner.br { bottom: 46px; }
  .tl-r { top: 60px; left: 24px; }
  .tr-r { top: 60px; right: 24px; }
  .bl-r { bottom: 20px; left: 24px; }
  .br-r { bottom: 20px; right: 24px; }
}

/* ==================== MOBILE / PORTRAIT ==================== */
@media (max-width: 720px) {
  .topbar {
    padding: 14px 16px;
  }
  .brand { font-size: 14px; gap: 10px; }
  .brand-name em { font-size: 1.12em; }
  .logo-mark { width: 20px; height: 20px; }
  .logo-dot { width: 8px; height: 8px; }
  .nav .sep, .nav #clock { display: none; }
  .nav .cta { display: none; }
  .nav .status { font-size: 10px; }
  .nav .status .mono { letter-spacing: 0.04em; }

  /* HUD: corners más cerca de los bordes */
  .corner { width: 18px; height: 18px; }
  .corner.tl, .corner.tr { top: 64px; }
  .corner.bl, .corner.br { bottom: 40px; }
  .corner.tl, .corner.bl { left: 14px; }
  .corner.tr, .corner.br { right: 14px; }

  .hud-readout {
    font-size: 8.5px;
    letter-spacing: 0.05em;
    gap: 6px;
  }
  .hud-readout .hud-label { font-size: 8px; }
  .tl-r { top: 48px; left: 14px; }
  .tr-r { top: 48px; right: 14px; }
  .bl-r { bottom: 16px; left: 14px; }
  .br-r { bottom: 16px; right: 14px; }

  /* Letterboxes más finos en mobile */
  .letterbox { height: 36px; }

  /* Overlays: padding ajustado al safe area */
  .overlay {
    padding: 96px 20px 84px;
  }

  /* Tipografía display más compacta */
  .display { font-size: clamp(46px, 13.5vw, 80px); line-height: 0.92; letter-spacing: -0.02em; }
  .display.sm { font-size: clamp(40px, 11.5vw, 68px); }
  .lede { font-size: 15px; line-height: 1.5; }
  .kicker { font-size: 10px; letter-spacing: 0.10em; margin-bottom: 18px; }
  .kicker .dash { width: 18px; }

  /* En vertical TODOS los pasos van a la izquierda full-width */
  .overlay.step-hero,
  .overlay.step-1,
  .overlay.step-2 {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
  }
  .overlay.step-1 .step-body,
  .overlay.step-2 .step-body { max-width: 100%; margin-left: 0; text-align: left; }
  .overlay.step-1 .lede,
  .overlay.step-2 .lede { margin-left: 0; }

  /* sidemeta como bloque inline arriba del título */
  .sidemeta {
    position: relative;
    top: auto; left: auto;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-left: 10px;
    border-left-width: 1px;
  }
  .sidemeta > div { gap: 2px; min-width: 0; }
  .sidemeta > div span { font-size: 9.5px; }

  /* Step 3 centrado */
  .overlay.step-3 .display { font-size: clamp(48px, 13vw, 76px); }
  .cta.big { padding: 14px 22px; font-size: 14.5px; }

  /* Meta row hero */
  .meta-row { gap: 10px; font-size: 9.5px; }
  .pill { padding: 4px 9px; }
  .scroll-hint { width: 100%; margin-top: 6px; }

  /* Chips */
  .chips { gap: 6px; }
  .chips li { font-size: 9.5px; padding: 5px 10px; }

  /* Rail: solo barras, sin números */
  .rail { right: 8px; gap: 10px; }
  .rail .tick { grid-template-columns: 14px; }
  .rail .tick > span:first-child { display: none; }
  .rail .tick.on .bar { width: 14px; }

  /* Marquee */
  .strip { padding: 18px 0; }
  .marquee .track { gap: 22px; animation-duration: 28s; }

  /* Footer */
  .foot { padding: 22px 18px; gap: 10px; }
  .foot-l, .foot-r { font-size: 11px; }
}

/* ==================== EXTRA SMALL ==================== */
@media (max-width: 380px) {
  .topbar { padding: 12px 14px; }
  .nav .status .mono { display: none; }
  .nav .status { padding-right: 0; }
  .display { font-size: clamp(40px, 13vw, 64px); }
  .display.sm { font-size: clamp(34px, 11vw, 54px); }
  .lede { font-size: 14px; }
  .sidemeta { grid-template-columns: 1fr 1fr; }
}

/* ==================== TOUCH DEVICES ==================== */
@media (hover: none), (pointer: coarse) {
  /* Sin cursor custom, sin parallax mouse */
  body { cursor: auto; }
  .cursor { display: none; }
  .canvas-wrap { transform: none !important; }
  /* Reducimos perspectiva para mejor performance en móviles */
  .sticky { perspective: none; }
  /* CTA con mejor tap target */
  .cta { padding: 11px 18px; }
  .chips li { padding: 8px 14px; }
}

/* ==================== LANDSCAPE móvil ==================== */
@media (max-height: 500px) and (orientation: landscape) {
  .overlay { padding: 70px 28px 60px; }
  .display { font-size: clamp(36px, 7vw, 56px); }
  .display.sm { font-size: clamp(30px, 6vw, 48px); }
  .lede { font-size: 13px; max-width: 56ch; }
  .corner.tl, .corner.tr { top: 56px; }
  .corner.bl, .corner.br { bottom: 36px; }
  .tl-r { top: 60px; left: 40px; }
  .tr-r { top: 60px; right: 40px; }
  .bl-r { bottom: 40px; left: 40px; }
  .br-r { bottom: 40px; right: 40px; }
  .letterbox { height: 28px; }
  .sidemeta { grid-template-columns: repeat(3, auto); margin-bottom: 14px; }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .canvas-wrap { transform: none !important; }
}
