/* =============================================================
   Decoración Integral — versión premium (editorial-luxury, oscura)
   Skills: emil-design-eng (motion) · soft-skill (arquitectura premium)
           apple-design (física fluida, materiales, tipografía)
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:      #0f0c0a;   /* casi negro cálido */
  --bg-2:    #17120e;
  --bg-3:    #1e1712;   /* superficie elevada */
  --cream:   #f3ece0;   /* texto sobre oscuro — nunca blanco puro */
  --cream-2: #cec3b2;
  --cream-3: #8b7f70;   /* metadatos */
  --gold:    #c9a36b;   /* acento cálido */
  --gold-2:  #a5814d;
  --blue:    #7ba0cc;   /* secundario frío, del azul de marca */
  --wa:      #25a35a;
  --hair:    rgba(243, 236, 224, 0.12);
  --hair-2:  rgba(243, 236, 224, 0.06);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tech:  "Space Grotesk", ui-monospace, "SF Mono", Menlo, monospace;

  /* curvas — sin linear/ease-in-out nativos */
  --e-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --e-inout:  cubic-bezier(0.77, 0, 0.175, 1);
  --e-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --e:        cubic-bezier(0.4, 0, 0.2, 1);

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1240px;

  /* doble bisel */
  --r-shell: 30px;
  --r-core: 22px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  background: var(--bg);
  color: var(--cream-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--gold); color: #17120e; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.02;
  letter-spacing: -0.022em;   /* tracking negativo en texto grande (apple §15) */
  text-wrap: balance;
  font-optical-sizing: auto;
}

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  padding: 0.7rem 1.1rem; background: var(--cream); color: var(--bg);
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--tech);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-2);
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(243, 236, 224, 0.03);
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 163, 107, 0.16);
}
.hero .eyebrow {
  color: var(--cream);
  background: rgba(15, 12, 10, 0.4);
  border-color: rgba(243, 236, 224, 0.3);
}

/* ---------- 3. Capas fijas: grano + cursor ---------- */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  /* sin mix-blend-mode: sobre una capa fija a pantalla completa, obliga
     a recomponer todo lo que se anima debajo en cada frame (causa de traqueteo) */
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none;
  display: none; opacity: 0; transition: opacity 0.3s var(--e-out);
  mix-blend-mode: difference;
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--cream); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px; border: 1px solid rgba(243, 236, 224, 0.7);
  transition: width 0.35s var(--e-out), height 0.35s var(--e-out), margin 0.35s var(--e-out);
}
.cursor.is-grow .cursor-ring { width: 58px; height: 58px; margin: -29px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* ---------- 4. Chrome flotante ---------- */
.topbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 180;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.6rem) var(--gutter);
  pointer-events: none;
  transition: transform 0.5s var(--e-drawer);
}
.topbar.is-hidden { transform: translateY(-130%); }
.topbar > * { pointer-events: auto; }
.topbar-brand img {
  width: clamp(120px, 13vw, 168px); height: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--tech); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.7rem 1.15rem; border-radius: 999px;
  color: var(--cream);
  background: rgba(18, 14, 11, 0.82);
  border: 1px solid var(--hair);
  transition: transform 0.15s var(--e-out), background-color 0.3s var(--e), border-color 0.3s var(--e);
}
@media (hover: hover) and (pointer: fine) {
  .pill {
    background: rgba(20, 16, 12, 0.55);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
  }
}
.pill:active { transform: scale(0.96); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 163, 90, 0.2); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { background: rgba(20, 16, 12, 0.8); border-color: rgba(243, 236, 224, 0.28); }
}

