/* CSS Nativo + Animaciones Pro */

:root {
  --color-background: #0c0e12;
  --color-surface: #111417;
  --color-surface-high: #1c2025;
  --color-primary: #81ecff;
  --color-primary-container: #00e3fd;
  --color-secondary: #7e98ff;
  --color-on-background: #f8f9fe;
}

body {
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

/* Base UI Components */
.glass-panel {
  background-color: rgba(17, 20, 23, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(70, 72, 76, 0.15);
}

.glass-card {
  background-color: rgba(17, 20, 23, 0.8);
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.glass-card:hover {
  background-color: rgba(28, 32, 37, 0.95);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(129, 236, 255, 0.05);
}

.neon-border {
  border-bottom: 1px solid rgba(129, 236, 255, 0.2);
  transition: all 0.3s ease;
}

.neon-border:focus-within {
  border-bottom: 1px solid rgba(129, 236, 255, 1);
  box-shadow: 0px 4px 20px rgba(129, 236, 255, 0.15);
}

/* Animations Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Top status dot */
.pulse-dot {
    animation: staticPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes staticPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; box-shadow: 0 0 10px var(--color-primary); }
}

/* Radar Sweep Animation Estricta de Retorno */
.radar-box {
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    margin-left: -100%;
    margin-top: -100%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(129, 236, 255, 0.1) 80%, rgba(129, 236, 255, 0.6) 100%);
    border-radius: 50%;
    animation: rotate-radar 6s linear infinite;
    mix-blend-mode: screen;
}

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

/* Vehículo Satelital - Trayectoria Sur a Norte */
.map-container {
    perspective: 1000px;
}

.satellite-vehicle {
    bottom: -10%;
    left: 45%;
    transform: translate(-50%, 50%);
    animation: satellite-fly 15s linear infinite;
    z-index: 20;
}

/* Efecto Parallax del Mapa (Flyover) */
.moving-map-layer {
    animation: pan-map 25s linear infinite;
}

@keyframes pan-map {
    0% { transform: translateY(0%); } /* Sur de CDMX al fondo */
    10% { transform: translateY(0%); } /* Pausa inicial */
    90% { transform: translateY(60%); } /* Norte (Tula) en acercamiento */
    100% { transform: translateY(60%); } /* Pausa final */
}

/* Hover estático del Dron/Satélite */
.hover-drone {
    animation: drone-hover 4s ease-in-out infinite alternate;
}

@keyframes drone-hover {
    0% { transform: translate(-50%, 8px); }
    100% { transform: translate(-50%, -8px); }
}

/* Rotación de anillo tecnológico */
.spin-slow {
    animation: spin 8s linear infinite;
}

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

/* Radar 360 Omni-direccional */
.radar-spin {
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 80%, rgba(129,236,255,0.8) 100%);
    animation: sweep 4s linear infinite;
    border-radius: 50%;
}

@keyframes sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Respiración y Escaneo InSAR (Cono Láser Frontal) */
.insar-scanner {
    animation: insar-breathe 2s ease-in-out infinite alternate;
}

@keyframes insar-breathe {
    0% { opacity: 0.3; transform: scaleX(0.85); }
    100% { opacity: 0.8; transform: scaleX(1.15); }
}

/* Nodos de Ciudades (Anclados al Mapa Móvil) */
.city-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    opacity: 0.8;
    box-shadow: 0 0 10px var(--color-primary);
}

.ping-wave {
    position: absolute;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: ping-ripple 4s infinite;
}

@keyframes ping-ripple {
    0%, 9% { transform: scale(0); opacity: 0; }
    10% { transform: scale(0.5); opacity: 1; }
    20% { transform: scale(1.5); opacity: 0; box-shadow: 0 0 20px rgba(129,236,255,0.5); }
    100% { opacity: 0; }
}

/* Efecto Láser InSAR Mejorado (Doble escáner V) */
@keyframes laser-scan {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}
.scanline {
    animation: laser-scan 1s ease-in-out infinite alternate;
}
