/* --- VARIABLES CORPORATIVAS CIR --- */
:root {
    --morado-cir: #35256A;
    --amarillo-cir: #F2E628;
    --gris-linea: #999999;
    --blanco: #ffffff;
}

/* --- RESET Y BASE --- */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f9f9;
    padding-top: 70px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;

    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* --- HEADER --- */
.main-header {
    display: flex;            
    justify-content: space-between; 
    align-items: center;          
    padding: 0.6rem 5%;
    background-color: rgba(242, 230, 40, 0.85); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: fixed;    
    top: 0;             
    left: 0;           
    width: 100%;        
    z-index: 1000;
    transition: all 0.3s ease; 
}

.header-activo {
    background-color: rgba(242, 230, 40, 0.95); 
    padding: 0.4rem 5%;
}

.main-header img {
    height: 50px; 
    width: auto;
    filter: grayscale(20%); 
    transition: all 0.5s ease;
}

.header-activo img {
    height: 40px; 
}

.main-header img:hover {    
    transform: scale(1.05);   
}

.menu-navegacion ul {
    display: flex;            
    list-style: none;     
    gap: 20px;
}

.menu-navegacion a {
    text-decoration: none;
    color: var(--morado-cir);
    font-weight: bold;
    transition: color 0.3s ease;
}

.dropdown {
    position: relative; 
}

.menu-navegacion .dropdown .submenu {
    display: block;          
    position: absolute;     
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    padding: 10px 0;
    list-style: none;
    z-index: 1000;          
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}

.submenu li a {
    padding: 10px 15px;
    display: block;
    color: var(--morado-cir);
    font-weight: normal;    
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.submenu li a:hover {
    background-color: var(--morado-cir); 
    color: var(--blanco);            
    padding-left: 20px; 
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--morado-cir);
    transition: all 0.3s ease;
}

/* --- HEADER MÓVIL --- */
@media (max-width: 768px) {
    #btn-menu.menu-toggle {
        display: flex !important;
        justify-content: center;
        align-items: center;
        position: fixed !important; 
        top: 15px;
        right: 15px;
        width: 48px !important; 
        height: 48px !important;
        background-color: #ffffff !important;
        border-radius: 50% !important;
        z-index: 99999 !important; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        padding: 0 !important;
    }

    #btn-menu span {
        display: block;
        width: 20px !important; 
        height: 3px;
        background-color: var(--morado-cir) !important;
        margin: 2px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 4px;
        transform-origin: center; 
    }

    #btn-menu.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    
    #btn-menu.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    #btn-menu.active span:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
    }

    #menu-navegacion.menu-navegacion {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 80% !important;
        height: 100vh !important;
        background-color: rgba(242, 230, 40, 0.98); 
        z-index: 20000 !important;
        display: block !important;
        padding-top: 80px !important;
        overflow-y: auto !important;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    #menu-navegacion.menu-navegacion.active {
        right: 0 !important;
    }

    #menu-navegacion ul {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .menu-navegacion ul li a {
        display: block !important;
        padding: 18px 25px !important;
        color: var(--morado-cir) !important;
        text-decoration: none !important;
        font-weight: bold !important;
        border-bottom: 1px solid rgba(53, 37, 106, 0.1); 
        background-color: transparent !important;
    }

    .menu-navegacion .dropdown .submenu {
        display: block !important; 
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        background-color: #fff !important; 
        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s;
        position: static !important; 
        width: 100% !important;
        box-shadow: none !important;
        transform: none !important; 
    }

    .menu-navegacion .dropdown .submenu li:hover{
        background-color: var(--morado-cir); 
    }

    .menu-navegacion .dropdown .submenu.show {
        max-height: 500px !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 0 !important;
    }

    .submenu li a {
        color: var(--blanco) !important; 
        padding: 12px 45px !important;
        font-weight: normal !important;
        font-size: 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .submenu li a:hover{
        color: var(--blanco) !important; 
    }
}

/* --- SLIDER --- */
.slider {
    width: 100%;
    overflow: hidden; 
    position: relative;
    height: 400px;    
}