/* Navegación lateral por puntos */
.dots {
  position: fixed; left: max(1rem, 2.2vw); top: 50%; z-index: 170;
  transform: translateY(-50%);
  display: none; flex-direction: column; gap: 0.9rem;
}
@media (min-width: 1080px) { .dots { display: flex; } }
.dots a {
  position: relative; width: 26px; height: 20px;
  display: flex; align-items: center;
}
.dots a span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(243, 236, 224, 0.25);
  transition: transform 0.4s var(--e-out), background-color 0.4s var(--e), width 0.4s var(--e-out);
}
.dots a.is-active span { background: var(--gold); width: 20px; border-radius: 999px; }
.dots a::after {
  content: attr(data-label);
  position: absolute; left: 26px; white-space: nowrap;
  font-family: var(--tech); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-3);
  opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--e), transform 0.3s var(--e-out);
}
@media (hover: hover) and (pointer: fine) { .dots a:hover::after { opacity: 1; transform: translateX(0); } }

/* ---------- 5. Botones ---------- */
.btn {
  --pad: 0.55rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: var(--pad) var(--pad) var(--pad) 1.35rem;
  border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.005em;
  position: relative;
  transition: transform 0.15s var(--e-out), background-color 0.3s var(--e),
              color 0.3s var(--e), border-color 0.3s var(--e), box-shadow 0.3s var(--e);
}
.btn .btn-label { line-height: 1; }
.btn .btn-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 999px; flex: 0 0 auto;
  font-family: var(--tech); font-size: 0.95rem;
  transition: transform 0.35s var(--e-out), background-color 0.3s var(--e);
}
.btn:active { transform: scale(0.97); }

.btn-solid { background: var(--cream); color: #17120e; }
.btn-solid .btn-ico { background: rgba(23, 18, 14, 0.1); }
.btn-line { color: var(--cream); border: 1px solid var(--hair); }
.btn-line .btn-ico { background: rgba(243, 236, 224, 0.08); }
.btn-quiet { color: var(--cream-3); padding-left: 1.1rem; }
.btn-quiet .btn-ico { background: rgba(243, 236, 224, 0.06); width: 1.9rem; height: 1.9rem; }
.btn-wide { width: 100%; justify-content: center; }

@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: #fff; }
  .btn-solid:hover .btn-ico { transform: translate(3px, -1px); background: rgba(23, 18, 14, 0.16); }
  .btn-line:hover { border-color: rgba(243, 236, 224, 0.35); color: #fff; }
  .btn-line:hover .btn-ico { transform: translate(3px, -1px); }
  .btn-quiet:hover { color: var(--cream); }
  .btn-quiet:hover .btn-ico { transform: translateY(2px); }
}

/* ---------- Doble bisel (soft-skill §4A) ---------- */
.bezel {
  padding: 6px;
  border-radius: var(--r-shell);
  background: rgba(243, 236, 224, 0.04);
  border: 1px solid var(--hair-2);
}
.bezel > .bezel-core {
  border-radius: var(--r-core);
  background: var(--bg-3);
  box-shadow: inset 0 1px 1px rgba(243, 236, 224, 0.06);
}

/* ---------- 6. Reveal (fade-up + blur → materializa) ---------- */
[data-reveal] {
  opacity: 0; translate: 0 32px; filter: blur(6px);
  transition: opacity 0.8s var(--e-out), translate 0.8s var(--e-out), filter 0.8s var(--e-out);
}
[data-reveal].is-in { opacity: 1; translate: 0 0; filter: blur(0); }

.split-word, .split-line-inner {
  display: inline-block;
  opacity: 0; translate: 0 0.5em; filter: blur(5px);
  transition: opacity 0.7s var(--e-out), translate 0.7s var(--e-out), filter 0.7s var(--e-out);
}
[data-split].is-in .split-word,
[data-split].is-in .split-line-inner { opacity: 1; translate: 0 0; filter: blur(0); }
/* defensa: si el JS de split no corre, el texto se ve igual */
[data-split]:not(.is-split) { opacity: 1; }

/* ---------- 7. Secciones ---------- */

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 7rem var(--gutter) clamp(3rem, 8vw, 7rem);
  overflow: clip;
}
.hero-media { position: absolute; inset: -8% 0 0; z-index: -2; }
/* el balance de color va horneado en el archivo (assets/img) — no en filter:
   filter + transform juntos fuerzan repintado en cada frame del parallax */
