﻿/* --- SECCIÓN PRINCIPAL --- */
.menu-section {
    padding: 100px 0;
    background-color: var(--yerba-cream);
}

.menu-header {
    margin-bottom: 100px;
    text-align: center;
}

.menu-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 5rem;
    font-weight: 200;
    font-style: italic;
    letter-spacing: -1px;
    color: var(--yerba-dark);
}

/* --- BOTÓN INTEGRAR (ADMIN) --- */
.btn-add-platillo {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: var(--yerba-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    display: inline-block;
    margin-top: 20px;
}

    .btn-add-platillo:hover {
        border-bottom: 1px solid var(--yerba-gold);
        color: var(--yerba-dark);
    }

/* --- LISTA EDITORIAL DE PLATILLOS (CARTAS SUTILES) --- */
.item-module {
    padding: 3.5rem 5rem;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 0 auto 30px auto;
    max-width: 900px;
    transition: all 0.5s ease;
}

    .item-module:hover {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
        transform: translateY(-3px);
        border-color: rgba(0, 0, 0, 0.06);
    }

/* --- CONTENIDO DEL PLATILLO --- */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.item-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--yerba-dark);
    margin: 0;
    transition: color 0.4s ease;
}

.item-module:hover .item-title {
    color: var(--yerba-gold);
}

.item-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--yerba-gold);
    letter-spacing: 1px;
}

.item-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--yerba-gray);
    line-height: 2;
    max-width: 100%;
    margin-top: 10px;
}

.item-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    color: var(--yerba-gold-light);
    margin-top: 15px;
    display: block;
}

/* --- BOTÓN VER EXPERIENCIA --- */
.btn-ver-experiencia {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--yerba-dark) !important;
    text-decoration: none !important;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
    margin-top: 20px;
}

    .btn-ver-experiencia::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 1px;
        background-color: var(--yerba-gold);
        bottom: 0;
        left: 0;
        transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

.item-module:hover .btn-ver-experiencia::after {
    width: 100%;
}

.item-module:hover .btn-ver-experiencia {
    color: var(--yerba-gold) !important;
}

/* --- ANIMACIONES DE ENTRADA AL SCROLLEAR --- */
.module-reveal {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Transición para el filtrado JS --- */
.menu-item-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Estilo base del enlace (solo texto, sin línea) */
.ver-experiencia-link {
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
    display: inline-block;
    color: #222 !important;
    white-space: nowrap;
}

    .ver-experiencia-link:hover {
        color: #222 !important;
        text-decoration: none;
    }

/* ============================================= */
/* --- Botones de Filtro Minimalistas --- */
/* ============================================= */

.menu-filters-wrapper {
    position: relative;
    overflow: hidden;
}

.menu-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.2rem;
    padding: 0.5rem 2rem;
    justify-content: flex-start;
    scrollbar-width: none;
}

    .menu-filters::-webkit-scrollbar {
        display: none;
    }

.filter-btn {
    background-color: transparent;
    border: none;
    color: #888;
    padding: 5px 10px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    flex: 0 0 auto;
    white-space: nowrap;
}

    .filter-btn:hover, .filter-btn.active {
        color: #222;
        border-bottom: 2px solid #b5a478;
    }

.menu-filters-wrapper::before,
.menu-filters-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    pointer-events: none;
    z-index: 1;
}

.menu-filters-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--yerba-cream), transparent);
}

.menu-filters-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--yerba-cream), transparent);
}

/* ============================================= */
/* --- Paginación del Menú --- */
/* ============================================= */

.menu-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 4rem 0 0 0;
}

    .menu-pagination .page-item {
        display: inline-flex;
    }

    .menu-pagination .page-link {
        background-color: transparent;
        border: none;
        color: #888;
        padding: 5px 8px;
        font-family: 'Inter', sans-serif;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 2px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        border-bottom: 2px solid transparent;
        cursor: pointer;
    }

        .menu-pagination .page-link:hover {
            color: #222;
            border-bottom: 2px solid #b5a478;
        }

    .menu-pagination .page-item.active .page-link {
        color: #222;
        border-bottom: 2px solid #b5a478;
    }

    .menu-pagination .page-item.disabled .page-link {
        color: #ccc;
        pointer-events: none;
        cursor: default;
        border-bottom: 2px solid transparent;
    }

    .menu-pagination .page-item:first-child .page-link,
    .menu-pagination .page-item:last-child .page-link {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

/* ============================================= */
/* --- Responsivo: tablets --- */
/* ============================================= */
@media (max-width: 991.98px) {
    .menu-section {
        padding: 70px 0;
    }

    .menu-header {
        margin-bottom: 60px;
    }

    .menu-title {
        font-size: 3.2rem;
    }

    .item-module {
        padding: 2rem 2rem;
    }

    .item-title {
        font-size: 1.7rem;
    }
}

/* ============================================= */
/* --- Responsivo: celulares --- */
/* ============================================= */
@media (max-width: 575.98px) {
    .menu-section {
        padding: 50px 0;
    }

    .menu-header {
        margin-bottom: 40px;
    }

    .menu-title {
        font-size: 2.3rem;
    }

    .item-module {
        padding: 1.5rem 1.25rem;
        margin: 0 auto 18px auto;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .item-title {
        font-size: 1.35rem;
    }

    .item-price {
        font-size: 1rem;
    }

    .item-description {
        line-height: 1.6;
    }

    .menu-filters {
        padding: 0.5rem 1.25rem;
        gap: 0.8rem;
    }

    .menu-pagination {
        gap: 0.75rem;
        margin-top: 2.5rem;
    }
}

.filter-btn {
    background-color: transparent;
    border: none;
    color: #888;
    padding: 5px 10px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* --- Cabecera y tarjetas de platillo (markup actual de Menu/Index) --- */
.menu-titulo-principal {
    font-family: 'Playfair Display', serif;
    color: #222;
    font-weight: 700;
    font-size: 4.5rem;
    margin-bottom: 0.1rem;
}

.menu-divider {
    width: 80px;
    height: 3px;
    background-color: #b5a478;
}

.menu-categorias-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #888;
    font-weight: 600;
}

.item-card {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-radius: 2px;
}

.item-card-titulo {
    font-family: 'Playfair Display', serif;
    color: #222;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0;
}

.badge-agotado {
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.badge-promocion {
    background-color: #b5a478;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.item-card-descripcion {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.item-card-base {
    color: #b5a478;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.item-card-precio-anterior {
    font-size: 0.95rem;
}

.item-card-precio {
    color: #b5a478;
    font-weight: 400;
    font-size: 1.4rem;
}

.item-card-precio--promo {
    font-weight: 600;
}

.item-card-no-disponible {
    font-size: 0.8rem;
    letter-spacing: 1px;
}