/* ==========================================================================
   abierto. — sitios web
   Colores y tipografía de la marca en :root. Sin estilos en línea (CSP).
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Chango: letras del ilustrador mexicano Ernesto "Chango" García Cabral (OFL). Solo peso 400. */
@font-face {
  font-family: "Chango";
  src: url("../fonts/chango.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101216;
  --night: #20263a;
  --night-deep: #06080d;
  --yellow: #ffd60a;
  --green: #1ed67a;
  --green-dark: #087a42;
  --paper: #fafaf7;
  --paper-2: #f1efe8;
  --muted-on-dark: rgba(250, 250, 247, 0.74);
  --muted-on-light: #4a4e57;
  /* Tipografía por papel: la marca (logo, hero, reloj) · los letreros de la calle · el texto · las notas a mano */
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sign: "Chango", "Bricolage Grotesque", "Arial Black", sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --pad-x: clamp(16px, 4vw, 40px);
  --toolbar: 0px;
  /* Curvas de movimiento: las de CSS por defecto son demasiado débiles */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
@supports (height: 100lvh) {
  :root { --toolbar: calc(100lvh - 100svh); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  font-optical-sizing: auto;
}
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; display: inline-block; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--yellow); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Pantalla de carga (boceto a mano) ----------
   Solo aparece si head.js puso .show-loader (primera visita, con movimiento permitido). */
.loader { display: none; }
.show-loader .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255, 214, 10, 0.08), rgba(255, 214, 10, 0) 70%),
    var(--night-deep);
  will-change: transform;
}
.show-loader body { overflow: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.loader-sketch { width: min(240px, 62vw); height: auto; overflow: visible; }
.loader-sketch path, .loader-sketch circle { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ld-draw, .ld-light { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader-sketch .ld-light { stroke: var(--yellow); stroke-width: 3.2; }
.loader-sketch .ld-fill { fill: var(--yellow); stroke: none; opacity: 0; }
.loader-sketch .ld-dot { fill: var(--paper); stroke: none; opacity: 0; }
.loader-sketch .ld-knob { fill: var(--green); stroke: none; opacity: 0; }
.loader-text {
  margin-top: 18px;
  font-family: var(--hand);
  font-weight: 600; font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1;
  color: var(--paper); opacity: 0;
}
.loader-dots i { font-style: normal; animation: loader-dot 1.2s ease-in-out infinite; }
.loader-dots i:nth-child(2) { animation-delay: 0.2s; }
.loader-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes loader-dot { 0%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.loader-sign {
  margin-top: 10px;
  font-family: var(--hand);
  font-size: 1.15rem; color: rgba(250, 250, 247, 0.55); opacity: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.45em;
  border-radius: 999px;
  font-weight: 800; font-size: 1.02rem; line-height: 1.1;
  text-decoration: none;
  /* scale y translate como propiedades sueltas: se suman al transform que pone GSAP (botón magnético) */
  transition:
    scale 160ms var(--ease-out),
    translate 200ms var(--ease-out),
    box-shadow 200ms ease,
    background-color 200ms ease;
}
.btn:active { scale: 0.97; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(250, 250, 247, 0.36); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { translate: 0 -2px; }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(250, 250, 247, 0.8); }
}
.btn-sm { padding: 0.62em 1.1em; font-size: 0.92rem; }
.btn-xl { padding: 1.1em 1.8em; font-size: 1.15rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; z-index: 50;
  top: 12px; left: 0; right: 0; margin: 0 auto;
  width: min(1140px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 7px 7px 18px;
  background: rgba(16, 18, 22, 0.94);
  border: 1px solid rgba(250, 250, 247, 0.09);
  border-radius: 999px;
}
.brand img { height: 30px; width: auto; }
.nav { position: relative; display: flex; gap: 2px; }
.nav a, .nav-active span {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.3; white-space: nowrap;
}
.nav a { text-decoration: none; color: rgba(250, 250, 247, 0.76); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--paper); }
}
/* Sección activa: una copia "activa" del menú recortada con clip-path.
   El fondo y el color del texto cambian juntos porque es un solo elemento que se revela. */
.nav-active {
  position: absolute; inset: 0; display: flex; gap: 2px;
  pointer-events: none;
  background: var(--yellow); border-radius: 999px;
  clip-path: inset(0 100% 0 0 round 999px);
  opacity: 0;
  transition: clip-path 250ms var(--ease-in-out), opacity 200ms ease;
}
.nav-active span { color: var(--ink); }
.nav-active.is-on { opacity: 1; }
.nav-active.no-slide { transition: opacity 200ms ease; }
@media (max-width: 860px) {
  .nav { display: none; }
  .brand img { height: 26px; }
}
/* En celular el botón de WhatsApp vive abajo, al alcance del pulgar (.wa-float) */
@media (max-width: 760px) {
  .header-cta { display: none; }
}

/* ---------- Encabezados de sección ----------
   Los títulos de sección son "letreros": Chango, como rótulo de negocio. */
.section-head h2, .inside h2, .night-title, .final h2, .page-404 h1 {
  font-family: var(--sign); font-weight: 400;
  letter-spacing: -0.005em; line-height: 1.04;
  text-wrap: balance;
}
.section-head { max-width: 1200px; margin: 0 auto clamp(40px, 6vh, 64px); }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); max-width: 18ch; }
.section-head p {
  font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 54ch; margin-top: 18px;
}
/* Primera frase de un título en su propio renglón ("Ya entraste.") */
.h-lead { display: block; }

/* Notas escritas a mano (misma letra que la pantalla de carga) */
p.note {
  display: flex; align-items: flex-end; gap: 0.35em;
  font-family: var(--hand); font-weight: 600;
  font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.1;
  margin-top: 14px; max-width: none;
}
.note a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.note-arrow {
  width: 38px; height: 38px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  filter: url(#f-sketch);
}

/* El punto verde de "abierto." */
.t-dot {
  display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.05em;
  border-radius: 50%; background: var(--green);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--green); }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 540px;
  overflow: hidden;
  background: linear-gradient(180deg, #05070c 0%, #0c1019 45%, #1a2032 100%);
  isolation: isolate;
}
.hero-scene { position: absolute; inset: 0; will-change: transform; }
.scene-svg { width: 100%; height: 100%; max-width: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.7) 0%, rgba(5, 7, 12, 0.25) 38%, rgba(5, 7, 12, 0) 55%);
}
/* Luz que sale de la puerta: núcleo sólido (30 % del radio) y halo suave */
.hero-portal {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    #fff3a6 0%, var(--yellow) 18%, var(--yellow) 30%,
    rgba(255, 214, 10, 0.55) 52%, rgba(255, 214, 10, 0.18) 75%, rgba(255, 214, 10, 0) 100%);
  opacity: 0; visibility: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  pointer-events: none;
}
.hero-flood {
  position: absolute; inset: 0; z-index: 2;
  background: var(--yellow);
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.hero-copy {
  position: absolute; z-index: 3;
  left: 0; right: 0; margin: 0 auto;
  top: calc(84px + 3vh);
  width: min(980px, calc(100% - 2 * var(--pad-x)));
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 700; font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--muted-on-dark);
  margin-bottom: clamp(10px, 1.6vh, 18px);
}
.eyebrow .icon { color: var(--yellow); }
.hero-title {
  font-size: clamp(2.6rem, min(11.5vw, 10.5vh), 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; }
.word { display: inline-block; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; vertical-align: top; }
.word-in { display: inline-block; }
.hero-sub {
  max-width: 34ch; margin: clamp(12px, 2vh, 22px) auto 0;
  color: var(--muted-on-dark);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}
.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: clamp(16px, 2.6vh, 28px);
}
.scroll-hint {
  position: absolute; z-index: 3; left: 0; right: 0; margin: 0 auto;
  bottom: calc(16px + var(--toolbar));
  width: max-content;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 16px; border-radius: 99px;
  background: rgba(6, 8, 13, 0.72);
  border: 1px solid rgba(250, 250, 247, 0.12);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(250, 250, 247, 0.85);
}
.scroll-hint .icon { width: 18px; height: 18px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
}
@media (max-height: 720px) and (max-width: 700px) {
  .hero-cta .btn-ghost { display: none; }
}

/* Estrellas: capas con box-shadow generadas en JS, parpadeo solo con opacidad */
.stars {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%;
  pointer-events: none; will-change: opacity;
}
.hero .stars.s1 { animation: twinkle 3.4s ease-in-out infinite alternate; }
.hero .stars.s2 { animation: twinkle 4.6s ease-in-out -1.7s infinite alternate; }
.hero .stars.s3 { animation: twinkle 5.8s ease-in-out -3.1s infinite alternate; }
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.25; } }

