/* Estilos para el navbar mobile estilo Frávega */

/* Contenedor de categorías mobile */
.mobile-categorias-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Item de categoría principal */
.mobile-categoria-item {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-categoria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.mobile-categoria-header:hover {
    background-color: #f8f8f8;
}

.mobile-categoria-header.has-subcategorias {
    cursor: pointer;
}

.mobile-categoria-title, .mobile-special-link {
    font-size: .9rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.mobile-categoria-icon {
    transition: transform 0.3s ease;
    color: #666;
}

.mobile-categoria-item.active .mobile-categoria-icon {
    transform: rotate(180deg);
}

/* Contenedor de subcategorías */
.mobile-subcategorias-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.mobile-categoria-item.active .mobile-subcategorias-container {
    max-height: 1000px;
}

.mobile-subcategorias-list {
    padding: 10px 0;
    margin: 0;
    list-style: none;
}

.mobile-subcategoria-item {
    padding: 0;
}

.mobile-subcategoria-link {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.mobile-subcategoria-link:hover,
.mobile-subcategoria-link:active {
    background-color: #e8e8e8;
    padding-left: 45px;
    color: #333;
}

/* Estilos para grupos de subcategorías (nivel anidado) */
.mobile-grupo-item {
    padding: 0;
    list-style: none;
}

.mobile-grupo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 10px 40px;
    background: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-grupo-header:hover {
    background-color: #e8e8e8;
}

.mobile-grupo-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: #333;
}

.mobile-grupo-icon {
    transition: transform 0.3s ease;
    color: #666;
}

.mobile-grupo-item.active .mobile-grupo-icon {
    transform: rotate(180deg);
}

/* Contenedor de items dentro del grupo */
.mobile-items-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
}

.mobile-grupo-item.active .mobile-items-container {
    max-height: 800px;
}

.mobile-items-list {
    padding: 5px 0;
    margin: 0;
    list-style: none;
}

.mobile-item {
    padding: 0;
}

.mobile-item-link {
    display: block;
    padding: 10px 20px 10px 60px;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-item-link:hover,
.mobile-item-link:active {
    background-color: #e0e0e0;
    padding-left: 65px;
    color: #333;
    border-left-color: #00B1F0;
}

/* Estilo especial para "Ver todos" */
.mobile-ver-todos .mobile-subcategoria-link {
    font-weight: 600;
    color: #00B1F0;
    background-color: #f0f8fc;
}

.mobile-ver-todos .mobile-subcategoria-link:hover {
    background-color: #e0f2f9;
}

/* Botón de ver todas las categorías */
.mobile-ver-todas {
    display: block;
    padding: 15px 20px;
    background-color: #00B1F0;
    color: white !important;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    margin: 10px 0;
}

.mobile-ver-todas:hover {
    background-color: #0099d6;
    color: white !important;
}

/* Separador de secciones */
.mobile-menu-separator {
    height: 8px;
    background-color: #e0e0e0;
    margin: 10px 0;
}

/* Animaciones suaves */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-subcategorias-list {
    animation: slideDown 0.3s ease;
}

/* Estilos para el menú colapsable principal */
.mobile-main-menu {
    background-color: white;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enlaces especiales (combos, promociones) */
.mobile-special-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.mobile-special-link:hover {
    background-color: #f8f8f8;
    color: #00B1F0;
}

.mobile-special-link svg {
    margin-right: 10px;
}

/* Ajustes responsivos */
@media (min-width: 769px) {
    .mobile-categorias-menu,
    .mobile-main-menu {
        display: none !important;
    }
}
