/* Contenedor para el logo con efecto de iluminación */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 2;
}

/* Parche circular gris detrás del logo (más sutil) */
.logo-container:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at center,
        rgba(180, 180, 180, 0.08) 0%,
        rgba(150, 150, 150, 0.05) 40%,
        rgba(120, 120, 120, 0.03) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    border-radius: 50%;
    z-index: -2;
    filter: blur(8px);
    opacity: 0.5;
}

/* Efecto de iluminación detrás del logo (más sutil) */
.logo-container:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(0, 174, 239, 0.12) 30%,
        rgba(0, 174, 239, 0.05) 50%,
        rgba(0, 0, 0, 0) 70%
    );
    border-radius: 50%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: glow-pulse 6s infinite ease-in-out;
}

@keyframes glow-pulse {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); filter: blur(10px); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); filter: blur(9px); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); filter: blur(10px); }
}

/* Tamaño fijo del logo con efectos ultra pro */
.logo-pro {
    height: 200px !important; /* Logo más grande a 200px */
    width: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    image-rendering: -webkit-optimize-contrast; /* Mejora la nitidez en Chrome/Safari */
    image-rendering: crisp-edges; /* Mejora la nitidez en Firefox */
    filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.95)) 
           drop-shadow(0 0 40px rgba(0, 174, 239, 0.7)) 
           drop-shadow(0 0 60px rgba(0, 174, 239, 0.4)) !important; /* Triple efecto de brillo azul más intenso */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: logo-pulse-pro 4s infinite ease-in-out !important; /* Animación suave de pulso */
    position: relative;
    z-index: 2;
}

/* Animación de pulso ultra pro para el logo */
@keyframes logo-pulse-pro {
    0% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.9)) 
               drop-shadow(0 0 40px rgba(0, 174, 239, 0.6)) 
               drop-shadow(0 0 60px rgba(0, 174, 239, 0.3));
    }
    50% { 
        transform: scale(1.03); 
        filter: drop-shadow(0 0 30px rgba(0, 174, 239, 1)) 
               drop-shadow(0 0 60px rgba(0, 174, 239, 0.8)) 
               drop-shadow(0 0 90px rgba(0, 174, 239, 0.5));
    }
    100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.9)) 
               drop-shadow(0 0 40px rgba(0, 174, 239, 0.6)) 
               drop-shadow(0 0 60px rgba(0, 174, 239, 0.3));
    }
}

/* Efecto hover para el logo */
.logo-pro:hover {
    filter: drop-shadow(0 0 35px rgba(0, 174, 239, 1)) 
           drop-shadow(0 0 70px rgba(0, 174, 239, 0.9)) 
           drop-shadow(0 0 100px rgba(0, 174, 239, 0.6)) 
           brightness(1.4) !important;
    transform: translateY(-4px) scale(1.04) !important;
}

/* Estilo para el logo de DeepSeek */
.deepseek-logo {
    height: 55px !important;
    width: auto;
    object-fit: contain;
    margin: 0 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    opacity: 0.95;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.deepseek-logo:hover {
    transform: translateY(-6px) scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)) brightness(1.1);
}

/* Navbar con transparencia y efectos ultra premium enterprise */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(15, 23, 42, 0.8) 50%, 
        rgba(0, 0, 0, 0.75) 100%
    ) !important; /* Degradado premium horizontal */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px !important;
    box-shadow: 
        0 10px 30px -10px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 174, 239, 0.15),
        inset 0 0 20px rgba(0, 174, 239, 0.05) !important; /* Triple sombra con brillo interior */
    gap: 15px;
    height: 210px !important; /* Altura ajustada para el logo de 200px */
    border-bottom: 1px solid rgba(0, 174, 239, 0.1); /* Borde sutil con color corporativo */
    position: relative;
    overflow: hidden; /* Para contener los efectos de luz */
}
/* Efecto de luz ambiental para todo el navbar */
header:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 174, 239, 0.03) 0%,
        rgba(0, 174, 239, 0.02) 30%,
        rgba(0, 0, 0, 0) 70%
    );
    opacity: 0.8;
    z-index: -1;
    animation: ambient-light 15s infinite linear;
    transform-origin: center;
}

@keyframes ambient-light {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Línea de luz horizontal premium */
header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(0, 174, 239, 0) 0%,
        rgba(0, 174, 239, 0.3) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(0, 174, 239, 0.3) 80%,
        rgba(0, 174, 239, 0) 100%
    );
    z-index: 1;
    animation: light-line 8s infinite ease-in-out;
}

@keyframes light-line {
    0% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 0.8; transform: scaleX(1); }
    100% { opacity: 0.3; transform: scaleX(0.8); }
}

/* Efectos avanzados para el navbar al hacer hover */
header:hover {
    background: linear-gradient(
        90deg, 
        rgba(10, 15, 30, 0.8) 0%, 
        rgba(20, 30, 50, 0.85) 50%, 
        rgba(10, 15, 30, 0.8) 100%
    ) !important; /* Degradado premium más oscuro al pasar el ratón */
    box-shadow: 
        0 15px 40px -10px rgba(0, 0, 0, 0.7), 
        0 0 50px rgba(0, 174, 239, 0.25),
        inset 0 0 30px rgba(0, 174, 239, 0.08) !important; /* Sombra con brillo azul intensificado */
}

