/* ==========================================================================
   ABIDRON AEROSPACE // THE FUTURE OF DRONE TECH - 2026 EDITION
   Estilo Cyber-Aero de Alta Fidelidad, Glassmorphism y Parallax Responsivo
   ========================================================================== */

:root {
  --primary: #D4AF37;          /* Dorado Abidron */
  --primary-glow: rgba(212, 175, 55, 0.45);
  --primary-bright: #F7D05C;
  --cyan: #00f3ff;             /* Cian Neón HUD */
  --cyan-glow: rgba(0, 243, 255, 0.45);
  --cyan-dim: rgba(0, 243, 255, 0.15);
  --secondary: #001B3A;        /* Azul Marino Táctico */
  --bg-dark: #020813;          /* Negro Cósmico */
  --bg-card: rgba(0, 27, 58, 0.55);
  --bg-glass: rgba(2, 12, 28, 0.72);
  --border-glass: rgba(0, 243, 255, 0.2);
  --border-gold: rgba(212, 175, 55, 0.3);
  --text-main: #f0f6fc;
  --text-muted: #8b9bb4;
  --font-hud: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   FONDOS & ATMÓSFERA HUD DINÁMICA
   ========================================================================== */
#ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  background: radial-gradient(circle at 50% 20%, #071e3d 0%, #030c1d 50%, #01050d 100%);
  transition: background 2s ease-in-out;
}

.ambient-night {
  background: radial-gradient(circle at 50% 15%, #05162a 0%, #020914 55%, #000308 100%) !important;
}

.ambient-twilight {
  background: radial-gradient(circle at 50% 20%, #1a1636 0%, #07152b 50%, #020710 100%) !important;
}

/* Capa de partículas e interactividad */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Líneas de escaneo sutiles estilo visor táctico */
.hud-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.18));
  background-size: 100% 4px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

/* Retícula de radar de fondo */
.hud-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -2;
  pointer-events: none;
}

/* ==========================================================================
   TOPBAR NAVIGATION
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 45px;
  background: rgba(2, 8, 19, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: var(--transition);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--primary-glow));
  transition: var(--transition);
}

.brand-wrapper:hover .brand-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px var(--cyan-glow));
}

.brand-telemetry {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-hud);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1.1;
}

.brand-title span {
  color: var(--primary);
}

.brand-status {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-hud);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  position: relative;
  transition: var(--transition);
}

.nav-link i {
  font-size: 0.9rem;
  color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-link:hover i, .nav-link.active i {
  color: var(--cyan);
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 85%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Botón SFX Audio */
.btn-sfx-toggle {
  background: rgba(0, 27, 58, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--cyan);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-sfx-toggle:hover {
  background: rgba(0, 243, 255, 0.15);
  box-shadow: 0 0 12px var(--cyan-glow);
  transform: scale(1.05);
}

.btn-sfx-toggle.muted {
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.1);
}

/* Botón Academia Cyber */
.btn-cyber-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(2, 8, 19, 0.8) 100%);
  border: 1px solid var(--primary);
  color: var(--primary-bright);
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15), inset 0 0 8px rgba(212, 175, 55, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-cyber-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-cyber-gold:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 25px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-cyber-gold:hover::before {
  left: 100%;
}

/* Mobile Toggle */
.mobile-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   LATERAL FLIGHT TRACKER // ELEVADOR HUD
   (Evolución moderna del stick/lever lateral original)
   ========================================================================== */
.lateral-flight-hud {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 900;
}

.hud-track-spine {
  position: relative;
  width: 4px;
  height: 280px;
  background: rgba(0, 243, 255, 0.15);
  border-radius: 4px;
  overflow: visible;
}

.hud-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--primary), var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
  border-radius: 4px;
  transition: height 0.15s ease-out;
}

.hud-tracker-needle {
  position: absolute;
  top: 0%;
  left: -6px;
  width: 16px;
  height: 16px;
  background: var(--cyan);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--cyan);
  transform: translateY(-50%);
  transition: top 0.15s ease-out;
  pointer-events: none;
}

.hud-checkpoints {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 280px;
  list-style: none;
}

.hud-cp-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  group: true;
}

.hud-cp-dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border: 1px solid var(--border-glass);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: var(--transition);
}

.hud-cp-label {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
  white-space: nowrap;
  pointer-events: none;
}

.hud-cp-item:hover .hud-cp-label,
.hud-cp-item.active .hud-cp-label {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
  text-shadow: 0 0 8px var(--cyan-glow);
}

.hud-cp-item.active .hud-cp-dot,
.hud-cp-item:hover .hud-cp-dot {
  background: var(--cyan);
  border-color: #fff;
  box-shadow: 0 0 10px var(--cyan);
  transform: rotate(45deg) scale(1.3);
}

/* ==========================================================================
   ESTRUCTURA PRINCIPAL Y CONTENEDORES
   ========================================================================== */
main {
  position: relative;
  width: 100%;
}

