/* =========================================================================
   Cerrajero Urgente Barcelona · experiencia "Del bloqueo a la apertura"
   Mobile-first real: todo se compone a 390×844 y luego se abre a escritorio.
   ========================================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-wdth.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

:root {
  --ink: #08080b;
  --ink-2: #101016;
  --ink-3: #1a1a22;
  --paper: #f2f0ec;
  --paper-2: #d9d5cd;
  --muted: rgba(242, 240, 236, .60);
  --brass: #e0b467;
  --brass-d: #a87f2e;
  --acid: #d6ff3c;
  --line: rgba(242, 240, 236, .14);

  --f: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(1.15rem, 5.5vw, 4rem);
  --bar: 62px;
  --svh: 1svh;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img { display: block; max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: .94; letter-spacing: -.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--brass); color: var(--ink); padding: .8rem 1.2rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* ------------------------------- Botones -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.5rem;
  font-family: var(--f); font-size: 1rem; font-weight: 700;
  font-stretch: 92%; letter-spacing: -.01em;
  border: 1px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn--key { background: var(--brass); color: #140f04; }
.btn--line { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--big { min-height: 60px; font-size: 1.1rem; padding: 0 2rem; }

/* --------------------------------- HUD ---------------------------------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem var(--pad);
  padding-top: calc(.7rem + env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(8,8,11,.82), rgba(8,8,11,0));
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud__brand {
  font-size: .68rem; font-weight: 700; font-stretch: 78%;
  text-transform: uppercase; letter-spacing: .1em; line-height: 1.25;
  color: var(--muted);
}
.hud__brand span { display: block; color: var(--paper); }
.hud__right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.hud__tel {
  font-size: .82rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--brass); text-decoration: none;
  padding: .45rem .7rem; border: 1px solid rgba(224,180,103,.35); border-radius: 2px;
}
.hud__menu {
  width: 44px; height: 40px; background: transparent;
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hud__menu span { width: 16px; height: 1.5px; background: var(--paper); transition: transform .25s, opacity .2s; }
.hud__menu[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.hud__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }
.hud__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: rgba(242,240,236,.1); }
.hud__prog i { display: block; height: 100%; width: 0; background: var(--brass); }

.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink-2);
  padding: calc(4.5rem + env(safe-area-inset-top)) var(--pad) 2rem;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.menu li + li { border-top: 1px solid var(--line); }
.menu button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--paper); font-family: var(--f); font-size: 1.5rem; font-weight: 800;
  font-stretch: 80%; letter-spacing: -.025em;
  padding: .85rem 0; display: flex; align-items: baseline; gap: .9rem;
}
.menu button b { font-size: .7rem; color: var(--brass); font-stretch: 100%; }
.menu__call {
  margin-top: auto; text-align: center; text-decoration: none;
  background: var(--brass); color: #140f04; font-weight: 700;
  padding: 1rem; border-radius: 2px;
}

/* ------------------------------- Escenas -------------------------------- */
.scene { position: relative; }
.stage {
  position: relative;
  height: 100vh; height: calc(var(--svh) * 100);
  overflow: hidden;
}

/* ============================== 1 · HERO ================================= */
.scene--hero { height: 210vh; }
.hero__bg, .hero__mid, .hero__glow, .hero__key, .hero__type { position: absolute; }

.hero__bg { inset: -6% -6% -6% -6%; z-index: 1; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,11,.94) 8%, rgba(8,8,11,.35) 52%, rgba(8,8,11,.7) 100%);
}

.hero__mid {
  z-index: 2; right: -8%; top: 8%;
  width: 62%; aspect-ratio: 4 / 5;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  will-change: transform;
}
.hero__mid img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) brightness(.86); }

.hero__glow {
  z-index: 3; inset: auto -20% 12% -20%; height: 60%;
  background: radial-gradient(closest-side, rgba(224,180,103,.30), transparent 72%);
  will-change: transform;
}

.hero__key {
  z-index: 4; width: 118%; left: -34%; top: 46%;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.6));
  will-change: transform;
}

