/* =========================================================================
 ESTILOS PREMIUM - DAVA TOOLS PERÚ (DISEÑO OSCURO COMERCIAL)
 ========================================================================= */
body {
    background-color: #0c0d0e !important;
    color: #ffffff !important;
}
/* Configuraciones avanzadas para modernizar el menú superior */
.bg-custom-black {
    background-color: #000000 !important;
}
.border-brand-bottom {
    border-bottom: 2px solid #FFC800 !important;
}
.nav-link-custom {
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
}
.nav-link-custom:hover,
.nav-link-custom.active {
    color: #FFC800 !important;
}
/* Botón de Acción Destacado en el Menú */
.btn-contact-custom {
    background-color: transparent;
    color: #FFC800 !important;
    border: 1px solid #FFC800;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 18px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-contact-custom:hover {
    background-color: #FFC800;
    color: #000000 !important;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.3);
}
/* Efecto de levante dinámico para las tarjetas del catálogo */
.hover-shadow:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 200, 0, 0.12) !important;
}
.text-warning-custom {
    color: #FFC800 !important;
}
/* =========================================================================
 ESTILOS PREMIUM PARA EL MEGA MENÚ DE CATEGORÍAS (DAVA TOOLS)
 ========================================================================= */
/* Caja del contenedor principal del Mega Menú */
.mega-menu {
    background: #000000 !important; /* Total black combinando con el menú de navegación */
    border-top: 3px solid #FFC800 !important;
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 9999;
    padding: 25px 0 !important; /* Mayor respiración interna */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75) !important;
}
/* Envoltura interna - Alineación calibrada */
/* 1. Expandimos el contenedor para que no tenga límite de ancho */
.mega-menu-container {
    width: 100%;
    max-width: 100% !important; /* Forzamos a que use todo el ancho del monitor */
    margin: 0;
    /* 50px de padding a los lados para que las columnas de las esquinas no peguen contra el borde de la pantalla */
    padding: 10px 50px 15px 50px !important;
    box-sizing: border-box;
}


/* Grilla de alto impacto para balancear tus categorías en filas horizontales */
/* 2. Forzamos a la grilla a mantener las 7 columnas alineadas en una sola fila */
.mega-menu-grid {
    display: grid;
    /* Crea exactamente 7 columnas iguales que se adaptan al ancho total disponible */
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 20px 15px; /* Espaciado horizontal milimétrico para que entre todo cómodo */
}

/* Activa la visualización al pasar el mouse por encima */
.dropdown:hover .mega-menu {
    display: block;
}
/* Enlaces de las categorías dentro del menú desplegable */
/* Enlaces de los productos (Agrandamos el texto y calibramos el interlineado) */
.mega-menu .dropdown-item {
    color: #cccccc !important;
    font-size: 13.5px !important; /* Subimos de 11.5px a 12.5px para mayor legibilidad */
    font-weight: 500; /* Le da un toque más firme a la letra */
    padding: 7px 0px !important; /* Aumentamos ligeramente el espacio vertical entre enlaces */
    line-height: 15px; /* Controla que los textos largos mantengan buena separación */
    white-space: normal !important;
    transition: all 0.2s ease;
}
/* Efecto Hover dinámico ajustado */
.mega-menu .dropdown-item:hover {
    background-color: transparent !important;
    color: #FFC800 !important;
    padding-left: 6px !important; /* Un sutil desplazamiento al pasar el mouse */
    font-weight: 700;
}
/* Títulos de sección dentro del Mega Menú */
.mega-menu h6 {
    font-size: 13.5px; /* Subimos de 12px a 13.5px */
    font-weight: 700 !important; /* Le damos más grosor para que resalte */
    letter-spacing: 0.5px;
    margin-top: 15px;
    margin-bottom: 15px !important;
}

/* =========================================================================
 SLIDER DE BANNERS CON ANIMACIÓN CSS NATIVA (SUPERIOR)
 ========================================================================= */
.slider-frame {
    width: 100%;
    height: auto;
    max-height: 480px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}
.slider-frame ul {
    display: flex;
    padding: 0;
    margin: 0;
    width: 400%; /* Proporción para 4 imágenes */
    animation: slide_banners 16s infinite ease-in-out;
}
.slider-frame li {
    width: 100%;
    list-style: none;
}
.slider-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}
@keyframes slide_banners {
    0% { margin-left: 0; }
    20% { margin-left: 0; }
    25% { margin-left: -100%; }
    45% { margin-left: -100%; }
    50% { margin-left: -200%; }
    70% { margin-left: -200%; }
    75% { margin-left: -300%; }
    95% { margin-left: -300%; }
    100% { margin-left: 0; }
}
/* =========================================================================
 MARQUESINA INFINITA CONTINUA - SLIDER DE MARCAS (AZUL CORPORATIVO)
 ========================================================================= */