.slider-pista {
    display: flex;
    width: 300%; 
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    width: 100%;        
    flex: 1 0 0;        
    position: relative;
    height: 100%;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.caption {
    position: absolute;
    top: 70%;           
    left: 50%;          
    width: 80%;
    text-align: center;
    z-index: 5;
    opacity: 0; 
    animation: entradaCaption 0.8s ease-out forwards;
    animation-delay: 0.5s;
    color: var(--blanco) !important;
}

.caption h2 {
    font-size: 2.5rem;  
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}

.texto-informativo {
    color: var(--blanco);             
    font-size: 1.2rem;        
    font-weight: 500;        
    letter-spacing: 1px;      
    margin-top: 15px;        
    text-transform: uppercase; 
    max-width: 90%;          
    margin: 15px auto 0 auto;
}

.divisor {
    width: 60%;         
    border: 1px solid var(--blanco);
    margin: 20px auto;  
}

.btn-catalogo {
    display: inline-block;
    background-color: #E6E600; 
    color: var(--morado-cir);               
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 50px;       
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.btn-catalogo:hover {
    background-color: #ffff00;
    transform: scale(1.05);   
}

.btn-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    background-color: rgba(53, 37, 106, 0.6); 
    color: var(--blanco);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%; 
    z-index: 10;
    transition: background-color 0.3s;
}

.btn-slider:hover {
    background-color: rgba(53, 37, 106, 1); 
}

.prev { left: 20px; }  
.next { right: 20px; } 

@keyframes entradaCaption {
    from {
        opacity: 0;
        transform: translate(-50%, -40%); 
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%); 
    }
}

/* --- RESPONSIVIDAD DEL SLIDER --- */
@media (max-width: 768px) {
    .slider {
        height: 320px; 
    }

    .caption {
        top: 55%; 
        width: 95%; 
    }

    .caption h2 {
        font-size: 1.6rem; 
        margin-bottom: 5px;
    }

    .texto-informativo {
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .divisor {
        margin: 10px auto; 
    }

    .btn-catalogo {
        padding: 10px 20px; 
        font-size: 0.8rem;
    }

    .btn-slider {
        padding: 10px; 
        font-size: 18px;
    }
    
    .prev { left: 10px; }  
    .next { right: 10px; } 
}

@media (max-width: 480px) {
    .slider {
        height: 280px; 
    }

    .caption h2 {
        font-size: 1.3rem; 
    }

    .texto-informativo {
        font-size: 0.8rem;
    }

    .btn-slider {
        background-color: rgba(53, 37, 106, 0.4); 
    }
}

/* --- SECCIÓN ACCESOS RAPIDOS --- */
.accesos-rapidos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 5%;
    background: #f9f9f9;
}

/* --- TARJETA INDIVIDUAL --- */
.acceso-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.acceso-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--morado-cir);
}

/* Estado Inicial: Invisible y 30px hacia abajo */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Movimiento fluido */
}

/* Estado Activo: Visible y en su posición original */
.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay escalonado: Para que no aparezcan todas al mismo tiempo, sino una tras otra */
.reveal-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-card:nth-child(3) { transition-delay: 0.2s; }
.reveal-card:nth-child(4) { transition-delay: 0.3s; }

/* --- ICONOS Y TEXTO --- */
.acceso-icon {
    font-size: 2.5rem;
    color: var(--morado-cir);
    margin-bottom: 15px;
}

