/* ==========================================================================
   RUTEANDO OFFICIAL STYLESHEET (PURE CSS)
   ========================================================================== */

/* 1. VARIABLES DE DISEÑO */
:root {
  --bg: #0b0f17;
  --bg-soft: #0f1622;
  --surface: rgba(18, 26, 38, 0.78);
  --surface-strong: rgba(15, 22, 33, 0.95);
  --surface-card: #131d2b;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-highlight: rgba(16, 185, 129, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.35);
  --teal: #06b6d4;
  --teal-glow: rgba(6, 182, 212, 0.3);
  --lime: #84cc16;
  --red: #ef4444;
  --amber: #f59e0b;
  --grad: linear-gradient(92deg, #10b981 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.15));
  --card-shadow: 0 18px 44px rgba(2, 6, 14, 0.5);
  --radius: 18px;
  --nav-h: 72px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --bg: #f3f7f4;
  --bg-soft: #e7efe9;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-card: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.22);
  --border-highlight: rgba(5, 150, 105, 0.4);
  --text: #0e1a2b;
  --muted: #52606d;
  --green: #059669;
  --green-glow: rgba(5, 150, 105, 0.25);
  --teal: #0891b2;
  --teal-glow: rgba(8, 145, 178, 0.2);
  --lime: #65a30d;
  --card-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

/* 2. RESET & BASE */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: orbFloat 22s ease-in-out infinite alternate;
}
.orb-1 { width: 560px; height: 560px; top: -160px; left: -140px; background: rgba(16, 185, 129, 0.12); }
.orb-2 { width: 500px; height: 500px; bottom: -140px; right: -120px; background: rgba(6, 182, 212, 0.12); animation-delay: -11s; }
@keyframes orbFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(50px, 35px, 0) scale(1.1); } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -0.015em; }
::selection { background: rgba(16, 185, 129, 0.35); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 90px 0; }

/* 3. BOTONES Y COMPONENTES */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn svg { flex: none; }
.btn-primary {
  background: var(--grad);
  color: #03140d;
  box-shadow: 0 0 24px var(--green-glow);
}
[data-theme="light"] .btn-primary { color: #ffffff; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(16, 185, 129, 0.55);
}
.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 22px var(--teal-glow);
}
.btn-sm { padding: 0.58rem 1.15rem; font-size: 0.88rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(132, 204, 22, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  background: rgba(132, 204, 22, 0.08);
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

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

/* 4. NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(2, 6, 14, 0.3);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 16px var(--green-glow);
  transition: transform .3s ease;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.4rem 0;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all .3s ease;
}
.theme-toggle:hover {
  color: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 14px rgba(132, 204, 22, 0.3);
  transform: rotate(14deg);
}
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .35s ease, opacity .3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. HERO SECTION */
.hero {
  padding-top: calc(var(--nav-h) + 55px);
  padding-bottom: 50px;
  position: relative;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.8rem);
  font-weight: 800;
  margin: 1.2rem 0 1rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 35rem;
  margin-bottom: 1.8rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.hero-stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}
.hero-stats li { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.82rem; }

/* Phone Mockup Frame */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-mockup-wrapper {
  position: relative;
  width: min(320px, 90%);
  margin: 0 auto;
}
.phone-mockup {
  position: relative;
  background: var(--surface-card);
  border: 10px solid #1e293b;
  border-radius: 38px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 35px var(--green-glow);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
[data-theme="light"] .phone-mockup {
  border-color: #cbd5e1;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15), 0 0 25px var(--green-glow);
}
.phone-mockup:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 45px var(--green-glow);
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background: #1e293b;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 5;
}
[data-theme="light"] .phone-notch {
  background: #cbd5e1;
}
.phone-screen {
  width: 100%;
  height: auto;
  display: block;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  animation: floatY 6s ease-in-out infinite;
  z-index: 6;
  white-space: nowrap;
}
.float-chip.fc-1 { top: -14px; left: -20px; color: var(--teal); }
.float-chip.fc-2 { bottom: -14px; right: -20px; color: var(--lime); animation-delay: -3s; }
.float-chip.fc-3 { bottom: 35%; left: -30px; color: #38bdf8; animation-delay: -1.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 6. CAPTURAS REALES DE LA APP */
.showcase-wrap { position: relative; overflow: hidden; padding: 20px 0; }
.showcase-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.screen-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  position: relative;
}
.screen-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--green);
  box-shadow: 0 0 28px var(--green-glow);
}
.screen-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
}
.screen-info { padding: 1.1rem 1.2rem; }
.screen-info h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.screen-info p { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }

