/**
 * NitroAir - Tema Espacial con Animaciones
 * Diseño inspirado en el espacio con animaciones suaves
 */

/* ============================================
   VARIABLES DE TEMA ESPACIAL
   ============================================ */
:root {
    /* Colores espaciales */
    --space-dark: #0a0e27;
    --space-blue: #1a1f3a;
    --space-purple: #2d1b4e;
    --space-accent: #4a90e2;
    --space-accent-glow: #64b5f6;
    --star-white: #ffffff;
    --star-glow: #e3f2fd;
    
    /* Gradientes */
    --gradient-space: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b4e 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 31, 58, 0.95), rgba(45, 27, 78, 0.95));
    --gradient-button: linear-gradient(135deg, #4a90e2, #64b5f6);
    
    /* Sombras con glow */
    --glow-blue: 0 0 20px rgba(74, 144, 226, 0.5);
    --glow-purple: 0 0 20px rgba(100, 181, 246, 0.3);
    --shadow-elevated: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   FONDO ESPACIAL ANIMADO
   ============================================ */
body {
    background: var(--gradient-space);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 15%, white, transparent),
        radial-gradient(2px 2px at 45% 25%, white, transparent),
        radial-gradient(1px 1px at 75% 85%, white, transparent),
        radial-gradient(2px 2px at 10% 60%, white, transparent),
        radial-gradient(1px 1px at 25% 45%, white, transparent),
        radial-gradient(1px 1px at 95% 35%, white, transparent),
        radial-gradient(2px 2px at 55% 5%, white, transparent),
        radial-gradient(1px 1px at 40% 95%, white, transparent),
        radial-gradient(2px 2px at 70% 40%, white, transparent),
        radial-gradient(1px 1px at 85% 75%, white, transparent),
        radial-gradient(2px 2px at 5% 90%, white, transparent),
        radial-gradient(1px 1px at 30% 20%, white, transparent),
        radial-gradient(1px 1px at 65% 55%, white, transparent),
        radial-gradient(2px 2px at 42% 68%, white, transparent),
        radial-gradient(1px 1px at 88% 22%, white, transparent),
        radial-gradient(1px 1px at 12% 42%, white, transparent),
        radial-gradient(2px 2px at 78% 92%, white, transparent),
        radial-gradient(1px 1px at 52% 38%, white, transparent),
        radial-gradient(1px 1px at 22% 72%, white, transparent),
        radial-gradient(2px 2px at 68% 12%, white, transparent),
        radial-gradient(1px 1px at 35% 65%, white, transparent),
        radial-gradient(1px 1px at 92% 48%, white, transparent),
        radial-gradient(2px 2px at 8% 28%, white, transparent),
        radial-gradient(1px 1px at 48% 82%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: moveStars 60s linear infinite;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

@keyframes moveStars {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* ============================================
   HEADER Y HERO ESPACIAL INTEGRADO
   ============================================ */
.space-hero-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #2d1b4e 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Estrellas flotantes animadas */
.floating-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-stars .star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: floatStar 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.floating-stars .star:nth-child(1) {
    width: 3px;
    height: 3px;
    top: 10%;
    left: 15%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.floating-stars .star:nth-child(2) {
    width: 2px;
    height: 2px;
    top: 30%;
    left: 80%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.floating-stars .star:nth-child(3) {
    width: 4px;
    height: 4px;
    top: 50%;
    left: 25%;
    animation-duration: 20s;
    animation-delay: 1s;
}

.floating-stars .star:nth-child(4) {
    width: 2px;
    height: 2px;
    top: 70%;
    left: 70%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.floating-stars .star:nth-child(5) {
    width: 3px;
    height: 3px;
    top: 20%;
    left: 50%;
    animation-duration: 16s;
    animation-delay: 0.5s;
}

.floating-stars .star:nth-child(6) {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 40%;
    animation-duration: 14s;
    animation-delay: 2.5s;
}

.floating-stars .star:nth-child(7) {
    width: 4px;
    height: 4px;
    top: 15%;
    left: 90%;
    animation-duration: 17s;
    animation-delay: 1.5s;
}

.floating-stars .star:nth-child(8) {
    width: 3px;
    height: 3px;
    top: 60%;
    left: 10%;
    animation-duration: 19s;
    animation-delay: 0.8s;
}

.floating-stars .star:nth-child(9) {
    width: 2px;
    height: 2px;
    top: 40%;
    left: 60%;
    animation-duration: 13s;
    animation-delay: 2.2s;
}

.floating-stars .star:nth-child(10) {
    width: 3px;
    height: 3px;
    top: 25%;
    left: 35%;
    animation-duration: 21s;
    animation-delay: 1.2s;
}

.floating-stars .star:nth-child(11) {
    width: 2px;
    height: 2px;
    top: 85%;
    left: 85%;
    animation-duration: 14s;
    animation-delay: 3.5s;
}

.floating-stars .star:nth-child(12) {
    width: 4px;
    height: 4px;
    top: 35%;
    left: 5%;
    animation-duration: 16s;
    animation-delay: 0.3s;
}

.floating-stars .star:nth-child(13) {
    width: 3px;
    height: 3px;
    top: 55%;
    left: 95%;
    animation-duration: 18s;
    animation-delay: 2.8s;
}

.floating-stars .star:nth-child(14) {
    width: 2px;
    height: 2px;
    top: 75%;
    left: 20%;
    animation-duration: 15s;
    animation-delay: 1.8s;
}

.floating-stars .star:nth-child(15) {
    width: 3px;
    height: 3px;
    top: 5%;
    left: 65%;
    animation-duration: 17s;
    animation-delay: 0.6s;
}

@keyframes floatStar {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50px) translateX(-20px) scale(1);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(30px) scale(1.1);
        opacity: 0.6;
    }
}

/* Header espacial */
.space-header {
    position: relative;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    animation: slideDownFade 0.8s ease-out;
}

@keyframes slideDownFade {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.space-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-space {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2, #64b5f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.6);
    animation: rotateSatellite 20s linear infinite;
}

@keyframes rotateSatellite {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-text h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #64b5f6, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-space {
    display: flex;
    gap: 0.5rem;
}

.nav-link-space {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(26, 31, 58, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.nav-link-space:hover {
    background: rgba(74, 144, 226, 0.2);
    color: white;
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.nav-link-space.active {
    background: linear-gradient(135deg, #4a90e2, #64b5f6);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.5);
}

.nav-link-space i {
    font-size: 1.1rem;
}

/* Hero content */
.space-hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-main {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-icon-large {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-large i {
    font-size: 5rem;
    background: linear-gradient(135deg, #64b5f6, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 2;
    position: relative;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.orbit-ring {
    position: absolute;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    animation: rotateOrbit 20s linear infinite;
}

.orbit-ring {
    width: 100%;
    height: 100%;
}

.orbit-ring.ring-2 {
    width: 130%;
    height: 130%;
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-title-large {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, #64b5f6, #4a90e2, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGradient 3s ease-in-out infinite;
}

@keyframes shimmerGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.subtitle-hero {
    display: block;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #4a90e2, #64b5f6);
    color: white;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

.btn-primary-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.6);
}

.btn-primary-hero .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: slideGlow 3s infinite;
}

@keyframes slideGlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.btn-secondary-hero {
    background: rgba(26, 31, 58, 0.8);
    color: white;
    border: 2px solid rgba(74, 144, 226, 0.5);
}

.btn-secondary-hero:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 30px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item i {
    font-size: 2.5rem;
    color: #64b5f6;
}

.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-info strong {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
}

.stat-info span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Efecto de ondas al final */
.wave-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.wave-effect svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-space {
        gap: 0.25rem;
    }
    
    .nav-link-space span {
        display: none;
    }
    
    .nav-link-space {
        padding: 0.75rem;
    }
    
    .hero-title-large {
        font-size: 2rem;
    }
    
    .subtitle-hero {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
}

/* Estrellas adicionales pequeñas */
.stars-layer {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   BIENVENIDA ESPACIAL
   ============================================ */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-space);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.8s ease-out;
}

.welcome-overlay.hidden {
    animation: fadeOut 0.8s ease-out forwards;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    color: white;
    animation: floatIn 1s ease-out;
}

.welcome-logo {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(var(--glow-blue));
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64b5f6, #4a90e2, #9c27b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

.welcome-subtitle {
    font-size: 1.5rem;
    color: var(--star-glow);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.welcome-button {
    background: var(--gradient-button);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow-blue);
    transition: all 0.3s ease;
    animation: floatButton 3s ease-in-out infinite;
}

.welcome-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
}

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

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

@keyframes floatIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatButton {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   HEADER ESPACIAL
   ============================================ */
.hero {
    background: var(--gradient-space);
    position: relative;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.8), transparent);
}

.navbar {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-elevated);
    border-radius: 20px;
    margin: 10px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   TARJETAS Y CONTENEDORES
   ============================================ */
.map-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated), var(--glow-purple);
    border: 2px solid rgba(74, 144, 226, 0.3);
    position: relative;
    animation: scaleIn 0.8s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.card, .info-card {
    background: var(--gradient-card);
    border-radius: 20px;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(74, 144, 226, 0.2);
    color: white;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: backwards;
}

.card:hover, .info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated), var(--glow-blue);
    border-color: rgba(74, 144, 226, 0.5);
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Delay para animaciones escalonadas */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   BOTONES ESPACIALES
   ============================================ */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: var(--gradient-button);
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--glow-blue);
}

.btn.active {
    box-shadow: var(--glow-blue);
    transform: scale(1.05);
}

/* ============================================
   CURSOR PERSONALIZADO ELEGANTE
   ============================================ */
* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%234a90e2"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>'), auto;
}

a, button, .clickable, .leaflet-interactive {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2364b5f6"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>'), pointer;
}

.leaflet-container {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%234a90e2"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>'), auto !important;
}

/* ============================================
   INFO PANEL DEBAJO DEL MAPA
   ============================================ */
.map-info-panel {
    width: 100%;
    margin-top: 2rem;
    background: linear-gradient(145deg, rgba(10, 14, 39, 0.95), rgba(26, 31, 58, 0.95));
    border-radius: 25px;
    border: 2px solid rgba(74, 144, 226, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(74, 144, 226, 0.2);
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: none;
}

.map-info-panel.active {
    display: block;
    animation: slideUpFade 0.5s ease-out;
}

@keyframes slideUpFade {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.info-panel-header {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(100, 181, 246, 0.1));
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-panel-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.info-panel-header h3 i {
    color: #64b5f6;
    font-size: 1.6rem;
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        color: #64b5f6;
    }
    50% {
        transform: scale(1.1);
        color: #4a90e2;
    }
}

.info-panel-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-panel-close:hover {
    background: rgba(255, 77, 77, 0.8);
    border-color: rgba(255, 77, 77, 1);
    transform: rotate(90deg) scale(1.1);
}

.info-panel-body {
    padding: 2rem;
    color: white;
}

.info-panel-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.info-panel-placeholder i {
    font-size: 3rem;
    color: #64b5f6;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.info-panel-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* Estilos para el contenido del panel */
.location-details {
    color: white;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.6), rgba(45, 27, 78, 0.4));
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(100, 181, 246, 0.1));
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateX(5px);
}

.detail-item i {
    color: #64b5f6;
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    filter: drop-shadow(0 0 8px rgba(100, 181, 246, 0.6));
}

.detail-item strong {
    color: #64b5f6;
    font-weight: 600;
    min-width: 140px;
    font-size: 1.05rem;
}

.detail-item span {
    color: white;
    font-weight: 500;
    flex: 1;
    font-size: 1.05rem;
}

.detail-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(74, 144, 226, 0.3);
}

.detail-section h4 {
    color: #64b5f6;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.detail-section h4 i {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(100, 181, 246, 0.6));
}

.pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pm-item {
    background: linear-gradient(145deg, rgba(26, 31, 58, 0.8), rgba(45, 27, 78, 0.6));
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.pm-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(100, 181, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pm-item:hover {
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.3), rgba(100, 181, 246, 0.2));
    border-color: rgba(100, 181, 246, 0.8);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4), 0 0 25px rgba(100, 181, 246, 0.3);
}

.pm-item:hover::before {
    opacity: 1;
}

.pm-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
    position: relative;
    z-index: 1;
}

.pm-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.aod-value {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 1.5rem 0;
    text-shadow: 0 0 30px currentColor;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 20px currentColor;
    }
    50% {
        text-shadow: 0 0 40px currentColor, 0 0 60px currentColor;
    }
}

