:root {
    --primary: #ffca28;       /* Dorado/Amarillo vibrante */
    --primary-hover: #ffb300;
    --bg-body: #121212;       /* Negro fondo */
    --bg-card: #1e1e1e;       /* Gris muy oscuro tarjetas */
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Montserrat', system-ui, sans-serif; background: var(--bg-body); margin: 0; padding-bottom: 0; color: var(--text-main); }

/* --- HEADER --- */
header { 
    background: #000000; 
    padding: 15px; 
    text-align: center; 
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 5px 20px rgba(255, 202, 40, 0.1);
    margin-bottom: 20px;
    position: relative; 
}
.logo-img { height: 70px; width: auto; max-width: 100%; border-radius: 8px; margin-bottom: 5px; border: 2px solid var(--primary); }
.bar-name { font-weight: 800; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); }

/* --- BOTÓN MENÚ DIARIO (HEADER) --- */
.menu-icon-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 202, 40, 0.2);
    transition: 0.3s;
    z-index: 100;
    animation: pulse 2s infinite;
    
    /* Texto */
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.menu-icon-btn:hover { 
    background: var(--primary); 
    color: #000; 
    transform: scale(1.05);
}

@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(255, 202, 40, 0.7); } 
    70% { box-shadow: 0 0 0 10px rgba(255, 202, 40, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(255, 202, 40, 0); } 
}

/* Ajustes del botón para Móvil */
@media (max-width: 600px) {
    .menu-icon-btn {
        top: 15px;
        right: 10px;
        padding: 6px 12px;
        background: #000;
    }
    .menu-icon-btn span {
        font-size: 0.7rem;
        display: inline-block !important; 
    }
    .menu-icon-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* --- CATEGORÍAS (GRID) --- */
/* Estilo Base (PC): Flexbox Centrado */
.cat-container { 
    display: flex; 
    flex-wrap: wrap;           
    justify-content: center;   
    gap: 15px;
    padding: 10px 20px 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cat-card { 
    background: var(--bg-card); 
    border-radius: 15px; 
    padding: 10px;
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid #333;
    opacity: 0.9;
    width: 110px; /* Ancho fijo en PC para uniformidad */
}

.cat-card:hover { transform: translateY(-5px); border-color: var(--primary); opacity: 1; }

.cat-card.active { 
    background: var(--bg-card);
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 202, 40, 0.3);
    transform: scale(1.05);
}

.cat-img { 
    width: 70px; 
    height: 70px; 
    object-fit: cover; 
    border-radius: 50%; 
    margin: 0 auto 8px auto; 
    background: #000; 
    border: 2px solid #333;
    display: block; /* Asegura que no se comporte raro */
}

.cat-card.active .cat-img { border-color: var(--primary); }

.cat-name { 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--text-main); 
    display: block; 
    line-height: 1.2;
}

/* MÓVIL: GRID DE 3 COLUMNAS */
@media (max-width: 768px) {
    .cat-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px;
        padding: 10px;
    }
    .cat-card { width: 100%; border-radius: 12px; }
    .cat-img { width: 60px; height: 60px; }
}

/* --- PRODUCTOS --- */
.container { padding: 0 15px; max-width: 800px; margin: 0 auto; min-height: 60vh; }

.menu-section { display: none; animation: fadeIn 0.4s ease; }
.menu-section.active { display: block; }

.section-title { 
    font-size: 1.6rem; 
    margin: 20px 0 20px; 
    font-weight: 800; 
    color: var(--primary); 
    text-align: center; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-shadow: 0 2px 10px rgba(255,202,40,0.2); 
}
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary); margin: 8px auto 0; }

.product-card { 
    background: var(--bg-card); 
    padding: 15px; 
    border-radius: var(--radius); 
    margin-bottom: 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: var(--shadow); 
    border: 1px solid #333; 
}