/* 7. FUNCIONALIDADES REALES (GRID) */
.section-head { max-width: 46rem; margin: 0 auto 3.4rem; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.section-head h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); font-weight: 800; margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); font-size: 1rem; }

.features-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.f-card {
  position: relative;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.f-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 30px var(--green-glow);
}
.f-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
  transition: transform .35s ease;
}
.f-card:hover .f-icon { transform: scale(1.1) rotate(-4deg); }
.f-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.55rem; }
.f-card p { color: var(--muted); font-size: 0.92rem; }
.f-tags { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 1.1rem; }
.f-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lime);
  border: 1px solid rgba(132, 204, 22, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: rgba(132, 204, 22, 0.08);
}

/* 8. SECCIÓN PROFESIONAL / B2B & INFORMES PDF */
.pro-card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 24px;
  padding: 2.8rem 2.2rem;
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.pro-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.9rem; }
.pro-copy p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.4rem; }
.pro-list { display: flex; flex-direction: column; gap: 1.15rem; margin-bottom: 1.5rem; }
.pro-item { display: flex; flex-direction: column; gap: 0.25rem; }
.pro-item-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--teal); display: flex; align-items: center; gap: 0.45rem; }
.pro-item-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.52; }

.pro-preview-box {
  background: rgba(11, 15, 23, 0.55);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
[data-theme="light"] .pro-preview-box { background: rgba(255, 255, 255, 0.7); }
.pro-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pdf-pill {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
}
.excel-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
}
.libre-pill {
  background: rgba(6, 182, 212, 0.15);
  color: var(--teal);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
}
.csv-pill {
  background: rgba(132, 204, 22, 0.15);
  color: var(--lime);
  border: 1px solid rgba(132, 204, 22, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
}
.pro-code-snippet { color: var(--muted); line-height: 1.55; }
.pro-code-snippet span { color: var(--lime); }

/* 9. VISOR WEB GPX / KML / KMZ INTERACTIVO 2D & 3D PROFESIONAL */
.viewer-card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  overflow: hidden;
  transition: all .3s ease;
}
.viewer-card.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  padding: 1rem;
  background: var(--bg);
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.viewer-card.is-fullscreen .viewer-layout {
  flex: 1;
  height: calc(100vh - 180px);
}
.viewer-card.is-fullscreen .map-container {
  height: 100%;
}

.viewer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.viewer-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }

/* Barra de Herramientas de Mapas y Vistas */
.tool-group {
  display: inline-flex;
  background: rgba(11, 15, 23, 0.5);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.22rem;
  gap: 0.25rem;
}
[data-theme="light"] .tool-group { background: rgba(255, 255, 255, 0.7); }
.tool-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tool-btn:hover { color: var(--text); }
.tool-btn.active {
  background: var(--grad);
  color: #03140d;
  box-shadow: 0 0 12px var(--green-glow);
}
[data-theme="light"] .tool-btn.active { color: #ffffff; }

.viewer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  flex: 1;
  min-width: 280px;
}
.v-stat {
  background: rgba(11, 15, 23, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
}
[data-theme="light"] .v-stat { background: rgba(255, 255, 255, 0.6); }
.v-stat .vs-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.v-stat .vs-value { font-family: var(--font-mono); font-weight: 700; font-size: 1.08rem; color: var(--lime); }
.v-stat .vs-value small { color: var(--muted); font-size: 0.72rem; font-weight: 500; margin-left: 0.2rem; }
.v-stat:nth-child(2) .vs-value { color: var(--teal); }
.v-stat:nth-child(3) .vs-value { color: var(--green); }
.v-stat:nth-child(4) .vs-value { color: #38bdf8; }

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  background: rgba(11, 15, 23, 0.25);
  cursor: pointer;
  transition: all .3s ease;
  margin-bottom: 1.2rem;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.08);
}
.dropzone-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.dropzone p { font-size: 0.92rem; color: var(--text); font-weight: 600; }
.dropzone span { font-size: 0.78rem; color: var(--muted); }