.aod-category {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1rem 1.5rem !important;
    border-radius: 15px !important;
    margin-top: 1.5rem !important;
    border: 2px solid currentColor !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
}

.health-recommendation {
    background: linear-gradient(145deg, rgba(26, 31, 58, 0.8), rgba(45, 27, 78, 0.6)) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    color: white !important;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.health-recommendation p {
    color: white !important;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.health-recommendation strong {
    color: #64b5f6;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 0.75rem;
}

.health-recommendation ul {
    color: white;
    padding-left: 1.5rem !important;
    margin-top: 1rem;
}

.health-recommendation ul li {
    margin-bottom: 0.75rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6;
    font-size: 1.02rem;
}

.health-recommendation > div:last-child {
    background: rgba(74, 144, 226, 0.15) !important;
    padding: 1.5rem !important;
    border-radius: 12px;
    margin-top: 1.5rem !important;
    border: 1px solid rgba(74, 144, 226, 0.4);
}

.health-recommendation > div:last-child strong {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.health-recommendation > div:last-child > div {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.health-recommendation span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.health-recommendation span i {
    font-size: 1.5rem;
}

/* Grid de información más compacto y responsive */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 15px;
}

.info-card i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--space-accent-glow);
    filter: drop-shadow(var(--glow-blue));
}

.info-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--star-white);
}