.hero-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 100%, rgba(15, 12, 10, 0.9), transparent 55%),
    linear-gradient(180deg, rgba(15, 12, 10, 0.55) 0%, rgba(15, 12, 10, 0.1) 32%, rgba(15, 12, 10, 0.35) 60%, rgba(15, 12, 10, 0.94) 100%);
}
.hero-inner { max-width: 46rem; position: relative; }
.hero-h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.9rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.hero-p {
  margin-top: 1.6rem; max-width: 40ch;
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  color: rgba(243, 236, 224, 0.86);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.4rem; }
.hero .btn-line { color: #fff; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(243, 236, 224, 0.4); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-cue span {
  width: 3px; height: 9px; border-radius: 999px; background: var(--cream);
  animation: cue 1.7s var(--e-inout) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* MANIFIESTO */
.manifesto {
  padding: clamp(6rem, 16vw, 12rem) var(--gutter);
  max-width: 1100px; margin-inline: auto;
}
.manifesto-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.manifesto-text .split-word { translate: 0 0.6em; }

/* LÍNEAS — secuencia cinemática (sin JS: bloques apilados legibles) */
.lineas { position: relative; }
.lineas-stage { position: relative; }
.scene {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  padding: 6rem var(--gutter) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  border-top: 1px solid var(--hair-2);
}
.scene-media { position: absolute; inset: 0; z-index: -2; }
/* color ya horneado en el archivo — ver nota en .hero-media img */
.scene-media img { width: 100%; height: 100%; object-fit: cover; }
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 85% at 12% 100%, rgba(15, 12, 10, 0.92), transparent 52%),
    linear-gradient(180deg, rgba(15, 12, 10, 0.42), rgba(15, 12, 10, 0.04) 34%, rgba(15, 12, 10, 0.88));
}
.scene-copy { max-width: 44rem; position: relative; }
.scene-num {
  font-family: var(--tech); font-size: 0.9rem; letter-spacing: 0.3em; color: var(--gold);
  display: block; margin-bottom: 1.1rem;
}
.scene-kind {
  font-family: var(--tech); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream-3); margin-bottom: 0.7rem;
}
.scene-name {
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.98; letter-spacing: -0.03em; color: #fff;
}
.scene-line {
  margin-top: 1.3rem; max-width: 30ch;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.32; color: rgba(243, 236, 224, 0.9);
}
.scene-spec {
  margin-top: 1.4rem; font-family: var(--tech); font-size: 0.76rem; letter-spacing: 0.06em;
  color: var(--cream-3);
}
.scene-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2.2rem; height: 1px; background: var(--hair); display: none; }
.scene-progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 0; transform: scaleX(0); will-change: transform; }

/* con JS: escenario fijo + escenas superpuestas que se funden */
.is-ready .lineas { height: 784vh; }
.is-ready .lineas-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
}
.is-ready .scene {
  position: absolute; inset: 0; min-height: 0; border-top: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--e-out), visibility 0s linear 0.7s;
}
.is-ready .scene.is-active { opacity: 1; visibility: visible; transition: opacity 0.7s var(--e-out), visibility 0s; }
.is-ready .scene-media img { transform: scale(1.08); transition: transform 1.6s var(--e-out); }
/* will-change SOLO en la escena activa — con las 5 fotos promovidas a
   capa GPU a la vez, el navegador se atora al hacer scroll (causa del traqueteo) */
