/* ==========================================================================
   ANDEAN HEAVY-DUTY & TELEMETRY DARK · COOPERATIVA J.J. DE OLMEDO (JJO19)
   Tokens semánticos oscuros de alto contraste · Cero cajas blancas genéricas
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  --background: #080a0d;
  --surface: #0d1016;
  --card: #11151c;
  --card-elevated: #171c26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --foreground: #f4f5f7;
  --muted-foreground: #9ca3af;
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-foreground: #080a0d;
  --whatsapp: #22c55e;
  --whatsapp-hover: #16a34a;
  --danger: #ef4444;
  --radius: 16px;

  /* Aliases de compatibilidad con scripts existentes (quote.js, account.js, schedule.js) */
  --bg: var(--background);
  --ink: var(--foreground);
  --ink-muted: var(--muted-foreground);
  --blue: var(--primary);
  --amber: var(--primary);
  --emerald: var(--whatsapp);
  --soft: var(--card-elevated);
  --line: var(--border);
  --focus-ring: #f59e0b;

  /* Tipografía Display + Sans + Mono */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--background);
  color: var(--foreground);
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 85% 60%, rgba(34, 197, 94, 0.03) 0%, transparent 60%);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin: 0;
}

.font-mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--focus-ring) !important;
  outline-offset: 2px !important;
}

/* ===== PULSO GPU (COMPOSITOR-ONLY) ===== */
.status-dot-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--whatsapp);
  flex-shrink: 0;
}
.status-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  opacity: 0;
  transform: scale(0.7);
  animation: pulseTelemetry 2.2s var(--ease-out-expo) infinite;
}
@keyframes pulseTelemetry {
  0% { opacity: 0.75; transform: scale(0.7); }
  75%, 100% { opacity: 0; transform: scale(2.1); }
}

/* ==========================================================================
   NAVBAR FLOTANTE MINIMALISTA (GLASSMORPHISM OSCURO)
   ========================================================================== */
.nav-shell {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 1rem;
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: 9999px;
  background: rgba(17, 21, 28, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--foreground);
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--foreground);
}

.brand-subtitle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.island-link {
  color: var(--muted-foreground);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.42rem 0.9rem;
  border-radius: 9999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.island-link:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.06);
}

.island-link.active {
  color: var(--primary);
  background: rgba(245, 158, 11, 0.12);
}

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.78rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn-wa-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1rem;
  border-radius: 9999px;
  background: var(--whatsapp);
  color: #041309;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out-expo);
}

.btn-wa-nav:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   ACTO 1: HERO CINEMATOGRÁFICO 100SVH + PARALLAX + CTA CON BRILLO DE BORDE
   ========================================================================== */
.hero-cine {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--background);
}

.hero-media-layer {
  position: absolute;
  inset: -6% 0;
  z-index: 1;
  background-image: url('../assets/video/truck-poster.jpg');
  background-size: cover;
  background-position: center 42%;
  will-change: transform;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.92;
  pointer-events: none;
}

.video-fallback .hero-bg-video {
  display: none !important;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.94) 0%, rgba(8, 10, 13, 0.68) 46%, rgba(8, 10, 13, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 10, 13, 0.52) 0%, rgba(8, 10, 13, 0.10) 38%, rgba(8, 10, 13, 0.98) 100%);
}

/* Brillo perimetral animado para el CTA principal "Cotizar Flete" */
.cta-beam-shell {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 12px 34px -8px rgba(245, 158, 11, 0.45);
}

.cta-beam-shell::before {
  content: '';
  position: absolute;
  inset: -140%;
  background: conic-gradient(from 0deg, transparent 0deg 250deg, #ffffff 295deg, #f59e0b 335deg, transparent 360deg);
  animation: beamSpin 3.6s linear infinite;
  pointer-events: none;
}

.cta-beam-shell > .btn-primary-dark {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  box-shadow: none;
}

/* ==========================================================================
   ELEMENTO B: CINTA INFINITA DISPLAY GRANDE (MARQUEE DE SERVICIOS Y COBERTURA)
   ========================================================================== */
.display-marquee {
  position: relative;
  z-index: 5;
  width: 100%;
  overflow: hidden;
  padding: 1.35rem 0;
  background: #0c1017;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.display-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  animation: tickerScroll 26s linear infinite;
  will-change: transform;
}

.display-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.3vw, 1.95rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foreground);
  white-space: nowrap;
}