.section-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 120px 8% 80px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 243, 255, 0.05);
}

.container-limit {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
}

/* Tipografía de encabezados */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid var(--border-glass);
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-title {
  font-family: var(--font-hud);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title .text-gold {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.section-title .text-cyan {
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
}

.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ==========================================================================
   SECCIÓN 1: HERO CORE (DRONE INTERACTIVO 3D & TELEMETRÍA)
   ========================================================================== */
#home {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 10;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-hud);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero-title .glow-gold {
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary-glow);
}

.hero-tagline {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tagline::after {
  content: '';
  height: 2px;
  width: 60px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero-desc {
  font-size: 1.05rem;
  color: #c0d1e6;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.btn-cyber-cyan {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.25) 0%, rgba(2, 8, 19, 0.85) 100%);
  border: 1px solid var(--cyan);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px var(--cyan-dim), inset 0 0 10px var(--cyan-dim);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-cyber-cyan:hover {
  background: var(--cyan);
  color: #010813;
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-3px);
}

.btn-cyber-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0, 27, 58, 0.4);
  color: var(--text-main);
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-cyber-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-3px);
}

/* Micro-Telemetría HUD */
.hero-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 520px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 243, 255, 0.15);
}

.telemetry-cell {
  background: rgba(0, 27, 58, 0.35);
  border: 1px solid rgba(0, 243, 255, 0.1);
  padding: 10px 14px;
  border-radius: 4px;
  position: relative;
}

.telemetry-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan);
}

.telemetry-label {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.telemetry-value {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

/* Escaparate Drone Interactivo 3D */
.hero-drone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.drone-3d-rig {
  position: relative;
  width: 100%;
  max-width: 620px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.3, 1);
  cursor: grab;
}

.drone-3d-rig:active {
  cursor: grabbing;
}

.drone-chassis-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px var(--cyan-dim));
  animation: drone-hover-levitate 4s ease-in-out infinite alternate;
  user-select: none;
}

@keyframes drone-hover-levitate {
  0% { transform: translateY(0px) rotateX(1deg); }
  50% { transform: translateY(-18px) rotateX(-2deg); }
  100% { transform: translateY(0px) rotateX(1deg); }
}

/* Hélices rotatorias holográficas */
.propeller-holo {
  position: absolute;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  border: 2px dashed rgba(0, 243, 255, 0.5);
  background: radial-gradient(circle, rgba(0, 243, 255, 0.2) 0%, transparent 70%);
  animation: prop-spin 0.05s linear infinite;
  pointer-events: none;
  z-index: 15;
}

@keyframes prop-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.prop-fl { top: 31%; left: 24%; }
.prop-fr { top: 31%; right: 24%; }
.prop-bl { bottom: 27%; left: 12%; }
.prop-br { bottom: 27%; right: 12%; }

/* Anillos orbitales HUD alrededor del drone */
.drone-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  height: 105%;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  pointer-events: none;
  animation: rotate-reverse 20s linear infinite;
}

@keyframes rotate-reverse {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Caja de Conexión a Academia / Client Access flotante */
.hud-gateway-badge {
  position: absolute;
  bottom: -20px;
  right: 15px;
  background: rgba(2, 12, 28, 0.88);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
  z-index: 30;
  text-decoration: none;
  transition: var(--transition);
}

.hud-gateway-badge:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--cyan);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px var(--cyan-glow);
}

.gateway-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  border: 1px solid var(--border-gold);
}

.gateway-info h4 {
  font-family: var(--font-hud);
  font-size: 1rem;
  color: #fff;
  letter-spacing: 1px;
}

.gateway-info p {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 2px;
}

/* ==========================================================================
   SECCIÓN 2: PROTOCOLO DE MISIÓN // METODOLOGÍA (Evolución de Web Reel)
   ========================================================================== */
#protocol {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 27, 58, 0.25) 50%, transparent 100%);
}

.protocol-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  margin-top: 30px;
}

.protocol-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 35px 28px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.protocol-step-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--cyan-dim);
}

.step-num-badge {
  font-family: var(--font-hud);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.2);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 25px;
  transition: var(--transition);
}

.protocol-step-card:hover .step-num-badge {
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
}

.step-icon-wrap {
  width: 58px;
  height: 58px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.6rem;
  margin-bottom: 25px;
  transition: var(--transition);
}

.protocol-step-card:hover .step-icon-wrap {
  background: var(--cyan);
  color: #010813;
  box-shadow: 0 0 18px var(--cyan-glow);
}

.step-title {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.step-tag {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-bright);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   SECCIÓN 3: SERVICIOS AEROESPACIALES INTERACTIVOS
   ========================================================================== */
#services {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 35px 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--cyan-dim);
}

.service-card:hover::before {
  opacity: 1;
}

.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-bright);
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #020813;
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: scale(1.08) rotate(5deg);
}