.is-ready .scene.is-active .scene-media img { will-change: transform; }
.is-ready .scene.is-active .scene-media img { transform: scale(1); }
.is-ready .scene-copy > * { opacity: 0; translate: 0 20px; filter: blur(5px); transition: opacity 0.6s var(--e-out), translate 0.6s var(--e-out), filter 0.6s var(--e-out); }
.is-ready .scene.is-active .scene-copy > * { opacity: 1; translate: 0 0; filter: blur(0); }
.is-ready .scene.is-active .scene-copy > :nth-child(2) { transition-delay: 0.05s; }
.is-ready .scene.is-active .scene-copy > :nth-child(3) { transition-delay: 0.1s; }
.is-ready .scene.is-active .scene-copy > :nth-child(4) { transition-delay: 0.15s; }
.is-ready .scene.is-active .scene-copy > :nth-child(5) { transition-delay: 0.2s; }
.is-ready .scene-progress { display: block; }

/* PROCESO */
.proceso { padding: clamp(6rem, 14vw, 11rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.block-head { max-width: 46rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
.block-title { margin-top: 1.3rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.03; }
.block-lead { margin-top: 1.2rem; max-width: 48ch; color: var(--cream-3); font-size: 1.02rem; }
.steps { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.step {
  padding: 2rem 1.9rem;
  border-radius: var(--r-core);
  background: var(--bg-2);
  border: 1px solid var(--hair-2);
}
.step-n { font-family: var(--tech); font-size: 0.85rem; letter-spacing: 0.3em; color: var(--gold); }
.step-when { margin-top: 1rem; font-family: var(--tech); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-3); }
.step-t { margin-top: 0.35rem; font-size: 1.5rem; }
.step-d { margin-top: 0.7rem; font-size: 0.95rem; color: var(--cream-3); }
.proceso-foot { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: clamp(2.5rem, 6vw, 4rem); }

/* PROYECTOS — filmstrip */
.film { position: relative; }
.film-head { padding: clamp(4rem, 10vw, 8rem) var(--gutter) 2.5rem; max-width: var(--maxw); margin-inline: auto; }
.film-stage { overflow-x: auto; scrollbar-width: none; padding-bottom: clamp(4rem, 10vw, 7rem); }
.film-stage::-webkit-scrollbar { display: none; }
.film-track { display: flex; gap: 1rem; padding-inline: var(--gutter); width: max-content; scroll-snap-type: x mandatory; }
.frame {
  position: relative; flex: 0 0 auto;
  width: min(78vw, 560px); aspect-ratio: 4 / 3;
  border-radius: var(--r-core); overflow: hidden;
  scroll-snap-align: center;
  background: var(--bg-3);
}
/* color ya horneado en el archivo — ver nota en .hero-media img */
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-out); }
.frame figcaption {
  position: absolute; left: 1.1rem; bottom: 0.9rem;
  font-family: var(--tech); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
@media (hover: hover) and (pointer: fine) {
  .frame:hover img { transform: scale(1.05); }
}
/* con JS y espacio suficiente: escenario fijo, la tira se mueve con el scroll.
   Si no se fija (táctil / pantalla angosta), queda el scroll horizontal nativo. */
.is-ready .film-stage.is-pinned {
  /* 'hidden', no 'visible': la tira (.film-track) es mucho más ancha que la
     pantalla — sin recortarla, infla el ancho de scroll de toda la página
     (scroll horizontal fantasma / layout "atorado") aun antes de llegar aquí */
  overflow: hidden; padding-bottom: 0;
  height: 100svh; display: flex; align-items: center;
}
.is-ready .film-track { will-change: transform; }

/* REEL */
.reel {
  display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center;
  padding: clamp(6rem, 14vw, 11rem) var(--gutter);
  max-width: var(--maxw); margin-inline: auto;
}
.reel-p { margin-top: 1.2rem; max-width: 42ch; color: var(--cream-3); }
.reel-frame { justify-self: center; width: min(340px, 80vw); }
.reel-frame .bezel-core { overflow: hidden; }
.reel-frame video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; display: block; }

/* COTIZA */
.cotiza { padding: clamp(6rem, 14vw, 11rem) var(--gutter); max-width: 960px; margin-inline: auto; }
.quoter { margin-top: 2rem; }
.quoter > .bezel-core { display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 2.6rem); }
.quoter-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 0.8rem; }
.qtimes { font-family: var(--serif); font-size: 1.6rem; color: var(--cream-3); padding-bottom: 0.9rem; }
.qfield { display: grid; gap: 0.5rem; }
.qfield > span { font-family: var(--tech); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-3); }
.qfield input, .qfield select {
  width: 100%; padding: 1rem 1.1rem;
  background: var(--bg-2); color: var(--cream);
  border: 1px solid var(--hair); border-radius: 14px;
  font: inherit; font-size: 1rem;
  transition: border-color 0.3s var(--e), box-shadow 0.3s var(--e), background-color 0.3s var(--e);
  appearance: none;
}
.qfield select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%238b7f70' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 1.1rem center;
  padding-right: 2.6rem;
}
.qfield input:focus, .qfield select:focus {
  outline: none; border-color: var(--gold); background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(201, 163, 107, 0.16);
}
.quoter-out {
  font-family: var(--tech); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--gold);
  padding: 0.2rem 0.2rem 0;
}
.btn-spin {
  position: absolute; right: 1.3rem; top: 50%; margin-top: -8px;
  width: 16px; height: 16px; border: 2px solid rgba(23, 18, 14, 0.25); border-top-color: #17120e;
  border-radius: 50%; opacity: 0;
}
.quoter.is-sending .btn-label,
.quoter.is-sending .btn-ico { opacity: 0.4; filter: blur(3px); transition: opacity 0.2s var(--e), filter 0.2s var(--e); }
.quoter.is-sending .btn-spin { opacity: 1; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quoter-note { font-family: var(--tech); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--cream-3); }