.prod-info { flex: 1; padding-right: 10px; }
.prod-title { font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: 4px; color: var(--text-main); }
.prod-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; margin-bottom: 5px; display: block; }
.prod-price { font-weight: 800; color: var(--primary); font-size: 1.2rem; }

/* Controles de Cantidad */
.qty-control { display: flex; align-items: center; background: #000; border-radius: 20px; padding: 4px; border: 1px solid #333; }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; border: none; font-weight: bold; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.qty-btn.minus { background: #333; color: #fff; }
.qty-btn.plus { background: var(--primary); color: #000; }
.qty-num { width: 35px; text-align: center; font-weight: bold; font-size: 1.1rem; color: var(--text-main); }

/* --- BARRA FLOTANTE --- */
.cart-bar { position: fixed; bottom: 20px; left: 5%; width: 90%; max-width: 500px; background: #000; color: var(--primary); padding: 15px; border-radius: 25px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 20px rgba(255, 202, 40, 0.3); border: 2px solid var(--primary); z-index: 1000; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cart-bar.hidden { transform: translateY(150%); }
.cart-row-top { display: flex; justify-content: space-between; align-items: center; width: 100%; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 5px; }
.cart-total { font-size: 1.4rem; font-weight: 800; color: var(--text-main); }
.cart-actions { display: flex; gap: 10px; width: 100%; }
.btn-action { flex: 1; border: none; padding: 12px; border-radius: 50px; font-weight: 800; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; }
.btn-wa { background: #25D366; color: #000; }
.btn-table { background: var(--primary); color: #000; }

/* --- FOOTER --- */
.footer-main { text-align: center; padding: 40px 20px 120px 20px; background: #000; color: #666; font-size: 0.8rem; border-top: 2px solid #333; margin-top: 40px; }
.footer-main a { color: var(--primary); text-decoration: none; font-weight: 700; }
.admin-link { display: inline-block; margin-top: 15px; border: 1px solid #333; padding: 5px 15px; border-radius: 20px; color: #555 !important; font-size: 0.7rem; transition: 0.3s; }
.admin-link:hover { border-color: var(--primary); color: var(--primary) !important; }

/* --- MODAL MENÚ --- */
.menu-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
    z-index: 99999; display: none; justify-content: center; align-items: center;
}
.menu-modal-overlay.open { display: flex !important; }

.menu-modal-content {
    background: #121212; width: 90%; max-width: 500px;
    border-radius: 20px; border: 2px solid var(--primary);
    padding: 25px; color: white;
    max-height: 85vh; overflow-y: auto; position: relative;
    box-shadow: 0 0 30px rgba(255, 202, 40, 0.3);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.close-menu-modal { position: absolute; top: 10px; right: 15px; font-size: 2rem; color: #666; background: none; border: none; cursor: pointer; line-height: 1; }
.close-menu-modal:hover { color: var(--primary); }

.menu-date { text-align: center; color: var(--primary); font-weight: bold; margin-bottom: 20px; font-size: 1.1rem; letter-spacing: 1px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.menu-section-title { color: #fff; font-size: 1rem; margin: 15px 0 10px; font-weight: 800; background: #222; padding: 5px 10px; border-left: 4px solid var(--primary); }

.menu-radio-group { display: flex; flex-direction: column; gap: 8px; }
.menu-radio-label { display: flex; align-items: center; gap: 10px; padding: 12px; background: #1e1e1e; border-radius: 8px; cursor: pointer; transition: 0.2s; border: 1px solid #333; }
.menu-radio-label:hover { border-color: var(--primary); background: #252525; }
.menu-radio-label input { accent-color: var(--primary); width: 20px; height: 20px; }

.btn-add-menu { width: 100%; background: var(--primary); color: #000; font-weight: 800; padding: 15px; border-radius: 50px; border: none; font-size: 1.1rem; margin-top: 25px; cursor: pointer; box-shadow: 0 4px 15px rgba(255, 202, 40, 0.4); text-transform: uppercase; }
.btn-add-menu:hover { background: #ffb300; transform: scale(1.02); }

@keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }