/* 1. Reset de Variables y Bloqueo de Modo Oscuro */
:root {
    --bs-navbar-color: #ffffff !important;
    --bs-navbar-hover-color: #ff0000 !important;
    color-scheme: light !important;
}

/* 2. Contenedor Maestro - Transparencia Real */
header.main-header {
    position: absolute;
    width: 100%;
    z-index: 1000;
    background: transparent !important;
}

.header-bottom {
    background-color: rgba(26, 26, 26, 0.7) !important;
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #ff0000;
    transition: background 0.3s ease;
}

/* 3. Top Bar con Links Interactivos */
.header-top {
    font-family: 'Montserrat', sans-serif;
    background: #000000;
    font-size: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top a {
    color: #ffffff !important;
    text-decoration: none;
    transition: 0.3s;
}

.header-top a:hover {
    color: #ff0000 !important;
}

/* 4. Navegación Desktop - Fix "Nuestra Empresa" */
header.main-header .navbar-nav .nav-link,
.header-sticky.sticky-bar .navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 25px 10px !important;
    transition: 0.3s;
    white-space: nowrap;
}

header.main-header .navbar-nav .nav-link:hover { color: #ff0000 !important; }

/* 5. Logo Porte Fijo */
.logo img {
    max-height: 65px !important;
    width: auto;
    padding: 10px 0;
}

/* 6. MODO STICKY */
.header-sticky.sticky-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    animation: slideInDown 0.4s;
    background-color: rgba(26, 26, 26, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 7. DROPDOWNS - Contraste Premium */
.main-header .navbar-nav .dropdown-menu {
    background-color: #ffffff !important;
    border-top: 3px solid #ff0000 !important;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.main-header .navbar-nav .dropdown-item {
    color: #333333 !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 25px;
    background: transparent !important;
}

.main-header .navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #ff0000 !important;
}

/* 9. Botón Cotizar - Restaurando el IMPACTO */
.btn-whatsapp-header {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #25d366 !important;
    color: white !important;
    font-weight: 800;
    padding: 12px 22px !important; /* Aumento de tamaño */
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
    font-size: 14px !important; /* Más grande que el menú */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-header i {
    font-size: 18px;
    margin-right: 8px;
}

.btn-whatsapp-header:hover {
    background: #128c7e !important;
    transform: translateY(-2px);
    color: white !important;
}

/* Alineación de la lista para el botón */
.nav-item-btn {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

@media (max-width: 991px) {
    .nav-item-btn {
        margin-left: 0;
        justify-content: center;
        padding: 20px 0;
    }
    .btn-whatsapp-header {
        width: 80%;
    }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
