/* ============================================
   GPS GECHDELL — STYLES.CSS
   Versión: Dark Tech Premium
   Paleta: Cyan / Azul eléctrico / Negro
============================================ */

:root {
  --bg:      #030712;
  --bg2:     #070f1f;
  --surface: #0c1a2e;
  --cyan:    #00d4ff;
  --blue:    #0057ff;
  --accent:  #00ffcc;
  --text:    #e8f4ff;
  --muted:   #8fb0cc;       /* más claro que antes para mejor contraste mobile */
  --border:  rgba(0, 212, 255, 0.18);
  --glow:    0 0 30px rgba(0, 212, 255, 0.35);

  /* Tipografía fluida — escala con el viewport */
  --fs-hero:    clamp(2.2rem, 7vw, 5.5rem);
  --fs-h2:      clamp(1.6rem, 4.5vw, 3rem);
  --fs-h3:      clamp(0.95rem, 2.5vw, 1.1rem);
  --fs-body:    clamp(0.95rem, 2.2vw, 1.05rem);
  --fs-small:   clamp(0.8rem,  1.8vw, 0.88rem);
  --fs-mono:    clamp(0.72rem, 1.6vw, 0.78rem);
  --fs-tag:     clamp(0.68rem, 1.5vw, 0.72rem);
  /* CONTROL GLOBAL DE OSCURIDAD DEL HERO */
  /*--hero-overlay-strong: 0.48;
  --hero-overlay-medium: 0.30;
  --hero-overlay-soft: 0.14;
  */
  --hero-overlay-strong: 0.65;
  --hero-overlay-medium: 0.45;
  --hero-overlay-soft: 0.25;

  /* CONTROL GENERAL EXTRA */
  --hero-overlay-opacity: 1;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ── CURSOR (solo escritorio) ── */
.cursor {
  width: 12px; height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
  box-shadow: 0 0 12px var(--cyan);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0,212,255,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out;
}

/* ── BACKGROUND GRID ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(3,7,18,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900; font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--cyan); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  color: var(--muted); text-decoration: none; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--cyan);
  padding: 0.55rem 1.4rem; border: none; cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--accent); box-shadow: var(--glow); }

/* HAMBURGER */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; z-index: 200;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cyan);
  transition: all 0.3s ease; transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(3,7,18,0.98);
  backdrop-filter: blur(20px);
  z-index: 150;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-menu.open { display: flex; }

/* Contenedor interior — los links no propagan el click al fondo */
.mobile-menu-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 2.5rem;
  cursor: default;
  position: relative;
  padding: 2rem;
}
.mobile-menu a {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: 0.1em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu .btn-primary { font-size: 0.85rem; margin-top: 1rem; }

/* BOTÓN CERRAR MENÚ */
.mobile-menu-close {
  position: absolute; top: 1.4rem; right: 1.6rem;
  background: none; border: 1px solid var(--border);
  color: var(--cyan); font-size: 1.2rem;
  width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: sans-serif;
}
.mobile-menu-close:hover {
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden; z-index: 1;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,87,255,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border);
  animation: rotate 20s linear infinite;
}
.hero-orbit:nth-child(1) { width: 500px; height: 500px; animation-duration: 25s; }
.hero-orbit:nth-child(2) { width: 750px; height: 750px; animation-duration: 40s; animation-direction: reverse; }
.hero-orbit:nth-child(3) { width: 1000px; height: 1000px; animation-duration: 60s; border-color: rgba(0,212,255,0.05); }
.hero-orbit::before {
  content: ''; position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  transform: translateX(-50%);
}
@keyframes rotate { to { transform: rotate(360deg); } }

.hero-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--border);
  padding: 0.45rem 1.2rem; margin-bottom: 2rem; display: inline-block;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: var(--fs-hero); line-height: 1.08;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: var(--fs-body); color: var(--muted);
  max-width: 560px; line-height: 1.75;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--cyan);
  padding: 0.9rem 2.2rem; border: none; cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 0 40px rgba(0,255,204,0.4); }
