/* =========================================
   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;
}

html, body {
    overscroll-behavior: none; /* Bloquea el rebote al llegar al footer */
}

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-block;
    transition: all var(--transition-hover);
}

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

/* =========================================
   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);
    /* Relleno vertical ultra reducido para que el logo quepa sin engordar la barra */
    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 {
    /* Logo 40% más grande para destacar la marca */
    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; /* Espaciado ajustado para no amontonar */
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #e2e8f0; 
    text-decoration: none;
    font-weight: 600;
    font-size: 12px; /* Tipografía más fina y elegante */
    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 (SOPORTE, VENTAS, PORTAL) */
.btn-nav-support, .btn-nav-wa, .btn-nav-login {
    padding: 8px 14px !important; 
    font-size: 11px !important;
    border-radius: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 5px;
}

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

.btn-nav-support {
    background-color: rgba(42, 110, 242, 0.1); 
    color: var(--arcadian-blue) !important;
    border: 1px solid rgba(42, 110, 242, 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 (Corregidos para que todos sean blancos) */
.btn-nav-support:hover { 
    transform: translateY(-3px); 
    background: var(--arcadian-blue); 
    color: white !important; 
    box-shadow: 0 8px 20px rgba(42, 110, 242, 0.4); 
    border-color: var(--arcadian-blue); 
}

.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; /* TEXTO BLANCO EN EL BOTÓN PORTAL */
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4); 
    border-color: var(--arcadian-gold); 
}

/* Iconos internos de los botones */
.nav-links i { font-size: 14px; }


/* =========================================
   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;
}

/* Columna de Marca (Logo y Texto) */
.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;
}

/* Iconos de Redes Sociales */
.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);
}

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

/* Línea decorativa azul debajo de cada título */
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--arcadian-blue);
    border-radius: 5px;
}

/* Listas de Navegación */
.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);
}

/* Información de Contacto */
.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 (ARRIBA DE LAS COLUMNAS)
   ========================================= */
.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;
}

/* BOTONES B2B */
.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);
}

/* SECCIÓN DEL MAPA (LATIDO) */
.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; /* Aquí puedes agregar tu lógica de menú hamburguesa si la tienes */ }
    .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; }
}