/* =========================================================
   A&L Auto Sales Pro LLC — sitio web (v2 · «De la subasta a tu garaje»)
   Oscuro de showroom: negro, cromo, y el azul y rojo del escudo.
   Patrones 21st.dev: Scroll Media Expansion, Sticky Scroll Reveal,
   Tracing Beam, Lamp, Card Spotlight.
   Base sin JS / movimiento reducido = todo estático y legible;
   la clase .anim (en <html>) activa el scroll cinematográfico.
   ========================================================= */

:root {
  --bg: #000;
  --bg-2: #07090d;
  --surface: #0d1118;
  --surface-2: #141b27;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);

  --text: #eef2f8;
  --muted: #9aa6b8;
  --dim: #6a7689;

  --blue: #2e74ff;
  --blue-2: #67a2ff;
  --red: #e0242e;
  --red-2: #ff4a53;
  --wa: #25d366;

  --chrome: linear-gradient(180deg, #ffffff 0%, #e9eef5 36%, #8f9aaa 52%, #dfe5ed 72%, #ffffff 100%);
  --flag: linear-gradient(90deg, var(--red) 0 33.3%, #ffffff 33.3% 66.6%, var(--blue) 66.6% 100%);

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 960px) { :root { --gutter: 40px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- tipografía compartida ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 13px/1.2 var(--font);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-2);
}
.eyebrow::before {
  content: ""; width: 30px; height: 3px; border-radius: 2px;
  background: var(--flag); flex: none;
}

h2 {
  font: italic 800 clamp(36px, 5.4vw, 64px)/.98 var(--font-display);
  text-transform: uppercase; letter-spacing: .005em;
  margin: 14px 0 0;
  text-wrap: balance;
}

.chrome {
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1.1 var(--font); letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ico-stroke, .ico-stroke use { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff3d47 0%, #d01822 100%);
  box-shadow: 0 14px 34px -14px rgba(224, 36, 46, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(224, 36, 46, .95), inset 0 1px 0 rgba(255, 255, 255, .28); }

.btn-ghost {
  color: var(--text);
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--blue-2); background: rgba(46, 116, 255, .12); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row-center { justify-content: center; }

/* ---------- encabezado ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { flex: none; display: block; }
.brand img { height: 40px; width: auto; }

.nav { display: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(0, 0, 0, .35);
}
.lang button {
  min-width: 38px; height: 30px; padding: 0 8px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 13px/1 var(--font); letter-spacing: .08em; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: #fff; color: #06080c; }
.lang button:not([aria-pressed="true"]):hover { color: var(--text); }

.btn-call { display: none; min-height: 42px; padding: 0 16px; font-size: 15px; border-color: var(--line-2); background: rgba(0, 0, 0, .35); }
.btn-call:hover { border-color: var(--blue-2); }
.btn-call .ico { width: 17px; height: 17px; color: var(--blue-2); }

.menu-toggle {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35);
  display: grid; place-content: center; gap: 4px; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-open { background: rgba(0, 0, 0, .97); }
  .nav-open .nav {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(0, 0, 0, .97);
    border-bottom: 1px solid var(--line);
  }
  .nav-open .nav a {
    padding: 16px 4px; border-bottom: 1px solid var(--line);
    font: italic 700 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  }
  .nav-open .nav a:last-child { border-bottom: 0; }
}

@media (min-width: 640px) {
  .brand img { height: 46px; }
  .btn-call { display: inline-flex; }
}

@media (min-width: 960px) {
  .nav { display: flex; gap: 30px; margin-left: 28px; }
  .nav a { position: relative; padding: 8px 0; font: 500 15px/1 var(--font); color: #c3ccd8; transition: color .2s; }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--blue-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav a:hover { color: #fff; }
  .nav a:hover::after { transform: scaleX(1); }
  .menu-toggle { display: none; }
}

/* =========================================================
   PORTADA — LA REVELACIÓN
   ========================================================= */

/* base estática: el auto descubierto, todo el texto visible */
.reveal-sticky {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 9vh;
  background: #000;
}
.reveal-stage { position: absolute; inset: 0; z-index: -1; }
.reveal-media { position: absolute; inset: 0; }
.reveal-media img, .reveal-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.rm-start, .rm-video { opacity: 0; }
.reveal-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .35) 38%, transparent 60%),
    linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 38%, transparent 62%);
}
.reveal-outline, .scroll-cue { display: none; }

