/* --- 1. RESETS & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta GLITCH */
    --bg-main: #06070A;
    --bg-card: #11131A;
    --txt-main: #F5F7FA;
    --txt-sec: #B7C0CC;
    --txt-aux: #8B95A7;
    --acento-cta: #1DA1FF;
    --glow: #00E5FF;
    --acento-sec: #7A5CFF;
    
    /* Tipografía */
    --font-brand: 'Space Grotesk', sans-serif;
    --font-ui: 'Inter', sans-serif;
    
    /* Efectos */
    --gradient-cta: linear-gradient(90deg, #1DA1FF 0%, #00E5FF 100%);
    --shadow-glow: 0 4px 15px rgba(0, 229, 255, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-main);
    color: var(--txt-main);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. ESCALA TIPOGRÁFICA --- */
h1 { font-family: var(--font-brand); font-size: 64px; font-weight: 700; line-height: 1.1; }
h2 { font-family: var(--font-brand); font-size: 48px; font-weight: 700; }
h3 { font-family: var(--font-brand); font-size: 32px; font-weight: 600; }
.small { font-size: 14px; color: var(--txt-aux); }
.txt-aux { color: var(--txt-aux); }

/* --- 3. LAYOUT BASE --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- 4. HEADER & NAV --- */
/* --- 1. RESETS & CONFIG --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta GLITCH */
    --bg-main: #06070A;
    --bg-card: #11131A;
    --txt-main: #F5F7FA;
    --txt-sec: #B7C0CC;
    --txt-aux: #8B95A7;
    --acento-cta: #1DA1FF;
    --glow: #00E5FF;
    --acento-sec: #7A5CFF;
    
    /* Tipografía */
    --font-brand: 'Space Grotesk', sans-serif;
    --font-ui: 'Inter', sans-serif;
    
    /* Efectos */
    --gradient-cta: linear-gradient(90deg, #1DA1FF 0%, #00E5FF 100%);
    --shadow-glow: 0 4px 15px rgba(0, 229, 255, 0.12);
    --transition: all 0.3s ease;
}

/* --- 2. HEADER Y NAVEGACIÓN (ESTILO CLÁSICO CORREGIDO) --- */
.main-header {
    width: 100%;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(183, 192, 204, 0.1);
}

.header-flex {
    width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    height: 90px;
    position: relative;
}

/* Logo: Centrado verticalmente ( (90px - 35px) / 2 = 27.5px ) */
.logo {
    float: left;
    margin-top: 27px;
}

.brand-logo {
    height: 35px;
    width: auto;
    display: block;
}

/* Acciones y Botón: Posicionados a la derecha */
.header-actions {
    float: right;
    margin-top: 23px; /* Ajuste para centrar el botón de ~44px de alto */
    margin-left: 40px;
}

.btn-primary {
    background: var(--gradient-cta);
    color: #06070A;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 600;
    line-height: 1; /* Estabiliza el texto dentro del botón */
}

/* Navegación: Alineada a la derecha, junto al botón */
.nav-menu {
    float: right;
    margin-top: 35px; /* Ajuste para alinear el texto con el centro del logo */
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    display: inline-block;
    margin-left: 40px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--txt-sec);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--glow);
}

/* --- SISTEMA DE SUBMENÚ CLÁSICO --- */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    width: 260px;
    padding: 15px 0;
    border: 1px solid rgba(0, 229, 255, 0.15);
    display: none;
    margin-top: 20px; /* Separación del menú principal */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.submenu li {
    display: block !important; 
    margin-left: 0 !important;
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
}

.submenu li a:hover {
    background: rgba(29, 161, 255, 0.1);
}

.has-submenu:hover .submenu {
    display: block;
}

