/* =========================================
   GUÍA DE ESTILO - ARCADIAN SUPPORT MX
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Paleta de Colores */
    --arcadian-blue: #2a6ef2;   /* Primario / Soporte */
    --arcadian-red: #ef4444;    /* Dirección / Urgencias */
    --arcadian-green: #10b981;  /* Ventas / WhatsApp */
    --arcadian-gold: #f59e0b;   /* Especialistas TI / Portal CRM */
    --text-title: #111827;      /* Títulos (Gris oscuro/Azul marino) */
    --text-p: #4b5563;          /* Párrafos */
    --bg-site: #f8fafc;         /* Fondo claro */
    --white: #ffffff;           /* Blanco */

    /* Estilos de Interfaz (UI) */
    --radius-card: 12px;
    --radius-btn: 8px;
    --shadow-soft: 0 10px 15px rgba(0,0,0,0.05);
    --transition-hover: 0.3s;
}

/* =========================================
   RESETEO Y BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-site);
    color: var(--text-p);
    font-weight: 400;
}

/* Ocultar barra de scroll globalmente */
html, body {
    overscroll-behavior: none; /* Bloquea el rebote al llegar al footer */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

/* Chrome, Safari y Opera */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-title);
    font-weight: 800;
}

/* Botón Global */
.btn-primary {
    background-color: var(--arcadian-blue);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-hover);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    background-color: #1e58c8;
}

/* =========================================
   BANNER FLOTANTE LEGAL (10 SEGUNDOS)
   ========================================= */
.legal-update-banner {
    position: fixed;
    top: -100px; /* Oculto por defecto arriba de la pantalla */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 400;
    z-index: 10001; /* Para que quede por encima de la barra de navegación */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
    pointer-events: none; /* No interrumpe los clics de la página */
    white-space: nowrap;
}

.legal-update-banner i {
    color: var(--arcadian-gold);
    font-size: 1.2rem;
    animation: arr-heartbeat 2s infinite;
}

/* LA MAGIA DEL SWITCH: Retraso de 10s, dura 8s en pantalla (entrada y salida) */
.legal-banner-on {
    animation: banner-slide-sequence 8s 10s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes banner-slide-sequence {
    0% { top: -100px; opacity: 0; }
    10% { top: 20px; opacity: 1; } /* Aparece y se acomoda debajo del borde superior */
    85% { top: 20px; opacity: 1; } /* Se mantiene durante casi 7 segundos */
    100% { top: -100px; opacity: 0; } /* Se vuelve a ocultar */
}

/* =========================================
   HEADER / MENÚ DE NAVEGACIÓN (LOGO MAXIMIZADO)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.98); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 6px 50px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease; 
}

.navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.75); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo-img {
    height: 56px; 
    width: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0) invert(1); 
}

.navbar .logo-img:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255,255,255,0.5)); 
}

.nav-links {
    display: flex;
    gap: 4px; 
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #e2e8f0; 
    text-decoration: none;
    font-weight: 600;
    font-size: 12px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border-radius: 30px; 
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
    background-color: rgba(42, 110, 242, 0.15); 
    transform: translateY(-2px);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--arcadian-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
}

.nav-links a:hover::before {
    width: 40%; 
}

/* LÍNEA SEPARADORA ELEGANTE */
.nav-separator {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0 8px;
}

/* BOTONES DE ACCIÓN COMPACTOS */
.btn-nav-support, 
.btn-nav-wa, 
.btn-nav-login {
    padding: 8px 14px !important; 
    font-size: 11px !important;
    border-radius: 30px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.btn-nav-support::before, 
.btn-nav-wa::before, 
.btn-nav-login::before {
    display: none !important;
}

.btn-nav-support {
    background-color: rgba(16, 185, 129, 0.1); 
    color: var(--arcadian-green) !important;
    border: 1px solid rgba(16, 185, 129, 0.5); 
}

.btn-nav-wa {
    background-color: rgba(16, 185, 129, 0.1); 
    color: var(--arcadian-green) !important;
    border: 1px solid rgba(16, 185, 129, 0.5); 
}

.btn-nav-login {
    background-color: rgba(245, 158, 11, 0.1); 
    color: var(--arcadian-gold) !important;
    border: 1px solid rgba(245, 158, 11, 0.5); 
}

/* HOVERS DE BOTONES DE ACCIÓN */
.btn-nav-support:hover,
.btn-nav-wa:hover { 
    transform: translateY(-3px); 
    background: var(--arcadian-green); 
    color: white !important; 
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); 
    border-color: var(--arcadian-green); 
}

.btn-nav-login:hover { 
    transform: translateY(-3px); 
    background: var(--arcadian-gold); 
    color: white !important; 
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4); 
    border-color: var(--arcadian-gold); 
}

