/* Alquila Car — identidad "Nocturno de conductor".
   La página vive en el mundo del conductor de plataformas: mapa nocturno,
   ruta, tarifas. Tokens acá; la ruta-firma la dibuja js/effects.js. */
/* Fuentes: cargadas con <link> + preconnect desde index.html (evita el bloqueo de @import). */

:root {
  color-scheme: light;
  /* modo día (default): hormigón cálido — claro sin ser blanco, con el
     rojo/azul/blanco de la marca encima */
  --color-bg: #e9e7e1;
  --color-surface: #f7f6f2;
  --color-text: #10141b;
  --color-muted: #5f5c55;
  --color-divider: #d0cdc4;

  --color-accent: #ec3013;
  --color-accent-strong: #c9250c;
  --color-accent-dim: #f5ddd4;
  --color-senal: #2b3a9b;
  --color-senal-dim: #dfe2f0;

  --color-online: #17804a;
  --color-online-dim: #d3e9da;
  --color-espera: #965d03;
  --color-espera-dim: #f2e4c6;

  --nav-bg: rgba(233, 231, 225, 0.9);
  --placeholder: #a29f95;
  --foto-bg: #dcd9d1;
  --mapa-filter: grayscale(1) contrast(1.05);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Chivo", system-ui, sans-serif;
  --font-data: "Chivo Mono", ui-monospace, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-md: 4px;

  --shadow-lg: 0 16px 40px rgba(16, 20, 27, 0.18);
}

/* modo nocturno: el mapa del conductor */
[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #10141b;          /* asfalto */
  --color-surface: #171d27;     /* manzana */
  --color-text: #edf0f5;        /* tiza */
  --color-muted: #8a94a6;       /* niebla */
  --color-divider: #232c3a;     /* calle */

  --color-accent: #ef3418;      /* ruta */
  --color-accent-strong: #ff6a4d;
  --color-accent-dim: #391109;
  --color-senal: #3c68e0;
  --color-senal-dim: #101c3d;

  --color-online: #2fbf71;
  --color-online-dim: #0d2a1c;
  --color-espera: #f5a623;
  --color-espera-dim: #33230a;

  --nav-bg: rgba(16, 20, 27, 0.88);
  --placeholder: #5b6475;
  --foto-bg: #1c2431;
  --mapa-filter: invert(0.91) hue-rotate(180deg) grayscale(0.55) brightness(0.9);

  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

a, button, summary, .input { touch-action: manipulation; }
html { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  padding: 10px 16px;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-data); font-size: 13px;
}
.skip-link:focus-visible { left: 0; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0;
}

a { color: var(--color-accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--color-text); }
img { display: block; max-width: 100%; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-strong); outline-offset: 2px; }
::selection { background: rgba(239, 52, 24, 0.4); }

/* — layout — */
.container { max-width: 1200px; margin: 0 auto; padding-inline: 48px; }

.section { padding-block: 88px; position: relative; }

.hr { height: 1px; border: 0; margin: 0; background: var(--color-divider); }

/* Parada de ruta: cada sección es un punto del recorrido.
   Azul señal + pin rojo sobre blanco: los tres colores de la marca. */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-senal);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 11px; height: 11px; border-radius: 50%;
  border: 3px solid var(--color-accent);
  background: var(--color-bg);
  flex: none;
}

.section-title {
  font-size: clamp(38px, 4.6vw, 64px);
  margin-bottom: 16px;
  max-width: 16ch;
}

.section-intro {
  font-size: 15.5px;
  line-height: 28px;
  color: var(--color-muted);
  max-width: 52ch;
  margin: 0 0 44px;
}