.reveal-title {
  font: italic 900 clamp(46px, 8vw, 104px)/.9 var(--font-display);
  text-transform: uppercase; letter-spacing: -.005em;
  max-width: 1180px; width: 100%; margin: 0 auto;
}
.reveal-title span { display: block; }
.rt-2 { filter: drop-shadow(0 6px 24px rgba(103, 162, 255, .3)); padding-right: .06em; }
.reveal-eyebrow { order: -1; margin: 0 auto 18px; max-width: 1180px; width: 100%; }
.reveal-after { max-width: 1180px; width: 100%; margin: 20px auto 0; }
.lead { max-width: 520px; font-size: 18px; color: #d3dae5; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.reveal-after .cta-row { margin-top: 24px; }

/* --- con movimiento: escena fija mientras se scrollea --- */
.anim .reveal { height: 290vh; }
.anim .reveal-sticky {
  position: sticky; top: 0; height: 100svh; min-height: 0;
  display: block; padding: 0;
}
.anim .reveal-stage {
  z-index: 2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q50 -4 100 6 L100 60 Q100 95 50 120 Q0 95 0 60 Z'/%3E%3C/svg%3E") no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q50 -4 100 6 L100 60 Q100 95 50 120 Q0 95 0 60 Z'/%3E%3C/svg%3E") no-repeat;
  -webkit-mask-size: var(--sw, 360px) var(--sh, 432px);
  mask-size: var(--sw, 360px) var(--sh, 432px);
  -webkit-mask-position: var(--sx, 50%) var(--sy, 50%);
  mask-position: var(--sx, 50%) var(--sy, 50%);
}
/* al terminar la revelación, el auto se corre a la derecha y deja sitio al texto */
@media (min-aspect-ratio: 1/1) {
  .anim .reveal-media {
    transform: translateX(calc(var(--end, 0) * 15%)) scale(calc(1 - var(--end, 0) * .06));
    transform-origin: 50% 60%;
  }
}
.anim .rm-start { opacity: 1; }
.anim .rm-end { opacity: var(--m, 0); }
.anim .reveal-stage.has-video .rm-video { opacity: 1; }
.anim .reveal-stage.has-video .rm-start,
.anim .reveal-stage.has-video .rm-end { opacity: 0; }
.anim .reveal-shade { opacity: var(--end, 0); }

/* contorno cromado del escudo (crece con la máscara y se desvanece) */
.anim .reveal-outline {
  display: block; position: absolute; z-index: 3; pointer-events: none;
  left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh);
  overflow: visible; opacity: var(--oo, 1);
  filter: drop-shadow(0 0 14px rgba(103, 162, 255, .55)) drop-shadow(0 0 2px rgba(255, 255, 255, .6));
}
.reveal-outline path { fill: none; stroke: url(#chromeStroke); stroke-width: 3.5; }

/* titular gigante detrás del escudo: la ventana se lo «come» al crecer */
.anim .reveal-title { position: static; margin: 0; max-width: none; }
.anim .rt-1 {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: var(--t1y, 50%); transform: translateY(-50%) scale(var(--t1s, 1));
  text-align: center; padding: 0 var(--gutter);
  font-size: clamp(64px, 13.4vw, 236px); line-height: .8; letter-spacing: -.01em;
  color: #eef2f8; opacity: var(--t1o, 1);
}
.anim .rt-2 {
  position: absolute; z-index: 4; left: 0; right: 0;
  bottom: calc(9vh + var(--after-h, 160px) + 14px);
  max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  font-size: clamp(46px, 7.4vw, 112px);
  opacity: var(--end, 0); transform: translateY(calc((1 - var(--end, 0)) * 40px));
}
.anim .reveal-eyebrow {
  position: absolute; z-index: 4; top: calc(var(--header-h) + 22px); left: 50%;
  transform: translateX(-50%); width: auto; margin: 0; white-space: nowrap;
  opacity: var(--t1o, 1);
}
.anim .reveal-after {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 9vh;
  max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  opacity: var(--end, 0); transform: translateY(calc((1 - var(--end, 0)) * 30px));
  pointer-events: none;
}
.anim .reveal-sticky.is-done .reveal-after { pointer-events: auto; }

.anim .scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; z-index: 4; left: 50%; bottom: 3.5vh; transform: translateX(-50%);
  font: 600 12px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #c3ccd8;
  white-space: nowrap; text-align: center;
  opacity: var(--cue, 1);
}
.scroll-cue i {
  width: 22px; height: 34px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .5); position: relative;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* celular vertical: el cuadro 16:9 a lo ancho y fundido con el negro */
@media (max-aspect-ratio: 1/1) {
  .anim .reveal-media {
    inset: auto; left: 50%; top: var(--my, 42%);
    width: calc(var(--mw, 178) * 1vw); height: auto; aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
  .anim .rt-1 { font-size: clamp(58px, 19vw, 120px); }
  .anim .rt-2 { font-size: clamp(42px, 12.5vw, 70px); }
  .anim .reveal-after .lead { font-size: 16px; }
  .anim .reveal-after .cta-row .btn { flex: 1 1 100%; }
  .anim .reveal-eyebrow { white-space: normal; text-align: center; width: calc(100% - 2 * var(--gutter)); justify-content: center; }
}

/* =========================================================
   CÓMO FUNCIONA — recorrido por el lote (Sticky Scroll Reveal)
   ========================================================= */

.journey { position: relative; background: #000; }
.journey-sticky { position: relative; overflow: hidden; isolation: isolate; }
.journey-media { position: absolute; inset: 0; z-index: -1; }
.journey-media img, .journey-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jm-video { opacity: 0; }
.journey-media.has-video .jm-video { opacity: 1; }
.journey-media.has-video .jm-img { opacity: 0; }
.journey-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .6) 38%, rgba(0, 0, 0, .15) 70%, rgba(0, 0, 0, .3) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, .75) 0%, transparent 25%);
}

