/**
 * ====================================================================
 * REDISEÑO COMPLETO DEL HEADER - MODERNO Y COMPACTO
 * Header profesional con mejor proporción y diseño limpio
 * ====================================================================
 */

/* Reset general del header */
header {
    position: relative;
    width: 100%;
    background: #fff;
}

/* ====================================================================
   TOPBAR - BARRA SUPERIOR OSCURA (OCULTA POR DEFECTO)
   ==================================================================== */
.top-bar {
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    padding: 5px 0;
    display: none; /* Ocultar para hacer header más compacto */
}

/* Si quieres mostrar el topbar en desktop */
@media (min-width: 992px) {
    .top-bar {
        display: block;
    }
}

.top-bar .content-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
}

.top-bar .left-top-bar {
    font-size: 11px;
    opacity: 0.9;
}

.top-bar .right-top-bar {
    display: flex;
    gap: 0;
}

.top-bar .right-top-bar a {
    color: #fff;
    font-size: 11px;
    padding: 0 12px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    line-height: 30px;
}

.top-bar .right-top-bar a:hover {
    opacity: 1;
}

/* ====================================================================
   HEADER PRINCIPAL - DISEÑO MODERNO Y COMPACTO
   ==================================================================== */
.container-menu-desktop {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.wrap-menu-desktop {
    background: #fff;
}

.limiter-menu-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 30px;
}

/* ====================================================================
   LOGO - TAMAÑO ÓPTIMO
   ==================================================================== */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* ====================================================================
   MENÚ DE NAVEGACIÓN - TAMAÑO LEGIBLE
   ==================================================================== */
.menu-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.main-menu li {
    position: relative;
}

.main-menu li a {
    display: block;
    padding: 10px 16px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.main-menu li a:hover {
    color: #3498db;
    background: #f8f9fa;
}

.main-menu li.active-menu a {
    color: #3498db;
    background: #e3f2fd;
}

/* ====================================================================
   ICONOS DEL HEADER - TAMAÑO ADECUADO
   ==================================================================== */
.wrap-icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.icon-header-item {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    color: #2c3e50;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-header-item:hover {
    color: #3498db;
    background: #f8f9fa;
}

/* Badge del carrito - Más visible */
.icon-header-noti[data-notify]:after {
    content: attr(data-notify);
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* ====================================================================
   BREADCRUMB - MÁS COMPACTO Y LIMPIO
   ==================================================================== */
.breadcrumb-modern {
    background: #f8f9fa;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-modern .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-modern .breadcrumb-item {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #3498db;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #2c3e50;
    font-weight: 500;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

/* ====================================================================
   RESPONSIVE - MOBILE
   ==================================================================== */
@media (max-width: 991px) {
    .container-menu-desktop {
        display: none;
    }
    
    .breadcrumb-modern {
        padding: 10px 0;
    }
    
    .breadcrumb-modern .breadcrumb-item {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .wrap-header-mobile {
        display: none;
    }
}

/* ====================================================================
   MEJORAS ADICIONALES
   ==================================================================== */

/* Animación suave al hacer scroll */
.container-menu-desktop {
    transition: box-shadow 0.3s ease;
}

body.scrolled .container-menu-desktop {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Evitar saltos de layout */
.animsition {
    position: relative;
}

/* Asegurar que el contenido no se solape */
body {
    padding-top: 0 !important;
}

/* ====================================================================
   AJUSTES PARA PANTALLAS GRANDES
   ==================================================================== */
@media (min-width: 1400px) {
    .limiter-menu-desktop {
        padding: 15px 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .main-menu li a {
        font-size: 16px;
        padding: 12px 18px;
    }
    
    .icon-header-item {
        font-size: 24px;
        width: 45px;
        height: 45px;
    }
}

/* ====================================================================
   AJUSTES PARA TABLETS
   ==================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .limiter-menu-desktop {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .main-menu li a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .icon-header-item {
        font-size: 20px;
        width: 38px;
        height: 38px;
    }
}