.marquee-word-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 245, 247, 0.42);
}

.marquee-sep {
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
}

/* ==========================================================================
   ELEMENTO G: DIVISORES DIAGONALES Y TRANSICIONES DE FONDO ENTRE BANDAS
   ========================================================================== */
.band-obsidian {
  position: relative;
  background: #080a0d;
}

.band-graphite {
  position: relative;
  background: linear-gradient(180deg, #0d1118 0%, #101520 55%, #0b0e14 100%);
}

.diagonal-top {
  position: relative;
  padding-top: 5.5rem;
}

.diagonal-top::before {
  content: '';
  position: absolute;
  top: -42px;
  left: 0;
  right: 0;
  height: 44px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
  z-index: 2;
}

.diagonal-top-reverse::before {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* ==========================================================================
   ELEMENTO C: SECCIÓN "LA CAMIONETA" (HOTSPOTS INTERACTIVOS + CONTADORES)
   ========================================================================== */
.truck-showcase-stage {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: visible;
  background: radial-gradient(ellipse 75% 65% at 50% 55%, rgba(245, 158, 11, 0.08) 0%, #0a0d12 72%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 70px -20px rgba(0, 0, 0, 0.8);
}

.truck-profile-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
}

.truck-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.truck-profile-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.15) 0%, transparent 35%, rgba(8, 10, 13, 0.72) 100%);
}

.hotspot {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
}

.hotspot-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.22);
  border: 2px solid var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo), background-color 0.2s ease;
}

.hotspot-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: pulseTelemetry 2.2s var(--ease-out-expo) infinite;
}

.hotspot-btn:hover,
.hotspot.is-open .hotspot-btn {
  transform: scale(1.14);
  background: var(--primary);
  color: #080a0d;
}

.hotspot-card {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(260px, 76vw);
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: rgba(17, 21, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.25s var(--ease-out-expo), visibility 0.22s ease;
  z-index: 25;
}

.hotspot:hover .hotspot-card,
.hotspot:focus-within .hotspot-card,
.hotspot.is-open .hotspot-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hotspot-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.hotspot-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--foreground);
  margin: 0 0 0.25rem 0;
}

.hotspot-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d1d5db;
  margin: 0;
}

/* Contadores animados */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .counters-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.counter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.counter-num {
  font-family: var(--font-mono);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.counter-label {
  font-size: 0.84rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

/* ==========================================================================
   ELEMENTO D: CARRUSEL 3D COVER FLOW DE SERVICIOS (SWIPER.JS)
   ========================================================================== */
.coverflow-wrap {
  position: relative;
  padding: 0.5rem 0 3rem;
}

.services-swiper {
  width: 100%;
  padding: 1.25rem 0 2.75rem !important;
  overflow: hidden;
}

.services-swiper .swiper-slide {
  width: min(350px, 84vw);
  height: auto;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.services-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.62;
  filter: blur(0.8px);
}

.services-swiper .swiper-slide-active {
  opacity: 1;
  filter: none;
}

.services-swiper .swiper-slide-active .svc {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.svc:hover .svc-icon-box {
  transform: translateY(-3px) scale(1.08) rotate(-4deg);
  background: var(--primary);
  color: #080a0d;
  border-color: var(--primary);
}

.svc-icon-box {
  transition: transform 0.28s var(--ease-out-expo), background-color 0.22s ease, color 0.22s ease;
}

.coverflow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.cf-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cf-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #080a0d;
}

.services-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.services-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 22px;
  border-radius: 99px;
}

/* ==========================================================================
   ELEMENTO E: LÍNEA DE TIEMPO ANIMADA ("¿CÓMO FUNCIONA?")
   ========================================================================== */
.how-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 3.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.how-line-track {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 19px;
  width: 3px;
  background: var(--border-strong);
  border-radius: 99px;
  overflow: hidden;
}

.how-line-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--whatsapp) 100%);
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}