/* Textos dentro del SVG de la escena */
.svg-sign { font-family: var(--sign); font-weight: 400; font-size: 16px; letter-spacing: 1px; }
.svg-closed { font-family: var(--text); font-weight: 800; font-size: 11px; letter-spacing: 1.4px; fill: #101216; }
.svg-url { font-family: var(--text); font-weight: 600; font-size: 11px; fill: #52565e; }
.svg-brand { font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -0.5px; fill: var(--yellow); }
.win { fill: #ffd60a; opacity: 0.55; }
.win.off { opacity: 0.07; }

/* Estado inicial cuando hay animación (evita parpadeos antes de que cargue el JS) */
.motion-ok .hero-scene,
.motion-ok .hero-copy { visibility: hidden; opacity: 0; }

/* ==========================================================================
   2. ADENTRO
   ========================================================================== */
.inside {
  position: relative;
  min-height: 100vh;
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
  scroll-margin-top: -96px;
}
.motion-ok .inside { height: 100vh; }
.inside-wrap {
  height: 100%; min-height: inherit;
  max-width: 1220px; margin: 0 auto;
  padding: 104px var(--pad-x) calc(36px + var(--toolbar));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.inside h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  max-width: 40ch; margin: 16px 0 24px;
  color: rgba(16, 18, 22, 0.8);
}
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feature {
  display: grid; grid-template-columns: 16px 1fr; gap: 14px; align-items: start;
  padding: 10px 14px; border-radius: 14px;
  transition: background-color 250ms ease;
}
/* Foco de cada característica: apagado (solo contorno) y se prende cuando la animación llega a ella */
.feature-light {
  width: 16px; height: 16px; margin-top: 0.3rem; border-radius: 50%;
  border: 2px solid var(--ink);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.feature h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
.feature p { margin-top: 4px; font-size: 0.96rem; color: rgba(16, 18, 22, 0.8); }
.features-bar { display: none; }

.motion-ok .feature.is-active { background: rgba(16, 18, 22, 0.08); }
.motion-ok .feature.is-active .feature-light { background: var(--ink); box-shadow: inset 0 0 0 3px var(--yellow); }
.motion-ok .features-bar {
  display: block; height: 4px; margin: 18px 14px 0; border-radius: 4px;
  background: rgba(16, 18, 22, 0.14); overflow: hidden;
}
.features-bar span {
  display: block; height: 100%; background: var(--ink);
  transform: scaleX(0); transform-origin: left center;
}

/* Escenario con la página de ejemplo */
.inside-stage {
  position: relative;
  width: min(100%, calc(62vh * 4 / 3));
  aspect-ratio: 4 / 3;
  justify-self: center;
}
.mock-browser {
  position: absolute; left: 0; top: 4%;
  width: 86%; aspect-ratio: 16 / 10.4;
  container-type: inline-size;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 2px var(--ink), 0 28px 56px -22px rgba(16, 18, 22, 0.5);
  overflow: hidden;
  transform-origin: 20% 50%;
}
.mb-chrome {
  height: 7cqw; display: flex; align-items: center; gap: 1.2cqw;
  padding: 0 2.4cqw; background: #efede6; border-bottom: 2px solid var(--ink);
}
.mb-chrome i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--ink); }
.mb-chrome i:nth-child(2) { opacity: 0.55; }
.mb-chrome i:nth-child(3) { opacity: 0.3; }
.mb-url {
  margin-left: 2cqw; width: 44cqw; height: 4cqw; border-radius: 99px; background: #fff;
  display: flex; align-items: center; padding: 0 2cqw;
  font-size: 1.9cqw; font-weight: 600; color: #6b6f78;
}
.mb-body { position: absolute; left: 0; right: 0; bottom: 0; top: 7cqw; background: #f6efe6; overflow: hidden; }
.mb-skel { display: none; position: absolute; inset: 0; padding: 4cqw 5cqw; }
.motion-ok .mb-skel { display: block; }
.sk { display: block; background: #e3dcd2; border-radius: 1cqw; margin-bottom: 2cqw; }
.sk-nav { height: 3cqw; }
.sk-h1 { height: 4.6cqw; width: 50%; }
.sk-h1.short { width: 36%; }
.sk-p { height: 2.2cqw; width: 42%; }
.sk-btn { height: 5cqw; width: 24%; border-radius: 99px; }
.sk-img { position: absolute; right: 7cqw; top: 11cqw; width: 28cqw; height: 28cqw; border-radius: 50%; margin: 0; }
.sk-card { display: inline-block; width: 27.4cqw; height: 9cqw; margin: 4.5cqw 2cqw 0 0; }

.mb-real { position: absolute; inset: 0; padding: 3.4cqw 5cqw; color: #2b1a12; }
.mb-nav { display: flex; align-items: center; gap: 3cqw; font-size: 1.9cqw; font-weight: 600; }
.mb-nav b { font-family: var(--display); font-weight: 800; font-size: 2.9cqw; margin-right: auto; letter-spacing: -0.02em; }
.mb-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3cqw; align-items: center; margin-top: 4cqw; }
.mb-text strong {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 5cqw; line-height: 1.02; letter-spacing: -0.035em;
}
.mb-text em { display: block; font-style: normal; font-size: 1.9cqw; margin: 1.8cqw 0 2.6cqw; opacity: 0.7; }
.mb-btn {
  display: inline-block; background: var(--green); color: var(--ink);
  font-weight: 800; font-size: 1.9cqw; padding: 1.5cqw 2.8cqw; border-radius: 99px;
}
/* Taza de café vista desde arriba: plato, borde, café, asa y espuma */
.mb-cup, .mp-cup {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle closest-side,
    #6f4126 0 43%, #fffaf2 44% 57%, #e2d5c2 58% 61%,
    #f7f0e6 62% 93%, #e6dbcb 94% 100%);
  box-shadow: 0 2cqw 4cqw -1.4cqw rgba(43, 26, 18, 0.4);
}
.mb-cup::before, .mp-cup::before {
  content: ""; position: absolute; left: 76%; top: 45%; width: 13%; height: 10%;
  border-radius: 99px; background: #fffaf2; box-shadow: 0 0 0 1px #e2d5c2;
}
.mb-cup::after, .mp-cup::after {
  content: ""; position: absolute; left: 39%; top: 40%; width: 22%; height: 20%;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(ellipse at 50% 62%, #fbf1e1 0 32%, #d9b48c 33% 44%, #fbf1e1 45% 60%, #c99a6c 61% 70%, #fbf1e1 71%);
  opacity: 0.95;
}
.mb-cup { width: 100%; max-width: 29cqw; justify-self: center; }
.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin-top: 4.5cqw; }
.mb-cards span {
  display: flex; align-items: center; gap: 1.4cqw;
  background: #fff; border-radius: 2cqw; padding: 1.8cqw;
  font-size: 1.9cqw; font-weight: 700;
  box-shadow: 0 0.6cqw 1.6cqw rgba(43, 26, 18, 0.08);
}
.mb-cards span::before { content: ""; width: 5cqw; height: 5cqw; border-radius: 1.4cqw; background: #e9c9a6; flex: none; }
.mb-cards span:nth-child(2)::before { background: #d98e5b; }
.mb-cards span:nth-child(3)::before { background: #6b4226; }

.mock-swatches {
  position: absolute; left: 44%; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid var(--ink); border-radius: 99px;
  padding: 6px 12px 6px 8px;
  font-weight: 800; font-size: 0.78rem;
  box-shadow: 0 8px 18px -8px rgba(16, 18, 22, 0.35);
}
.mock-swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); }
.mock-swatches i:nth-child(1) { background: #2b1a12; }
.mock-swatches i:nth-child(2) { background: #c0612b; }
.mock-swatches i:nth-child(3) { background: #f6efe6; }
.mock-swatches i:nth-child(4) { background: var(--green); }
.mock-swatches span { margin-left: 4px; }

.mock-phone {
  position: absolute; right: 1%; bottom: 3%; z-index: 2;
  width: 25%; aspect-ratio: 9 / 18.5;
  container-type: inline-size;
  background: var(--ink);
  border-radius: clamp(16px, 2.4vw, 30px);
  padding: 3.2%;
  box-shadow: 0 26px 48px -18px rgba(16, 18, 22, 0.55);
}
.mp-screen {
  position: relative; height: 100%;
  background: #f6efe6; color: #2b1a12;
  border-radius: 12cqw; overflow: hidden;
  padding: 16cqw 7cqw 8cqw;
  display: flex; flex-direction: column; gap: 5cqw;
}
.mp-screen::before {
  content: ""; position: absolute; top: 4cqw; left: 50%;
  width: 30cqw; height: 6cqw; margin-left: -15cqw;
  border-radius: 99px; background: var(--ink);
}
.mp-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 800; font-size: 7cqw; }
.mp-top i { width: 8cqw; height: 1.5cqw; border-radius: 2px; background: currentColor; box-shadow: 0 2.6cqw 0 currentColor, 0 -2.6cqw 0 currentColor; }
.mp-title { font-family: var(--display); font-weight: 800; font-size: 9.6cqw; line-height: 1.02; letter-spacing: -0.035em; }
.mp-cup { width: 68cqw; align-self: center; }
.mp-wa {
  margin-top: auto; text-align: center;
  background: var(--green); color: var(--ink);
  font-weight: 800; font-size: 6.2cqw;
  padding: 5cqw 3cqw; border-radius: 99px;
}
.mock-cursor { position: absolute; z-index: 4; width: 7%; left: 84%; top: 84%; filter: drop-shadow(0 3px 4px rgba(16, 18, 22, 0.3)); }
.mock-chat {
  position: absolute; z-index: 4; right: -2%; top: 12%;
  width: min(250px, 44%);
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 18px 18px 4px 18px;
  padding: 10px 14px 8px;
  box-shadow: 0 14px 28px -12px rgba(16, 18, 22, 0.4);
}
.mock-chat small { display: block; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-dark); }
.mock-chat p { margin: 4px 0; font-weight: 700; font-size: clamp(0.8rem, 1.05vw, 0.95rem); line-height: 1.3; }
.mc-meta { display: block; text-align: right; font-size: 0.7rem; color: #6b6f78; }
.mock-status { position: absolute; z-index: 3; left: 1%; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid var(--ink); border-radius: 99px;
  padding: 5px 12px; font-weight: 800; font-size: 0.82rem;
}
.chip.live { background: var(--ink); color: var(--paper); }
.chip.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

@media (max-width: 900px) {
  .inside-wrap {
    grid-template-columns: 1fr; align-content: center;
    gap: 18px; padding-top: 88px;
  }
  .inside h2 { font-size: clamp(1.6rem, 6.8vw, 2.3rem); }
  .lead { margin: 8px 0 10px; font-size: 1rem; }
  .inside-stage { width: min(100%, calc(38vh * 4 / 3)); }
  .mock-browser { width: 90%; }
  .mock-phone { width: 29%; }
  .mock-chat { right: 0; top: 10%; width: 50%; padding: 7px 10px 6px; }
  .mock-chat p { font-size: 0.78rem; }
  .mock-swatches { left: 40%; font-size: 0.68rem; padding: 4px 9px 4px 6px; }
  .mock-swatches i { width: 12px; height: 12px; }
  .chip { font-size: 0.7rem; padding: 3px 9px; }

  /* En el celular se ven los 4 títulos; la descripción de la activa aparece debajo, en un espacio fijo */
  .motion-ok .features { position: relative; padding-bottom: 4.4em; }
  .motion-ok .feature { padding: 5px 10px; align-items: center; }
  .motion-ok .feature h3 { font-size: 1rem; }
  .motion-ok .feature-light { width: 14px; height: 14px; margin-top: 0; }
  .motion-ok .feature p {
    position: absolute; left: 10px; right: 10px; bottom: 0;
    margin: 0; font-size: 0.92rem; line-height: 1.4;
    opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 200ms;
  }
  .motion-ok .feature.is-active p { opacity: 1; visibility: visible; }
  .motion-ok .features-bar { margin: 10px 10px 0; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .lead { display: none; }
  .inside-stage { width: min(100%, calc(36vh * 4 / 3)); }
}

/* ==========================================================================
   3. LA NOCHE PASA
   ========================================================================== */
.night {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
  scroll-margin-top: -96px;
}
.motion-ok .night { height: 100vh; }
.sky { position: absolute; inset: 0; z-index: -2; }
.sky-night { background: linear-gradient(180deg, #04060b 0%, #0d1220 55%, #20263a 100%); }
.sky-dawn { background: linear-gradient(180deg, #262a55 0%, #6c3f73 38%, #e9805a 72%, #ffc774 100%); opacity: 0; will-change: opacity; }
.sky-day { background: linear-gradient(180deg, #ffe7a3 0%, #fff3cf 55%, #fafaf7 100%); opacity: 0; will-change: opacity; }
.motion-ok .sky-dawn, .motion-ok .sky-day { opacity: 0; }
/* El sol sale entre el texto y el teléfono: disco nítido con un poco de luz alrededor */
.sun {
  position: absolute; z-index: -1;
  left: 60%; bottom: -46vmin;
  width: 40vmin; height: 40vmin; margin-left: -20vmin;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #ffd84a 0 70%, rgba(255, 214, 10, 0.28) 72%, rgba(255, 214, 10, 0) 100%);
  will-change: transform;
}
.night-wrap {
  position: relative; height: 100%; min-height: inherit;
  max-width: 1220px; margin: 0 auto;
  padding: 104px var(--pad-x) calc(36px + var(--toolbar));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.night-copy { color: var(--paper); }
.night-title { font-size: clamp(1.9rem, 3.8vw, 3.4rem); max-width: 14ch; }
.clock {
  display: flex; align-items: baseline; gap: 0.18em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 1; letter-spacing: -0.045em;
  margin: clamp(18px, 3vh, 32px) 0 clamp(10px, 1.6vh, 16px);
  font-variant-numeric: tabular-nums;
}
.clock-ampm { font-size: 0.3em; letter-spacing: 0; opacity: 0.8; }
.night-end { font-size: clamp(1.1rem, 1.7vw, 1.4rem); max-width: 30ch; font-weight: 600; }
.night-end strong { background: var(--yellow); color: var(--ink); padding: 0 0.3em; border-radius: 6px; }

.chat-phone {
  justify-self: end;
  width: 100%; aspect-ratio: 9 / 17; max-height: calc(100vh - 150px - var(--toolbar));
  container-type: inline-size;
  background: #0b0d12;
  border-radius: 44px; padding: 12px;
  border: 1.5px solid rgba(250, 250, 247, 0.14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.cp-screen {
  height: 100%; background: #12161d; border-radius: 34px; overflow: hidden;
  padding: 11cqw 5cqw 5cqw;
  display: flex; flex-direction: column; gap: 4cqw;
}
.cp-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 7cqw; color: var(--paper); }
.chat-badge {
  min-width: 8.5cqw; height: 8.5cqw; padding: 0 2cqw; border-radius: 99px;
  display: grid; place-items: center;
  background: var(--green); color: var(--ink);
  font-family: var(--text); font-size: 4.6cqw; font-weight: 800;
  transition: opacity 0.2s;
}
.chat-badge.is-empty { opacity: 0; }
.cp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3cqw; }
.msg {
  display: grid; grid-template-columns: 11cqw minmax(0, 1fr) auto; gap: 3cqw; align-items: start;
  background: rgba(250, 250, 247, 0.06);
  border: 1px solid rgba(250, 250, 247, 0.08);
  border-radius: 5cqw; padding: 3.4cqw;
  color: var(--paper);
}
.av {
  width: 11cqw; height: 11cqw; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 5cqw; color: var(--ink);
}
.av1 { background: var(--yellow); }
.av2 { background: var(--green); }
.av3 { background: #f28fb2; }
.av4 { background: #7cc6fe; }
.av5 { background: #f4a259; }
.msg b { font-size: 4.4cqw; }
.msg p { margin-top: 0.6cqw; font-size: 4cqw; line-height: 1.3; color: rgba(250, 250, 247, 0.74); }
.msg time { font-size: 3.2cqw; color: rgba(250, 250, 247, 0.5); white-space: nowrap; }

@media (max-width: 900px) {
  .night-wrap { grid-template-columns: 1fr; align-content: center; gap: 18px; padding-top: 88px; }
  .night-title { font-size: clamp(1.55rem, 6.4vw, 2.2rem); max-width: 16ch; }
  /* En celular el teléfono ocupa la parte baja: el amanecer lo cuenta el cielo, sin sol encima */
  .sun { display: none; }
  .clock { font-size: clamp(2.8rem, 14vw, 4.2rem); margin: 12px 0 6px; }
  .night-end { font-size: 1.02rem; }
  .chat-phone { justify-self: stretch; aspect-ratio: auto; max-height: none; width: 100%; max-width: 420px; border-radius: 28px; padding: 8px; }
  .cp-screen { border-radius: 22px; padding: 4.5cqw 4cqw 4cqw; gap: 2.6cqw; }
  .cp-head { font-size: 5.2cqw; }
  .chat-badge { min-width: 6.4cqw; height: 6.4cqw; font-size: 3.6cqw; }
  .cp-list { gap: 2cqw; }
  .msg { grid-template-columns: 8cqw minmax(0, 1fr) auto; gap: 2.6cqw; padding: 2.4cqw 3cqw; border-radius: 3.6cqw; align-items: center; }
  .av { width: 8cqw; height: 8cqw; font-size: 3.8cqw; }
  .msg b { font-size: 3.5cqw; }
  .msg p {
    font-size: 3.4cqw; margin-top: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .msg time { font-size: 2.8cqw; }
}

/* ==========================================================================
   4. EJEMPLOS: amanece y cada negocio levanta su cortina
   ========================================================================== */
.examples { background: var(--paper); color: var(--ink); padding: clamp(84px, 13vh, 150px) var(--pad-x); }
.examples .section-head p, .faq .section-head p { color: var(--muted-on-light); }
.examples-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px);
}
.ex {
  position: relative;
  background: #fff; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 22px 44px -28px rgba(16, 18, 22, 0.4);
  transition: translate 200ms var(--ease-out), box-shadow 200ms ease;
}
/* Brillo que sigue al cursor (lo mueve GSAP con transform) */
.ex-glare {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 360px; height: 360px; margin: -180px 0 0 -180px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  opacity: 0; transition: opacity 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .ex:hover { translate: 0 -4px; box-shadow: 0 32px 56px -28px rgba(16, 18, 22, 0.5); }
  .ex:hover .ex-glare { opacity: 1; }
}
.ex-browser { position: relative; aspect-ratio: 4 / 3.15; container-type: inline-size; border-bottom: 2px solid var(--ink); overflow: hidden; }
.ex-chrome {
  position: relative; z-index: 2;
  height: 8.5cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 0 3.4cqw;
  background: #efede6; border-bottom: 2px solid var(--ink);
}
.ex-chrome i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--ink); }
.ex-chrome i:nth-child(2) { opacity: 0.55; }
.ex-chrome i:nth-child(3) { opacity: 0.3; }
.ex-url { margin-left: 2cqw; font-size: 2.8cqw; font-weight: 600; color: #6b6f78; background: #fff; border-radius: 99px; padding: 0.8cqw 3cqw; }
.ex-site { position: absolute; inset: 8.5cqw 0 0 0; overflow: hidden; }
.ex-site > * { position: relative; z-index: 1; }
/* Cortina metálica (la misma de la calle): solo existe si hay animación; main.js la sube */
.ex-site > .ex-shutter { display: none; }
.motion-ok .ex-site > .ex-shutter {
  display: block; position: absolute; inset: 0; z-index: 3;
  background: repeating-linear-gradient(180deg, #3b4257 0 1.9cqw, #262b3b 1.9cqw 2.4cqw);
  will-change: transform;
}
.motion-ok .ex-shutter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4cqw; background: #20252f;
}
.motion-ok .ex-shutter::before {
  content: ""; position: absolute; z-index: 1; left: 50%; bottom: 3.4cqw;
  width: 7cqw; height: 1.2cqw; margin-left: -3.5cqw; border-radius: 1cqw; background: #141824;
}
/* La página de ejemplo es más larga que la ventana: al pasar el mouse se desplaza hacia abajo
   (explicativo: muestra que es un sitio completo). Baja lento y regresa rápido. */
.ex-scroll { transition: transform 700ms var(--ease-out); }
.ex-screen {
  height: 70.25cqw; /* alto visible de la ventana: 4/3.15 del ancho menos la barra */
  padding: 5cqw 6cqw 6cqw;
  display: flex; flex-direction: column; gap: 3.6cqw;
}
.ex-more { padding: 1cqw 6cqw 8cqw; display: flex; flex-direction: column; gap: 2.8cqw; }
.ex.is-peek .ex-scroll { transform: translateY(-40cqw); transition: transform 1400ms var(--ease-in-out); }
@media (hover: hover) and (pointer: fine) {
  .ex:hover .ex-scroll { transform: translateY(-40cqw); transition: transform 1400ms var(--ease-in-out); }
}
.ex-sub { font-family: var(--display); font-weight: 800; font-size: 5.4cqw; letter-spacing: -0.03em; }
.ex-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2cqw; }
.ex-menu li { display: flex; align-items: baseline; gap: 2cqw; font-size: 3.3cqw; font-weight: 600; }
.ex-menu i { flex: 1; border-bottom: 0.4cqw dotted currentColor; opacity: 0.35; }
.ex-menu b { font-weight: 800; }
.ex-badge { align-self: flex-start; font-size: 2.9cqw; font-weight: 700; padding: 1.6cqw 3.2cqw; border-radius: 99px; }
.site-tacos .ex-badge { background: rgba(30, 214, 122, 0.16); color: var(--green); }
.site-brillo .ex-badge { background: rgba(208, 112, 138, 0.16); color: #b04d69; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 1.8cqw; }
.ex-chips span { font-size: 3cqw; font-weight: 700; padding: 1.6cqw 3cqw; border-radius: 99px; background: #e6f6f5; color: #0b6d6d; }
.ex-map {
  position: relative; height: 15cqw; border-radius: 3cqw; overflow: hidden;
  display: flex; align-items: flex-end; padding: 2.4cqw 3cqw;
  background:
    linear-gradient(90deg, rgba(20, 163, 163, 0.12) 1px, transparent 1px) 0 0 / 5cqw 5cqw,
    linear-gradient(0deg, rgba(20, 163, 163, 0.12) 1px, transparent 1px) 0 0 / 5cqw 5cqw,
    #f1faf9;
}
.ex-map b { font-size: 3cqw; }
.ex-pin {
  position: absolute; left: 58%; top: 22%; width: 4.4cqw; height: 4.4cqw;
  border-radius: 50% 50% 50% 0; rotate: -45deg; background: #14a3a3;
  box-shadow: 0 0 0 1.4cqw rgba(20, 163, 163, 0.18);
}
.ex-nav { display: flex; justify-content: space-between; align-items: center; font-size: 3cqw; font-weight: 600; }
.ex-nav b { font-family: var(--display); font-weight: 800; font-size: 4.6cqw; letter-spacing: -0.02em; }
.ex-h { font-family: var(--display); font-weight: 800; font-size: 8.6cqw; line-height: 1; letter-spacing: -0.035em; max-width: 72%; }
.ex-cta { align-self: flex-start; background: var(--green); color: var(--ink); font-weight: 800; font-size: 3.1cqw; padding: 2.2cqw 4cqw; border-radius: 99px; }
.ex-row { display: flex; gap: 2.6cqw; margin-top: auto; }
.ex-row span { flex: 1; }

.site-tacos { background: #1e120c; color: #fff1e0; }
.site-tacos::after {
  content: ""; position: absolute; right: -14cqw; top: 6cqw; width: 58cqw; height: 58cqw; border-radius: 50%;
  background: radial-gradient(circle, #ffb057 0%, #ff6b2c 30%, rgba(228, 87, 46, 0.35) 52%, rgba(228, 87, 46, 0) 70%);
}
.site-tacos .ex-row span {
  background: rgba(255, 241, 224, 0.08); border: 1px solid rgba(255, 241, 224, 0.2);
  border-radius: 2cqw; padding: 2.4cqw; font-size: 2.9cqw; font-weight: 700; text-align: center;
}
.site-brillo { background: #f8eee8; color: #3a2330; }
.site-brillo .ex-nav b { font-weight: 600; letter-spacing: 0; }
.site-brillo .ex-h { font-weight: 600; letter-spacing: -0.03em; }
.site-brillo .ex-row span { aspect-ratio: 1.5; border-radius: 3cqw; background: linear-gradient(140deg, #f3c1cf, #d0708a); }
.site-brillo .ex-row span:nth-child(2) { background: linear-gradient(140deg, #f7dccb, #e39f86); }
.site-brillo .ex-row span:nth-child(3) { background: linear-gradient(140deg, #e9d5f0, #b27fc4); }
.site-dental { background: #fff; color: #0b3440; }
.site-dental::after {
  content: ""; position: absolute; right: -12cqw; top: -10cqw; width: 48cqw; height: 48cqw; border-radius: 50%;
  background: #d9f3f1;
}
.ex-card {
  display: flex; flex-direction: column; gap: 1cqw; align-self: flex-start;
  border: 1.5px solid #14a3a3; border-radius: 2.6cqw; padding: 2.4cqw 3.2cqw;
  font-size: 3cqw; font-weight: 700;
}
.ex-card span:last-child { color: #14a3a3; }
.site-dental .ex-cta { margin-top: auto; }

.ex-info { padding: 18px 22px 14px; }
/* Placa del giro, como letrero chico de negocio */
.ex-tag {
  display: inline-block;
  font-family: var(--sign); font-weight: 400; font-size: 0.92rem; line-height: 1.2; letter-spacing: 0.02em;
  background: var(--ink); color: var(--yellow); padding: 4px 10px 3px; border-radius: 6px;
}
.ex-info h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 6px; }
.ex-info p { color: var(--muted-on-light); font-size: 0.98rem; }
.ex-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  min-height: 44px; margin-top: 6px;
  font-weight: 800; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--green);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.ex-link .icon { width: 1.1em; height: 1.1em; transition: translate 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ex-link:hover .icon { translate: 3px 0; }
}

/* La nota dice lo que pasa según el aparato: con mouse o con el dedo */
p.note-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  p.note-hover { display: none; }
  p.note-touch { display: flex; }
}
.examples .section-head .note { color: var(--ink); }

@media (max-width: 900px) {
  .examples-grid { grid-template-columns: 1fr; max-width: 520px; }
}

/* Demo 3D: tarjeta ancha bajo los ejemplos, de noche como el escaparate de la demo */
.ex-3d {
  max-width: 1200px; margin: clamp(18px, 2.4vw, 28px) auto 0;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center;
  background: #0b111e; color: var(--paper);
  border: 2px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 22px 44px -28px rgba(16, 18, 22, 0.4);
}
.ex-3d-media { display: flex; justify-content: center; }
.ex-3d-media img {
  display: block; width: 100%; max-width: 440px; height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
.ex-3d-info { min-width: 0; padding: clamp(22px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ex-3d .ex-tag { background: var(--yellow); color: var(--ink); }
.ex-3d h3 {
  margin: 0; font-family: var(--sign); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.02; text-wrap: balance;
}
.ex-3d p { margin: 0; max-width: 34rem; color: var(--muted-on-dark); }
.ex-3d-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px; margin-top: 6px; border-radius: 99px;
  background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none;
  transition: transform 160ms ease-out;
}
.ex-3d-link:active { transform: scale(0.97); }
.ex-3d-link .icon { width: 1.1em; height: 1.1em; transition: translate 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ex-3d-link:hover .icon { translate: 3px 0; }
}
@media (max-width: 900px) {
  .ex-3d { grid-template-columns: 1fr; max-width: 520px; }
  .ex-3d-media img { max-width: 300px; }
  .ex-3d-info { padding-top: 0; }
}
/* Segunda tarjeta (relojería): estudio oscuro cálido como su demo y la imagen del otro lado */
.ex-3d-reloj { background: #0c0b0b; }
@media (min-width: 901px) {
  .ex-3d-reloj { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .ex-3d-reloj .ex-3d-media { order: 2; }
}
/* Tercera tarjeta (barbería): azulejo de noche, la imagen vuelve a la izquierda */
.ex-3d-barberia { background: #090b0c; }
/* Cuarta tarjeta (asador Rojo Vivo): carbón, la imagen otra vez a la derecha */
.ex-3d-rojo { background: #0b0907; }
@media (min-width: 901px) {
  .ex-3d-rojo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .ex-3d-rojo .ex-3d-media { order: 2; }
}
/* Quinta tarjeta (taquería Filo Negro): negro cálido, la imagen vuelve a la izquierda */
.ex-3d-taqueria { background: #0b0908; }

/* ==========================================================================
   6. PROCESO
   ========================================================================== */
.process { background: var(--ink); color: var(--paper); padding: clamp(84px, 13vh, 150px) var(--pad-x); }
.process-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.process .section-head { margin-inline: 0; }
/* Tu local: se queda a la vista mientras lees los pasos */
.storefront { position: sticky; top: calc(50vh - min(19vw, 230px)); }
.storefront svg { width: 100%; max-width: 460px; margin-inline: auto; overflow: visible; }
.sf-sign { font-family: var(--sign); font-weight: 400; font-size: 19px; letter-spacing: 1.5px; fill: var(--yellow); }
.sf-open-text { font-family: var(--text); font-weight: 800; font-size: 12.5px; letter-spacing: 1.6px; fill: var(--ink); }
@media (max-width: 900px) {
  /* Celular: título, luego el local, luego los pasos */
  .process-grid { display: flex; flex-direction: column; gap: 0; }
  .process-copy { display: contents; }
  .process .section-head { order: 1; }
  .storefront { order: 2; position: relative; top: auto; width: min(100%, 340px); margin: 0 auto 36px; }
  .steps { order: 3; }
}
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: clamp(16px, 3vw, 28px); padding-bottom: clamp(40px, 7vh, 64px); }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--yellow);
  transition:
    background-color 250ms ease,
    color 250ms ease,
    border-color 250ms ease,
    scale 250ms var(--ease-out);
}
.motion-ok .step:not(.is-on) .step-num { background: var(--ink); color: rgba(250, 250, 247, 0.55); border-color: rgba(250, 250, 247, 0.2); scale: 0.9; }
.step h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 8px; }
.step p { color: var(--muted-on-dark); max-width: 46ch; margin-top: 10px; }
.motion-ok .step:not(.is-on) h3, .motion-ok .step:not(.is-on) p { opacity: 0.65; }
.step h3, .step p { transition: opacity 300ms ease; }

/* ==========================================================================
   7. PREGUNTAS
   ========================================================================== */
.faq { background: var(--paper); color: var(--ink); padding: clamp(84px, 13vh, 150px) var(--pad-x); }
.faq .section-head { max-width: 860px; }
.faq-list { max-width: 860px; margin: 0 auto; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid rgba(16, 18, 22, 0.14); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 2px;
  font-weight: 800; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%;
  border: 2px solid var(--ink);
  transition: rotate 200ms var(--ease-out), scale 160ms var(--ease-out), background-color 200ms ease;
}
.faq details[open]:not(.is-closing) .faq-icon { rotate: 45deg; background: var(--yellow); }
.faq summary:active .faq-icon { scale: 0.9; }
.faq-a { overflow: hidden; }
.faq details p { padding: 0 2px 24px; color: var(--muted-on-light); max-width: 62ch; }
.faq-a p:has(+ .faq-link) { padding-bottom: 6px; }
.faq-link {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; margin: 0 2px 18px;
  font-weight: 800; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--green);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.faq-link .icon { width: 1.1em; height: 1.1em; }

/* La puertita dibujada a mano que saluda, con una nota */
.faq-note {
  max-width: 860px; margin: 40px auto 0;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 22px);
}
.doodle { width: clamp(92px, 12vw, 124px); height: auto; flex: none; overflow: visible; }
.doodle path, .doodle circle {
  fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
}
.doodle .dd-fill { fill: var(--yellow); stroke: none; }
.doodle .dd-dot { fill: var(--ink); stroke: none; }
.doodle .dd-knob { fill: var(--green); stroke: none; }
.doodle .dd-arm { transform-box: view-box; transform-origin: 221px 110px; }
.doodle.is-waving .dd-arm { animation: wave 3.2s var(--ease-in-out) infinite; }
@keyframes wave {
  0%, 36%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(-20deg); }
  16% { transform: rotate(10deg); }
  24% { transform: rotate(-16deg); }
}
.faq-note .note { display: block; margin: 0; color: var(--ink); }

/* ==========================================================================
   8. CIERRE
   ========================================================================== */
.final {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, #0d111b 0%, #06080d 100%);
  padding: clamp(90px, 14vh, 160px) var(--pad-x);
}
.final-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
/* Luz que sigue al cursor, como una linterna en la noche (solo con mouse) */
.spotlight {
  position: absolute; left: 0; top: 0;
  width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.16), rgba(255, 214, 10, 0));
  opacity: 0; transition: opacity 400ms ease;
  will-change: transform;
}
.spotlight.is-on { opacity: 1; }
.final-door { position: relative; width: clamp(120px, 15vw, 170px); margin: 0 auto 30px; }
.fd-glow {
  position: absolute; inset: -75% -80% -85%;
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.34), rgba(255, 214, 10, 0));
  pointer-events: none;
}
.final-door svg { position: relative; }
.final h2 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
.final-text { color: var(--muted-on-dark); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 42ch; margin: 18px auto 36px; }
.final-actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.final-main { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final-phone { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em; text-decoration: none; }
.final-phone:hover { color: var(--yellow); }
.final-mail { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.final-mail a { text-decoration: underline; text-underline-offset: 4px; }
.final-mail a:hover { color: var(--yellow); }
.copiar { font: inherit; font-size: 0.8rem; font-weight: 700; color: inherit; cursor: pointer; padding: 6px 12px; border: 1px solid rgba(250, 250, 247, 0.35); border-radius: 999px; background: transparent; transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out; }
.copiar:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .copiar:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); } }
.copiar-oculto { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.footer-mail { display: inline-block; margin-top: 10px; font-weight: 700; }
.final .note-final { margin-top: 2px; color: var(--yellow); align-items: flex-start; }
.final .note-final .note-arrow { width: 30px; height: 30px; margin-top: -6px; }
.qr-card { margin: 0; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 12px 8px; width: 156px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.6); }
.qr-card figcaption { font-size: 0.78rem; font-weight: 700; margin-top: 6px; }
@media (max-width: 760px) { .qr-card { display: none; } }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--night-deep); color: rgba(250, 250, 247, 0.72); padding: 52px var(--pad-x) calc(30px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 34px; width: auto; }
.footer-tag { margin-top: 12px; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; max-width: 520px; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1200px; margin: 30px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: 0.88rem;
}
.no-cookies { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  background: var(--green); color: var(--ink);
  font-weight: 800; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(6, 8, 13, 0.55), 0 0 0 2px var(--ink);
  transform: translateY(160%); opacity: 0;
  transition:
    transform 500ms var(--ease-drawer),
    opacity 300ms ease,
    scale 160ms var(--ease-out);
}
.wa-float:active { scale: 0.95; }
.wa-float .icon { width: 24px; height: 24px; }
.wa-float.is-visible, html:not(.js) .wa-float { transform: none; opacity: 1; }
/* En pantallas grandes el botón "Escríbeme" del menú siempre está a la vista: no hace falta el flotante */
@media (min-width: 761px) {
  .wa-float { display: none; }
}

/* ==========================================================================
   Páginas legales y 404
   ========================================================================== */
.page-legal { background: var(--paper); color: var(--ink); }
.legal { max-width: 780px; margin: 0 auto; padding: 136px var(--pad-x) 90px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; }
.legal .updated { color: #6b6f78; margin-top: 14px; font-size: 0.95rem; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); letter-spacing: -0.02em; line-height: 1.2; margin: 44px 0 12px; }
.legal p, .legal li { color: #2c2f36; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0 0; }
.legal li + li { margin-top: 6px; }
.legal ul + p { margin-top: 12px; }
.legal a { text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal .fill { background: #fff1a8; padding: 0 0.3em; border-radius: 4px; font-weight: 800; color: var(--ink); }
.callout {
  margin-top: 30px; background: #fff; border: 2px solid var(--ink); border-radius: 18px;
  padding: 18px 22px; box-shadow: 0 16px 32px -22px rgba(16, 18, 22, 0.4);
}
.callout strong { font-family: var(--display); font-size: 1.3rem; letter-spacing: -0.02em; display: block; margin-bottom: 6px; }
.legal-back { display: inline-flex; margin-top: 48px; }
.page-legal .btn-ink { background: var(--ink); color: var(--yellow); }

.page-404 {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #0d111b, #06080d);
  padding: 120px var(--pad-x) 60px;
}
.page-404 .final-door { margin-bottom: 28px; }
.page-404 h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.page-404 p { color: var(--muted-on-dark); max-width: 40ch; margin: 16px auto 30px; font-size: 1.1rem; }
/* Palabras de los títulos que aparecen con desenfoque (las crea main.js) */
.wb { display: inline-block; }

/* ---------- Movimiento reducido: menos y más suave, no cero ----------
   Se quedan los cambios de opacidad y color (ayudan a entender); se quita el desplazamiento. */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint .icon { animation: none; }
  .btn, .wa-float, .ex, .faq-icon, .step-num {
    transition-property: opacity, color, background-color, border-color, box-shadow;
  }
  .btn:active, .wa-float:active, .faq summary:active .faq-icon { scale: none; }
  .btn:hover, .ex:hover { translate: none; }
  .ex-link .icon { transition: none; }
  .ex-link:hover .icon { translate: none; }
  .doodle.is-waving .dd-arm { animation: none; }
  /* Sin movimiento los ejemplos no se desplazan: la nota que lo anuncia sobra */
  p.note-hover, p.note-touch { display: none; }
  .ex-scroll { transition: none; }
  .ex:hover .ex-scroll { transform: none; }
  .nav-active { transition: opacity 200ms ease; }
}
