/* ========== RESET Y ESTILOS GENERALES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #151210;
    background-image: radial-gradient(circle at 20% 30%, #2a231e 0%, #0f0d0b 100%);
    min-height: 100vh;
    color: #f5ede4;
    padding: 1.5rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== TIPOGRAFÍA ========== */
.font-display {
    font-family: 'Playfair Display', serif;
}

/* ========== HEADER ========== */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    font-style: italic;
    color: #e6c9a8;
    text-shadow: 0 0 20px rgba(184, 149, 106, 0.3);
    letter-spacing: 0.05em;
}

.header p {
    font-size: 1.8rem;
    color: #d4c0aa;
    margin-top: -0.2rem;
    font-style: italic;
    letter-spacing: 0.1em;
}

.header .divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.header .divider span {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #b8956a;
}

.header .divider::before,
.header .divider::after {
    content: '';
    width: 3rem;
    height: 1px;
    background: linear-gradient(to right, transparent, #b8956a);
}

.header .divider::after {
    background: linear-gradient(to left, transparent, #b8956a);
}

/* ========== MENU GRID ========== */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== TARJETA DE CATEGORÍA ========== */
.menu-card {
    background: rgba(30, 26, 23, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid #b8956a;
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 215, 150, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 215, 150, 0.2);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e6c9a8;
    border-bottom: 2px solid #b8956a;
    padding-bottom: 0.4rem;
    display: inline-block;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.25rem;
}

/* ========== ITEMS DE MENÚ ========== */
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid rgba(75, 65, 56, 0.4);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

.menu-item:hover {
    background: rgba(184, 149, 106, 0.12);
    transform: scale(1.01);
}

.menu-item .thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #b8956a;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.menu-item:hover .thumb {
    border-color: #e6c9a8;
}

.menu-item .name {
    flex: 1;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.menu-item .price {
    font-weight: 600;
    color: #e6c9a8;
    background: rgba(184, 149, 106, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 2rem;
    border: 1px solid rgba(184, 149, 106, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.menu-item:hover .price {
    background: rgba(184, 149, 106, 0.25);
    border-color: #b8956a;
}

/* ========== FOOTER ========== */
.footer {
    margin-top: 3rem;
    text-align: center;
    color: #a6907d;
    font-size: 0.9rem;
    border-top: 1px solid #3d342e;
    padding-top: 1.5rem;
}

.footer .italic {
    font-style: italic;
}

.footer .small {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1e1a17;
    border: 1px solid #b8956a;
    border-radius: 2rem;
    max-width: 520px;
    width: 90%;
    padding: 2rem 2rem 1.8rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.8rem;
    color: #b8956a;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
    color: #e6c9a8;
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 1.2rem;
    border: 1px solid #b8956a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #e6c9a8;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

.modal-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b8956a;
    border-bottom: 1px dashed #4a3f38;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: #e6c9a8;
}

.modal-desc {
    color: #c4b5a0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0.8rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1e1a17;
}

::-webkit-scrollbar-thumb {
    background: #b8956a;
    border-radius: 8px;
}