/* Paleta de Colores y Variables CSS */
:root {
    --color-electric-blue: #00bfff;     /* Azul Eléctrico para acentos */
    --color-neon-blue: #00ffff;         /* Cian Neón para acentos principales */
    --color-dark: #0a0a0a;              /* Negro Profundo */
    --color-dark-alt: #1a1a1a;          /* Gris Oscuro Metálico */
    --color-light: #f4f4f4;             /* Texto claro */
    --font-stack: 'Poppins', sans-serif;
    --blur-intensity: 15px;
}

/* Base y Reset */
body {
    font-family: var(--font-stack);
    background-color: var(--color-dark);
    color: var(--color-light);
    line-height: 1.6;
}

/* Clases de Neón y Colores */
.neon-blue {
    color: var(--color-neon-blue);
    text-shadow: 0 0 5px var(--color-neon-blue);
}

.text-electric-blue {
    color: var(--color-electric-blue);
}

.bg-dark-alt {
    background-color: var(--color-dark-alt) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* --- Títulos y Secciones --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-electric-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Menú Principal (Header) --- */
#main-header {
    transition: all 0.3s ease-in-out;
    background: rgba(10, 10, 10, 0.6); 
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

/* Estilo del Botón Hamburguesa */
.navbar-toggler {
    border: 2px solid var(--color-neon-blue);
    padding: 0.5rem 0.75rem;
    line-height: 1;
    border-radius: 0.25rem;
    transition: box-shadow 0.3s ease;
    /* Eliminar el color de fondo predeterminado de Bootstrap */
    background-color: transparent !important; 
}

.navbar-toggler:focus {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    outline: none;
}

/* Estilo del menú desplegable móvil */
.menu-movil-futurista {
    position: absolute;
    top: 100%; /* Justo debajo del header */
    left: 0;
    width: 100%;
    background-color: var(--color-dark-alt); /* Fondo oscuro */
    box-shadow: 0 10px 15px rgba(0, 255, 255, 0.2);
    border-bottom: 2px solid var(--color-neon-blue);
    padding: 10px 0;
}

.menu-movil-futurista .nav-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-movil-futurista .nav-link {
    font-size: 1.1rem;
    padding: 10px 20px !important;
    display: block;
}

/* Asegurar que la nav de desktop se oculte y el collapse esté disponible */
@media (max-width: 991.98px) {
    /* Ocultamos la nav principal (d-lg-none ya lo hace, pero reforzamos) */
    nav.d-lg-block {
        display: none !important;
    }
    
    /* Mostrar el toggler */
    .navbar-toggler {
        display: block !important;
    }

    /* Ajuste de posición del logo/toggler */
    .header-content {
        padding-right: 15px; /* Espacio para el toggler */
    }
}

#main-header.sticky {
    background-color: var(--color-dark-alt);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    border-bottom: 2px solid var(--color-neon-blue);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-neon-blue);
    letter-spacing: 2px;
}

.logo span {
    color: var(--color-light);
    font-weight: 300;
}

.nav-link {
    color: var(--color-light) !important;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-neon-blue) !important;
    text-shadow: 0 0 5px var(--color-neon-blue);
}

/* --- 1. HERO / INICIO --- */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: var(--color-dark);
}

.hero-content {
    max-width: 800px;
}

.main-title {
    color: var(--color-light);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7); /* Brillo principal */
}

.subtitle {
    color: var(--color-electric-blue);
}

/* --- Botones Bootstrap Override --- */
.btn-primary {
    background-color: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    color: var(--color-dark);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); 
}

.btn-primary:hover {
    background-color: #00dfff;
    border-color: #00dfff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 1), 0 0 5px var(--color-light);
    transform: translateY(-2px);
}

/* --- 2. NOSOTROS --- */
/* styles.css (Modificar la sección NOSOTROS) */

/* --- 2. NOSOTROS --- */

/* Contenedor que maneja el borde neón y la animación de entrada */
.tech-image-container {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden; /* Asegura que la imagen no desborde el borde */
    /* Mantener las clases neon-border y fade-in de la sección */
}

.neon-border {
    border: 2px solid var(--color-neon-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    transition: all 0.5s ease;
}

.neon-border:hover {
    box-shadow: 0 0 30px var(--color-neon-blue);
}

.tech-illustration-img {
    width: 100%;
    height: auto;
    display: block;
    /* Efecto para darle un tono azul/cian futurista a la imagen */
    filter: brightness(0.7) sepia(1) hue-rotate(180deg) saturate(3); 
    transition: filter 0.5s ease;
}

/* Efecto hover: al pasar el ratón, el filtro se intensifica o cambia */
.tech-image-container:hover .tech-illustration-img {
    filter: brightness(0.9) sepia(1) hue-rotate(170deg) saturate(4);
}

/* --- 3. MISIÓN Y VISIÓN --- */
.mv-card {
    background-color: var(--color-dark);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.neon-hover:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-neon-blue);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.5) !important;
}

/* --- 4. SERVICIOS (Cards) --- */
.service-card {
    background-color: var(--color-dark-alt);
    border-left: 5px solid var(--color-electric-blue);
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: var(--color-dark);
    transform: translateY(-5px);
    border-left-color: var(--color-neon-blue);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.neon-glow-effect {
    position: relative;
    overflow: hidden;
}

.neon-glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(0, 255, 255, 0.1), transparent 50%);
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.neon-glow-effect:hover::before {
    opacity: 1;
    transform: scale(1.5);
}


/* ... código CSS previo (Hasta antes del apartado CONTACTO) ... */
.contact-info-grid {
    margin-top: 40px;
}

.info-card {
    background-color: var(--color-dark);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

/* Reutilización del estilo .neon-hover para info-card si se desea el efecto de misión/visión */

.info-card h4 {
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-card p {
    margin-bottom: 0;
}

/* Estilo para el botón de WhatsApp principal */
.pulse-glow-btn {
    animation: pulse-contact 1.5s infinite; 
}

/* Animación de pulso para el botón principal de contacto (más discreta que la flotante) */
@keyframes pulse-contact {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.5); /* Usa azul eléctrico */
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 191, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 191, 255, 0);
    }
}

/* --- BOTÓN DE WHATSAPP (Flotante) --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; 
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Animación Pulse Glow */
.pulse-glow {
    animation: pulse-glow 1.5s infinite; 
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* --- Animaciones de Aparición (jQuery) --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries de Bootstrap manejadas automáticamente por las clases de grid */