/* — botones — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 16px; line-height: 1.1; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 12px 20px 13px;
  border-radius: var(--radius-md);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: #ff4a2b; color: #fff; }
.btn-primary:active { background: #c92812; }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: var(--color-surface); border-color: var(--color-muted); color: var(--color-text); }
.btn-ghost { color: var(--color-accent-strong); padding-inline: var(--space-2); }
.btn-ghost:hover { background: rgba(239, 52, 24, 0.12); color: var(--color-accent-strong); }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — formularios — */
.field > label {
  display: block;
  font-family: var(--font-data); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--color-muted);
}
.input {
  width: 100%; min-height: 42px; padding: 8px 12px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: var(--color-muted); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
select.input { appearance: none; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.card-kicker {
  font-family: var(--font-data); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent-strong);
}
.card-title { font-size: 26px; }

/* — tags: estados de app — */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-data); font-size: 11px;
  letter-spacing: 0.04em; padding: 4px 10px;
  border-radius: 999px;
}
.tag-online { background: var(--color-online-dim); color: var(--color-online); }
.tag-online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-online); }
.tag-espera { background: var(--color-espera-dim); color: var(--color-espera); }
.tag-espera::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-espera); }
.tag-off { background: var(--color-surface); color: var(--color-muted); border: 1px solid var(--color-divider); }
.tag-neutral { background: var(--color-bg); color: var(--color-muted); border: 1px solid var(--color-divider); }
.tag-eco { background: var(--color-senal-dim); color: var(--color-senal); }
[data-theme="dark"] .tag-eco { color: #7f9ff0; }

/* — navegación — */
.nav {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  padding: 10px var(--space-4) 16px;
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
}
/* franja tricolor: rojo, blanco y azul — la marca país bajo el nav */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(
    to bottom,
    var(--color-accent) 0 33.3%,
    var(--color-surface) 33.3% 66.6%,
    var(--color-senal) 66.6% 100%
  );
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 20px; margin-right: auto;
}
/* El logo es una calcomanía: chip blanco, como sticker en el parabrisas. */
.nav-brand img {
  height: 40px; width: 40px; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 2px;
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  cursor: pointer;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-muted); }
.theme-toggle .icon-sol { display: none; }
[data-theme="dark"] .theme-toggle .icon-luna { display: none; }
[data-theme="dark"] .theme-toggle .icon-sol { display: block; }

.nav a { color: var(--color-muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--color-text); }
.nav a.btn-primary { color: #fff; font-size: 14px; }
.nav a.btn-primary:hover { color: #fff; }

/* — hero: el mapa donde arranca el viaje — */
.hero { position: relative; overflow: hidden; }
.hero-content { position: relative; padding-block: 110px 90px; }

/* Banner: el frente del taller con la flota, fundido al fondo para que el
   titular mande. El overlay usa el color de tema, así sirve en claro y oscuro. */
.hero-banner { position: absolute; inset: 0; overflow: hidden; }
.hero-banner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
  transform: translateY(calc(var(--hero-shift, 0px) * 0.5)) scale(1.08);
}
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      var(--color-bg) 8%,
      color-mix(in srgb, var(--color-bg) 82%, transparent) 48%,
      color-mix(in srgb, var(--color-bg) 40%, transparent) 100%),
    linear-gradient(to top,
      var(--color-bg) 2%,
      color-mix(in srgb, var(--color-bg) 55%, transparent) 26%,
      transparent 55%);
}

/* Retícula de calles: se enciende alrededor del cursor y deriva con el scroll. */
.hero-bg {
  position: absolute; inset: -80px 0;
  background-image:
    linear-gradient(var(--color-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  transform: translateY(var(--hero-shift, 0px));
  -webkit-mask-image: radial-gradient(560px circle at var(--mx, 74%) var(--my, 34%), black 0%, transparent 74%);
  mask-image: radial-gradient(560px circle at var(--mx, 74%) var(--my, 34%), black 0%, transparent 74%);
}

/* El origen del viaje: pin + etiqueta mono sobre el titular. */
.hero-origen {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-data); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 26px;
}
.hero-origen::before {
  content: "";
  width: 13px; height: 13px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--color-accent);
  flex: none;
}
.hero-origen strong { color: var(--color-text); font-weight: 600; }

.hero h1 {
  font-size: clamp(46px, 6.2vw, 92px);
  letter-spacing: 0.01em;
  margin: 0 0 30px;
  max-width: 19ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line-inner { display: block; }
.hero h1 .accent { color: var(--color-accent); }

.hero .hero-lead {
  font-size: 17px; line-height: 28px; max-width: 56ch;
  margin: 0 0 32px; color: var(--color-muted);
}
.hero .hero-lead strong { color: var(--color-accent-strong); font-weight: 700; }
.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* — marquee vial — */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-divider);
  padding-block: 12px;
  background: var(--color-surface);
}
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-seg {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap; color: var(--color-muted);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* — cifras — */
.stats { padding-block: 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.stat-num {
  font-family: var(--font-data); font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 30px; line-height: 1; color: var(--color-senal); margin: 0;
  white-space: nowrap;
}
[data-theme="dark"] .stat-num { color: #7f9ff0; }
.stat-label {
  font-family: var(--font-data); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-muted); margin: 12px 0 0;
}

/* — vehículos: cada card es una tarifa de viaje — */
.veh-filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filtro-chip {
  cursor: pointer;
  font-family: var(--font-data); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid var(--color-divider); border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filtro-chip:hover { color: var(--color-text); border-color: var(--color-muted); }
.filtro-chip.on { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.veh-card { padding: 0; overflow: hidden; }
.veh-foto {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--foto-bg);
  display: grid; place-items: center;
}
.veh-foto img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.veh-foto .placeholder-label {
  font-family: var(--font-data); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--placeholder); text-align: center; padding: var(--space-3);
}
.veh-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.veh-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.veh-head h3 { font-size: 30px; }
.veh-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.veh-datos {
  display: grid; grid-template-columns: 1fr auto; gap: 9px 16px;
  border-top: 1px dashed var(--color-divider); padding-top: 14px;
  font-size: 13.5px; line-height: 22px;
}
.veh-datos span { color: var(--color-muted); }
.veh-datos strong {
  text-align: right; font-weight: 600;
  font-family: var(--font-data); font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.veh-cta { margin-top: auto; }

/* — planes — */
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.plan-card { gap: 14px; padding: 24px; }
.plan-card ul {
  margin: 0; padding-left: 20px; font-size: 15px; line-height: 26px;
  color: var(--color-muted); display: grid; gap: 8px;
}
.plan-card ul li::marker { color: var(--color-accent); }

/* — requisitos — */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; }
.req-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: req; }
.req-list li {
  display: flex; gap: 16px; align-items: baseline; padding: 15px 0;
  border-bottom: 1px solid var(--color-divider);
}
.req-num {
  font-family: var(--font-data); font-size: 13px;
  color: var(--color-accent-strong); min-width: 30px;
}
.req-texto { font-size: 15.5px; line-height: 26px; }

/* — solicitud — */
.solicitud {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}
.solicitud .input { background: var(--color-bg); }
.solicitud-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-nota { font-size: 13px; line-height: 20px; color: var(--color-muted); margin: 0; }
.horario-nota {
  font-family: var(--font-data); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-muted); margin: 0;
}

/* — nosotros — */
.nosotros-foto {
  margin: 48px 0 0;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.nosotros-foto img {
  width: 100%; height: auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nosotros-foto:hover img { transform: scale(1.04); }

.plan-foto {
  margin: -24px -24px 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.plan-foto img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.plan-card:hover .plan-foto img { transform: scale(1.06); }
.plan-card::before { z-index: 1; }

.valor-item { border-left: 2px solid var(--color-divider); padding-left: 20px; }
.valor-item h3 { font-size: 22px; margin-bottom: 8px; }
.valor-item p { font-size: 15px; line-height: 26px; color: var(--color-muted); margin: 0; }

/* — faq — */
.faq-list { max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--color-divider); padding: 4px 0; }
.faq-list summary {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 19px; line-height: 26px; padding: 15px 0; cursor: pointer;
  transition: color 0.15s ease;
}
.faq-list summary:hover { color: var(--color-accent-strong); }
.faq-list details p {
  font-size: 15px; line-height: 26px; color: var(--color-muted);
  margin: 0 0 18px; max-width: 60ch;
}

/* — contacto — */
.contacto-datos { display: grid; gap: 14px; font-size: 15.5px; line-height: 26px; }
.contacto-datos p { margin: 0; }
.contacto-datos strong { color: var(--color-text); }
.mapa {
  border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden;
  filter: grayscale(1) contrast(1.08);
}
.mapa iframe {
  width: 100%; height: 340px; border: 0; display: block;
  /* el embed claro de OSM, invertido a nocturno */
  filter: invert(0.91) hue-rotate(180deg) grayscale(0.55) brightness(0.9);
}

/* — cierre: el destino del viaje — */
.cierre { background: var(--color-accent); color: #fff; position: relative; overflow: hidden; }
.cierre::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,0.22) 0 2px, transparent 2px 26px);
  animation: stripes 30s linear infinite;
}
.cierre .container { position: relative; padding-block: 96px; }
.cierre-destino {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-data); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
}
.cierre-destino::before {
  content: "";
  width: 13px; height: 13px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #fff;
  flex: none;
}
.cierre h2 {
  font-size: clamp(44px, 6.4vw, 92px);
  margin: 0 0 44px; max-width: 14ch;
  transform: translateY(var(--cierre-shift, 0px));
}
.cierre h2 span { display: block; }
.cierre .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); }
.cierre .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
@keyframes stripes { to { background-position: 300px 300px; } }

/* — footer — */
.footer {
  padding-block: 44px;
  display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  font-size: 13px; line-height: 22px; color: var(--color-muted);
}
.footer .footer-info { max-width: 44ch; }
.footer p { margin: 0 0 8px; }
.footer p:last-child { margin-bottom: 0; }
.footer strong { color: var(--color-text); }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-links a { color: var(--color-muted); text-decoration: none; }
.footer-links a:hover { color: var(--color-text); }