.how-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.65rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.how-step.is-lit {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 18px 42px -16px rgba(245, 158, 11, 0.22);
}

.how-step-node {
  position: absolute;
  left: -3.25rem;
  top: 1.35rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--border-strong);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.how-step.is-lit .how-step-node {
  background: var(--primary);
  border-color: #fde68a;
  color: #080a0d;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}

/* ==========================================================================
   ELEMENTO F: CARRUSEL DE TESTIMONIOS Y EVIDENCIA REAL (GLASSMORPHISM)
   ========================================================================== */
.evidence-marquee {
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0 1.5rem;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.evidence-track {
  display: inline-flex;
  gap: 1.35rem;
  animation: tickerScroll 38s linear infinite;
  will-change: transform;
}

.evidence-track:hover {
  animation-play-state: paused;
}

.evidence-card {
  width: min(360px, 84vw);
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(17, 21, 28, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 45px -16px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  white-space: normal;
}

.evidence-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1118;
}

.evidence-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evidence-route-chip {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  background: rgba(8, 10, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #fde68a;
}

.evidence-body {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.evidence-stars {
  color: var(--primary);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.evidence-quote {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e5e7eb;
  margin: 0;
}

.evidence-author {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   CARDSWAP 3D · TARJETAS VOLADORAS (EVIDENCIA Y CONFIANZA)
   ========================================================================== */
.evidence-swap-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .evidence-swap-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 3rem;
  }
}

.evidence-copy-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.evidence-trust-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.trust-mini-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.trust-mini-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-mini-lbl {
  display: block;
  font-size: 0.76rem;
  color: var(--muted-foreground);
  margin-top: 0.15rem;
}

.cs-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cs-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-left: 0.25rem;
}

.cs-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: width 0.25s var(--ease-out-expo), background-color 0.2s ease;
}

.cs-dot.active {
  width: 24px;
  background: var(--primary);
}

.cs-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

/* Escenario 3D de la pila de tarjetas voladoras */
.card-swap-viewport {
  position: relative;
  height: 540px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2.5rem;
  perspective: 1100px;
  overflow: visible;
}

.card-swap-stage {
  position: relative;
  width: min(420px, 88vw);
  height: 360px;
  transform-style: preserve-3d;
  touch-action: none;
  user-select: none;
}

.cs-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(17, 21, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 65px -16px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  will-change: transform, opacity, filter;
  transform-origin: center center;
}

.cs-card.is-front {
  cursor: grab;
  border-color: rgba(245, 158, 11, 0.42);
}

.cs-card-media {
  position: relative;
  height: 56%;
  width: 100%;
  overflow: hidden;
  background: #0b0e14;
}

.cs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.cs-card-header-bar {
  position: absolute;
  top: 0.7rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cs-card-pill {
  padding: 0.22rem 0.62rem;
  border-radius: 9999px;
  background: rgba(8, 10, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.04em;
}

.cs-card-verified {
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #86efac;
}

.cs-card-body {
  flex: 1;
  padding: 1.05rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
}

.cs-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--foreground);
  margin: 0;
}

.cs-card-quote {
  font-size: 0.86rem;
  line-height: 1.48;
  color: #d1d5db;
  margin: 0;
}

.cs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 767px) {
  .card-swap-viewport {
    height: 440px;
    padding-bottom: 1.25rem;
  }
  .card-swap-stage {
    height: 335px;
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    padding: 8rem 2rem 4.25rem;
  }
}

.hero-telemetry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
}

.tele-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.78rem;
  border-radius: 8px;
  background: rgba(17, 21, 28, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

.tele-badge-live {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.hero-display-title {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--foreground);
  margin: 0 0 1.2rem 0;
  text-wrap: balance;
}

.split-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.hero-lead-copy {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: #d1d5db;
  max-width: 56ch;
  margin: 0 0 2rem 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.65rem;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.45);
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out-expo), box-shadow 0.2s ease;
}

.btn-primary-dark:hover {
  background: var(--primary-hover);
  box-shadow: 0 16px 36px -8px rgba(245, 158, 11, 0.55);
}