.acceso-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.acceso-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* --- BOTÓN DENTRO DE LA CARD --- */
.btn-acceso {
    display: inline-block;
    padding: 8px 20px;
    background: var(--morado-cir);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-acceso:hover {
    background: var(--amarillo-cir);
    color: #000;
}

/* --- MODO NOCTURNO (ADAPTACIÓN) --- */
body.dark-mode .accesos-rapidos {
    background: #121212;
}

body.dark-mode .acceso-card {
    background: #1e1e1e;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

body.dark-mode .acceso-card h3 {
    color: var(--amarillo-cir);
}

body.dark-mode .acceso-card p {
    color: #bbb;
}

body.dark-mode .acceso-icon {
    color: var(--amarillo-cir);
}

/* Tarjeta resaltada (Ofertas) */
.highlight-card {
    
    position: relative;
    overflow: hidden;
}

/* Ajuste para que el borde no se vea cortado o chueco */
body.dark-mode .highlight-card {
    background: #1e1e1e !important; /* Mismo fondo que las otras */
}


/* --- SECCIÓN QUIÉNES SOMOS --- */
.quienes-somos {
    padding: 20px 5%;
}

.qs-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.qs-iconos .qs-texto span{
    color: black !important;
}
.qs-iconos .qs-texto h4{
    color: black !important;
}

.qs-imagen {
    flex: 1;
}

.qs-imagen iframe {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0px #35256A;
    height: 350px;
}

.qs-contenido {
    flex: 1;
}

.qs-contenido a {
    text-decoration: none;
    color: var(--morado-cir);
    font-weight: bold;
    transition: color 0.3s ease;
}

.qs-contenido .subtitulo {
    color: #35256A !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.qs-contenido h2 {
    font-size: 2.5rem;
    color: #35256A !important;
    margin: 10px 0;
}

.divisor-izquierda {
    border: none;
    border-top: 4px solid #f2f200;
    width: 60px;
    margin-bottom: 20px;
}

.qs-contenido p {
    line-height: 1.6;
    color: #444 !important;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: justify;
}

.qs-iconos {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.qs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #35256A !important;
    font-size: 0.9rem;
    font-weight: 700;
}

.qs-item i {
    font-size: 2rem;
    color: #f2f200; 
    margin-bottom: 10px;
}

.qs-texto{
    text-align: center;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .qs-container {
        flex-direction: column;
        text-align: center;
    }
    
    .divisor-izquierda {
        margin: 0 auto 20px auto;
    }
    
    .qs-iconos {
        justify-content: center;
    }
}

/* --- PROVEEDORES --- */
.proveedores {
    padding: 10px 15px;
    text-align: center;
}

.titulo-proveedores {
    background-color: #E6E600; 
    padding: 15px;
    margin-bottom: 30px;
}

.titulo-proveedores h2 {
    color: var(--morado-cir); 
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.grid-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 30px; 
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.logo-item img {
    width: 100%;
    max-width: 120px; 
    height: auto;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.1); 
}

.divisor-proveedores {
    width: 80%;
    border: 1px solid var(--morado-cir);
    margin: 20px auto;
}

.btn-catalogo-amarillo {
    display: inline-block;
    background-color: #E6E600;
    color: var(--morado-cir);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    margin: px 0 15px;
    filter: grayscale(20%); 
    transition: all 0.5s ease;
}

.btn-catalogo-amarillo:hover{
    transform: scale(1.1); 
    filter: grayscale(0%);
    background-color: var(--morado-cir);
    color: #fff;
}

@media (max-width: 768px) {
    .grid-logos {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* --- COBERTURA --- */
.cobertura {
    padding: 10px 15px;
    text-align: center;
}

.titulocobertura {
    background-color: #E6E600; 
    padding: 15px;
    margin-bottom: 30px;
}

.titulocobertura h2 {
    color: var(--morado-cir); 
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-align: center;
}

.mapacobertura{
    padding: 0 15% 0 15%;
}

.mapa-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-left: 25%; 
    margin-right: 20px;
    aspect-ratio: 16 / 9;
    overflow: visible;
}

.mapa-img-base {
    width: 100%; 
    height: auto;
    display: block;
    margin-left: auto;    
}

.estado-img {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
    border: none !important;
    will-change: filter, transform;
}

.estado-sinaloa {
    top: 35%;
    left: 32%;
    width: 6.8%;
    transform: rotate(-30deg);
    transform-origin: center;
    z-index: 1; 
}

.estado-nayarit {
    top: 50%;
    left: 39%;
    width: 6%;
    transform: rotate(-2deg);
    transform-origin: center;
    z-index: 10;
}

.estado-jalisco {
    top: 54%;
    left: 39%;
    width: 12%;
    transform: rotate(4deg);
    transform-origin: center;
    z-index: 1;
    
}

.estado-img:hover {
    z-index: 100 !important;
    filter: drop-shadow(0px 10px 8px rgba(53, 37, 106, 0.4));
}

/* --- ANIMACIÓN HOVER DE LOS ESTADOS --- */
.estado-sinaloa:hover {
    transform: translateY(-10px) scale(1.1) rotate(-30deg); 
    z-index: 1;
    filter: brightness(0.5) sepia(1) hue-rotate(225deg) saturate(3);
}

.estado-nayarit:hover {
    transform: translateY(-10px) scale(1.1) rotate(-2deg); 
    z-index: 10;
    filter: brightness(0.5) sepia(1) hue-rotate(225deg) saturate(3);
}

.estado-jalisco:hover {
    transform: translateY(-10px) scale(1.1) rotate(4deg);
    z-index: 1;
    filter: brightness(0.5) sepia(1) hue-rotate(225deg) saturate(3);
}

.punto-mapa {
    position: absolute;
    width: 8px;  
    height: 8px;
    background-color: #ffffff; 
    border: 2px solid #35256A; 
    border-radius: 50%;
    z-index: 20; 
    transform: translate(-50%, -50%);
    pointer-events: none; 
}

.punto-sinaloa { 
    top: 45%; 
    left: 36%; 
}

.punto-nayarit { 
    top: 57%; 
    left: 41.5%; 
}

.punto-jalisco { 
    top: 63%; 
    left: 44.5%; 
}

.leyenda {
    position: absolute;
    left: -20%; 
    width: 20%; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #35256A; 
    font-weight: 700;
    z-index: 30;
    white-space: nowrap; 
}

.linea-conector {
    position: absolute;
    left: 105%; 
    top: 50%;
    transform: translateY(-50%);
    border-color: #35256A;
    border-style: solid;
    border-width: 0;
    pointer-events: none;
}

.ley-sinaloa { 
    top: 38%;
}

.ley-sinaloa .linea-conector {
    width: 175%; 
    height: 1vw; 
    border-top-width: 1px;
    border-right-width: 1px;
    top: 50%;
    transform: translateY(0);
}

.ley-nayarit { 
    top: 55.5%; 
}

.ley-nayarit .linea-conector {
    width: 190%; 
    height: 1px;
    border-bottom-width: 1px;
    border-right-width: 1px;
    top: 50%;
}

.ley-jalisco { 
    top: 70%; 
}

.ley-jalisco .linea-conector {
    width: 218%;
    height: 2.5vw;
    top: 50%;
    transform: translateY(-100%);
    border-bottom-width: 1px;
    border-right-width: 1px;
}

.ley-nayarit span{ color: black !important;}
.ley-sinaloa span{ color: black !important;}
.ley-jalisco span{ color: black !important;}

/* =======================================================
   SISTEMA DE CHAT IA - ABARROTERA CIR 
======================================================= */

/* --- BOTÓN FLOTANTE (BURBUJA) --- */
#ai-chat-bubble {
    position: fixed;
    bottom: 100px; 
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--amarillo-cir); 
    color: var(--morado-cir);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999; 
    border: none;
    transition: all 0.3s ease;
}

#ai-chat-bubble:hover {
    transform: scale(1.1);
    background-color: var(--morado-cir);
    color: var(--amarillo-cir);
}