.hero__type {
  z-index: 5; left: 0; right: 0; bottom: calc(var(--bar) + 1.4rem);
  padding: 0 var(--pad);
}
.hero__h1 { display: block; }
.hero__l {
  display: block;
  font-size: clamp(2.9rem, 15.5vw, 9rem);
  font-stretch: 74%; font-weight: 800;
  letter-spacing: -.035em; line-height: .86;
  text-transform: uppercase;
  will-change: transform;
}
.hero__l[data-h="l2"] { color: var(--brass); }
.hero__sub {
  display: block; margin-top: .9rem;
  font-size: .82rem; font-weight: 600; font-stretch: 100%;
  letter-spacing: .02em; line-height: 1.45; text-transform: none;
  color: var(--muted); max-width: 30ch;
}
.hero__cta { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero__cta .btn { flex: 1 1 auto; }

.hero__hint {
  position: absolute; z-index: 5; left: var(--pad); bottom: .5rem;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: .5rem;
}
.hero__hint span { width: 26px; height: 1px; background: var(--brass); animation: slide 1.9s ease-in-out infinite; }
@keyframes slide { 0%,100% { transform: scaleX(.3); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } }

/* ============================ 2 · MECANISMO ============================== */
.scene--mech { height: 230vh; background: var(--ink); }
.keyhole { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.keyhole svg { width: 100%; height: 100%; }

.mech {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(4.5rem + env(safe-area-inset-top)) var(--pad) calc(var(--bar) + 1.5rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% 45%, rgba(224,180,103,.10), transparent 70%),
    var(--ink);
}
.mech__h {
  font-size: clamp(2rem, 9.5vw, 4.4rem); font-stretch: 76%; text-transform: uppercase;
  will-change: transform;
}
.mech__view { position: relative; margin: 1.2rem 0; }
.mech__svg { width: 100%; height: auto; overflow: visible; }
.mech__svg .pz { will-change: transform, opacity; }

.mech__labels { position: absolute; inset: 0; }
.mech__labels li {
  position: absolute; display: flex; align-items: center; gap: .4rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); opacity: 0; white-space: nowrap;
}
.mech__labels i { width: 18px; height: 1px; background: var(--brass); display: block; }
.mech__labels [data-lb="escudo"]   { left: 0;    top: 4%; }
.mech__labels [data-lb="cilindro"] { right: 0;   top: 22%; flex-direction: row-reverse; }
.mech__labels [data-lb="muelles"]  { left: 0;    top: 40%; }
.mech__labels [data-lb="pines"]    { right: 0;   top: 56%; flex-direction: row-reverse; }
.mech__labels [data-lb="rotor"]    { left: 0;    top: 74%; }
.mech__labels [data-lb="llave"]    { right: 0;   top: 90%; flex-direction: row-reverse; }

.mech__txt {
  font-size: .95rem; color: var(--muted); max-width: 34ch;
  border-left: 2px solid var(--brass); padding-left: .9rem;
  will-change: transform;
}

/* ========================= 3 · CERRADURA INTERACTIVA ===================== */
.scene--lock {
  min-height: 100vh; min-height: calc(var(--svh) * 100);
  display: flex; align-items: center;
  padding: 4.5rem var(--pad) calc(var(--bar) + 2rem);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink) 100%);
}
.lock { width: 100%; }
.lock__h { font-size: clamp(2rem, 9.5vw, 4rem); font-stretch: 76%; text-transform: uppercase; }
.lock__sub { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

.lock__stage {
  position: relative; margin: 1.5rem 0 .6rem;
  border: 1px solid var(--line); border-radius: 3px;
  background: radial-gradient(ellipse at 50% 60%, rgba(224,180,103,.08), transparent 70%);
  padding: .6rem;
  touch-action: pan-y;
}
.lock__svg { width: 100%; height: auto; }
#lkKey { will-change: transform; }
.lkpin { will-change: transform; }

.lock__grab {
  position: absolute; left: 3%; top: 56%;
  width: 76px; height: 76px; margin: -38px 0 0 0;
  border-radius: 50%; border: 1px dashed rgba(224,180,103,.55);
  background: rgba(224,180,103,.08); cursor: grab;
  touch-action: none;
  display: grid; place-items: center;
}
.lock__grab:active { cursor: grabbing; }
.lock__grabDot { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); }
.lock__grab::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(224,180,103,.25);
  animation: ring 2.2s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.lock__grab.is-off::after { display: none; }