.info-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Recomendaciones más didácticas */
.recommendations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.recommendation-card {
    background: rgba(74, 144, 226, 0.1);
    border-left: 4px solid var(--space-accent);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateX(5px);
}

.recommendation-card h4 {
    color: var(--space-accent-glow);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* ============================================
   SLIDER DE OPACIDAD MEJORADO
   ============================================ */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, 
        rgba(74, 144, 226, 0.3) 0%, 
        rgba(74, 144, 226, 0.8) 100%);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-button);
    cursor: pointer;
    box-shadow: var(--glow-blue);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.8);
}

/* ============================================
   ANIMACIONES DE CARGA
   ============================================ */
.loading-spinner {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE MEJORADO
   ============================================ */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.2rem;
    }
    
    .welcome-logo {
        font-size: 3rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Nuevo panel de info */
    .map-info-panel {
        margin-top: 1rem;
    }
    
    .info-panel-header {
        padding: 1rem 1.5rem;
        flex-direction: row;
    }
    
    .info-panel-header h3 {
        font-size: 1.2rem;
    }
    
    .info-panel-header h3 i {
        font-size: 1.3rem;
    }
    
    .info-panel-close {
        width: 36px;
        height: 36px;
    }
    
    .info-panel-body {
        padding: 1.5rem;
    }
    
    .pm-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pm-item {
        padding: 1.5rem 1.25rem;
    }
    
    .pm-value {
        font-size: 2rem;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .detail-item strong {
        min-width: auto;
    }
    
    .detail-item i {
        font-size: 1.6rem;
    }
    
    .aod-value {
        font-size: 2.2rem;
    }
    
    .detail-section h4 {
        font-size: 1.2rem;
    }
}

/* ============================================
   EFECTOS DE HOVER GLOBALES
   ============================================ */
.clickable-element {
    transition: all 0.3s ease;
}

.clickable-element:hover {
    transform: scale(1.02);
}

/* ============================================
   SCROLL SUAVE
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--space-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-button);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--space-accent-glow);
}