.nav-links i { 
    font-size: 14px; 
}

/* =========================================
   ETIQUETA "NEW" LATIENDO PARA EL MENÚ
   ========================================= */
.badge-new-nav {
    position: absolute;
    top: -12px;
    right: -15px;
    background-color: var(--arcadian-red);
    color: var(--white);
    font-size: 8px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: latido-new 1.5s infinite;
    pointer-events: none; 
}

@keyframes latido-new {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5); 
    }
    50% { 
        transform: scale(1.2); 
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.9); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5); 
    }
}

/* =========================================
   MODALES DE ADVERTENCIA (VERSIÓN STEROIDS CSS)
   ========================================= */
.nav-modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(15, 23, 42, 0.85); 
    backdrop-filter: blur(8px);
    z-index: 10000; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.4s ease;
}

.nav-modal-close-bg {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    cursor: default; 
    z-index: 1;
}

.nav-modal-box {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px 40px; 
    border-radius: 24px; 
    text-align: center; 
    max-width: 420px; 
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transform: translateY(40px) scale(0.95); 
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 
    z-index: 2; 
    position: relative; 
    overflow: hidden;
}

.nav-modal-box::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 4px;
    background: linear-gradient(90deg, var(--arcadian-green), var(--arcadian-blue));
}

/* Activación por ancla CSS (#) */
.nav-modal-overlay:target { 
    opacity: 1; 
    visibility: visible; 
}

.nav-modal-overlay:target .nav-modal-box { 
    transform: translateY(0) scale(1); 
}

/* Ícono vibrante de Ventas */
.nav-modal-icon {
    width: 75px; 
    height: 75px; 
    background: rgba(16, 185, 129, 0.1);
    color: var(--arcadian-green); 
    font-size: 2.2rem; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%; 
    margin: 0 auto 25px auto;
    animation: modal-pulse-green 2s infinite;
}

/* Ícono vibrante y línea neón para Soporte */
#modal-soporte .nav-modal-icon { 
    background: rgba(42, 110, 242, 0.1); 
    color: var(--arcadian-blue); 
    animation: modal-pulse-blue 2s infinite;
}

#modal-soporte .nav-modal-box::before {
    background: linear-gradient(90deg, var(--arcadian-blue), #60a5fa);
}

@keyframes modal-pulse-green {
    0% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); 
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); 
    }
}