.viewer-layout {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.6fr 1fr;
}
.map-container {
  height: 470px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
#mapView { width: 100%; height: 100%; }

/* Controles Flotantes Superiores en el Mapa */
.map-floating-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.map-ctrl-cluster {
  display: flex;
  gap: 0.45rem;
  pointer-events: auto;
  background: var(--surface-strong);
  padding: 0.3rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}
.map-ctrl-btn {
  background: transparent;
  color: var(--text);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all .2s ease;
}
.map-ctrl-btn:hover { background: rgba(255,255,255,0.08); color: var(--teal); }
.map-ctrl-btn.active { background: var(--grad); color: #03140d; }

/* Banner de ayuda de navegación 3D */
.map-nav-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  pointer-events: none;
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
}
.map-nav-hint b { color: var(--lime); font-weight: 600; }

.viewer-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.elev-container {
  background: rgba(11, 15, 23, 0.4);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
}
[data-theme="light"] .elev-container { background: rgba(255, 255, 255, 0.6); }
.elev-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; display: flex; justify-content: space-between; }
#elevCanvas { width: 100%; height: 165px; display: block; }
.route-log-box {
  background: rgba(11, 15, 23, 0.3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem;
  max-height: 210px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
[data-theme="light"] .route-log-box { background: rgba(255, 255, 255, 0.5); }
.route-log-box p { padding: 0.3rem 0.4rem; border-bottom: 1px solid rgba(148, 163, 184, 0.08); }
.route-log-box b { color: var(--teal); }

/* Custom Marker Pins */
.custom-wp-pin {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(15, 22, 33, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.6);
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s;
  white-space: nowrap;
}
.custom-wp-pin:hover {
  transform: scale(1.1) translateY(-3px);
  border-color: #84cc16;
  background: #10b981;
  color: #03140d;
}
.custom-wp-pin .pin-icon { font-size: 0.85rem; }

/* 10. SECCIÓN DE APOYO / DONACIONES */
.support-card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(132, 204, 22, 0.35);
  border-radius: 22px;
  padding: 2.2rem 2rem;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.support-info { max-width: 38rem; }
.support-info h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem; }
.support-info p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.support-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--lime);
  border: 1px solid rgba(132, 204, 22, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.08);
  white-space: nowrap;
}

/* 11. PREGUNTAS FRECUENTES (FAQ) */
.faq-list { max-width: 48rem; margin-inline: auto; }
.faq-item {
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq-item.open {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 20px var(--teal-glow);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.faq-q .chev {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--teal);
  transition: transform .4s ease, background .3s;
}
.faq-item.open .chev { transform: rotate(180deg); background: rgba(6, 182, 212, 0.12); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-a p { padding: 0 1.3rem 1.25rem; color: var(--muted); font-size: 0.94rem; }
.faq-a b { color: var(--lime); font-weight: 600; }

/* 12. CTA FINAL & FOOTER */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 28px;
  padding: 4rem 1.6rem;
  box-shadow: var(--card-shadow);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 260px at 50% -10%, rgba(16, 185, 129, 0.2), transparent 70%),
              radial-gradient(500px 240px at 85% 110%, rgba(6, 182, 212, 0.15), transparent 70%);
}
.cta-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 1.4rem;
  box-shadow: 0 0 35px var(--green-glow);
  animation: floatY 5s ease-in-out infinite;
}
.cta-banner h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 0.9rem; }
.cta-banner p { color: var(--muted); max-width: 34rem; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-meta {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.cta-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 40px; }
.footer-grid { display: grid; gap: 2.2rem; margin-bottom: 2.4rem; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 20rem; margin-top: 0.8rem; }
.footer h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 0.28rem 0; transition: color .25s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 80px);
  z-index: 200;
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-highlight);
  border-radius: 14px;
  padding: 0.85rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0 24px var(--green-glow);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2), opacity .4s ease;
  max-width: 90%;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .showcase-track { grid-template-columns: repeat(2, 1fr); }
  .pro-card { grid-template-columns: 1fr; }
  .viewer-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--surface-strong);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5%;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .showcase-track { grid-template-columns: 1fr; }
  .hud-telemetry { grid-template-columns: repeat(2, 1fr); }
  .viewer-stats { grid-template-columns: repeat(2, 1fr); }
}