/* base: los 4 pasos listados */
.journey-inner { position: relative; padding: 96px var(--gutter); }
.journey-steps { display: grid; gap: 34px; margin-top: 40px; max-width: 560px; }
.jnum {
  display: block;
  font: italic 900 72px/.85 var(--font-display);
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jstep h3 {
  margin-top: 12px;
  font: italic 800 clamp(30px, 3.6vw, 46px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em;
}
.jstep p { margin-top: 12px; font-size: 18px; color: #d3dae5; max-width: 470px; }
.journey-rail { display: none; }

/* con movimiento: escena fija, un paso a la vez */
.anim .journey { height: 440vh; }
.anim .journey-sticky { position: sticky; top: 0; height: 100svh; }
.anim .jm-img { transform: scale(var(--kb, 1)); transform-origin: 50% 46%; will-change: transform; }
.anim .journey-inner {
  height: 100%; padding-top: calc(var(--header-h) + 34px); padding-bottom: 8vh;
  display: flex; flex-direction: column;
}
.anim .journey-head h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 560px; }
.anim .journey-steps { position: relative; flex: 1; margin-top: 0; }
.anim .jstep {
  position: absolute; left: 0; right: 0; top: 50%;
  opacity: var(--o, 0);
  transform: translateY(calc(-50% + (1 - var(--o, 0)) * var(--dir, 1) * 36px));
}
.anim .jnum { font-size: clamp(96px, 11vw, 160px); }
.anim .jstep h3 { font-size: clamp(36px, 4.6vw, 64px); }

.anim .journey-rail {
  display: block; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 3px; height: min(46vh, 360px); border-radius: 3px; background: rgba(255, 255, 255, .12);
}
.rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; border-radius: inherit;
  height: calc(var(--q, 0) * 100%);
  background: linear-gradient(180deg, var(--blue-2), var(--blue) 60%, var(--red));
  box-shadow: 0 0 12px rgba(103, 162, 255, .7);
}
.journey-rail i {
  position: absolute; left: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: #0b0f16; border: 2px solid rgba(255, 255, 255, .35);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.journey-rail i:nth-of-type(1) { top: 12.5%; } .journey-rail i:nth-of-type(2) { top: 37.5%; }
.journey-rail i:nth-of-type(3) { top: 62.5%; } .journey-rail i:nth-of-type(4) { top: 87.5%; }
.journey-rail i.on { background: #fff; border-color: #fff; box-shadow: 0 0 14px rgba(103, 162, 255, .9); }

@media (max-width: 759px) {
  .journey-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .2) 70%),
      linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, transparent 30%);
  }
  .anim .jstep { top: auto; bottom: 0; transform: translateY(calc((1 - var(--o, 0)) * var(--dir, 1) * 30px)); }
  .anim .journey-rail { right: 12px; top: auto; bottom: 9vh; height: 120px; transform: none; }
  .anim .jstep p { padding-right: 24px; }
}

