/* Menu Filters */
.menu-filters {
    padding: 2rem 0;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

/* Ocultar etiquetas (badges) en frontend */
.menu-item .badges { display: none !important; }

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Mobile dropdown wrapper: hidden by default (desktop/tablet) */
.filter-select-wrapper { display: none !important; margin: 1.5rem 0 0.5rem; }
.filter-heading { text-align: center; font-size: 1.6rem; color: #333; margin-bottom: .6rem; }
.filter-select {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Menu Content */
.menu-content {
    padding: 4rem 0;
    background-color: #fff;
}

.menu-category {
    margin-bottom: 4rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.menu-category.hidden {
    display: none;
}

.category-title {
    text-align: center;
    color: #333;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #d4af37;
    border-radius: 2px;
}

.menu-section {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.menu-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #d4af37;
}

.item-info {
    flex: 1;
    margin-right: 1rem;
    order: 1;
}

.item-info h3,
.item-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.item-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.price {
    color: #d4af37;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    align-self: center;
    order: 3;
}

/* Badges must sit on their own line above the price */
.menu-item .badges {
    flex: 0 0 100%;
    order: 2;
    margin: 0.35rem 0 0.15rem;
}

/* Special styling for different categories */
.menu-category[data-category="entrantes"] .menu-item {
    border-left-color: #27ae60;
}

.menu-category[data-category="chacinas"] .menu-item {
    border-left-color: #e74c3c;
}

.menu-category[data-category="carnes"] .menu-item {
    border-left-color: #8b4513;
}

.menu-category[data-category="pescados"] .menu-item {
    border-left-color: #3498db;
}

.menu-category[data-category="arroces"] .menu-item {
    border-left-color: #f39c12;
}

.menu-category[data-category="guisos"] .menu-item {
    border-left-color: #9b59b6;
}

.menu-category[data-category="postres"] .menu-item {
    border-left-color: #e91e63;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide pill buttons on mobile and show dropdown */
    .filter-buttons { display: none; }
    .filter-select-wrapper { display: block !important; }

    .filter-btn {
        flex-shrink: 0;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .menu-content {
        padding: 2rem 0;
    }

    .category-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }

    .item-info {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .price {
        align-self: flex-end;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .menu-filters {
        padding: 1rem 0;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .menu-item {
        padding: 1rem;
    }

    .item-info h3,
    .item-info h4 {
        font-size: 1.1rem;
    }

    .item-info p {
        font-size: 0.9rem;
    }
}