@keyframes modal-pulse-blue {
    0% { 
        box-shadow: 0 0 0 0 rgba(42, 110, 242, 0.4); 
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(42, 110, 242, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(42, 110, 242, 0); 
    }
}

.nav-modal-box h3 { 
    color: white; 
    margin-bottom: 12px; 
    font-size: 1.6rem; 
    font-weight: 900; 
    letter-spacing: -0.5px;
}

.nav-modal-box p { 
    color: #cbd5e1; 
    font-size: 1rem; 
    line-height: 1.6; 
    margin-bottom: 20px; 
}

.nav-modal-box .btn-primary, 
.nav-modal-box .btn-nav-wa, 
.nav-modal-box .btn-nav-support {
    padding: 14px 20px !important; 
    font-size: 1.05rem !important; 
    border-radius: 12px !important;
    text-transform: none; 
    letter-spacing: 0; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-modal-cancel {
    background: transparent; 
    border: none; 
    color: #64748b; 
    font-size: 0.95rem;
    cursor: pointer; 
    text-decoration: none; 
    margin-top: 8px; 
    transition: 0.2s; 
    font-weight: 600;
    display: inline-block; 
    padding: 10px;
}

.nav-modal-cancel:hover { 
    color: white; 
    text-decoration: underline;
}

/* =========================================
   FOOTER GLOBAL (MODO OSCURO PREMIUM)
   ========================================= */
.footer {
    background-color: var(--text-title);
    color: #cbd5e1;
    padding: 60px 10% 20px;
    margin-top: 0px;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col.brand-col { 
    padding-right: 20px; 
}

.footer-logo {
    height: 100px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1); 
    display: block;
    margin-left: -15px; 
}

.footer-col.brand-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #94a3b8;
}

.social-links { 
    display: flex; 
    gap: 12px; 
}

.social-links a {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px;
    border-radius: 8px; 
    background-color: rgba(255,255,255,0.05); 
    color: var(--white);
    font-size: 1.1rem; 
    text-decoration: none; 
    transition: all var(--transition-hover);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background-color: var(--arcadian-blue); 
    border-color: var(--arcadian-blue);
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px rgba(42, 110, 242, 0.3);
}

.footer-col h4 {
    margin-bottom: 20px; 
    font-size: 1.1rem; 
    color: var(--white); 
    text-transform: uppercase;
    letter-spacing: 1px; 
    position: relative; 
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 35px; 
    height: 3px;
    background-color: var(--arcadian-blue); 
    border-radius: 5px;
}

.footer ul { 
    list-style: none; 
    padding: 0; 
}

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

.footer ul li a {
    color: #94a3b8; 
    text-decoration: none; 
    font-weight: 400; 
    transition: all var(--transition-hover);
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.95rem;
}

.footer ul li a i { 
    font-size: 0.75rem; 
    color: var(--arcadian-blue); 
    transition: transform var(--transition-hover); 
}

.footer ul li a:hover { 
    color: var(--white); 
    transform: translateX(8px); 
}

.contact-info li { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    color: #94a3b8; 
    font-size: 0.95rem; 
    line-height: 1.5; 
}

.contact-info li i { 
    color: var(--arcadian-blue); 
    margin-top: 4px; 
    font-size: 1.1rem; 
}

/* =========================================
   PROMO B2B INTEGRADORES
   ========================================= */
.footer-promo-b2b {
    background: linear-gradient(135deg, var(--arcadian-blue) 0%, #1e40af 100%);
    border-radius: var(--radius-card); 
    padding: 40px; 
    display: flex; 
    flex-wrap: wrap;
    justify-content: space-between; 
    align-items: center; 
    gap: 40px; 
    margin-top: 0;
    margin-bottom: 60px; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    position: relative;
    overflow: hidden; 
    isolation: isolate; 
    transform: translateZ(0); 
}

.promo-b2b-content { 
    flex: 1; 
    min-width: 320px; 
}

.badge-b2b {
    background-color: var(--arcadian-gold); 
    color: var(--text-title); 
    font-size: 0.8rem;
    font-weight: 800; 
    padding: 6px 14px; 
    border-radius: 20px; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 15px;
}

.promo-b2b-content h3 { 
    color: var(--white); 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    line-height: 1.2; 
    font-weight: 800; 
}

.promo-b2b-content p { 
    color: #e0e7ff; 
    font-size: 1.05rem; 
    line-height: 1.6; 
    margin-bottom: 30px; 
    max-width: 650px; 
}

.promo-b2b-action { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.btn-b2b-filled {
    background-color: var(--arcadian-gold); 
    color: var(--text-title); 
    padding: 14px 30px;
    border-radius: var(--radius-btn); 
    font-weight: 800; 
    text-decoration: none; 
    display: inline-flex;
    align-items: center; 
    gap: 12px; 
    transition: all 0.3s ease; 
    font-size: 1.05rem; 
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-b2b-filled:hover { 
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.6); 
    background-color: #fbbf24; 
}

.btn-b2b-outline-vibrant {
    background-color: var(--arcadian-green); 
    color: var(--white); 
    padding: 14px 30px;
    border-radius: var(--radius-btn); 
    font-weight: 800; 
    text-decoration: none; 
    display: inline-flex;
    align-items: center; 
    gap: 12px; 
    font-size: 1.05rem; 
    text-transform: uppercase; 
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); 
    border: none;
}

.btn-b2b-outline-vibrant:hover { 
    background-color: #059669; 
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.6); 
}

.promo-b2b-map { 
    position: relative; 
    width: 480px; 
    height: auto; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 1; 
}

.mexico-img { 
    width: 100%; 
    height: auto; 
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)); 
    opacity: 1; 
    transform: scale(1.4); 
    position: relative; 
    z-index: 2; 
}