.lock__state {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass);
}
.lock__done { margin-top: 1.2rem; display: grid; gap: .8rem; justify-items: start; }
.lock__done p { color: var(--paper); font-size: 1.05rem; font-weight: 600; max-width: 26ch; }

/* ============================= 4 · SERVICIOS ============================= */
.scene--svc { padding: 4rem 0 3rem; background: var(--ink); }
.svc__head { padding: 0 var(--pad) 1.2rem; }
.svc__head h2 { font-size: clamp(2rem, 9.5vw, 4.4rem); font-stretch: 76%; text-transform: uppercase; }
.svc__head p { color: var(--muted); font-size: .88rem; margin-top: .5rem; }

.svc__track {
  position: relative;
  display: flex; gap: .8rem;
  padding: 0 var(--pad) 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.svc__track::-webkit-scrollbar { display: none; }

.svc__panel {
  position: relative; flex: 0 0 78vw; max-width: 420px;
  aspect-ratio: 3 / 4.2; scroll-snap-align: center;
  overflow: hidden; border-radius: 2px; isolation: isolate;
}
.svc__img { position: absolute; inset: -8% -8%; z-index: 1; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.06)) translateY(var(--ty, 0)); transition: transform .1s linear; }
.svc__panel::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(8,8,11,.9) 10%, rgba(8,8,11,.15) 60%);
}
.svc__n {
  position: absolute; z-index: 3; top: .9rem; left: 1rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; color: var(--brass);
}
.svc__t {
  position: absolute; z-index: 3; left: 1rem; bottom: 3.6rem;
  font-size: clamp(1.6rem, 7.5vw, 2.6rem); font-stretch: 76%; text-transform: uppercase;
  transform: translateX(var(--tx, 0));
}
.svc__more {
  position: absolute; z-index: 3; left: 1rem; bottom: 1rem;
  min-height: 44px; padding: 0 1.1rem;
  background: rgba(242,240,236,.1); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--paper); font-family: var(--f); font-size: .82rem; font-weight: 700; cursor: pointer;
}
.svc__seo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ============================ 5 · DIAGNÓSTICO =========================== */
.scene--diag {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: calc(var(--svh) * 100);
  display: flex; align-items: flex-end;
  padding: 4.5rem var(--pad) calc(var(--bar) + 2rem);
}
.diag { position: relative; z-index: 2; width: 100%; }
.diag__bgs { position: absolute; inset: 0; z-index: 0; }
.diag__bgs img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease, transform 1.2s ease;
  transform: scale(1.08);
}
.diag__bgs img.is-on { opacity: 1; transform: scale(1); }
.scene--diag::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,8,11,.96) 25%, rgba(8,8,11,.55) 70%, rgba(8,8,11,.8));
}
.diag__in { position: relative; z-index: 2; }
.diag h2 { font-size: clamp(2rem, 9.5vw, 4.4rem); font-stretch: 76%; text-transform: uppercase; }
.diag__opts { display: grid; gap: .5rem; margin: 1.2rem 0; }
.diag__opt {
  min-height: 56px; padding: 0 1.1rem; text-align: left;
  background: rgba(242,240,236,.06); border: 1px solid var(--line); border-radius: 2px;
  color: var(--paper); font-family: var(--f); font-size: 1rem; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.diag__opt b { font-weight: 700; font-stretch: 92%; }
.diag__opt:active { transform: scale(.98); }
.diag__opt.is-on { background: var(--brass); border-color: var(--brass); color: #140f04; }
.diag__out { display: grid; gap: .7rem; justify-items: start; }
.diag__lead { font-size: 1.15rem; font-weight: 700; font-stretch: 92%; }
.diag__sol { color: var(--muted); font-size: .92rem; max-width: 38ch; }

/* ============================ 6 · COMPARADOR ============================ */
.scene--comp {
  padding: 4rem var(--pad) calc(var(--bar) + 3rem);
  background: var(--ink-2);
}
.comp__h { font-size: clamp(2rem, 9.5vw, 4.4rem); font-stretch: 76%; text-transform: uppercase; }
.comp__sub { color: var(--muted); font-size: .88rem; margin-top: .5rem; }
.comp {
  position: relative; margin-top: 1.3rem;
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.comp__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comp__after {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--p, 50) * 1%) 0 0);
}
.comp__bar {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p, 50) * 1%);
  width: 2px; background: var(--paper); transform: translateX(-1px);
}
.comp__handle {
  position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; border: 2px solid var(--paper);
  background: rgba(8,8,11,.55); backdrop-filter: blur(4px);
  cursor: ew-resize; touch-action: none;
}
.comp__handle::before, .comp__handle::after {
  content: ''; position: absolute; top: 50%; width: 7px; height: 7px;
  border-top: 2px solid var(--paper); border-right: 2px solid var(--paper);
}
.comp__handle::before { left: 13px; transform: translateY(-50%) rotate(-135deg); }
.comp__handle::after { right: 13px; transform: translateY(-50%) rotate(45deg); }
.comp__tag {
  position: absolute; bottom: .8rem; z-index: 3;
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(8,8,11,.6); padding: .3rem .6rem;
}
.comp__tag--l { left: .8rem; }
.comp__tag--r { right: .8rem; color: var(--brass); }

