/* =========================================
   ESTILOS CONTACTO (FINAL: FONDO DARK + MAPA DARK)
   ========================================= */

/* --- 1. SECCIÓN PRINCIPAL (Gris Oscuro #141414) --- */
#section_contact {
    /* Usamos el color GRIS OSCURO PROFESIONAL (No negro puro) */
    background-color: var(--dark-color, #141414) !important; 
    
    /* Margen negativo para conectar con la sección de arriba */
    margin-top: -200px !important; 
    padding-top: 80px !important;
    padding-bottom: 80px !important;
    
    position: relative; 
    z-index: 10;
    
    /* Bordes redondeados superiores */
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

/* --- 2. CAJAS BLANCAS (Flotando sobre lo oscuro) --- */
.contact-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Sombra un poco más marcada */
    border: 1px solid #eee;
    border-top: 5px solid var(--secondary-color, #FFC107); /* Línea amarilla marca */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    font-family: var(--body-font-family, 'Poppins', sans-serif);
}

.contact-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); /* Sombra fuerte al subir */
    border-color: var(--secondary-color, #FFC107);
}

/* --- 3. ELEMENTOS INTERNOS DE LAS CAJAS --- */

/* Círculo del ícono */
.icon-box-unique {
    width: 70px;
    height: 70px;
    background: var(--secondary-color, #FFC107);
    color: #000;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Títulos (Matriz / Sucursal) */
.contact-box h3 {
    font-family: var(--title-font-family, 'Montserrat', sans-serif);
    font-size: var(--h4-font-size, 24px);
    font-weight: 600; 
    margin-bottom: 15px;
    color: var(--primary-color, #000); 
}

/* Texto Dirección */
.contact-box .address-text {
    font-family: var(--body-font-family, 'Poppins', sans-serif);
    color: var(--p-color, #717275);
    font-size: 18px; 
    font-weight: 300; 
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Botón Teléfono */
.phone-pill-link {
    font-family: var(--title-font-family, 'Montserrat', sans-serif);
    display: inline-block;
    background: #f4f4f4;
    color: var(--dark-color, #333);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px; 
    transition: all 0.3s;
}

.phone-pill-link:hover {
    background: #000;
    color: var(--secondary-color, #FFC107);
}

/* --- 4. CANALES DIGITALES --- */

.digital-channels-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-top: 5px solid var(--secondary-color, #FFC107);
    margin-top: 30px;
    font-family: var(--body-font-family, 'Poppins', sans-serif);
}

.digital-channels-container h4 {
    font-family: var(--title-font-family, 'Montserrat', sans-serif);
    font-size: var(--h4-font-size, 24px);
    font-weight: 700;
    color: var(--primary-color, #000);
}

.digital-channels-container p.small {
    font-size: 16px;
    color: var(--p-color, #717275);
}

/* Botón WhatsApp */
.btn-whatsapp-big {
    font-family: var(--title-font-family, 'Montserrat', sans-serif);
    background-color: #25d366;
    color: white !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

/* Animación Pulse */
.pulse-anim { animation: pulse-green 2s infinite; }
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (min-width: 992px) {
    .border-right-custom { border-right: 1px solid #eee; }
}

/* Corrección espacios internos */
#section_contact .mb-5 {
    margin-bottom: 2rem !important;
}

/* --- 5. MAPA DARK MODE (MEJORA UI) --- */
.map-container-dark {
    width: 100%;
    overflow: hidden;
    line-height: 0; 
    background-color: #141414; /* Mismo fondo que la sección para continuidad */
}

.map-filter {
    width: 100%;
    height: 450px;
    border: 0;
    
    /* FILTRO: Invierte colores para hacerlo oscuro y elegante */
    filter: grayscale(100%) invert(92%) contrast(83%);
    
    transition: filter 0.5s ease;
}

/* Opcional: Altura en móvil */
@media (max-width: 768px) {
    .map-filter {
        height: 300px;
    }
}


/* =========================================
   MEJORAS WPO Y DISEÑO
   ========================================= */

/* 1. SCROLL SUAVE GLOBAL */
html { scroll-behavior: smooth; }

/* 2. ESPACIADO PARA MENÚ FIJO */
section { scroll-margin-top: 85px; }

/* 3. NAVBAR FLOTANTE (Efecto Sticky) */
.navbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 9999;
    padding-top: 25px;
    padding-bottom: 25px;
    transition: all 0.4s ease-in-out;
    background: transparent; /* Transparente al inicio */
}

/* Estado cuando bajas el scroll */
.navbar.navbar-sticky-on {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Cambiar color de enlaces al bajar (si el fondo es blanco) */
.navbar.navbar-sticky-on .nav-link { color: #000; }
.navbar.navbar-sticky-on .nav-link.active { color: #FFC107 !important; }

/* Indicador de Sección Activa */
.navbar-nav .nav-link.active {
    color: #FFC107 !important; /* Amarillo */
    font-weight: 700;
}

/* 4. SECCIÓN DE CONTACTO DARK (El diseño que aprobaste) */
#section_contact {
    background-color: #141414 !important;
    margin-top: -100px !important; /* Efecto solapado */
    padding-top: 120px !important;
    padding-bottom: 80px !important;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: relative;
    z-index: 10;
}

.contact-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border-top: 5px solid #FFC107;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    height: 100%;
    transition: transform 0.3s;
}
.contact-box:hover { transform: translateY(-10px); }

.icon-box-unique {
    width: 60px; height: 60px;
    background: #FFC107;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 15px;
}

/* Mapa Dark Mode */
.map-container-dark { background-color: #141414; line-height: 0; }
.map-filter {
    width: 100%; height: 450px; border: 0;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

/* 5. FIX DE CONTENIDO TAPADO */
/* Empuja el contenido para que no quede detrás del menú fijo */
body { padding-top: 0; }
main { padding-top: 100px; } /* Ajusta esto si el Hero se corta */

/* =========================================
   6. HERO SECTION (VIDEO FONDO + CENTRADO)
   ========================================= */

#section_1 {
    position: relative;
    overflow: hidden;
    
    /* TRUCO PARA CENTRAR: */
    width: 100%;
    min-height: 100vh;      /* Obliga a ocupar el 100% de la altura de la pantalla */
    display: flex;          /* Activa modo flexible */
    flex-direction: column;
    justify-content: center;/* Centra Verticalmente */
    align-items: center;    /* Centra Horizontalmente */
    padding: 0;
}

/* El Video al fondo */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

/* Capa Oscura */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Oscuridad al 50% */
    z-index: -1;
}

/* El Texto (Título) */
#section_1 .container {
    position: relative;
    z-index: 2;
}