/* --- VENTANA DE CHAT PRINCIPAL --- */
#ai-chat-window {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #ffffff; 
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(53, 37, 106, 0.25);
    display: none; 
    flex-direction: column;
    z-index: 10000; 
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Roboto, sans-serif;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- CABECERA DEL CHAT --- */
.ai-chat-header {
    background: var(--morado-cir);
    color: white;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--amarillo-cir);
}

.ai-chat-header span {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* --- CONTENEDOR DE MENSAJES --- */
#ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f9fa; 
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}

.msg-bot {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.msg-user {
    background: var(--morado-cir);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* --- ÁREA DE ENTRADA (INPUT) --- */
.ai-chat-input {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    align-items: center;
}

#ai-user-query {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 15px;
    outline: none;
    transition: border 0.3s;
    font-size: 0.9rem;
}

#ai-user-query:focus {
    border-color: var(--morado-cir);
    box-shadow: 0 0 0 3px rgba(53, 37, 106, 0.05);
}

.btn-send-ai {
    background: var(--amarillo-cir);
    color: var(--morado-cir);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-send-ai:hover {
    transform: rotate(15deg) scale(1.1);
    background-color: var(--morado-cir);
    color: var(--amarillo-cir);
}

/* --- ANIMACIONES --- */
@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Ajuste para móviles */
@media (max-width: 400px) {
    #ai-chat-window {
        width: 90%;
        right: 5%;
        left: 5%;
        height: 70vh;
        bottom: 100px;
    }
}

/* --- BOTÓN MODO NOCTURNO (ENCIMA DE WHATSAPP) --- */
.btn-flotante-nocturno {
    position: fixed;
    bottom: 95px; 
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--morado-cir);
    color: var(--amarillo-cir);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999; 
    transition: all 0.3s ease;
    border: 2px solid var(--amarillo-cir);
}

.btn-flotante-nocturno:hover {
    transform: scale(1.1);
    background-color: var(--amarillo-cir);
    color: var(--morado-cir);
}

