.top-bar {
    background-color: #637C90;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Estilos base para el logo */
#desktop-logo {
    transition: height 0.3s ease-in-out;
    max-width: 210px !important; /* Forzar ancho máximo */
    width: auto;
    height: 40px; /* Altura inicial fija */
}

/* Clase para cuando el header se vuelve fijo */
.header-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Separador entre sección logo y menú */
.header-main-section {
    border-bottom: 1px solid #e5e7eb;
}

/* Ajuste para el logo cuando está scrolleado */
.header-scrolled #desktop-logo {
    height: 32px !important; /* Reducir altura */
}

/* --- Mega Menu --- */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    /* Transición con delay en visibility para que no desaparezca de golpe al salir */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.2s;
}

.group:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Al entrar, quitamos el delay para que aparezca instantáneo */
    transition-delay: 0s;
}

/* Nuevo estilo para el contenedor interno del menú */
.mega-menu-content {
    border-top: 3px solid #637C90;
}

.mega-menu-trigger.active {
    background-color: #f3f4f6; /* gray-100 */
    color: #637C90;
    font-weight: 500;
}

/* Colorear el icono chevron cuando el enlace está activo */
.mega-menu-trigger.active .chevron-icon {
    color: #637C90;
}

#mega-menu-collections a {
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#mega-menu-collections a:hover {
    background-color: #f3f4f6; /* gray-100 */
}