/* --- CONTROL RESPONSIVO / HAMBURGUESA --- */
.menu-toggle {
    display: none; /* Oculto en escritorio */
    float: right;
    margin-top: 32px;
    margin-left: 20px;
    color: var(--txt-main);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .header-flex {
        width: 100% !important;
        padding: 0 20px;
    }

    /* Ocultamos el menú de texto */
    .nav-menu {
        display: none !important;
    }

    /* --- CAMBIO CLAVE AQUÍ --- */
    /* No ocultamos .header-actions, solo el botón de adentro */
    .header-actions .btn-primary {
        display: none !important;
    }

    /* El contenedor debe seguir flotando a la derecha para el icono */
    .header-actions {
        display: block !important;
        float: right;
        margin-top: 30px; /* Ajuste para alinear el icono con el logo */
        margin-left: 0;
    }

    /* Mostramos el icono de hamburguesa */
    .menu-toggle {
        display: block !important;
        cursor: pointer;
    }

    .menu-toggle i {
        color: var(--glow);
        font-size: 28px;
        display: block;
    }
}



/* --- OVERLAY MÓVIL (OCULTO INICIALMENTE) --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 10, 0.98); /* Fondo casi sólido para mejor lectura */
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Estado inicial oculto */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Estado activo (cuando el JS añade la clase) */
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* --- LISTA DE MENÚ MÓVIL --- */
.mobile-menu-list {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-menu-list > li {
    margin: 25px 0;
}

.mobile-menu-list > li > a {
    font-size: 28px;
    font-family: var(--font-brand);
    color: var(--txt-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- SUBMENÚ MÓVIL --- */
.mobile-submenu {
    display: none; /* Oculto inicialmente */
    list-style: none;
    padding: 15px 0;
    background: rgba(0, 229, 255, 0.05); /* Toque sutil de color */
    margin-top: 15px;
    border-radius: 10px;
}

.mobile-submenu li {
    margin: 10px 0;
}

.mobile-submenu li a {
    font-size: 18px !important;
    color: var(--txt-sec) !important;
    font-family: var(--font-ui) !important;
}

/* Rotación del icono de chevron */
.rotate-icon {
    display: inline-block;
    transform: rotate(180deg);
}

/* Ajuste del botón en el móvil */
.mobile-nav-overlay .btn-primary {
    display: inline-block;
    margin-top: 20px;
    font-size: 20px;
    padding: 15px 30px;
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: var(--txt-main);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.close-menu-btn:hover {
    color: var(--glow);
    transform: rotate(90deg); /* Un toque extra de elegancia al pasar el mouse */
}

/* --- 1. CONTENEDOR PRINCIPAL DEL FOOTER --- */
.main-footer {
    background-color: #06070A;
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    color: var(--txt-main);
    font-family: var(--font-ui);
    overflow: hidden; /* Limpia floats internos */
}

.footer-container {
    width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

/* --- 2. COLUMNAS (FLOAT-BASED) --- */
.footer-col {
    float: left;
    width: 25%; /* 4 columnas exactas */
    padding-right: 35px;
    box-sizing: border-box;
    min-height: 1px; /* Evita colapsos */
}

.footer-col h4 {
    font-family: var(--font-brand);
    color: var(--glow);
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Columna 1: Branding y Contacto */
.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--txt-sec);
    margin-bottom: 25px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--txt-main);
}

.footer-contact i {
    color: var(--glow);
    margin-right: 10px;
    width: 16px;
}

/* Columna 2: Servicios (Listas) */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--txt-sec);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--glow);
    padding-left: 8px; /* Efecto sutil de desplazamiento */
}

/* Columna 3: Cobertura y Tags */
.small-text {
    font-size: 13px;
    color: var(--txt-aux);
    margin-bottom: 15px;
}

.footer-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    border: 1px solid rgba(183, 192, 204, 0.15);
    color: var(--txt-aux);
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 6px;
    margin: 0 6px 10px 0;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--glow);
    color: var(--glow);
    background: rgba(0, 229, 255, 0.05);
}

/* Columna 4: Newsletter Creativo */
.footer-newsletter {
    position: relative;
    margin: 15px 0 25px 0;
}

.footer-newsletter input {
    width: 100%;
    background: #11131A;
    border: 1px solid rgba(183, 192, 204, 0.1);
    padding: 12px 15px;
    color: white;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.footer-newsletter button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--gradient-cta);
    border: none;
    padding: 7px 15px;
    border-radius: 7px;
    color: #06070A;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
}

.footer-social a {
    color: var(--txt-sec);
    font-size: 20px;
    margin-right: 18px;
    display: inline-block;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--glow);
    transform: translateY(-3px);
}