.btn-outline {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); background: transparent;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--border); cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--cyan); background: rgba(0,212,255,0.06); }

/* ══════════════════════════════
   MARQUEE
══════════════════════════════ */
.marquee-wrap {
  position: relative; z-index: 1; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 0.9rem 0; background: var(--bg2);
}
.marquee-track {
  display: flex; gap: 4rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: 'Orbitron', monospace;
  font-size: var(--fs-tag); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 1rem;
}
.marquee-item::before { content: '◆'; color: var(--cyan); font-size: 0.45rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════
   STATS BAR
══════════════════════════════ */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(12,26,46,0.6); backdrop-filter: blur(10px);
}
.stat-item {
  flex: 1; max-width: 220px;
  padding: 2.5rem 2rem; text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(0,212,255,0.05); }
.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700; color: var(--cyan); line-height: 1; margin-bottom: 0.4rem;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════
   SECTIONS BASE
══════════════════════════════ */
section {
  position: relative; z-index: 1;
  padding: 6rem 4rem;
  max-width: 1300px; margin: 0 auto;
}
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-tag::before { content: ''; display: block; width: 30px; height: 1px; background: var(--cyan); }
.section-title {
  font-family: 'Orbitron', monospace; font-weight: 700;
  font-size: var(--fs-h2); line-height: 1.15; margin-bottom: 1.2rem;
}
.section-title em { font-style: normal; color: var(--cyan); }
.section-desc {
  font-size: var(--fs-body); color: var(--muted);
  line-height: 1.78; max-width: 580px; margin-bottom: 3.5rem;
}

/* ══════════════════════════════
   FEATURES GRID
══════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--bg2); padding: 2.5rem 2.2rem;
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 3px; height: 0;
  background: var(--cyan); transition: height 0.4s ease;
}
.feature-card:hover { background: var(--surface); }
.feature-card:hover::before { height: 100%; }

.feature-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--surface);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  overflow: hidden;
  padding: 8px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/*.feature-icon {
  width: 52px; height: 52px; font-size: 1.4rem;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; background: var(--surface);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}*/
.feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); color: var(--cyan); letter-spacing: 0.15em;
  margin-bottom: 0.6rem; opacity: 0.65;
}
.feature-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: var(--fs-h3); font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 1rem; color: var(--text);
}
.feature-card p {
  font-size: var(--fs-small); color: var(--muted); line-height: 1.72;
}
.feature-card:nth-child(1){
  border: 1px solid rgba(0,255,200,0.3);
}

/* ══════════════════════════════
   DETAIL SECTIONS
══════════════════════════════ */
.detail-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  padding: 5rem 4rem; max-width: 1300px; margin: 0 auto;
  border-top: 1px solid var(--border);
}
.detail-section.reverse { direction: rtl; }
.detail-section.reverse > * { direction: ltr; }
.detail-visual {
  position: relative; height: 360px;
  border: 1px solid var(--border); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.detail-visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0,212,255,0.08) 0%, transparent 70%);
}
.vis-icon { font-size: 5rem; opacity: 0.12; position: absolute; }
.vis-data { position: relative; z-index: 1; text-align: center; }
.vis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); color: var(--muted); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.vis-value {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900;
  color: var(--cyan); line-height: 1;
  text-shadow: 0 0 40px rgba(0,212,255,0.5);
}
.vis-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); color: var(--accent); letter-spacing: 0.1em; margin-top: 0.4rem;
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 3s ease-in-out infinite; opacity: 0.5;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

.pulse-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.3);
  animation: pulse-out 2.5s ease-out infinite;
}
.pulse-ring:nth-child(2) { animation-delay: 0.8s; }
.pulse-ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes pulse-out {
  0% { width: 60px; height: 60px; opacity: 0.8; }
  100% { width: 220px; height: 220px; opacity: 0; }
}

