/* --- NAVBAR DESKTOP (SIMULACIÓN DE TU ACTUAL) --- */
.navbar-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    padding: 10px 20px;
    border-bottom: 3px solid var(--primary-red);
}

.navbar-brand img {
    height: 40px;
}

/* --- MENÚ MÓVIL TIPO TAB BAR (INFERIOR) --- */
.mobile-tab-bar {
    position: fixed;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--primary-color);
    display: none;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s;
}

.tab-item i {
    font-size: 1.4rem;
}

.tab-item.active,
.tab-item:active {
    color: var(--gold);
}

.tab-item.special {
    color: white;
}

.tab-item.special i {
    background: var(--primary-red);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: -30px;
    box-shadow: 0 4px 10px rgba(102, 7, 8, 0.4);
    border: 4px solid var(--promo-dark);
}

/* --- PANEL DE CATEGORÍAS (FULL SCREEN OVERLAY) --- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2100;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-bottom: 80px;
}

.mobile-overlay.active {
    transform: translateY(0);
}

.overlay-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.overlay-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-red);
}

.btn-close-overlay {
    background: #eee;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid de Categorías dentro del panel */
/* --- SECCIONES DEL MENÚ --- */
/* --- SECCIONES ACORDEÓN (TOGGLE) --- */
.menu-section {
    border-bottom: 1px solid var(--gray-border);
}

.section-title-mobile {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-mobile i:first-child {
    margin-right: 10px;
}

/* Icono de flecha para el toggle */
.section-title-mobile::after {
    content: '\F282';
    /* bi-chevron-down */
    font-family: 'bootstrap-icons';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.menu-section.is-active .section-title-mobile::after {
    transform: rotate(180deg);
}

/* Contenedor colapsable */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;

}

.menu-section.is-active .section-content {
    max-height: 2000px;
    /* Suficiente para el contenido */
    padding-bottom: 20px;
}

.category-grid {
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* .category-item {
            display: block;
            padding: 12px;
            background: white;
            border: 1px solid var(--gray-border);
            border-radius: 8px;
            text-decoration: none;
            color: var(--black);
            font-size: 0.85rem;
            text-align: center;
            transition: background 0.2s;
        } */

.category-item:active {
    background: var(--gold);
    color: white;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-list li a {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--promo-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-border);
}

.simple-list li a i {
    margin-right: 15px;
    color: var(--primary-red);
}

.category-item {
    background: var(--gray-bg);
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--promo-dark);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid transparent;
}

.category-item:active {
    border-color: var(--gold);
    background: #fff;
}

.category-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.search-bar-mobile {
    padding: 10px;
    background: var(--gray-bg);
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 5px 15px;
    border: 1px solid #ddd;
}

.search-input-wrapper input {
    border: none;
    padding: 10px;
    flex: 1;
    outline: none;
}

@media (max-width: 575.98px) {
    .search-container-mobile {
        max-width: 450px;
        width: 100%;

    }
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 1199px) {

    /* xl breakpoint de Bootstrap */
    .mobile-tab-bar {
        display: grid;
    }

    /* Ocultamos elementos del navbar tradicional que no queremos en móvil */
    .navbar-actions-wrapper,
    .navbar-nav,
    .navbar-toggler {
        display: none !important;
    }
}