.btn-wa-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.55rem;
  border-radius: 12px;
  background: var(--whatsapp);
  color: #041309;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(34, 197, 94, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out-expo);
}

.btn-wa-dark:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Telemetría flotante derecha sobre la carretera */
.hero-right-telemetry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .hero-right-telemetry {
    align-items: flex-end;
  }
}

.hero-spec-panel {
  width: 100%;
  max-width: 340px;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: rgba(17, 21, 28, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-cell-k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.spec-cell-v {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
}

/* ==========================================================================
   ACTO 2: FRANJA DE MÉTRICAS, MARQUEE DE RUTAS Y ESPECIALIDADES ASIMÉTRICAS
   ========================================================================== */
.metrics-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.metrics-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-strong);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.routes-marquee {
  width: 100%;
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 1rem;
  animation: tickerScroll 28s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.route-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--foreground);
  flex-shrink: 0;
}

.route-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Contenedor principal de actos */
.act-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}

.act-section {
  margin-bottom: 5.5rem;
}

.act-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.act-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.act-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.06;
  color: var(--foreground);
  margin: 0 0 0.65rem 0;
}

.act-lead {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 58ch;
  margin: 0;
}

/* Grid asimétrico de servicios */
.services-asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .services-asymmetric-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 1.4rem;
  }
}

.svc {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  --glare-x: 50%;
  --glare-y: 50%;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--glare-x) var(--glare-y), rgba(245, 158, 11, 0.12), transparent 72%);
  transition: opacity 0.25s ease;
}

.svc:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.svc:hover::before {
  opacity: 1;
}

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.svc-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: var(--primary);
}

.svc-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.24rem 0.62rem;
  border-radius: 9999px;
  background: var(--card-elevated);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.svc-name {
  font-size: 1.32rem;
  margin-bottom: 0.55rem;
}

.svc-desc {
  font-size: 0.94rem;
  color: var(--muted-foreground);
  margin: 0 0 1.25rem 0;
}

.svc-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #d1d5db;
}

.svc-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.svc-bullets svg {
  color: var(--whatsapp);
  flex-shrink: 0;
}

.svc-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  background: var(--card-elevated);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.svc-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* ==========================================================================
   ACTO 3: CONSOLA DE COTIZACIÓN Y FICHA DE DESPACHO TÉCNICO
   ========================================================================== */
.console-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .console-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
  }
}

.console-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.85rem 1.65rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 0.35rem;
}

input, select, textarea {
  width: 100%;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder, textarea::placeholder {
  color: #6b7280;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
  outline: none;
}

/* Selector de franjas horarias generado por schedule.js */
#slot-container {
  color: var(--foreground);
}
#slot-container label {
  background: var(--card-elevated) !important;
  border-color: var(--border-strong) !important;
  color: var(--foreground) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
#slot-container input[type="radio"]:checked + span,
#slot-container label:has(input[type="radio"]:checked) {
  border-color: var(--primary) !important;
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fde68a !important;
}

.urgent-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fcd34d;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.dispatch-sticky {
  position: sticky;
  top: 5.5rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 24px 55px -20px rgba(0, 0, 0, 0.7);
}

.dispatch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dispatch-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground);
}

.dispatch-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #86efac;
}

.dispatch-beam-wrap {
  position: relative;
  padding: 1.5px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--border-strong);
}

.dispatch-beam-wrap::before {
  content: '';
  position: absolute;
  inset: -120%;
  background: conic-gradient(from 0deg, transparent 0deg 260deg, var(--primary) 305deg, var(--whatsapp) 345deg, transparent 360deg);
  animation: beamSpin 5.5s linear infinite;
  pointer-events: none;
}

@keyframes beamSpin {
  to { transform: rotate(360deg); }
}

#est {
  position: relative;
  z-index: 1;
  background: var(--background);
  color: var(--foreground);
  border-radius: 12.5px;
  padding: 1rem;
  min-height: 64px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

#est .dispatch-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

#est .dispatch-truck-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

#booking-summary {
  font-size: 0.84rem;
  color: #d1d5db;
}

#booking-summary > div {
  background: var(--card-elevated) !important;
  border-color: var(--border) !important;
  color: var(--foreground) !important;
}