/* ============================= 7 · BARCELONA ============================ */
.scene--bcn { height: 200vh; }
.scene--bcn .stage { background: var(--ink); }
.bcn__photo {
  position: absolute; inset: -8%; width: 116%; height: 116%;
  object-fit: cover; opacity: .42; filter: grayscale(.4) contrast(1.1);
  will-change: transform;
}
.bcn__in {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4.5rem var(--pad) calc(var(--bar) + 2rem);
  background: linear-gradient(to top, rgba(8,8,11,.92), rgba(8,8,11,.3));
}
.bcn__in h2 { font-size: clamp(2.2rem, 11vw, 5rem); font-stretch: 74%; text-transform: uppercase; }
.bcn__coord { font-size: .62rem; letter-spacing: .2em; color: var(--brass); margin-top: .5rem; }
.bcn__zones { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0; }
.bcn__zones button {
  min-height: 44px; padding: 0 .9rem;
  background: transparent; border: 1px solid var(--line); border-radius: 100px;
  color: var(--muted); font-family: var(--f); font-size: .85rem; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.bcn__zones button.is-on { color: #140f04; background: var(--brass); border-color: var(--brass); font-weight: 700; }
.bcn__info { font-size: .95rem; color: var(--paper); max-width: 36ch; min-height: 4.2em; }

/* ============================== 8 · 24 HORAS ============================ */
.scene--h24 { height: 190vh; }
.scene--h24 .stage { background: var(--acid); color: #0a0d02; }
.h24__light {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(220px circle at var(--lx, 50%) var(--ly, 40%), rgba(255,255,255,.75), transparent 70%);
  mix-blend-mode: overlay;
}
.h24__giant {
  position: absolute; z-index: 0; top: 8%; left: 0;
  white-space: nowrap; margin: 0;
  font-size: clamp(6rem, 34vw, 18rem); font-weight: 800; font-stretch: 70%;
  letter-spacing: -.05em; line-height: .8; color: #0a0d02; opacity: .14;
  will-change: transform;
}
.h24__spark { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.h24__spark i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(10,13,2,.45);
  animation: float 7s ease-in-out infinite;
}
.h24__spark i:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.h24__spark i:nth-child(2) { left: 78%; top: 18%; animation-delay: .9s; }
.h24__spark i:nth-child(3) { left: 34%; top: 68%; animation-delay: 1.8s; }
.h24__spark i:nth-child(4) { left: 88%; top: 58%; animation-delay: 2.6s; }
.h24__spark i:nth-child(5) { left: 55%; top: 34%; animation-delay: 3.4s; }
.h24__spark i:nth-child(6) { left: 22%; top: 82%; animation-delay: 4.2s; }
@keyframes float { 0%,100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(-18px); opacity: .55; } }

.h24__in {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--pad) calc(var(--bar) + 2.5rem);
}
.h24__in h2 {
  font-size: clamp(2rem, 10vw, 4.6rem); font-stretch: 76%; text-transform: uppercase;
  max-width: 12ch;
}
.h24__in p { margin: 1rem 0 1.5rem; max-width: 36ch; font-size: .95rem; font-weight: 500; }

/* =============================== 9 · FAQ =============================== */
.scene--faq { background: var(--paper); color: var(--ink); padding: 4rem var(--pad) 4rem; }
.faq h2 { font-size: clamp(2rem, 9.5vw, 4.4rem); font-stretch: 76%; text-transform: uppercase; }
.faq__list { margin: 1.6rem 0 2.6rem; border-top: 1px solid rgba(8,8,11,.16); }
.faq details { border-bottom: 1px solid rgba(8,8,11,.16); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 700; font-stretch: 92%; font-size: 1rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: .3rem; top: 1.4rem;
  width: 9px; height: 9px;
  border-right: 2px solid var(--brass-d); border-bottom: 2px solid var(--brass-d);
  transform: rotate(45deg); transition: transform .22s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 1.4rem 1.1rem 0; color: rgba(8,8,11,.72); font-size: .93rem; }
.faq__seo { border-top: 1px solid rgba(8,8,11,.16); padding-top: 1.6rem; }
.faq__seo h3 { font-size: 1.3rem; font-stretch: 88%; margin-bottom: .8rem; }
.faq__seo p { color: rgba(8,8,11,.7); font-size: .93rem; margin-bottom: .9rem; max-width: 62ch; }

/* ============================== 10 · FINAL ============================== */
.scene--end { height: 190vh; }
.scene--end .stage { background: var(--ink); }
.end__light {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 50% 60% at 50% 55%, #fff6e4, #f0d9a8 40%, transparent 72%);
  opacity: 0; will-change: opacity;
}
.end__door {
  position: absolute; top: 0; bottom: 0; z-index: 2; width: 52%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,0) 30%),
    repeating-linear-gradient(0deg, #15161b 0 46px, #191a20 46px 92px);
  will-change: transform;
}
.end__door--l { left: 0; box-shadow: inset -14px 0 26px rgba(0,0,0,.7); }
.end__door--r { right: 0; box-shadow: inset 14px 0 26px rgba(0,0,0,.7); }