/* Ajustes para enlaces de navegación con efectos ultra premium enterprise */
.nav-link {
    font-size: 1.3rem !important; /* Tamaño del texto */
    color: white !important;
    padding: 8px 16px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    position: relative;
    overflow: hidden;
    margin: 0 3px;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 174, 239, 0.05); /* Borde sutil */
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.03) 0%,
        rgba(0, 174, 239, 0.05) 50%,
        rgba(0, 174, 239, 0.03) 100%
    ); /* Degradado sutil */
}

/* Efecto de brillo al pasar el ratón */
.nav-link:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle, 
        rgba(0, 174, 239, 0.4) 0%, 
        rgba(0, 174, 239, 0.2) 30%,
        rgba(0, 174, 239, 0) 70%
    );
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
    opacity: 0;
    filter: blur(5px);
}

/* Línea inferior con efecto de brillo */
.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(0, 174, 239, 0) 0%,
        rgba(0, 174, 239, 1) 50%,
        rgba(0, 174, 239, 0) 100%
    );
    transform: translateX(-50%);
    transition: width 0.4s ease;
    z-index: 1;
}

.nav-link:hover:before {
    transform: scale(1);
    opacity: 1;
}

.nav-link:hover:after {
    width: 80%;
}

.nav-link:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.1) 0%,
        rgba(0, 174, 239, 0.2) 50%,
        rgba(0, 174, 239, 0.1) 100%
    ) !important; /* Degradado más intenso al hover */
    color: #00AEEF !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 5px 15px -5px rgba(0, 174, 239, 0.5),
        0 0 20px rgba(0, 174, 239, 0.2),
        inset 0 0 8px rgba(0, 174, 239, 0.1) !important; /* Triple sombra con brillo interior */
    text-shadow: 
        0 0 5px rgba(0, 174, 239, 0.5),
        0 0 10px rgba(0, 174, 239, 0.3) !important; /* Brillo de texto */
    border-color: rgba(0, 174, 239, 0.3); /* Borde más visible al hover */
}

/* Navbar responsive con mayor opacidad y ajustes para móviles */
@media (max-width: 768px) {
    header {
        background: linear-gradient(
            90deg, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(15, 23, 42, 0.85) 50%, 
            rgba(0, 0, 0, 0.8) 100%
        ) !important; /* Degradado más oscuro en móviles para mejor legibilidad */
        padding: 0 15px !important; /* Menos padding horizontal */
        height: 180px !important; /* Altura ligeramente menor pero aún grande */
    }
    
    /* Simplificar animaciones en móviles para mejor rendimiento */
    header:before {
        animation: ambient-light 30s infinite linear; /* Más lento en móviles */
        opacity: 0.5;
    }
    
    header:after {
        animation: light-line 12s infinite ease-in-out; /* Más lento en móviles */
    }
    
    .logo-container {
        padding: 3px !important;
    }
    
    .logo-container:before {
        width: 130% !important;
        height: 130% !important;
        opacity: 0.8 !important;
    }
    
    .logo-container:after {
        width: 140% !important;
        height: 140% !important;
        opacity: 0.6 !important;
    }
    
    .logo-pro {
        height: 170px !important; /* Logo ligeramente más pequeño en móviles pero aún grande */
        filter: drop-shadow(0 0 15px rgba(0, 174, 239, 0.9)) 
               drop-shadow(0 0 30px rgba(0, 174, 239, 0.5)) !important;
    }
    
    .nav-link {
        font-size: 1.2rem !important; /* Tamaño de letra más pequeño en móviles */
        padding: 6px 10px !important; /* Padding más pequeño */
        margin: 0 2px !important;
        border-width: 1px !important;
    }
    
    /* Simplificar efectos de hover en móviles */
    .nav-link:hover {
        transform: translateY(-2px) scale(1.03) !important;
    }
    
    /* Ajustes para el botón de contacto en móviles */
    header a[href="#contacto"] {
        padding: 5px 10px !important;
        font-size: 0.9rem !important;
    }
}

/* Optimización de imágenes para alta calidad */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden; /* Evita problemas de renderizado */
    transform: translateZ(0); /* Activa aceleración por hardware */
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    header {
        height: 170px !important;
        padding: 0 10px !important;
    }
    
    .logo-container:before {
        filter: blur(6px) !important;
        width: 140% !important;
        height: 140% !important;
    }
    
    .logo-container:after {
        filter: blur(4px) !important;
        width: 150% !important;
        height: 150% !important;
        opacity: 0.5 !important;
    }
    
    .logo-pro {
        height: 160px !important; /* Aún bastante grande en móviles pequeños */
        filter: drop-shadow(0 0 12px rgba(0, 174, 239, 0.85)) 
               drop-shadow(0 0 24px rgba(0, 174, 239, 0.45)) !important;
    }
}