/* Corner decorations */
.corner-deco { position: absolute; width: 20px; height: 20px; }
.corner-deco.tl { top: 0; left: 0; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner-deco.tr { top: 0; right: 0; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.corner-deco.bl { bottom: 0; left: 0; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner-deco.br { bottom: 0; right: 0; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

.detail-content .bullets { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; }
.detail-content .bullets li {
  display: flex; align-items: flex-start; gap: 0.8rem;
  font-size: var(--fs-small); color: var(--muted); line-height: 1.65;
}
.detail-content .bullets li::before { content: '▸'; color: var(--cyan); flex-shrink: 0; margin-top: 0.1rem; }
.detail-content p { font-size: var(--fs-small); color: var(--muted); line-height: 1.75; }

/* Data bars */
.data-bar-group { display: flex; flex-direction: column; gap: 1rem; width: 80%; }
.data-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); color: var(--muted); letter-spacing: 0.1em;
  display: flex; justify-content: space-between; margin-bottom: 0.3rem;
}
.data-bar-track { height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.data-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px; animation: grow 1.5s ease both;
}
@keyframes grow { from { width: 0; } }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact-section {
  position: relative; z-index: 1;
  padding: 6rem 4rem; max-width: 1300px; margin: 0 auto;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.contact-info p { font-size: var(--fs-small); color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }
.contact-info-item {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.contact-info-icon {
  width: 36px; height: 36px; font-size: 1rem;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); flex-shrink: 0;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.contact-info-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-small); color: var(--muted);
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); letter-spacing: 0.15em; color: var(--muted);
  text-transform: uppercase; display: block; margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 0.85rem 1rem;
  font-family: 'Syne', sans-serif; font-size: var(--fs-body);
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 20px rgba(0,212,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2);
}
.footer-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1rem; font-weight: 900; letter-spacing: 0.15em; color: var(--muted);
}
.footer-logo span { color: var(--cyan); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); letter-spacing: 0.1em;
  color: var(--muted); text-decoration: none; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-tag); color: var(--muted); opacity: 0.5;
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   RESPONSIVE — TABLET ≤ 1024px
══════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 1.2rem 2rem; }
  section { padding: 5rem 2.5rem; }
  .detail-section { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 2.5rem; }
  .detail-section.reverse { direction: ltr; }
  .detail-visual { height: 280px; }
  .contact-section { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2.5rem; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE ≤ 768px
   Mayor contraste + texto legible
══════════════════════════════ */
@media (max-width: 768px) {
  :root {
    /* En mobile subimos el contraste aumentando la luminosidad del texto muted */
    --muted: #a8c8e0;
    --text:  #f0f8ff;
  }

  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  /* Nav */
  nav { padding: 1rem 1.2rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { padding: 5.5rem 1.2rem 3rem; min-height: 90vh; }
  .hero-orbit { display: none; }
  .hero-badge { font-size: clamp(0.62rem, 3vw, 0.75rem); }
  .hero-sub { font-size: clamp(1rem, 3.5vw, 1.1rem); color: var(--muted); }
  .hero-actions { flex-direction: column; align-items: center; gap: 0.8rem; }
  .btn-primary, .btn-outline { width: 100%; max-width: 300px; text-align: center; font-size: clamp(0.78rem, 3vw, 0.88rem); }

  /* Marquee */
  .marquee-item { font-size: clamp(0.6rem, 2.5vw, 0.7rem); }

  /* Stats */
  .stats-bar { flex-direction: column; }
  .stat-item { min-width: 100%; border-right: none !important; border-bottom: 1px solid var(--border); padding: 1.4rem 1.4rem; }
  .stat-item:last-child { border-bottom: none; }
  .stat-num { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .stat-label { font-size: clamp(0.7rem, 2.8vw, 0.8rem); }

  /* Sections */
  section { padding: 3.5rem 1.2rem; }
  .section-desc { font-size: clamp(0.95rem, 3.5vw, 1.05rem); margin-bottom: 2rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.8rem 1.2rem; }
  .feature-card h3 { font-size: clamp(0.9rem, 3.5vw, 1rem); }
  .feature-card p { font-size: clamp(0.88rem, 3.2vw, 0.95rem); line-height: 1.7; }

  /* Detail sections */
  .detail-section { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.2rem; }
  .detail-section.reverse { direction: ltr; }
  .detail-visual { height: 200px; }
  .vis-value { font-size: clamp(2rem, 8vw, 3rem); }
  .data-bar-group { width: 92%; }
  .detail-content p { font-size: clamp(0.9rem, 3.5vw, 1rem); }
  .detail-content .bullets li { font-size: clamp(0.88rem, 3.2vw, 0.95rem); }

  /* Contact */
  .contact-section { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 1.2rem; }
  .contact-info p { font-size: clamp(0.9rem, 3.5vw, 1rem); }
  .form-group input, .form-group textarea { font-size: clamp(0.95rem, 3.5vw, 1rem); }

  /* Footer */
  footer { flex-direction: column; gap: 1.2rem; text-align: center; padding: 2rem 1.2rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .footer-links a { font-size: clamp(0.68rem, 2.8vw, 0.75rem); }
}

/* ══════════════════════════════
   EXTRA SMALL ≤ 400px
══════════════════════════════ */
@media (max-width: 400px) {
  .nav-logo { font-size: 0.95rem; }
  .section-title { line-height: 1.2; }
  .hero-badge { letter-spacing: 0.12em; }
}


/* ===== Ajustes integrados ===== */
.nav-logo{
  display:flex;
  align-items:center;
  gap:.9rem;
}
.nav-logo-text{
  display:inline-flex;
  align-items:center;
}
.logo-slot.has-logo{
  width:64px;
  height:64px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:none;
  box-shadow:none;
  clip-path:none;
  flex-shrink:0;
}
.logo-slot.has-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}
.logo-slot-footer.has-logo{
  width:56px;
  height:56px;
  margin-right:.9rem;
}

.hero{
  min-height:100vh;
  padding:8rem 1.5rem 4rem;
  align-items:stretch;
  justify-content:center;
  text-align:left;
}
.hero::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(4,9,20,0.30) 0%, rgba(4,9,20,0.58) 60%, rgba(4,9,20,0.90) 100%),
    linear-gradient(90deg, rgba(3,7,18,0.94) 0%, rgba(3,7,18,0.72) 34%, rgba(3,7,18,0.36) 62%, rgba(3,7,18,0.82) 100%),
    url('vehiculos.webp');
  background-size:cover;
  background-position:center bottom;
  background-repeat:no-repeat;
  opacity:.95;
  z-index:-1;
}
.hero-inner{
  width:min(1180px, calc(100% - 8px));
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}
.hero-glow{
  width:680px;
  height:680px;
  left:-120px;
  top:50%;
  transform:translateY(-50%);
  background:radial-gradient(circle, rgba(0,212,255,0.16) 0%, rgba(0,87,255,0.10) 32%, transparent 72%);
  z-index:0;
}
.hero-orbit{
  opacity:.28;
}
.hero-badge,
.hero h1,
.hero-sub,
.hero-actions{
  position:relative;
  z-index:2;
}
.hero-badge{
  background:rgba(3,7,18,0.46);
  backdrop-filter:blur(8px);
}
.hero h1{
  max-width:9.8ch;
}
.hero-sub{
  max-width:54ch;
  background:rgba(3,7,18,0.20);
  backdrop-filter:blur(2px);
  padding:.5rem 0;
  margin-bottom:2.2rem;
}
.hero-actions{
  gap:1rem;
}
.stats-grid .stat-card{
  min-height:120px;
}
.stat-num{
  font-size:clamp(1.25rem, 3vw, 2rem);
}

/*.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:130;
  background:linear-gradient(135deg,#25D366,#11b85c);
  color:#fff;
  text-decoration:none;
  font-family:'JetBrains Mono', monospace;
  font-size:0.76rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:0.95rem 1rem;
  border-radius:999px;
  box-shadow:0 10px 28px rgba(0,0,0,0.28);
  border:1px solid rgba(255,255,255,0.18);
}*/
.whatsapp-float{
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #25D366; /* COLOR OFICIAL WHATSAPP */
  color: #fff; /* esto hace blanco el icono */

  background: linear-gradient(135deg, #25D366, #1ebe5d);
  box-shadow: 0 10px 25px rgba(37,211,102,0.35);

  font-size: 0;
  text-decoration: none;

  z-index: 999;

  animation: whatsappPulse 2.2s infinite;
}
.whatsapp-float svg{
  width: 26px;
  height: 26px;
  display: block;
}

.whatsapp-float:hover{
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37,211,102,0.5);
  animation: none;
}

@media (max-width: 980px){
  .hero{
    min-height:92vh;
    padding-top:7.2rem;
  }
  .hero::after{
    background-position:68% bottom;
  }
  .hero h1{
    max-width:11ch;
  }
  .hero-sub{
    max-width:48ch;
  }
}
@media (max-width: 768px){
  .logo-slot.has-logo{
    width:50px;
    height:50px;
  }
  .logo-slot-footer.has-logo{
    width:46px;
    height:46px;
  }

    .hero{
      min-height: 78vh;
      padding: 7rem 1rem 2.6rem;
    }

    .hero::after{
      background:
      linear-gradient(180deg, rgba(4,9,20,0.18) 0%, rgba(4,9,20,0.34) 54%, rgba(4,9,20,0.62) 100%),
      linear-gradient(90deg, rgba(3,7,18,0.58) 0%, rgba(3,7,18,0.30) 40%, rgba(3,7,18,0.16) 68%, rgba(3,7,18,0.46) 100%),
      url('vehiculos.webp');
      background-size: contain;
      background-position: center bottom;
      background-repeat: no-repeat;
      opacity: 1;
    }

  .hero-inner{
    width:min(100%, 1180px);
  }
  .hero h1{
    max-width:100%;
  }
  .hero-sub{
    max-width:100%;
    line-height:1.7;
    margin-bottom:1.7rem;
  }
  .hero-orbit:nth-child(2),
  .hero-orbit:nth-child(3){
    display:none;
  }
  .hero-glow{
    width:420px;
    height:420px;
    left:-140px;
  }
  .whatsapp-float{
    right:14px;
    bottom:14px;
    padding:0.9rem 0.95rem;
    font-size:0.7rem;
  }
}


/* ===== Pro final hero refinement ===== */
.hero{
  isolation:isolate;
}

.hero::after{
  background:
  linear-gradient(180deg,
                  rgba(4,9,20,var(--hero-overlay-soft)) 0%,
                  rgba(4,9,20,var(--hero-overlay-medium)) 60%,
                  rgba(4,9,20,var(--hero-overlay-strong)) 100%
  ),
  linear-gradient(90deg,
                  rgba(3,7,18,var(--hero-overlay-strong)) 0%,
                  rgba(3,7,18,var(--hero-overlay-medium)) 34%,
                  rgba(3,7,18,var(--hero-overlay-soft)) 62%,
                  rgba(3,7,18,var(--hero-overlay-strong)) 100%
  ),
  url('vehiculos.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: var(--hero-overlay-opacity);
  transform: scale(1.03);
  animation: heroBgFloat 18s ease-in-out infinite alternate;
}

/*.hero::after{
  background:
    linear-gradient(180deg, rgba(4,9,20,0.18) 0%, rgba(4,9,20,0.45) 60%, rgba(4,9,20,0.75) 100%),
    linear-gradient(90deg, rgba(3,7,18,0.75) 0%, rgba(3,7,18,0.45) 34%, rgba(3,7,18,0.20) 62%, rgba(3,7,18,0.65) 100%),
    url('vehiculos.webp');
  background-size:cover;
  background-position:center bottom;
  background-repeat:no-repeat;
  opacity:.92;
  transform:scale(1.03);
}*/
.hero-inner{
  align-items:center !important;
  text-align:center;
}
.hero-badge,
.hero h1,
.hero-sub,
.hero-actions{
  margin-left:auto;
  margin-right:auto;
}
.hero h1{
  max-width:12ch !important;
}
.hero-sub{
  max-width:62ch !important;
}
.hero-actions{
  justify-content:center;
}
.hero .hero-stats,
.stats-grid{
  justify-items:center;
}
.hero .stat-card{
  background:rgba(8,18,34,0.38);
  backdrop-filter:blur(8px);
}
.hero-badge{
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.btn-primary{
  box-shadow:0 16px 38px rgba(0,212,255,.16), 0 10px 26px rgba(0,0,0,.22);
}
.btn-primary:hover{
  box-shadow:0 20px 44px rgba(0,212,255,.22), 0 14px 30px rgba(0,0,0,.24);
}
.hero::before{
  animation:heroGlowFloat 7s ease-in-out infinite alternate;
}
.hero::after{
  animation:heroBgFloat 18s ease-in-out infinite alternate;
}
@keyframes heroGlowFloat{
  0%{transform:translate3d(0,0,0)}
  100%{transform:translate3d(18px,-10px,0)}
}
@keyframes heroBgFloat{
  0%{transform:scale(1.03) translate3d(0,0,0)}
  100%{transform:scale(1.06) translate3d(0,-10px,0)}
}

@media (max-width: 980px){
  .hero h1{
    max-width:13ch !important;
  }
  .hero-sub{
    max-width:52ch !important;
  }
  .hero::after{
    background-position:62% bottom;
  }
}
@media (max-width: 768px){
  .hero{
    padding:7rem 1rem 3.2rem;
  }

  .hero::after{
    background:
    linear-gradient(180deg,
                    rgba(4,9,20,calc(var(--hero-overlay-soft) + 0.05)) 0%,
                    rgba(4,9,20,calc(var(--hero-overlay-medium) + 0.10)) 54%,
                    rgba(4,9,20,calc(var(--hero-overlay-strong) + 0.10)) 100%
    ),
    linear-gradient(90deg,
                    rgba(3,7,18,calc(var(--hero-overlay-strong) + 0.10)) 0%,
                    rgba(3,7,18,var(--hero-overlay-medium)) 40%,
                    rgba(3,7,18,calc(var(--hero-overlay-soft) + 0.05)) 68%,
                    rgba(3,7,18,calc(var(--hero-overlay-strong) + 0.08)) 100%
    ),
    url('vehiculos.webp');
    background-size: cover;
    background-position: 66% bottom;
    background-repeat: no-repeat;
    opacity: var(--hero-overlay-opacity);
  }
  /*.hero::after{
    background:
      linear-gradient(180deg, rgba(4,9,20,0.26) 0%, rgba(4,9,20,0.58) 54%, rgba(4,9,20,0.84) 100%),
      linear-gradient(90deg, rgba(3,7,18,0.78) 0%, rgba(3,7,18,0.48) 40%, rgba(3,7,18,0.32) 68%, rgba(3,7,18,0.72) 100%),
      url('vehiculos.webp');
    background-size:cover;
    background-position:66% bottom;
    background-repeat:no-repeat;
    opacity:.96;
  }*/
  .hero h1{
    max-width:100% !important;
  }
  .hero-sub{
    max-width:100% !important;
  }
  .hero .hero-stats,
  .stats-grid{
    width:100%;
  }
}
@media (prefers-reduced-motion: reduce){
  .hero::before,
  .hero::after{
    animation:none !important;
  }
}

.hero::after{
  transform:translateY(calc(var(--hero-shift, 0px) * -1)) scale(1.03);
}
/* ===== DETAIL: GOBERNADOR DE VELOCIDAD ===== */
.speed-governor-visual{
  min-height: 360px;
  position: relative;
  background:
  radial-gradient(circle at center, rgba(0,212,255,0.08) 0%, transparent 65%),
  linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.speed-gauge-wrap{
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-gauge{
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
}

.speed-arc,
.speed-arc-glow{
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.speed-arc{
  background:
  conic-gradient(
    from 210deg,
    rgba(0,212,255,0.18) 0deg,
                 rgba(0,212,255,0.85) 85deg,
                 rgba(0,255,204,0.95) 135deg,
                 rgba(0,255,204,0.15) 160deg,
                 transparent 160deg 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
}

.speed-arc-glow{
  filter: blur(12px);
  opacity: 0.45;
  background:
  conic-gradient(
    from 210deg,
    rgba(0,212,255,0.00) 0deg,
                 rgba(0,212,255,0.45) 85deg,
                 rgba(0,255,204,0.55) 135deg,
                 rgba(0,255,204,0.00) 160deg,
                 transparent 160deg 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%);
  mask: radial-gradient(circle, transparent 54%, #000 55%);
}

.speed-ticks{
  position: absolute;
  inset: 0;
}

.tick{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 18px;
  background: rgba(255,255,255,0.45);
  transform-origin: center -98px;
  border-radius: 2px;
}

.tick-1{ transform: translate(-50%, -50%) rotate(-120deg); }
.tick-2{ transform: translate(-50%, -50%) rotate(-80deg); }
.tick-3{ transform: translate(-50%, -50%) rotate(-40deg); }
.tick-4{ transform: translate(-50%, -50%) rotate(0deg); }
.tick-5{ transform: translate(-50%, -50%) rotate(40deg); }
.tick-6{ transform: translate(-50%, -50%) rotate(80deg); }
.tick-7{ transform: translate(-50%, -50%) rotate(120deg); }

.speed-needle-wrap{
  position: absolute;
  inset: 0;
  animation: speedNeedleMove 4.5s ease-in-out infinite alternate;
}

.speed-needle{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 96px;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  border-radius: 999px;
  transform: translate(-50%, -100%) rotate(0deg);
  transform-origin: center bottom;
  box-shadow: 0 0 20px rgba(0,212,255,0.35);
}

.speed-center-dot{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(0,212,255,0.55);
  z-index: 2;
}

.speed-readout{
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.speed-readout-label{
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.speed-readout-value{
  font-family: 'Orbitron', monospace;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0,212,255,0.28);
}

.speed-readout-unit{
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.35rem;
}

.speed-alert{
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10,15,30,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,255,200,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 170px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  animation: speedPulse 3s infinite;
  z-index: 2;
}

.speed-label{
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speed-value{
  font-size: 20px;
  font-weight: 700;
  color: #00ffc3;
}

.speed-status{
  font-size: 11px;
  color: #9effd6;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

@keyframes speedPulse{
  0% { box-shadow: 0 0 0 0 rgba(0,255,200,0.32); }
  70% { box-shadow: 0 0 0 14px rgba(0,255,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,200,0); }
}

@keyframes speedNeedleMove{
  0%   { transform: rotate(-32deg); }
  50%  { transform: rotate(-8deg); }
  100% { transform: rotate(-18deg); }
}

@media (max-width: 768px){
  .speed-governor-visual{
    min-height: 280px;
  }

  .speed-gauge-wrap,
  .speed-gauge{
    width: 220px;
    height: 220px;
  }

  .tick{
    transform-origin: center -74px;
    height: 14px;
  }

  .speed-needle{
    height: 72px;
  }

  .speed-readout-value{
    font-size: 2.35rem;
  }

  .speed-alert{
    left: 12px;
    bottom: 12px;
    min-width: 145px;
    padding: 10px 12px;
  }

  .speed-value{
    font-size: 17px;
  }
}

@media (max-width: 768px){
  .detail-section,
  .detail-section.reverse{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-section .detail-content,
  .detail-section.reverse .detail-content{
    order: 1;
  }

  .detail-section .detail-visual,
  .detail-section.reverse .detail-visual{
    order: 2;
  }
}

.hero-highlight{
  display:inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

@media (max-width: 768px){
  .hero{
    padding: 7rem 1rem 3.2rem;
    min-height: 78vh;
  }

  .hero::after{
    background:
    linear-gradient(180deg, rgba(4,9,20,0.18) 0%, rgba(4,9,20,0.34) 54%, rgba(4,9,20,0.62) 100%),
    linear-gradient(90deg, rgba(3,7,18,0.58) 0%, rgba(3,7,18,0.30) 40%, rgba(3,7,18,0.16) 68%, rgba(3,7,18,0.46) 100%),
    url('vehiculos.webp');
    background-size: contain !important;
    background-position: center 50% !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
  }
}