.end__in {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 0 var(--pad) calc(var(--bar) + 3rem);
  display: grid; gap: .9rem; justify-items: start;
  will-change: transform, opacity;
}
.end__in h2 { font-size: clamp(2.6rem, 13vw, 6rem); font-stretch: 74%; text-transform: uppercase; }
.end__in > p { color: var(--muted); font-size: .95rem; }
.end__alt a { font-size: .85rem; color: var(--brass); }

/* =============================== Pie =================================== */
.ft { background: var(--ink); padding: 3rem var(--pad) calc(var(--bar) + 2rem); border-top: 1px solid var(--line); }
.ft__in { display: grid; gap: 1.6rem; }
.ft__name { font-weight: 800; font-stretch: 84%; font-size: 1.15rem; letter-spacing: -.02em; }
.ft__nap { color: var(--muted); font-size: .88rem; margin-top: .5rem; line-height: 1.7; }
.ft__nap a { color: var(--brass); }
.ft__warn { color: rgba(224,180,103,.75); font-size: .76rem; margin-top: .8rem; max-width: 34ch; }
.ft__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.ft__legal a { font-size: .82rem; color: var(--muted); }
.ft__bottom { margin-top: 2rem; font-size: .72rem; color: rgba(242,240,236,.35); }

/* ============================ CTA persistente ========================== */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 55;
  padding: .5rem var(--pad);
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ink) 55%, rgba(8,8,11,0));
  transform: translateY(0); transition: transform .3s ease;
}
.callbar.is-hidden { transform: translateY(140%); }
.callbar__btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; background: var(--brass); color: #140f04;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em;
  text-decoration: none; border-radius: 2px;
}
.callbar__btn span {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: .75; font-weight: 700;
}
body { padding-bottom: 0; }

/* =============================== Overlay =============================== */
.ov { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; }
.ov__back { position: absolute; inset: 0; background: rgba(4,4,6,.8); backdrop-filter: blur(6px); }
.ov__panel {
  position: relative; width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--ink-2); border-top: 2px solid var(--brass);
  padding: 1rem var(--pad) calc(1.6rem + env(safe-area-inset-bottom));
  animation: up .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.ov__drag { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 1rem; }
.ov__x {
  position: absolute; top: .8rem; right: var(--pad);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(242,240,236,.1); border: 0; color: var(--paper); cursor: pointer;
}
.ov__panel h3 { font-size: 1.7rem; font-stretch: 82%; margin-bottom: .9rem; max-width: 18ch; }
.ov__body p { color: var(--muted); font-size: .93rem; margin-bottom: .8rem; }
.ov__body b { color: var(--paper); font-weight: 700; }
.ov__cta { margin-top: 1.2rem; }
.ov__cta .btn { width: 100%; }