/* — la ruta-firma (effects.js la construye y la dibuja con el scroll) — */
.ruta-svg {
  position: absolute; top: 0; left: 0; z-index: 1;
  pointer-events: none;
}
.ruta-svg .ruta-linea {
  fill: none; stroke: var(--color-accent); stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.85;
}
.ruta-svg .ruta-fondo {
  fill: none; stroke: var(--color-divider); stroke-width: 3;
  stroke-dasharray: 1 10; stroke-linecap: round;
}
.ruta-svg .ruta-parada { fill: var(--color-bg); stroke: var(--color-accent); stroke-width: 3; }
.ruta-svg .ruta-marker { fill: var(--color-accent); }

/* ══════════════════════════════════════════════════════════════════════════
   Efectos
   ══════════════════════════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 100%; height: 3px;
  background: var(--color-accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-p, 0));
}

.js .hero h1 .line-inner {
  transform: translateY(110%);
  animation: line-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.js .hero h1 .line:nth-child(2) .line-inner { animation-delay: 0.15s; }
.js .hero .hero-origen,
.js .hero .hero-lead,
.js .hero .hero-cta {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.js .hero .hero-origen { animation-delay: 0.05s; }
.js .hero .hero-lead { animation-delay: 0.4s; }
.js .hero .hero-cta { animation-delay: 0.55s; }

@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* Hover de card: la card se inclina hacia el cursor, se levanta, se enciende
   el anillo de ruta y la foto hace zoom con parallax. El tilt y el spotlight
   los alimenta initCardTilt() en js/effects.js vía --tilt / --gx / --gy. */
.veh-card {
  --gx: 50%; --gy: 50%;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.veh-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-accent), 0 0 60px -12px var(--color-accent);
}
.veh-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--gx) var(--gy),
    rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 62%);
  mix-blend-mode: overlay;
  transition: opacity 0.4s ease;
}
.veh-card:hover::after { opacity: 1; }
.veh-foto img {
  transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0) scale(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.veh-card:hover .veh-foto img {
  transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0) scale(1.08);
}

@media (hover: none) {
  .veh-card::after { display: none; }
}

.plan-card { position: relative; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease; }
.plan-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--color-muted); }
.plan-card:hover::before { transform: scaleX(1); }
.plan-destacado::before { transform: scaleX(1); }

:root { interpolate-size: allow-keywords; }
.faq-list details::details-content {
  height: 0; overflow: clip;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), content-visibility 0.3s allow-discrete;
}
.faq-list details[open]::details-content { height: auto; }

/* — intro: el logo 3D se ensambla, rota y vuela al nav (fallback 2D: sello) — */
.intro-curtain {
  position: fixed; inset: 0; z-index: 300;
  background: var(--color-bg);
  transition: opacity 0.45s ease;
}
.intro-curtain.out { opacity: 0; }
.intro-canvas {
  position: fixed; inset: 0; z-index: 301;
  opacity: 0; transition: opacity 0.35s ease;
  cursor: pointer;
}
.intro-canvas.on { opacity: 1; }
.intro-hint {
  position: fixed; left: 50%; bottom: 5%; z-index: 302;
  transform: translateX(-50%);
  font-family: var(--font-data); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0; transition: opacity 0.6s ease;
  pointer-events: none;
}
.intro-hint.on { opacity: 1; }
.intro-logo {
  position: fixed; top: 50%; left: 50%; z-index: 301;
  width: min(210px, 44vw); height: auto;
  transform: translate(-50%, -50%);
  background: #fff; border-radius: 18px; padding: 14px;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.intro-active .nav-brand img { visibility: hidden; }
.intro-active .hero h1 .line-inner,
.intro-active .hero .hero-origen,
.intro-active .hero .hero-lead,
.intro-active .hero .hero-cta { animation-play-state: paused; }

.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  opacity: 0;
}
.cursor-dot.on { opacity: 0.9; }
.cursor-dot.grow { width: 44px; height: 44px; background: transparent; border: 2px solid var(--color-accent); }

@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

@media (max-width: 900px) {
  .ruta-svg { display: none; }
}

@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  .hero-content { padding-block: 64px 56px; }
  .section { padding-block: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .nav { position: static; gap: var(--space-2) var(--space-3); font-size: 13px; background: var(--color-bg); backdrop-filter: none; }
  .nav-brand { flex-basis: 100%; }
  .nav-brand img { height: 34px; width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero h1 .line-inner,
  .js .hero .hero-origen,
  .js .hero .hero-lead,
  .js .hero .hero-cta { animation: none; transform: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .cierre::before { animation: none; }
  .hero-bg { transform: none; }
  .hero-banner img { transform: none; }
  .cierre h2 { transform: none; }
  .faq-list details::details-content { transition: none; }
  .veh-card, .plan-card, .veh-foto img, .plan-foto img, .nosotros-foto img { transition: none; }
  .veh-card::after { display: none; }
  .cursor-dot { display: none; }
  .scroll-progress { display: none; }
  .ruta-svg { display: none; }
}
