/* =========================================================================
   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: 13.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: 30px 0 !important; /* Mayor respiración interna */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75) !important;
}


/* 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 */
.mega-menu .dropdown-item {
    color: #cccccc !important; /* Gris claro suave de fondo */
    padding: 5px 12px !important;
    white-space: normal !important; /* Evita que los textos largos se salgan de la columna */
    transition: all 0.2s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: transparent !important; /* Quitamos el bloque amarillo pesado */
    color: #FFC800 !important; /* Brillo amarillo corporativo directo en la tipografía */
    padding-left: 18px !important; /* Efecto dinámico de desplazamiento horizontal */
    font-weight: bold;
}

/* Títulos de sección dentro del Mega Menú */
.mega-menu h6 {
    font-size: 12px;
    letter-spacing: 1px;
}

/* =========================================================================
   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 (CORREGIDO)
   ========================================================================= */
/* =========================================================================
   MARQUESINA INFINITA CONTINUA - SLIDER DE MARCAS (AZUL CORPORATIVO)
   ========================================================================= */
/* =========================================================================
   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 */
}

/* =========================================================================
   NUEVO: 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 .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) {
    /* 1. Liberamos la altura máxima fija del contenedor para que la dicte la imagen */
    .slider-frame {
        max-height: none !important;
        height: auto !important;
    }

    /* 2. Forzamos a que la imagen se encoja de forma matemática exacta sin cortarse */
    .slider-frame img {
        width: 100% !important;
        height: auto !important;        /* La altura se calcula sola según el ancho del celular */
        object-fit: contain !important; /* Muestra el banner completo, encogiéndolo de forma simétrica */
    }
}
/* =========================================================================
   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;
}

/* Efecto al pasar el mouse por encima */
.btn-whatsapp-flotante:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Animación de pulso continuo mediante CSS nativo */
.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;
    }
}

/* Ajuste milimétrico para celulares: lo subimos un poco para que no tape botones clave */
@media (max-width: 767.98px) {
    .btn-whatsapp-flotante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}