/* RESEÑAS */
.resenas { padding: clamp(6rem, 14vw, 11rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.resenas-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.resena {
  padding: 2rem 1.9rem;
  border-radius: var(--r-core);
  background: var(--bg-2);
  border: 1px solid var(--hair-2);
  display: flex; flex-direction: column; gap: 1rem;
}
.resena-stars { font-family: var(--tech); font-size: 0.9rem; letter-spacing: 0.12em; color: var(--gold); }
.resena-quote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--cream); }
.resena-author { font-family: var(--tech); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-3); }
@media (min-width: 760px) { .resenas-grid { grid-template-columns: repeat(3, 1fr); } }

/* PREGUNTAS FRECUENTES */
.faq { padding: clamp(6rem, 14vw, 11rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.faq-list { display: grid; gap: 0.85rem; }
.qa {
  padding: 1.5rem 1.9rem;
  border-radius: var(--r-core);
  background: var(--bg-2);
  border: 1px solid var(--hair-2);
}
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  font-family: var(--sans); font-weight: 500; font-size: 1.03rem; color: var(--cream);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex-shrink: 0;
  font-family: var(--tech); font-size: 1.3rem; line-height: 1; color: var(--gold);
  transition: transform 0.3s var(--e-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin-top: 0.9rem; color: var(--cream-3); font-size: 0.95rem; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) {
  .qa summary:hover { color: var(--gold); }
}

/* END / CONTACTO */
.end { border-top: 1px solid var(--hair); padding: clamp(5rem, 12vw, 9rem) var(--gutter) 3rem; max-width: var(--maxw); margin-inline: auto; }
.end-top { display: flex; flex-wrap: wrap; gap: 2rem; align-items: end; justify-content: space-between; }
.end-line { font-size: clamp(2rem, 5.4vw, 4rem); line-height: 1.02; max-width: 16ch; }
.end-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-top: clamp(3rem, 8vw, 5rem); }
.end-col h5 { font-family: var(--tech); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 1rem; font-weight: 500; }
.end-col a, .end-col p { display: block; padding: 0.3rem 0; font-size: 0.95rem; color: var(--cream-2); }
@media (hover: hover) and (pointer: fine) { .end-col a:hover { color: var(--cream); } }
.end-base {
  margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid var(--hair-2);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-family: var(--tech); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--cream-3);
}
.end-base img { width: 140px; height: auto; opacity: 0.8; }
.end-legal { color: var(--cream-3); }
@media (hover: hover) and (pointer: fine) { .end-legal:hover { color: var(--cream); } }

