:root {
    --bg-dark: #050507;
    --neon-blue: #00f2ff;
    --neon-pink: #ff0055;
    --neon-yellow: #fefe33;
    --glass-bg: rgba(0, 242, 255, 0.03);
}

body {
    background-color: var(--bg-dark);
    /* Rejilla de fondo */
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #fff;
    font-family: 'Fira Code', monospace;
}

/* Efectos CRT */
.crt-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none; z-index: 999;
    filter: contrast(1.1) brightness(1.1) sepia(0.05);
}

.scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(0, 242, 255, 0.1);
    opacity: 0.2; z-index: 1000;
    pointer-events: none;
    animation: scan 6s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Navbar */
.navbar {
    background: #000 !important;
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* Cyber Card */
.cyber-card {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-blue);
    border-right: 4px solid var(--neon-pink);
    position: relative;
}

.card-header-cyber {
    border-bottom: 1px solid var(--neon-blue);
    padding: 15px 25px;
}

/* Botón Cyber */
.btn-cyber {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 5px 20px;
    font-family: 'Orbitron', sans-serif;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0% 30%);
    transition: 0.3s;
}

.btn-cyber:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--neon-blue);
    transform: scale(1.05);
}

/* Info Items (Efecto Cristal y Polígono) */
.info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 95% 0, 100% 25%, 100% 100%, 5% 100%, 0 75%);
    backdrop-filter: blur(5px);
}

.info-item:hover {
    background: rgba(255, 0, 85, 0.05);
    border-color: var(--neon-pink);
    transform: translateX(10px);
}

.info-label {
    color: var(--neon-yellow);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(254, 254, 51, 0.4);
}

.info-value {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    animation: text-flicker 3s infinite;
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
    51% { opacity: 1; }
}

/* Footer */
.border-top-cyber {
    border-top: 2px solid var(--neon-pink);
    background: #000;
}

/* Helper Classes */
.orbitron { font-family: 'Orbitron', sans-serif; }
.text-pink { color: var(--neon-pink); }
.text-blue { color: var(--neon-blue); }
.text-yellow { color: var(--neon-yellow); }
.fs-small { font-size: 0.8rem; }

/* Animación de entrada de datos */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Añade o actualiza esto en tu CSS */
.info-item {
    min-height: 110px; /* Asegura que todos los cuadros midan lo mismo */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-label {
    margin-bottom: 5px;
    font-size: 0.6rem; /* Un poco más pequeño para que no robe protagonismo al valor */
}

#map {
    border: 1px solid var(--neon-blue); /* Usa tu variable de azul neón */
    filter: invert(100%) hue-rotate(180deg) brightness(0.8);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
}

.cyber-map {
    height: 250px;
    width: 100%;
    border: 1px solid var(--neon-blue);
    /* El secreto del estilo táctico: invertimos colores y rotamos el hue */
    filter: invert(100%) hue-rotate(180deg) brightness(0.8) contrast(1.2);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 98% 100%, 0 100%);
}
.leaflet-container {
    background: #000 !important;
}

/* Personalización del marcador neón */
.cyber-marker {
    background-color: var(--neon-pink);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-pink);
}