.service-code {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--cyan);
  background: rgba(0, 243, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.service-title {
  font-family: var(--font-hud);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-features li {
  font-size: 0.9rem;
  color: #d1e2f5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li i {
  color: var(--cyan);
  font-size: 0.8rem;
}

.service-action-link {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-bright);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  margin-top: auto;
}

.service-action-link i {
  transition: var(--transition);
}

.service-action-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.service-action-link:hover i {
  transform: translateX(5px);
}

/* ==========================================================================
   SECCIÓN 4: PORTAFOLIO // MISIONES EJECUTADAS
   ========================================================================== */
#portfolio {
  background: radial-gradient(circle at 50% 50%, rgba(0, 27, 58, 0.4) 0%, transparent 70%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.portfolio-card {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  background-color: #040e1f;
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px var(--primary-glow);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(2, 8, 19, 0.95) 0%, rgba(2, 8, 19, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

.portfolio-badge {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portfolio-title {
  font-family: var(--font-hud);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.portfolio-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.portfolio-zoom-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 27, 58, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-zoom-icon {
  opacity: 1;
  transform: scale(1);
  color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ==========================================================================
   MODAL LIGHTBOX 2026
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(1, 4, 10, 0.92);
  backdrop-filter: blur(15px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--cyan-dim);
}

.lightbox-caption {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 15px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary);
  transform: scale(1.15);
}

/* ==========================================================================
   SECCIÓN 5: COBERTURA GLOBAL & CONTACTO // DESPACHO TÁCTICO
   ========================================================================== */
#contact {
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  margin-top: 20px;
}

/* Formulario Cyber */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 40px 35px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.form-header {
  margin-bottom: 28px;
}

.form-header h3 {
  font-family: var(--font-hud);
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.input-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-label {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.cyber-input, .cyber-select, .cyber-textarea {
  width: 100%;
  background: rgba(0, 15, 30, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 6px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.cyber-input:focus, .cyber-select:focus, .cyber-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-dim);
  background: rgba(0, 25, 50, 0.95);
}

.cyber-textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit-cyber {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #b89326 100%);
  border: none;
  color: #020813;
  font-family: var(--font-hud);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  transition: var(--transition);
}

.btn-submit-cyber:hover {
  background: linear-gradient(135deg, #f7ce4d 0%, var(--primary) 100%);
  box-shadow: 0 0 35px var(--primary-glow);
  transform: translateY(-2px);
}

.form-feedback-box {
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 6px;
  font-family: var(--font-hud);
  font-size: 0.95rem;
  letter-spacing: 1px;
  display: none;
}

.form-feedback-box.success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25d366;
  color: #25d366;
}

.form-feedback-box.error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 75, 75, 0.15);
  border: 1px solid #ff4b4b;
  color: #ff4b4b;
}

/* Panel de Sedes y Mapas Dinámicos */
.global-presence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 35px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.presence-header {
  margin-bottom: 20px;
}

.presence-header h3 {
  font-family: var(--font-hud);
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.country-tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.country-tab-btn {
  background: rgba(0, 15, 30, 0.7);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.country-tab-btn:hover, .country-tab-btn.active {
  background: rgba(0, 243, 255, 0.15);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 12px var(--cyan-dim);
}

.map-embed-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  margin-bottom: 22px;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(1.1) brightness(0.9);
}

.direct-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
}

.channel-link:hover {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(4px);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-left i {
  color: var(--primary);
  font-size: 1.2rem;
}

.channel-title {
  font-family: var(--font-hud);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.channel-val {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 1px;
}

/* ==========================================================================
   FOOTER CYBER 2026
   ========================================================================== */
footer {
  position: relative;
  background: #01040a;
  border-top: 1px solid var(--border-glass);
  padding: 60px 8% 30px 8%;
  z-index: 10;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.footer-social-strip {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-soc-link {
  width: 42px;
  height: 42px;
  background: rgba(0, 27, 58, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-soc-link:hover {
  background: var(--cyan);
  color: #020813;
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom a {
  color: var(--primary-bright);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Botón Flotante WhatsApp */
.whatsapp-floating-action {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-floating-action:hover {
  transform: scale(1.12);
  background-color: #20ba5a;
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.65);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN // MEDIA QUERIES (320px - 1440px+)
   ========================================================================== */
@media screen and (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-tagline {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-telemetry-strip {
    margin: 0 auto;
  }

  .services-grid, .protocol-timeline, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 860px) {
  .top-nav {
    padding: 0 20px;
  }

  .mobile-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80vw;
    height: calc(100vh - 80px);
    background: rgba(2, 8, 19, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 25px;
    border-left: 1px solid var(--border-glass);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.active {
    right: 0;
  }

  .lateral-flight-hud {
    display: none; /* En móviles el HUD se simplifica */
  }

  .section-wrapper {
    padding: 100px 5% 60px 5%;
  }

  .services-grid, .protocol-timeline, .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .input-grid-2 {
    grid-template-columns: 1fr;
  }

  .whatsapp-floating-action {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}