.privacy-caption {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-size: 0.74rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

/* ==========================================================================
   ACTO 4: RADAR DE DESPACHO & CLUB J.J. DE OLMEDO
   ========================================================================== */
.ops-dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .ops-dual-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

.ops-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.75rem 1.65rem;
}

.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ops-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}

.demo-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tracking-empty {
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: var(--background);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
}

.tracking-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 0 0.4rem 0;
}

.tracking-empty-desc {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  margin: 0 auto 1.2rem;
  max-width: 40ch;
}

.tracking-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn.alt {
  background: var(--card-elevated);
  color: var(--foreground);
  border: 1px solid var(--border-strong);
}

.btn.alt:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 1rem;
  border-radius: 10px;
  background: var(--whatsapp);
  color: #041309;
  font-weight: 700;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
}

.timeline-container {
  position: relative;
  margin: 1.25rem 0;
  padding-top: 0.25rem;
}

.timeline-bar {
  position: absolute;
  top: 18px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: var(--border-strong);
  border-radius: 99px;
}

.timeline-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.35s ease;
}

.timeline-steps {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.step {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.step-dot, .step i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--border-strong);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin: 0 auto 0.4rem;
}

.step.on { color: var(--foreground); }
.step.on .step-dot, .step.on i {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.step-time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-foreground);
  background: var(--card-elevated);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.step.on .step-time-active {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
}

.tracking-summary-box,
.benefits-box,
.history-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
}

.tracking-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

/* Fidelidad */
.level-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.24rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--card-elevated);
  color: #fcd34d;
}

.account-points-val {
  font-family: var(--font-mono);
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.bar b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--whatsapp) 100%);
  transition: width 0.35s ease;
}

.missions-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mission-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.85rem;
  border-radius: 10px;
  background: var(--background);
  border: 1px solid var(--border);
}

.mission-badge.unlocked {
  border-color: rgba(34, 197, 94, 0.35);
}

.mission-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--foreground);
}

.mission-desc {
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.mission-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.tag-unlocked {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.tag-locked {
  background: var(--card-elevated);
  color: var(--muted-foreground);
}

.btn-reset {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.34rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-reset:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   ACTO 5: FAQ, CIERRE DE CONVERSIÓN Y FOOTER
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.35rem;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(245, 158, 11, 0.35);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--foreground);
}

.faq-q::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--primary); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-a {
  margin: 0.75rem 0 0 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.closing-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.75rem 2.4rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #11151c 0%, #171d28 60%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid var(--border-strong);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

.admin-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.32rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.admin-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   CHATBOT OSCURO & TOAST DE NIVEL
   ========================================================================== */
#bot {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 55;
}

.chat-panel {
  display: none;
  width: min(23.5rem, calc(100vw - 2rem));
  margin-bottom: 0.6rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.7);
  padding: 1rem;
}

.chat-header { border-color: var(--border); }
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); }
.chat-close-btn { background: transparent; border: none; color: var(--muted-foreground); cursor: pointer; font-size: 1rem; }
#msgs { height: 15.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.9rem; }
.msg-bubble { padding: 0.6rem 0.85rem; border-radius: 12px; line-height: 1.42; }
.msg-bubble.bot { background: var(--card-elevated); color: var(--foreground); border: 1px solid var(--border); }
.msg-bubble.me { background: var(--primary); color: var(--primary-foreground); align-self: flex-end; margin-left: auto; font-weight: 600; }
.btn-chat-toggle {
  border-radius: 9999px;
  padding: 0.62rem 1.2rem;
  background: var(--card-elevated);
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.btn-chat-toggle:hover {
  border-color: var(--primary);
  background: var(--card);
}

.level-up-toast {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.3s ease;
  max-width: min(92vw, 420px);
  width: 100%;
}
.level-up-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.level-up-card {
  background: var(--card);
  border: 1.5px solid var(--primary);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

@media (max-width: 640px) {
  .hero-inner { padding: 6.5rem 1.1rem 2.75rem; }
  .hero-cta-group, .btn-primary-dark, .btn-wa-dark { width: 100%; }
  .closing-card { padding: 1.85rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