/* --- AJUSTES DE VISIBILIDAD PARA MODO OSCURO --- */
body.dark-mode {
    background-color: #121212 !important;
    color: #e1e1e1 !important; 
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode p,
body.dark-mode li {
    color: #ffffff !important;
}

body.dark-mode .form-container, 
body.dark-mode .pasos-registro {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

body.dark-mode .form-group label {
    color: var(--amarillo-cir) !important; 
}

body.dark-mode .form-group input, 
body.dark-mode .form-group select {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}

body.dark-mode input::placeholder {
    color: #888 !important;
}

body.dark-mode .aviso-registro,
body.dark-mode #camposFactura {
    background-color: #252a35 !important;
    border-color: #35256A !important;
}

body.dark-mode .aviso-texto p,
body.dark-mode .aviso-factura p {
    color: #a5b4fc !important; 
}

/* ======================================================
   CORRECCIÓN GLOBAL DE TEXTOS PARA MODO OSCURO (CIR)
   ====================================================== */

body.dark-mode .card-identidad,
body.dark-mode .sucursal-card,
body.dark-mode .servicio-card,
body.dark-mode .valor-card,
body.dark-mode .giro-card,
body.dark-mode .hito-info,
body.dark-mode .faq-item,
body.dark-mode .faq-content {
    background-color: #1e1e1e !important; 
    border: 1px solid #333 !important;
    color: #ffffff !important; 
}

body.dark-mode .card-identidad h3,
body.dark-mode .sucursal-card h3,
body.dark-mode .servicio-card h3,
body.dark-mode .valor-card h3,
body.dark-mode .giro-card h3,
body.dark-mode .hito-info h3,
body.dark-mode .faq-item summary {
    color: var(--amarillo-cir) !important; 
}

body.dark-mode .card-identidad p,
body.dark-mode .sucursal-card p,
body.dark-mode .servicio-card p,
body.dark-mode .valor-card p,
body.dark-mode .giro-card p,
body.dark-mode .hito-info p,
body.dark-mode .faq-content p,
body.dark-mode .card-list li,
body.dark-mode .requisitos-lista li {
    color: #e0e0e0 !important; 
}

body.dark-mode .card-identidad i,
body.dark-mode .sucursal-card i,
body.dark-mode .card-icon i,
body.dark-mode .giro-icon i,
body.dark-mode .hito-numero {
    color: var(--amarillo-cir) !important;
}

body.dark-mode .valor-icon i{
    color: var(--morado-cir);
}

body.dark-mode .hito-numero {
    background-color: #35256A !important;
    border: 2px solid var(--amarillo-cir);
}

body.dark-mode .faq-item {
    border-bottom: 1px solid #444 !important;
}

body.dark-mode .faq-item summary {
    background-color: #252525 !important;
}

/* =============================================
   CORRECCIÓN DE FONDOS BLANCOS (MODO NOCTURNO)
   ============================================= */

body.dark-mode .historia-corporativa {
    background-color: #121212;
}

body.dark-mode .giro-naturaleza {
    background-color: #1a1a1a; 
}

body.dark-mode .valores-corporativos {
    background-color: #121212; 
}

body.dark-mode .valor-card, 
body.dark-mode .giro-card,
body.dark-mode .card-identidad {
    background-color: #1e1e1e; 
    border-bottom: 4px solid var(--amarillo-cir);
    color: #ffffff;
}

body.dark-mode .hito-info p,
body.dark-mode .giro-card p,
body.dark-mode .valor-card p,
body.dark-mode .valores-header p {
    color: #d1d1d1; 
}

body.dark-mode .tags-categorias span {
    background: #252525;
    color: #ffffff;
    border-color: var(--amarillo-cir);
}

/* --- MODO NOCTURNO: Index --- */
body.dark-mode .qs-contenido a, span, h4{
    color: var(--blanco) !important;
}

body.dark-mode .titulo-proveedores h2{
    color: var(--morado-cir) !important;
}

body.dark-mode .titulocobertura h2{
    color: var(--morado-cir) !important;
}

body.dark-mode .qs-contenido .subtitulo {
    color: var(--blanco) !important;
}

body.dark-mode .qs-iconos .qs-texto span{
    color: var(--blanco) !important;
}
body.dark-mode .qs-iconos .qs-texto h4{
    color: var(--blanco) !important;
}

body.dark-mode .ley-nayarit span{ color: var(--blanco) !important;}
body.dark-mode .ley-sinaloa span{ color: var(--blanco) !important;}
body.dark-mode .ley-jalisco span{ color: var(--blanco) !important;}

/* --- MODO NOCTURNO: Entregas a Domicilio --- */
body.dark-mode .banner-proxima-salida {
    background: #1e1e24;
    border: 1px solid #333333;
}

body.dark-mode .banner-proxima-salida h2 {
    color: #ffffff;
}

body.dark-mode .ciudad-principal {
    color: white;
}

body.dark-mode .badge-item {
    background: #2a2d34;
    color: #e0e0e0 !important;
    border: 1px solid #444444;
}

body.dark-mode .badge-item span{
    color: var(--blanco) !important;
}

body.dark-mode .buscador-container .input-wrapper {
    background: #1e1e24;
    border: 1px solid #555555;
}

body.dark-mode .buscador-container input {
    color: #ffffff;
    background: transparent;
}

body.dark-mode .buscador-container input::placeholder {
    color: #888888;
}

body.dark-mode .buscador-container i {
    color: #ffc107; 
}

body.dark-mode .tabla-logistica {
    background: #2a2d34;
    color: #e0e0e0;
}

body.dark-mode .tabla-logistica th {
    background: #1e1e24;
    color: #ffffff;
    border-bottom: 2px solid #ffc107;
}

body.dark-mode .tabla-logistica tr {
    border-bottom: 1px solid #444444;
}

body.dark-mode .tabla-logistica tr:hover {
    background: #363a43;
    color: black;
}

/* --- MODO NOCTURNO: Vacantes recientes --- */
body.dark-mode .tab-btn {
    padding: 12px 25px;
    border: 2px solid var(--blanco) !important;
    background: transparent;
    color: var(--blanco) !important;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- MODO NOCTURNO: Servicio a Cliente --- */

body.dark-mode .atencion-header .tag-exclusivo {
    background: rgba(53, 37, 106, 0.2) !important; 
    color: var(--blanco) !important; 
    padding: 5px 15px !important;
    border-radius: 20px !important;
    border: 1px solid var(--amarillo-cir) !important;
}

body.dark-mode .requisitos-lista li i {
    color: var(--blanco) !important;
    width: 20px !important;
    text-align: center !important;
}

body.dark-mode .faq-content a {
    color: var(--blanco) !important;
    width: 20px;
    text-align: center;
}

body.dark-mode .categorias-mini h4{
    color: var(--blanco) !important;
}

body.dark-mode .tags-categorias span {
    background: var(--amarillo-cir);
    color: var(--morado-cir) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--morado-cir);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

body.dark-mode .tags-categorias span:hover {
    color: var(--blanco) !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(53, 37, 106, 0.2);
    border-color: #f2f200;
}

body.dark-mode .card-list i { 
    color: var(--blanco) !important; 
    margin-right: 10px; 
    width: 15px; }


/* --- MODO NOCTURNO: Vendedores --- */
body.dark-mode .vendedor-front,
body.dark-mode .vendedor-back {
    background: #2a2d34; 
    color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

body.dark-mode .vendedor-info h3,
body.dark-mode .vendedor-back h3 {
    color: #ffffff;
}

body.dark-mode .zona-tag {
    background: rgba(255, 193, 7, 0.15); 
    color: #ffc107; 
}

body.dark-mode .detalles-ruta span {
    color: white !important;
}

body.dark-mode .detalles-ruta {
    background-color: #121212 !important;
}

body.dark-mode .ruta-info-detallada ul li {
    color: #cccccc;
    border-bottom: 1px solid #444444; 
}

body.dark-mode div.tag-exclusivo {
    display: inline-block !important; 
    width: auto !important;
    background-color: var(--morado-cir) !important;
    color: var(--amarillo-cir) !important;
    padding: 6px 20px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

/* =============================================
   MODO NOCTURNO: SECCIÓN OFERTAS
   ============================================= */

body.dark-mode .ofertas-container {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .ofertas-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(53, 37, 106, 0.8), rgba(53, 37, 106, 0.8)), 
                url('../img/ofertas.png') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    color: white;
    padding: 50px 40px; 
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-left: 8px solid var(--amarillo-cir);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.1);
}

body.dark-mode .ofertas-banner::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

body.dark-mode .banner-badge {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 50%;
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

body.dark-mode .pasos-afiliacion{
    background-color: #1a1a1a;
    border: var(--amarillo-cir) solid 1px;
}

body.dark-mode .paso-numero {
    background-color: #2a2547;
    color: var(--amarillo-cir);
    border: 2px solid var(--amarillo-cir);
}

body.dark-mode .paso-flecha {
    color: var(--amarillo-cir);
}

body.dark-mode .oferta-card-det {
    background-color: #242424;
    color: #e0e0e0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

body.dark-mode .oferta-card-det i {
    color: var(--amarillo-cir);
}

body.dark-mode .oferta-card-det.highlight {
    border: 1px solid var(--amarillo-cir);
    background-color: #1e1e1e;
}

body.dark-mode .telefonos span {
    background: #2a2547;
    color: #ffffff;
}

body.dark-mode .vendedores-container {
    background: #1a1a1a;
}

body.dark-mode .vendedores-icon i{
    color: var(--amarillo-cir);
}

body.dark-mode .tag-exclusivo {
    background: var(--amarillo-cir);
    color: #000;
}

body.dark-mode .sello-item i {
    color: var(--amarillo-cir);
}

body.dark-mode .sello-item span {
    color: #ffffff;
}

body.dark-mode .testimonio-card {
    background-color: #1e1e24;
    border-bottom: 3px solid #35256A;
}

body.dark-mode .testimonio-card p {
    color: #d1d1d1;
    font-style: italic;
}

body.dark-mode .estrellas i {
    color: var(--amarillo-cir);
}

body.dark-mode .cliente-info i {
    color: var(--amarillo-cir);
}

body.dark-mode .ofertas-footer p {
    color: var(--amarillo-cir);
    border-top: 1px solid #333;
    padding-top: 20px;
}

body.dark-mode .subtitulo-seccion {
    color: #ffffff;
}

body.dark-mode .cliente-info strong {
    display: block;
    color: var(--blanco);
    font-size: 1rem;
}

/* =============================================
   SECCIÓN: CONTACTO (MODO NOCTURNO)
   ============================================= */

body.dark-mode .rh-section {
    background-color: #121212 !important;
}

body.dark-mode .rh-form-wrapper {
    background-color: #1e1e1e !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

body.dark-mode .form-rh label,
body.dark-mode .form-rh h3 {
    color: var(--amarillo-cir) !important;
}

body.dark-mode .form-rh input,
body.dark-mode .form-rh select,
body.dark-mode .form-rh textarea {
    background-color: #2a2a2a !important;
    border: 1px solid #444444 !important;
    color: #ffffff !important;
}

body.dark-mode .form-rh input::placeholder,
body.dark-mode .form-rh textarea::placeholder {
    color: #888888 !important;
}

body.dark-mode .form-rh input:focus,
body.dark-mode .form-rh select:focus,
body.dark-mode .form-rh textarea:focus {
    border-color: var(--amarillo-cir) !important;
    background-color: #333333 !important;
    outline: none !important;
}

body.dark-mode .form-rh select option {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

body.dark-mode #info-vacante {
    background-color: #1b261d !important; 
    border-left: 5px solid var(--amarillo-cir) !important;
}

body.dark-mode #info-vacante p,
body.dark-mode #info-vacante b {
    color: #a5d6a7 !important; 
}

body.dark-mode .form-footer-note {
    color: #888888 !important;
}

body.dark-mode .btn-wa-sucursal {
    background-color: #25d366 !important;
    color: #ffffff !important;
    border: none !important;
}

/* =============================================
   REPARACIÓN ESPECÍFICA: COLUMNA IZQUIERDA
   ============================================= */

body.dark-mode .btn-vendedores-icono, 
body.dark-mode .AtencionDirecta .btn-vendedores-icono,
body.dark-mode .AtencionDirecta-2 .btn-vendedores-icono {
    color: var(--amarillo-cir) !important;
}

body.dark-mode .texto-wrapper strong,
body.dark-mode .AtencionDirecta strong,
body.dark-mode .AtencionDirecta-2 strong {
    color: #ffffff !important;
    display: block;
    margin-bottom: 5px;
}

body.dark-mode .texto-wrapper p,
body.dark-mode .AtencionDirecta p,
body.dark-mode .AtencionDirecta-2 p {
    color: #bbbbbb !important; 
}

body.dark-mode .rh-info h2 {
    color: #ffffff !important;
}

body.dark-mode .tag-exclusivo {
    background-color: var(--amarillo-cir) !important;
    color: #000000 !important;
}

body.dark-mode .tag-exclusivo {
    background: transparent !important;
    padding-left: 0 !important; 
}

body.dark-mode .tag-exclusivo h3 {
    color: #ffffff !important;
}

body.dark-mode .beneficio-item:hover {
    background-color: #2a2547 !important; 
    border-radius: 10px;
    transition: background 0.3s ease;
}

body.dark-mode .beneficio-item:hover h3,
body.dark-mode .beneficio-item:hover strong,
body.dark-mode .beneficio-item:hover p,
body.dark-mode .beneficio-item:hover i {
    color: #ffffff !important;
}

body.dark-mode .AtencionDirecta:hover,
body.dark-mode .AtencionDirecta-2:hover {
    background-color: #2a2547 !important;
    border-radius: 8px;
}

/* --- MODO NOCTURNO: Servicios --- */

body.dark-mode .giro-header span {
    color: var(--blanco) !important;
}

body.dark-mode .servicio-numero {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(237, 236, 241, 0.1) !important;
    margin-bottom: -30px;
}

/* --- MODO NOCTURNO: Quienes somos --- */

body.dark-mode .hito-info {
    border-left: 3px solid #f2f200 !important;
    padding: 10px;
    border-radius: 10px;
}

body.dark-mode .historia-corporativa {
    margin-top: 2%;
    padding: 50px 5%;
    background-color: #1e1e1e !important;
}

/*--- MODO NOCTURNO: Ofertas ---*/

body.dark-mode .telefonos span {
    display: block;
    background: #1e1e1e !important;
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--blanco) !important;
    font-weight: bold;
    transition: 0.3s;
    border-left: 5px solid var(--amarillo-cir) !important;
}

body.dark-mode .telefonos span:hover { background: var(--blanco) !important; color: #000 !important;}

body.dark-mode .btn-vendedores:hover {
    background: transparent;
    color: var(--blanco) !important;
    transform: translateX(5px);
}

.btn-whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    line-height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #35256A; 
    color: #F2E628;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-whatsapp-flotante:hover {
    background-color: #128c7e; 
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.5);
    color: #FFF;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .btn-whatsapp-flotante {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }
}

/* =========================================
   ANIMACIONES JS
   ========================================= */

.anim-arriba, .anim-izq, .anim-der {
    opacity: 0 !important;
    visibility: hidden; 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s !important;
    will-change: transform, opacity;
}

.anim-arriba { transform: translateY(30px); }
.anim-izq { transform: translateX(-30px); }
.anim-der { transform: translateX(30px); }

/* --- ESTADO ACTIVO --- */
.anim-activo {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(0) !important;
}

/* --- REFUERZO LOGOS (Brillo para imágenes grises) --- */
.logo-item img {
    filter: brightness(1) !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.logo-item:hover img {
    filter: brightness(1.3) !important;
    transform: scale(1.1) !important;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #1a1a1a; 
    color: var(--blanco);
    padding: 5px 0;
    font-family: sans-serif;
    margin-top: 15px;
}

.footer-container {
    display: flex !important; 
    flex-direction: row; 
    justify-content: space-between; 
    align-items: flex-start; 
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 2%;
    gap: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column i {
    padding-right: 10px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column img {
    display: flex;
    height: 50px;
    margin: auto;
    margin-top: 20%;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;  
}

.footer-column a:hover,
.social-links a:hover {
    color: var(--amarillo-cir);
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-links i {
    margin-right: 5px;
    padding-top: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #777;
}

.footer-column h3 {
    color: var(--amarillo-cir); 
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: white;
    font-size: 0.9rem;
    padding-left: 0; 
}

.footer-description {
    text-align: center;
    font-size: 0.8rem !important;
    color: #bbb !important;
    margin-top: 15px;
}

.sucursal-item p i {
    color: var(--amarillo-cir);
}

.sucursal-item p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    justify-content: flex-start; 
    margin: 5px 0;
}

.sucursal-item, .contacto-footer {
    width: 100%;
    max-width: 300px; 
    text-align: left;
    margin-bottom: 10px;
}

.contacto-footer p{
    text-align: center;
    margin-top: 10px;
}

.footer-column .CC {
    text-align: center;
    margin-top: 10px;
}

.footer-column .CC a {
    padding-left: 0; 
    font-weight: bold;
    color: var(--amarillo-cir);
    font-size: 0.85rem;
}

.footer-column:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 15px;
    max-width: 180px;
}

.columna-logo, 
.footer-column {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    min-width: 250px; 
}

.aviso-proteccion {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--morado-cir, #35256A);
    color: var(--amarillo-cir, #FFC107);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aviso-proteccion.show {
    transform: translateX(-50%) translateY(0);
}

.aviso-proteccion i {
    font-size: 1.1rem;
}

@media (max-width: 850px) {
    .footer-container {
        flex-direction: column !important; 
        align-items: center !important;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-column p, 
    .footer-column .CC a {
        padding-left: 0 !important; 
        justify-content: center;
    }

    .footer-column img {
        margin-top: 10px;
    }
}