/* --- 3. LÍNEA FINAL (COPYRIGHT) --- */
.footer-bottom {
    clear: both; /* Rompe los floats superiores */
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(183, 192, 204, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--txt-aux);
}

/* --- 4. RESPONSIVO (SIN FLEX/GRID) --- */
@media (max-width: 1100px) {
    .footer-container { width: 100%; }
    .footer-col { width: 50%; margin-bottom: 50px; }
}

@media (max-width: 600px) {
    .footer-col { width: 100%; padding-right: 0; margin-bottom: 40px; }
    .footer-container { padding: 0 20px; }
    .main-footer { padding: 60px 0 30px 0; }
}

/* Estilo del Botón WhatsApp en Footer */
.footer-whatsapp {
    margin: 20px 0 25px 0;
}

.btn-whatsapp {
    display: inline-block;
    background: #25D366; /* Verde oficial de WhatsApp */
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp i {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}



/* Responsive inicial */
@media (max-width: 768px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    .nav-menu, .header-cta { display: none; } /* Implementar menu burger después */
}


/* --- Sección CTA Full Width --- */
.final-cta-section {
    width: 100%;
    background-color: #050505; /* Fondo negro que ocupa todo el ancho */
    padding: 60px 0; /* Menos exagerado, más directo */
    border-top: 1px solid var(--glow);
    border-bottom: 1px solid var(--glow);
    position: relative;
    overflow: hidden;
}

/* Contenedor para alinear el contenido */
.final-cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-card {
    text-align: center;
    width: 100%;
    max-width: 900px; /* Limitamos el ancho del texto, no de la sección */
}

.cta-card h2 {
    font-size: 2.2rem; /* Tamaño más equilibrado */
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 800;
}

.cta-card p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 30px;
}

/* Contenedor de acciones */
.cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--glow);
    color: #000000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

.cta-note {
    font-size: 0.85rem;
    color: var(--glow);
    opacity: 0.9;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-card h2 {
        font-size: 1.8rem;
    }
    .final-cta-section {
        padding: 40px 20px;
    }
}


/* --- OVERLAY MÓVIL (OCULTO INICIALMENTE) --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 10, 0.98); /* Fondo casi sólido para mejor lectura */
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Estado inicial oculto */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Estado activo (cuando el JS añade la clase) */
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* --- LISTA DE MENÚ MÓVIL --- */
.mobile-menu-list {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-menu-list > li {
    margin: 25px 0;
}

.mobile-menu-list > li > a {
    font-size: 28px;
    font-family: var(--font-brand);
    color: var(--txt-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- SUBMENÚ MÓVIL --- */
.mobile-submenu {
    display: none; /* Oculto inicialmente */
    list-style: none;
    padding: 15px 0;
    background: rgba(0, 229, 255, 0.05); /* Toque sutil de color */
    margin-top: 15px;
    border-radius: 10px;
}

.mobile-submenu li {
    margin: 10px 0;
}

.mobile-submenu li a {
    font-size: 18px !important;
    color: var(--txt-sec) !important;
    font-family: var(--font-ui) !important;
}

/* Rotación del icono de chevron */
.rotate-icon {
    display: inline-block;
    transform: rotate(180deg);
}

/* Ajuste del botón en el móvil */
.mobile-nav-overlay .btn-primary {
    display: inline-block;
    margin-top: 20px;
    font-size: 20px;
    padding: 15px 30px;
}
.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: var(--txt-main);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.close-menu-btn:hover {
    color: var(--glow);
    transform: rotate(90deg); /* Un toque extra de elegancia al pasar el mouse */
}

/* EFECTO ENTRADA HEADER */
/* Prepara el Header y el Overlay para la animación */
.main-header, .mobile-nav-overlay {
    transition: opacity 0.8s ease, transform 0.8s ease !important;
    opacity: 0;
    transform: translateY(-20px);
}

/* Esta clase es la que inyectará el JS para que aparezcan */
.entry-effect-done {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/*EFECTO ENTRADA FOOTER*/
.main-footer {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Esta clase será inyectada por jQuery */
.footer-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}