.promo-b2b-map::before, 
.promo-b2b-map::after {
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 250px; 
    height: 250px; 
    background: radial-gradient(circle, rgba(0, 191, 255, 0.95) 0%, rgba(0, 191, 255, 0.4) 50%, transparent 75%);
    border-radius: 50%; 
    z-index: -1; 
    animation: latido-fuerte 3s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

.promo-b2b-map::after { 
    animation-delay: 1.5s; 
}

@keyframes latido-fuerte {
    0% { 
        transform: translate(-50%, -50%) scale(0.2); 
        opacity: 1; 
        box-shadow: 0 0 60px rgba(0, 191, 255, 0.9); 
    }
    100% { 
        transform: translate(-50%, -50%) scale(3.5); 
        opacity: 0; 
        box-shadow: 0 0 0 rgba(0, 191, 255, 0); 
    }
}

/* =========================================
   FILA DE SELLOS DE AUTORIDAD 
   ========================================= */
.footer-trust-row {
    display: flex; 
    justify-content: space-between; 
    gap: 20px; 
    margin-bottom: 50px; 
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.02); 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badge { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.trust-badge i { 
    font-size: 2rem; 
    color: var(--arcadian-gold); 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); 
    animation: pulse-gold 3s infinite ease-in-out; 
}

.trust-badge:nth-child(1) i { 
    animation-delay: 0s; 
}

.trust-badge:nth-child(2) i { 
    animation-delay: 1s; 
}

.trust-badge:nth-child(3) i { 
    animation-delay: 2s; 
}

.trust-badge .trust-text { 
    display: flex; 
    flex-direction: column; 
}

.trust-badge .trust-text span { 
    font-size: 0.7rem; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.trust-badge .trust-text strong { 
    font-size: 0.95rem; 
    color: var(--white); 
    font-weight: 700; 
}

@keyframes pulse-gold {
    0% { 
        transform: scale(1); 
        filter: brightness(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3)); 
    }
    50% { 
        transform: scale(1.15); 
        filter: brightness(1.4) drop-shadow(0 0 12px var(--arcadian-gold)); 
    }
    100% { 
        transform: scale(1); 
        filter: brightness(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3)); 
    }
}

/* =========================================
   BARRA DE COPYRIGHT INFERIOR
   ========================================= */
.footer-bottom {
    padding-top: 30px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    font-size: 0.9rem;
    color: #64748b; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 15px; 
    width: 100%;
}

@media (min-width: 768px) {
    .footer-bottom { 
        flex-direction: row; 
        justify-content: space-between; 
        text-align: left; 
    }
}

.footer-legal-links { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.footer-legal-links .separator { 
    color: #4b5563; 
}

.footer-legal-links a { 
    color: #94a3b8; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color var(--transition-hover); 
    white-space: nowrap; 
}

.footer-legal-links a:hover { 
    color: var(--white); 
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDAD MÓVIL)
   ========================================= */
@media (max-width: 900px) {
    .navbar { 
        padding: 10px 20px; 
    }
    .nav-links { 
        display: none; 
    }
    .footer-promo-b2b { 
        flex-direction: column; 
        text-align: center; 
        padding: 30px 20px; 
    }
    .promo-b2b-action { 
        justify-content: center; 
    }
    .promo-b2b-map { 
        width: 100%; 
        max-width: 350px; 
        margin-top: 30px; 
    }
    .mexico-img { 
        transform: scale(1.1); 
    }
    .footer-trust-row { 
        flex-direction: column; 
        gap: 30px; 
    }
    .legal-update-banner {
        width: 90%;
        white-space: normal;
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }
}