/* Contenedor principal de la cinta de marcas (Azul institucional) */
.slider-marcas-azul {
    width: 100%;
    height: 90px; /* Aumentamos ligeramente la altura para que respire el bloque blanco */
    background-color: #003366 !important;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid #FFC800;
    display: flex;
    align-items: center;
}
/* Pista de movimiento infinito adaptada a 14 elementos */
.slide-track-infinito {
    display: flex;
    width: calc(200px * 14);
    animation: scroll_infinito 25s linear infinite;
}
/* Caja contenedora individual para cada logotipo */
.slide-logo {
    width: 200px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px; /* Espaciado lateral entre bloques */
}
/* FORZAMOS EL CONTENEDOR BLANCO UNIFORME EN TODAS LAS IMÁGENES */
.slide-logo img {
    height: 55px !important; /* Altura fija idéntica para todas */
    width: 160px !important; /* Ancho fijo idéntico para todas */
    object-fit: contain !important; /* Mantiene la proporción del logo sin estirarlo */
    background-color: #ffffff !important; /* Fondo blanco unificado */
    padding: 6px 12px !important; /* Margen interno para que el logo respire dentro del blanco */
    border-radius: 4px !important; /* Bordes ligeramente redondeados muy elegantes */
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important; /* Sombra sutil para dar relieve */
    transition: all 0.3s ease !important;
}
/* Efecto Hover dinámico al posar el mouse */
.slide-logo img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 5px 12px rgba(255,200,0,0.3) !important; /* Brillo amarillo sutil */
}
/* Animación matemática de traslación continua */
@keyframes scroll_infinito {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); }
}
/* Botón contorno amarillo para las tarjetas del index */
.btn-outline-warning {
    color: #FFC800 !important;
    border-color: #FFC800 !important;
}
.btn-outline-warning:hover {
    background-color: #FFC800 !important;
    color: #000000 !important;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.3) !important;
}

/* =========================================================================
 OPTIMIZACIÓN ESTRICTA PARA MÓVILES Y BUSCADOR DE ALTO IMPACTO
 ========================================================================= */
@media (max-width: 991.98px) {
    .mega-menu {
        position: relative !important;
        box-shadow: none !important;
        background-color: #070809 !important;
        padding: 15px !important;
        border-radius: 8px !important;
    }
    .mega-menu-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    .mega-menu .col {
        border-end: none !important;
        border-bottom: 1px solid #2d3238 !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
    }
    .mega-menu .col:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .navbar-collapse {
        max-height: 75vh;
        overflow-y: auto;
        padding-bottom: 15px;
    }
}
/* Diseño para el Buscador Premium */
.search-wrapper .form-control {
    background-color: #111315 !important;
    border: 1px solid #2d3238 !important;
    color: #ffffff !important;
    border-radius: 20px 0 0 20px !important;
    font-size: 13.5px;
    transition: all 0.3s ease;
}
.search-wrapper .form-control:focus {
    border-color: #FFC800 !important;
    box-shadow: 0 0 8px rgba(255, 200, 0, 0.2) !important;
}
.search-wrapper .btn-search {
    background-color: #FFC800 !important;
    color: #000000 !important;
    border: 1px solid #FFC800 !important;
    border-radius: 0 20px 20px 0 !important;
    font-weight: 600;
    padding: 0 20px !important;
}

/* ADAPTACIÓN PROPORCIONAL DE BANNER (ESTILO TRANSMEDIAL SATA TOOLS) */
@media (max-width: 767.98px) {
    .slider-frame {
        max-height: none !important;
        height: auto !important;
    }
    .slider-frame img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* BOTÓN FLOTANTE DE WHATSAPP CON ANIMACIÓN DE PULSO PREMIUM */
.btn-whatsapp-flotante {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-whatsapp-flotante:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp-flotante::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #25d366;
    border-radius: 50px;
    z-index: -1;
    animation: pulso_whatsapp 2s infinite;
    opacity: 0.7;
}
@keyframes pulso_whatsapp {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}
@media (max-width: 767.98px) {
    .btn-whatsapp-flotante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}
/* Sincronización perfecta de alturas y simetría */
.input-cantidad-custom {
    height: 48px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
}

/* Botón Premium alineado a la identidad corporativa de Davatools */
.btn-compra-premium {
    background-color: #ffcc00 !important;
    color: #000000 !important;
    height: 48px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    letter-spacing: 0.5px;
    transition: all 0.25s ease-in-out !important;
}

/* Efecto Hover: Oscurece el amarillo de forma elegante al pasar el mouse */
.btn-compra-premium:hover {
    background-color: #dbaf00 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3) !important;
}

/* Efecto Active: Sensación de hundimiento al hacer clic */
.btn-compra-premium:active {
    transform: translateY(1px);
}


