:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-soft: #1a1a26;
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #aab2c5;
  --accent: #c8ff00;
  --accent-strong: #d7ff47;
  --accent-soft: rgba(200, 255, 0, 0.12);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  /* Mouse variables actualizadas por JS para gradiente interactivo */
  --mouse-x: 50%;
  --mouse-y: 50%;
  background:
    radial-gradient(circle 600px at var(--mouse-x) var(--mouse-y), rgba(200, 255, 0, 0.04), transparent 80%),
    radial-gradient(circle at top left, rgba(200, 255, 0, 0.12), transparent 40%),
    radial-gradient(circle at top right, rgba(106, 61, 255, 0.12), transparent 40%),
    var(--bg);
  background-attachment: fixed;
}

body > *:not(.topbar) {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 20px calc(50vw - 640px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 10, 15, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1312px) {
  .topbar {
    padding: 20px 16px;
  }
}

.brand {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topnav a:not(.nav-button) {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

.topnav a:not(.nav-button):hover {
  color: var(--accent);
}

.nav-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-button,
.primary-button {
  background: var(--accent);
  color: #0a0a0f !important;
}

.glow-effect {
  box-shadow: 0 12px 30px rgba(200, 255, 0, 0.22);
}

.glow-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(200, 255, 0, 0.5), 0 16px 36px rgba(200, 255, 0, 0.35);
}

.nav-button {
  padding: 12px 20px;
}

.primary-button {
  padding: 16px 28px;
}

.secondary-button {
  padding: 16px 28px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 999px;
}

.hero,
.split-section,
.rewards-section,
.benefits-section,
.download-section,
.footer {
  padding: clamp(38px, 6vw, 76px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 100px);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  text-transform: uppercase;
}

.hero h1,
.section-header h2,
.download-copy h2 {
  margin: 18px 0 16px;
  line-height: 1.05;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero p,
.feature-card p,
.reward-card p,
.ad-card p,
.download-copy p,
.footer p,
.download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.1rem;
}

.hero-actions,
.card-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions {
  margin-top: 32px;
}

.hero-highlights {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-weight: 500;
}

.hero-highlights li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.hero-map-card,
.feature-card,
.reward-card,
.ad-card,
.download-card,
.stat-card {
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.feature-card:hover,
.reward-card:hover,
.ad-card:hover,
.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-map-card {
  position: relative;
  min-height: 440px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 15, 22, 0.98), rgba(10, 11, 16, 0.95)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: cover, 60px 60px, 60px 60px;
}

.organic-route {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.map-pin {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(12, 12, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.glow-pin {
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.map-pin::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pin-origin {
  top: 25%;
  left: 15%;
}

.pin-origin::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.pin-destination {
  bottom: 22%;
  right: 15%;
}

.pin-destination::before {
  background: #49d96b;
  box-shadow: 0 0 12px #49d96b;
}

.hero-mini-card {
  position: absolute;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  max-width: 300px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8);
}

.mini-label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stats,
.rewards-grid,
.ads-grid,
.download-grid,
.two-column-grid {
  display: grid;
  gap: 24px;
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card,
.feature-card,
.reward-card,
.ad-card,
.download-card {
  padding: 28px;
  border-radius: 32px;
}

.stat-card span,
.download-note {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.stat-card strong {
  margin-top: 8px;
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.section-header {
  max-width: 800px;
  margin-bottom: 32px;
}

.section-header h2,
.download-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.two-column-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rewards-grid,
.ads-grid,
.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card h3,
.reward-card h3,
.ad-card h3,
.download-card h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 800;
}

.feature-card--accent {
  background: linear-gradient(160deg, rgba(200, 255, 0, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(200, 255, 0, 0.15);
}

.reward-chip {
  display: inline-flex;
  margin-top: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 800;
  font-size: 0.85rem;
}

.glow-text {
  box-shadow: 0 0 15px rgba(200, 255, 0, 0.15);
}

.ad-placeholder {
  display: grid;
  place-items: center;
  min-height: 200px;
  margin-bottom: 22px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Backgrounds para los ads de muestra de Cali */
.promo-chipichape { background: linear-gradient(45deg, #111, #222); }
.promo-aeropuerto { background: linear-gradient(120deg, #151520, #0a0a0f); }
.promo-bulevar { background: linear-gradient(190deg, #0a0f0a, #111); }

.card-actions {
  margin-top: 26px;
}

.text-link {
  font-weight: 800;
  color: #fff;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.8;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.download-card {
  min-height: 100%;
}

.download-card .primary-button {
  margin-top: 22px;
  margin-bottom: 12px;
}

.download-note {
  font-size: 0.85rem;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand--footer {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-links,
.footer-meta {
  flex-direction: column;
}

.footer-links a {
  padding: 6px 0;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* LEGAL PAGES */
.legal-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
  line-height: 1.8;
}

.legal-container h1 {
  font-size: 2.3rem;
  margin-bottom: 25px;
  line-height: 1.15;
  color: var(--accent);
}

.legal-container h2 {
  font-size: 1.45rem;
  margin-top: 50px;
  margin-bottom: 18px;
  color: var(--text);
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 10px;
}

.legal-container p, .legal-container li {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.legal-container ul {
  padding-left: 20px;
}

.legal-container strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero,
  .download-section,
  .two-column-grid,
  .rewards-grid,
  .ads-grid,
  .download-grid,
  .footer {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .menu-toggle {
    display: inline-flex;
  }
  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 24px;
    background: rgba(16, 16, 24, 0.98);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
  }
  .topnav.open {
    display: flex;
  }
}

@media (max-width: 640px) {
  body>* {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-map-card {
    min-height: 380px;
  }
  .hero-mini-card {
    position: static;
    margin: 24px;
    max-width: none;
  }
  .primary-button,
  .secondary-button,
  .nav-button {
    width: 100%;
  }
}