/* ---------- secciones ---------- */

.section { padding: 88px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(46, 116, 255, .10), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 600px; }

@media (min-width: 960px) {
  .section { padding: 124px 0; }
  .section-head { margin-bottom: 60px; }
}

/* =========================================================
   SUBASTAS — mapa con rutas que se trazan (Tracing Beam)
   ========================================================= */

.auctions-grid { display: grid; gap: 40px; align-items: center; }
.auctions-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; }

.states { margin-top: 28px; border-top: 1px solid var(--line); }
.states li {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 14px 16px 18px;
  border-bottom: 1px solid var(--line);
  cursor: default; outline: none;
  transition: background-color .25s;
}
.states li::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: var(--blue-2); transform: scaleY(0); transition: transform .3s var(--ease);
}
.states li:hover, .states li:focus-visible, .states li.is-on { background: rgba(103, 162, 255, .06); }
.states li:hover::before, .states li:focus-visible::before, .states li.is-on::before { transform: scaleY(1); }
.state-name { font: italic 700 26px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.state-cities { color: var(--muted); font-size: 16px; }
.note { margin-top: 18px; color: var(--dim); font-size: 15px; font-style: italic; }

.map {
  margin: 0; position: relative;
  border: 1px solid var(--line); border-radius: 24px;
  background:
    radial-gradient(circle at 45% 30%, rgba(46, 116, 255, .14), transparent 60%),
    linear-gradient(180deg, #0c111a, #080b11);
  padding: 10px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.map svg { width: 100%; height: auto; max-height: 740px; margin: 0 auto; }

.grat line { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.grat text { fill: var(--dim); font: 500 12px var(--font); letter-spacing: .06em; opacity: .7; }
.state-label text { fill: rgba(255, 255, 255, .11); font: italic 800 24px var(--font-display); letter-spacing: .2em; }

.route {
  fill: none; stroke: var(--blue-2); stroke-width: 2.4; stroke-linecap: round;
  transition: opacity .3s, stroke .3s;
}
.city { transition: opacity .3s; }
.city .dot { fill: #fff; stroke: var(--blue); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
.city .pulse {
  fill: none; stroke: var(--blue-2); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: pulse 2.6s var(--ease) infinite;
}
.city text {
  fill: var(--text); font: 600 20px var(--font);
  paint-order: stroke; stroke: #080b11; stroke-width: 5px; stroke-linejoin: round;
  transition: opacity .4s;
}
.city.hub .dot { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
.city.hub .pulse { stroke: var(--red-2); }
.city.hub text { font: italic 800 25px var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* con movimiento: la ciudad aparece cuando su ruta llega */
.anim .city:not(.is-on) .dot { transform: scale(0); }
.anim .city:not(.is-on) .pulse { animation: none; opacity: 0; }
.anim .city:not(.is-on) text { opacity: 0; }

.legend text { fill: var(--muted); font: 500 16px var(--font); }
.legend-hub { fill: var(--red); stroke: #fff; stroke-width: 2; }
.legend-dot { fill: #fff; stroke: var(--blue); stroke-width: 2; }

#map.is-filtering .city:not(.is-lit):not(.hub) { opacity: .18; }
#map.is-filtering .route:not(.is-lit) { opacity: .1; }
#map.is-filtering .route.is-lit { stroke: #fff; }

@media (min-width: 960px) {
  .auctions-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .map { padding: 18px; }
}

/* =========================================================
   NOSOTROS — tarjetas con luz que sigue al cursor (Card Spotlight)
   ========================================================= */

.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -40%), rgba(140, 185, 255, .18), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }

.mv-grid { display: grid; gap: 16px; }
.mv-card {
  padding: 32px 28px;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface);
}
.mv-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 0% 0%, var(--tint), transparent 60%);
}
.mv-mission { --tint: rgba(46, 116, 255, .16); --accent: var(--blue-2); }
.mv-vision { --tint: rgba(224, 36, 46, .13); --accent: var(--red-2); }
.mv-card h3 {
  position: relative; display: flex; align-items: center; gap: 14px;
  font: italic 800 30px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
}
.mv-card h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .6; }
.mv-card p { position: relative; margin-top: 18px; font-size: 19px; line-height: 1.65; color: #cfd6e1; }

.values { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.values li {
  padding: 22px 20px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
}
.value-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(180deg, #1b2433, #0f141d);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.value-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--blue-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.values h3 { margin-top: 16px; font: 700 18px/1.25 var(--font); }
.values p { margin-top: 6px; font-size: 15px; color: var(--muted); }

@media (min-width: 860px) {
  .mv-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .mv-card { padding: 40px 38px; }
  .values { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
}
@media (max-width: 420px) { .values { grid-template-columns: 1fr; } }

/* =========================================================
   LLAMADO — un faro enciende el titular (Lamp)
   ========================================================= */

.lamp {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 90px 0 110px; text-align: center; background: #000;
  border-top: 1px solid var(--line);
}
.lamp-light { position: relative; height: 300px; }
.beam {
  position: absolute; top: 0; height: 300px; width: min(46vw, 560px);
  opacity: .95;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  transition: transform 1.4s var(--ease) .15s, opacity 1.2s var(--ease) .15s;
}
.beam-l {
  right: 50%; transform-origin: 100% 0;
  background: conic-gradient(from 180deg at 100% 0%, rgba(170, 205, 255, .85) 0deg, rgba(130, 180, 255, .7) 28deg, rgba(103, 162, 255, .32) 46deg, transparent 56deg, transparent 360deg);
}
.beam-r {
  left: 50%; transform-origin: 0 0;
  background: conic-gradient(from 124deg at 0% 0%, transparent 0deg, rgba(103, 162, 255, .32) 10deg, rgba(130, 180, 255, .7) 28deg, rgba(170, 205, 255, .85) 56deg, transparent 56.5deg, transparent 360deg);
}
.lamp-line {
  position: absolute; top: 0; left: 50%; height: 3px; width: 300px;
  transform: translateX(-50%); border-radius: 3px;
  background: #e8f0ff;
  box-shadow: 0 0 18px 4px rgba(103, 162, 255, .85), 0 0 60px 10px rgba(46, 116, 255, .5);
  transition: width 1.4s var(--ease) .15s;
}
.lamp-glow {
  position: absolute; top: -50px; left: 50%; width: min(80vw, 520px); height: 120px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(46, 116, 255, .5); filter: blur(46px);
}
.lamp-copy { position: relative; margin-top: -150px; }
.lamp-copy h2 {
  margin: 0 auto; max-width: 860px;
  font-size: clamp(40px, 6.4vw, 84px);
  background: linear-gradient(180deg, #ffffff 20%, #9fb2cc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(103, 162, 255, .35));
}
.lamp-copy p { margin: 18px auto 32px; max-width: 560px; color: #c2cbd8; font-size: 18px; }

/* encendido al entrar en pantalla */
.js .lamp:not(.is-visible) .beam { transform: scaleX(.35); opacity: .2; }
.js .lamp:not(.is-visible) .lamp-line { width: 110px; }
.js .lamp[data-reveal] { opacity: 1; transform: none; }

/* ---------- contacto ---------- */

.contact-grid { display: grid; gap: 36px; align-items: stretch; }
.contact-info > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 460px; }

.contact-list { display: grid; gap: 12px; margin-top: 30px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease), background-color .25s;
}
.contact-item:hover { border-color: rgba(103, 162, 255, .4); background: var(--surface-2); transform: translateX(4px); }
.contact-item small { display: block; font: 600 12px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item strong { display: block; margin-top: 3px; font: 600 19px/1.3 var(--font); }
.contact-item em { display: block; font-style: normal; color: var(--muted); font-size: 16px; }

.ci-ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; }
.ci-ico svg { width: 24px; height: 24px; }
.ci-wa { background: rgba(37, 211, 102, .14); color: var(--wa); }
.ci-wa svg { fill: currentColor; }
.ci-phone { background: rgba(46, 116, 255, .16); color: var(--blue-2); }
.ci-pin { background: rgba(224, 36, 46, .16); color: var(--red-2); }

.map-embed {
  position: relative; min-height: 360px;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--surface);
}
.map-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95) contrast(.92);
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .map-embed { min-height: 460px; }
}

/* ---------- pie ---------- */

.site-footer { padding: 40px 0 110px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { display: grid; gap: 18px; justify-items: start; }
.footer-logo { width: 74px; height: auto; }
.footer-info { display: grid; gap: 2px; color: var(--muted); font-size: 15px; }
.footer-info strong { color: var(--text); font-size: 16px; }
.footer-info a:hover { color: var(--text); }
.footer-copy { color: var(--dim); font-size: 14px; }

@media (min-width: 860px) {
  .site-footer { padding-bottom: 44px; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6), 0 4px 12px rgba(0, 0, 0, .4);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--wa); animation: ring 2.8s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.07); }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- aparición al hacer scroll ---------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.values li:nth-child(2) { transition-delay: .08s; }
.values li:nth-child(3) { transition-delay: .16s; }
.values li:nth-child(4) { transition-delay: .24s; }

/* ---------- utilidades ---------- */

[hidden] { display: none !important; }

.flecha {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--text); font: 400 30px/1 var(--font);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.flecha:hover { border-color: var(--blue-2); background: rgba(46, 116, 255, .14); }
.flecha:active { transform: scale(.94); }

/* =========================================================
   INTRO — el contorno del escudo se dibuja en cromo (1.ª visita)
   ========================================================= */

.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200; background: #000;
  animation: introFuera .7s ease 1.9s forwards;
}
.intro > * { grid-area: 1 / 1; }
.intro-escudo { width: min(46vw, 230px); height: auto; overflow: visible; filter: drop-shadow(0 0 16px rgba(103, 162, 255, .65)); }
.intro-escudo path {
  fill: none; stroke: url(#chromeStroke); stroke-width: 1.4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: introTrazo 1.1s cubic-bezier(.65, 0, .35, 1) .15s forwards, introApaga .5s ease 1.25s forwards;
}
.intro-logo {
  width: min(56vw, 300px); height: auto; opacity: 0; transform: scale(.94);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .8));
  animation: introLogo .6s cubic-bezier(.2, .7, .2, 1) 1s forwards;
}
@keyframes introTrazo { to { stroke-dashoffset: 0; } }
@keyframes introApaga { to { opacity: 0; } }
@keyframes introLogo { to { opacity: 1; transform: none; } }
@keyframes introFuera { to { opacity: 0; visibility: hidden; } }

/* =========================================================
   COMPRADOS RECIENTEMENTE — carrusel + ficha ampliada (Expandable Cards)
   ========================================================= */

.recientes { overflow: hidden; }
.recientes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.recientes-head .section-head { margin-bottom: 36px; }
.pista-flechas { display: none; gap: 10px; margin-bottom: 44px; }
@media (min-width: 960px) { .pista-flechas { display: flex; } }

.autos-pista {
  --lado: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--lado);
  padding: 6px var(--lado) 34px; scrollbar-width: none;
}
.autos-pista::-webkit-scrollbar { display: none; }