/* =============================== Escritorio ============================= */
@media (min-width: 820px) {
  body { font-size: 17px; }
  .hud__brand { font-size: .74rem; }
  .hero__mid { width: 38%; right: 4%; top: 12%; }
  .hero__key { width: 62%; left: -6%; top: 52%; }
  .hero__type { bottom: 3.5rem; max-width: 60%; }
  .hero__cta .btn { flex: 0 0 auto; }
  .mech { padding-bottom: 3rem; }
  .mech__view { max-width: 760px; align-self: center; width: 100%; }
  .mech__labels li { font-size: .68rem; }
  .lock { max-width: 720px; margin: 0 auto; }
  .svc__panel { flex: 0 0 34vw; }
  .diag__opts { grid-template-columns: repeat(2, 1fr); }
  .comp { max-width: 760px; aspect-ratio: 16 / 10; }
  .bcn__in { max-width: 52rem; }
  .h24__in { max-width: 44rem; }
  .faq__list { columns: 2; column-gap: 3rem; }
  .faq details { break-inside: avoid; }
  .ft__in { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .callbar { left: auto; right: 1.5rem; bottom: 1.5rem; width: auto; padding: 0; background: none; }
  .callbar__btn { padding: 0 1.4rem; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
  .ov { align-items: center; justify-content: center; padding: 2rem; }
  .ov__panel { max-width: 620px; border: 1px solid var(--line); border-top: 2px solid var(--brass); }
}

/* ========================== Movimiento reducido ========================= */
/* No se desactiva la experiencia: se quitan los desplazamientos largos y se
   mantienen contenido, fotografías, jerarquía e interacciones. */
@media (prefers-reduced-motion: reduce) {
  .scene--hero, .scene--mech, .scene--bcn, .scene--h24, .scene--end { height: auto; }
  .stage { height: auto; min-height: calc(var(--svh) * 100); }
  .hero__hint, .h24__spark, .lock__grab::after { display: none; }
  .mech__labels li { opacity: 1; }
  .keyhole { display: none; }
  .end__door { display: none; }
  .end__light { opacity: .25; }
  .svc__img img { transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =============================== Legales =============================== */
.legal { background: var(--paper); color: var(--ink); padding: calc(5.5rem + env(safe-area-inset-top)) var(--pad) 4rem; }
.legal__in { max-width: 760px; margin: 0 auto; }
.legal__crumb { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(8,8,11,.5); margin-bottom: 1.4rem; }
.legal__crumb a { color: var(--brass-d); }
.legal h1 { font-size: clamp(2rem, 8vw, 3.4rem); font-stretch: 78%; text-transform: uppercase; }
.legal__updated { font-size: .8rem; color: rgba(8,8,11,.5); margin: .8rem 0 2.4rem; }
.legal h2 { font-size: 1.3rem; font-stretch: 88%; margin: 2.4rem 0 .7rem; }
.legal p, .legal li { color: rgba(8,8,11,.74); font-size: .93rem; margin-bottom: .8rem; }
.legal ul, .legal ol { padding-left: 1.2rem; list-style: disc; }
.legal__data { list-style: none; padding: 1.2rem 1.3rem; border: 1px solid rgba(8,8,11,.18); margin-bottom: 1.5rem; }
.legal__data li { display: grid; grid-template-columns: 11rem 1fr; gap: .8rem; margin-bottom: .5rem; }
.legal__data b { color: var(--ink); }
.legal__table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1rem 0 1.6rem; }
.legal__table th, .legal__table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid rgba(8,8,11,.14); vertical-align: top; }
.legal__table td { color: rgba(8,8,11,.7); }
.legal__back { margin-top: 2.5rem; background: var(--ink); color: var(--paper); }
.legal .hud { background: none; position: absolute; }
.legal-page .hud__brand span, .legal-page .hud__brand { color: var(--ink); }
.legal-page .hud__menu span { background: var(--ink); }
@media (max-width: 620px) { .legal__data li { grid-template-columns: 1fr; gap: 0; } }
