:root {
   --primary: #10E0A0;
    --dark-bg: #05070f;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* --- HEADER BASE --- */
header {
    background: rgba(5, 7, 15, 0.95);
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.main-header {
    /* ... tus otros estilos ... */
    padding: 10px 40px !important; /* Reducimos el padding vertical */
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Una línea casi invisible */
}

.header-left, .header-right { flex: 1; display: flex; }
.header-center { flex: 2; display: flex; justify-content: center; }
.header-right { justify-content: flex-end; }

/* Estilo del Menú Desktop */
.header-center ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header-center ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

.header-center ul li a:hover {
    color: var(--primary);
}

/* Botón de Consulta Estilo Neón */
.consulta-btn {
    background: var(--primary);
    color: #000; 
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(16, 224, 160, 0.3);
}

.consulta-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.mobile-only { display: none; }

/* --- AJUSTE PARA MÓVIL (Estilo Cose.ec) --- */
@media (max-width: 1024px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 2100; /* Siempre por encima */
    }

    .menu-toggle span {
        width: 30px;
        height: 2px;
        background: var(--primary);
        transition: 0.4s;
    }

    /* Panel Lateral Nítido */
    .header-center {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 2000;
    }

    .header-center.active { right: 0; }

    .header-center ul {
        flex-direction: column;
        gap: 35px;
    }

    .header-center ul li.mobile-only .consulta-btn {
    display: inline-block;
    width: auto; /* Evita que ocupe todo el ancho si no quieres */
    padding: 12px 25px;
    font-size: 1rem;
    text-align: center;
    background-color: #10E0A0; /* Verde neón */
    color: #05070F; /* Fondo oscuro para contraste */
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(16, 224, 160, 0.2);
}
    /* Overlay sin borroso */
    .nav-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.7);
        display: none;
        z-index: 1500;
    }
    .nav-overlay.active { display: block; }

    /* Animación del botón X */
    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}



.glass {
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.neon-text {
    text-shadow: 0 0 15px rgba(16, 224, 160, 0.4);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(16, 224, 160, 0.05);
}

.cta-button:hover {
    box-shadow: 0 10px 30px rgba(16, 224, 160, 0.3);
}

/* Efecto de Foto: Gris a Color */
.team-image-container {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Estado inicial: Gris */
.team-img {
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

/* Estado al pasar el mouse: A color y ligero zoom */
.team-card:hover .team-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Asegura que el contenedor oculte el zoom de la imagen */
.team-image-container {
    overflow: hidden;
    background: #111827; /* Fondo oscuro por si la imagen tarda en cargar */
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 28, 0.8) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-5px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Animación para el menú móvil */
.slide-down {
    animation: slideDown 0.4s ease forwards;
    display: block !important;
}

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

#mobile-menu.hidden {
    display: none !important;
}



/* Efecto de texto degradado */
.text-gradient {
    background: linear-gradient(to right, #10E0A0, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animación de entrada para las tarjetas */
#nosotros .group {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#nosotros .group:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

/* Resplandor neón detrás de las tarjetas */
#nosotros .group::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(16, 224, 160, 0);
    transition: box-shadow 0.4s;
    z-index: -1;
}

#nosotros .group:hover::after {
    box-shadow: 0 0 40px rgba(16, 224, 160, 0.15);
}

/* Títulos "flicker" - Efecto tecnológico */
@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    90% { opacity: 0.9; }
}

#nosotros h2 {
    animation: neonFlicker 3s infinite;
}


.text-primary-glow {
    color: #fff;
    text-shadow: 0 0 15px rgba(16, 224, 160, 0.6);
}

.map-container {
    mask-image: radial-gradient(circle, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 70%, transparent 100%);
}

/* Animación para los iconos de redes */
#contacto a:hover i {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Efecto de marco neón para el mapa */
.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9); /* Hace el mapa oscuro */
}

/* Responsive para el mapa */
@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Estilo para el botón tecnológico */
.btn-como-llegar {
    position: relative;
    overflow: hidden;
}

.btn-como-llegar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.btn-como-llegar:hover::before {
    left: 100%;
}

/* Ajuste del mapa para que combine con el diseño oscuro */
.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(0.8) contrast(1.2);
    transition: filter 0.5s ease;
}

.group:hover .map-container iframe {
    filter: invert(0%) hue-rotate(0deg) brightness(1); /* El mapa recupera color al pasar el mouse */
}


#dark-veil-canvas {
    position: absolute;
    top: 0;
    left: 0;
    /* Blur suavizado para efecto de gas */
    filter: blur(80px); 
    transform: translateZ(0); /* Aceleración por hardware */
    opacity: 0.8;
}

.neon-text {
    text-shadow: 0 0 15px rgba(16, 224, 160, 0.5);
}