.auto-card {
  position: relative; flex: 0 0 min(80vw, 360px); aspect-ratio: 4 / 5; scroll-snap-align: start;
  padding: 0; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: var(--text);
  border-radius: 24px; border: 1px solid var(--line-2); background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.auto-card:hover { transform: translateY(-6px); border-color: rgba(103, 162, 255, .55); box-shadow: 0 30px 60px -30px rgba(46, 116, 255, .55); }
.auto-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.auto-card:hover img { transform: scale(1.05); }
.auto-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, transparent 26%, transparent 42%, rgba(0, 0, 0, .94) 100%);
}
.auto-chip {
  position: absolute; z-index: 1; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  font: 600 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.auto-cuerpo { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 4px; }
.auto-nombre { font: italic 800 30px/1 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.auto-meta { color: #c3ccd8; font-size: 15px; }
.auto-precio {
  margin-top: 10px; font: italic 800 40px/1 var(--font-display);
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auto-precio-et, .ad-precio-et { font: 600 11px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); }
.auto-ver { margin-top: 12px; font-weight: 600; font-size: 15px; opacity: .85; }

.auto-dialogo, .pedido { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; overflow: visible; }
.auto-dialogo { width: min(96vw, 1060px); }
.auto-dialogo::backdrop, .pedido::backdrop { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ad-caja {
  position: relative; display: grid; max-height: 92svh; overflow-y: auto;
  border-radius: 26px; border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.auto-dialogo[open] .ad-caja, .pedido[open] .pedido-caja { animation: dialogoEntra .45s var(--ease); }
@keyframes dialogoEntra { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@media (min-width: 860px) { .ad-caja { grid-template-columns: 1.45fr 1fr; } }
.ad-media { position: relative; background: #000; }
.ad-galeria { display: flex; height: 100%; min-height: 0; aspect-ratio: 4 / 3; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ad-galeria::-webkit-scrollbar { display: none; }
.ad-galeria img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.ad-contador { position: absolute; right: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .65); font-size: 13px; font-weight: 600; }
.ad-contador:empty, .ad-precio-et:empty, .ad-nota:empty { display: none; }
.ad-info { padding: 28px 26px; display: grid; align-content: start; gap: 12px; }
.ad-nombre { font: italic 800 clamp(30px, 4vw, 44px)/1 var(--font-display); text-transform: uppercase; padding-right: 44px; }
.ad-datos { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-datos li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: #c3ccd8; }
.ad-precio {
  margin-top: 8px; font: italic 800 52px/1 var(--font-display);
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ad-nota { color: var(--muted); }
.ad-cta { margin-top: 10px; }
.ad-cerrar {
  position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* =========================================================
   LO QUE DICEN LOS CLIENTES (Animated Testimonials)
   ========================================================= */

.testimonios { display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) { .testimonios { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.t-fotos { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
.t-foto {
  position: absolute; inset: 0; overflow: hidden; border-radius: 28px;
  border: 1px solid var(--line-2); background: linear-gradient(160deg, #1b2433, #0d1118);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  transform: rotate(var(--giro, 0deg)) scale(.9); opacity: .5;
  transition: transform .6s var(--ease), opacity .6s;
}
.t-foto.activa { transform: none; opacity: 1; }
.t-foto img { width: 100%; height: 100%; object-fit: cover; }
.t-iniciales {
  display: grid; place-items: center; height: 100%;
  font: italic 900 130px/1 var(--font-display);
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.testimonios blockquote { margin: 0; }
.t-cita { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; font-weight: 500; color: #e6ebf2; }
.t-cita::before { content: "“"; display: block; height: .5em; font: italic 900 96px/1 var(--font-display); color: var(--blue-2); }
.t-cita span { display: inline-block; white-space: pre; animation: palabra .5s var(--ease) both; animation-delay: calc(var(--k, 0) * 28ms); }
@keyframes palabra { from { opacity: 0; filter: blur(8px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.t-nombre { margin-top: 26px; font: italic 800 26px/1 var(--font-display); text-transform: uppercase; }
.t-meta { margin-top: 6px; color: var(--muted); }
.t-meta:empty { display: none; }
.t-nav { display: flex; gap: 10px; margin-top: 28px; }

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */

.faq-grid { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
}
.faq-wa { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.faq-lista details { border-bottom: 1px solid var(--line); }
.faq-lista details:first-child { border-top: 1px solid var(--line); }
.faq-lista summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0; font: 600 20px/1.3 var(--font); color: #e6ebf2;
}
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--blue-2); border-bottom: 2px solid var(--blue-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq-lista details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-lista summary:hover { color: #fff; }
.faq-lista details p { padding: 0 40px 24px 0; color: #c3ccd8; font-size: 17px; }
.faq-lista details[open] p { animation: palabra .4s var(--ease); }

/* =========================================================
   MAPA A PEDIDO, PIE, AVISO DE COOKIES
   ========================================================= */

.mapa-previa {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px;
  padding: 24px; text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(46, 116, 255, .2), transparent 58%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .045) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .045) 39px 40px),
    #0a0e15;
}
.mapa-previa strong { margin-top: 10px; font-size: 20px; }
.mapa-previa > span:not(.ci-ico) { color: var(--muted); }
.mapa-previa .btn { margin-top: 16px; }
.mapa-previa small { margin-top: 8px; color: var(--dim); font-size: 13px; }

.footer-der { display: grid; gap: 10px; justify-items: start; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.footer-legal a:hover { color: var(--text); }
@media (min-width: 860px) { .footer-der { justify-items: end; text-align: right; } }

.aviso-cookies {
  position: fixed; z-index: 60; left: 16px; right: 92px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 440px; padding: 18px 18px 16px; border-radius: 20px;
  background: rgba(13, 17, 24, .88); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
  font-size: 14.5px; line-height: 1.5; color: #d3dae5;
  animation: avisoEntra .5s var(--ease) 1s both; transition: opacity .35s, transform .35s;
}
.aviso-cookies.saliendo { opacity: 0; transform: translateY(20px); }
.aviso-botones { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; }
.aviso-mas { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.aviso-ok { min-height: 42px; padding: 0 18px; font-size: 15px; }
@keyframes avisoEntra { from { opacity: 0; transform: translateY(20px); } }
@media (min-width: 640px) { .aviso-cookies { right: auto; } }

/* =========================================================
   ARMADOR DE PEDIDOS
   ========================================================= */

.pedido { width: min(94vw, 560px); }
.pedido-caja {
  position: relative; overflow: hidden; padding: 22px 22px 18px; border-radius: 26px;
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(46, 116, 255, .22), transparent 60%), var(--surface);
}
.pedido-top { display: flex; align-items: center; gap: 12px; }
.pedido-paso { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.pedido-cerrar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 24px; line-height: 1;
}
.pedido-barra { height: 3px; margin: 16px 0 22px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.pedido-barra span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--red)); transition: width .45s var(--ease); }
.paso { min-width: 0; margin: 0; padding: 0; border: 0; }
.paso:not([hidden]) { animation: pasoEntra .35s var(--ease); }
@keyframes pasoEntra { from { opacity: 0; transform: translateX(18px); } }
.paso legend { padding: 0; margin-bottom: 18px; font: italic 800 clamp(28px, 6vw, 36px)/1.02 var(--font-display); text-transform: uppercase; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opciones.una { grid-template-columns: 1fr; }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opciones span {
  display: flex; align-items: center; min-height: 58px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-weight: 600; font-size: 17px; transition: border-color .2s, background-color .2s;
}
.opciones label:hover span { border-color: rgba(103, 162, 255, .6); }
.opciones input:checked + span { border-color: var(--blue-2); background: rgba(46, 116, 255, .2); }
.opciones input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.campo { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 15px; color: #c3ccd8; }
.campo input {
  min-height: 52px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #05070b; color: var(--text); font: 400 17px var(--font);
}
.campo input:focus { outline: none; border-color: var(--blue-2); }
.pedido-pie { display: flex; gap: 10px; margin-top: 20px; }
.pedido-pie:has(> :not([hidden])) { min-height: 52px; }
#pedido-enviar { flex: 1; }

/* =========================================================
   PÁGINAS LEGALES (términos y privacidad)
   ========================================================= */

.legal { padding: calc(var(--header-h) + 48px) 0 90px; }
.legal article { max-width: 760px; }
html[lang="es"] .legal article[lang="en"], html:not([lang="es"]) .legal article[lang="es"] { display: none; }
.legal h1 { font: italic 800 clamp(40px, 6vw, 64px)/1 var(--font-display); text-transform: uppercase; }
.legal .fecha { margin: 14px 0 34px; color: var(--muted); }
.legal h2 { margin: 36px 0 10px; font-size: clamp(24px, 3vw, 30px); }
.legal p, .legal li { color: #c9d1dd; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.legal a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
