:root {
    --primary: #d62828; /* Rojo de alerta */
    --accent: #003049;
    --bg: #ffffff;
    --text: #2b2d42;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f1f1f1;
    color: var(--text);
}

.container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    padding-bottom: 120px;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

.hero {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    transition: background-image 0.5s ease-in-out;
}

.overlay {
    background: rgba(0,0,0,0.2);
    width: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.overlay h1 { font-family: 'Playfair Display', serif; font-size: 2.1rem; margin: 0; letter-spacing: 2px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.overlay p { font-size: 0.9rem; margin-top: 10px; font-weight: 600; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

.categories {
    display: flex;
    overflow-x: auto;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.categories::-webkit-scrollbar { display: none; }

.tab-btn {
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.menu-section { padding: 15px; }

.item-header {
    background: #f0f0f0;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 8px;
    margin: 20px 15px 10px;
    font-size: 0.85rem;
    color: #444;
    text-transform: uppercase;
}

.item {
    background: white;
    margin: 0 15px 12px;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 15px;
}

.item h3 { margin: 0; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; }
.item h3 span { color: var(--primary); font-size: 0.75rem; font-weight: 800; border: 1px solid var(--primary); padding: 2px 6px; border-radius: 4px; }
.item p { font-size: 0.8rem; color: #555; margin: 8px 0 0; line-height: 1.4; }

.fixed-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    width: 90%;
    max-width: 400px; /* Reducido para que no sea gigante */
    z-index: 1000;
}

.btn-fixed {
    padding: 12px;
    border-radius: 50px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-qr {
    flex: 0.4;
    background: white;
    border: none;
    border-radius: 50%;
    aspect-ratio: 1/1;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content { background-color: white; padding: 30px; border-radius: 20px; text-align: center; width: 80%; max-width: 350px; }
.qr-big { width: 100%; height: auto; border-radius: 10px; margin: 15px 0; }
.close { font-size: 24px; cursor: pointer; float: right; margin-top: -20px; }

footer { text-align: center; padding: 40px 20px; background: #fafafa; }
.copyright { font-size: 0.75rem; color: #aaa; margin-top: 20px; }