/* PÁGINA LEGAL (política de privacidad) */
.legal-page { max-width: 100%; }
.legal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.25rem, 4vw, 2rem) var(--gutter);
  border-bottom: 1px solid var(--hair-2);
}
.legal-brand img { width: 140px; height: auto; }
.legal-back {
  font-family: var(--tech); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--cream-2);
}
@media (hover: hover) and (pointer: fine) { .legal-back:hover { color: var(--cream); } }
.legal-content {
  max-width: 42rem; margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter) clamp(4rem, 10vw, 7rem);
}
.legal-content .eyebrow { margin-bottom: 1.2rem; }
.legal-content h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-updated { margin-top: 0.8rem; font-family: var(--tech); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--cream-3); }
.legal-content > p { margin-top: 1.6rem; font-size: 1rem; }
.legal-content h2 { margin-top: 2.8rem; font-size: 1.35rem; }
.legal-content h2 + p, .legal-content h2 + ul { margin-top: 0.9rem; }
.legal-list { margin-top: 0.9rem; display: grid; gap: 0.4rem; padding-left: 1.3rem; list-style: disc; }
.legal-list li { font-size: 1rem; }
.legal-footer {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 1.6rem var(--gutter) 2.5rem; max-width: 42rem; margin-inline: auto;
  border-top: 1px solid var(--hair-2);
  font-family: var(--tech); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--cream-3);
}
@media (hover: hover) and (pointer: fine) { .legal-footer a:hover { color: var(--cream); } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); z-index: 175;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.15rem; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 18px 40px -12px rgba(37, 163, 90, 0.5);
  translate: 0 12px; opacity: 0;
  transition: translate 0.45s var(--e-out), opacity 0.45s var(--e-out), transform 0.15s var(--e-out);
}
.wa-float.is-in { translate: 0 0; opacity: 1; }
.wa-float:active { transform: scale(0.95); }
.wa-float span { display: none; }
@media (min-width: 560px) { .wa-float span { display: inline; } }

/* ---------- 8. Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 280;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 1.6rem;
  transition: opacity 0.5s var(--e-out), clip-path 0.7s var(--e-out);
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-logo { width: clamp(120px, 30vw, 168px); height: auto; opacity: 0.92; }
.splash-bar { width: 46px; height: 2px; background: var(--hair); position: relative; overflow: hidden; }
.splash-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: translateX(-100%); animation: splashBar 1.4s var(--e-out) infinite;
}
@keyframes splashBar { 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- 9. Responsive ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .end-grid { grid-template-columns: repeat(3, 1fr); }
  .reel { grid-template-columns: 1fr auto; }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero { padding-left: clamp(5rem, 8vw, 8rem); }
}

/* ---------- 10. Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-bar::after, .scroll-cue span { animation: none; }
  [data-reveal], .split-word, .split-line-inner,
  .is-ready .scene-copy > *, .is-ready .scene-media img {
    translate: none !important; filter: none !important;
    transition-duration: 0.2s !important; transition-delay: 0s !important;
  }
  .is-ready .scene-media img { transform: none !important; }
  .frame img { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pill { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .grain { display: none; }
}
@media (prefers-contrast: more) {
  :root { --cream-2: #f3ece0; --cream-3: #b7ab9a; --hair: rgba(243, 236, 224, 0.28); }
  .eyebrow, .step, .qfield input, .qfield select { border-color: rgba(243, 236, 224, 0.4); }
}
