/* menu.css */
:root {
    --rojo-mila: #cc1010; 
    --negro-mila: #111111;
    --gris-fondo: #f4f4f4;
    --blanco: #ffffff;
    --whatsapp: #25D366;
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--gris-fondo);
    color: var(--negro-mila);
    margin: 0; padding: 0;
    overflow-x: hidden;
}

#vista-menu { max-width: 800px; margin: 0 auto; padding: 20px 15px 100px 15px; min-height: 80vh; }

.header-main {
    text-align: center; padding: 30px 15px 15px 15px; background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column;
    align-items: center; border-bottom: 4px solid var(--rojo-mila);
}

@keyframes elegantEntrance {
    0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes elegantFloat {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08)); }
    50% { transform: translateY(-5px); filter: drop-shadow(0 12px 20px rgba(0,0,0,0.15)); }
}
.logo-img { 
    max-width: 240px; height: auto; margin-bottom: 5px; 
    animation: elegantEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, elegantFloat 5s ease-in-out infinite 1.2s;
}

.slogan {
    font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 2px;
    color: var(--negro-mila); text-transform: uppercase; border-top: 3px solid var(--rojo-mila);
    display: inline-block; padding-top: 10px; margin-bottom: 15px;
}

.info-contacto { font-family: 'Oswald', sans-serif; font-size: 1.2rem; color: #333; margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

.status-pill { display: inline-block; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; }
.open { background: #e6f4ea; color: #1e8e3e; }
.closed { background: #fce8e6; color: #d93025; }

.sticker-anuncio {
    background: linear-gradient(45deg, var(--rojo-mila), #ff4757);
    color: white; font-family: 'Oswald', sans-serif; font-size: 1.2rem; letter-spacing: 1px; font-weight: bold;
    padding: 10px 25px; border-radius: 30px; margin: 15px auto 0 auto; display: inline-block;
    box-shadow: 0 6px 15px rgba(204, 16, 16, 0.4); text-transform: uppercase;
    animation: latidoSticker 1.2s infinite ease-in-out;
}
@keyframes latidoSticker { 
    0% { transform: scale(1) rotate(0deg); } 
    50% { transform: scale(1.08) rotate(-2deg); } 
    100% { transform: scale(1) rotate(0deg); } 
}

@keyframes latidoBadge { 
    0% { transform: scale(1); box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3); } 
    15% { transform: scale(1.06); box-shadow: 0 4px 10px rgba(37, 211, 102, 0.6); } 
    30% { transform: scale(1); box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3); } 
    100% { transform: scale(1); box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3); } 
}
.badge-latido { animation: latidoBadge 3s infinite ease-in-out; }

.sticky-nav { position: sticky; top: 0; background: var(--negro-mila); display: flex; overflow-x: auto; padding: 12px 10px; z-index: 1000; box-shadow: 0 6px 15px rgba(0,0,0,0.2); -webkit-overflow-scrolling: touch; }
.sticky-nav::-webkit-scrollbar { display: none; }
.sticky-nav a { color: #aaa; text-decoration: none; font-family: 'Oswald', sans-serif; text-transform: uppercase; padding: 5px 15px; font-size: 1.1rem; white-space: nowrap; transition: color 0.3s ease; }
.sticky-nav a:hover { color: white; }

.cat-section { margin-top: 35px; scroll-margin-top: 70px; }
.cat-titulo { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--negro-mila); border-left: 10px solid var(--rojo-mila); padding-left: 15px; margin-bottom: 25px; text-transform: uppercase; }
.grid-prods { display: flex; flex-direction: column; gap: 15px; }

.card { background: white; border-radius: 10px; display: flex; flex-direction: row; height: auto; min-height: 145px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #eee; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.card:hover { transform: scale(1.02) translateY(-2px); box-shadow: 0 8px 25px rgba(128, 0, 0, 0.15); border-color: rgba(128, 0, 0, 0.3); }

.badge-premium { position: absolute; top: 8px; left: 8px; background: var(--rojo-mila); color: white; padding: 3px 8px; font-size: 0.7rem; font-weight: 800; border-radius: 4px; z-index: 10; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.foto-container { width: 170px; height: 100%; min-height:145px; overflow: hidden; background: #eee; flex-shrink: 0; border-right: 2px solid #ddd; display: flex; align-items: center; justify-content: center; position: absolute; left: 0; top: 0; bottom: 0;}
.foto-media { width: 100%; height: 100%; object-fit: cover; }

.info { padding: 12px 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start; position: relative; margin-left: 170px;}
.nombre { font-family: 'Oswald', sans-serif; color: var(--rojo-mila); font-size: 1.3rem; text-transform: uppercase; margin: 0; line-height: 1.1; padding-right: 25px;}
.desc { font-size: 0.8rem; color: #666; margin: 5px 0; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: justify;}
.precio { font-family: 'Oswald', sans-serif; font-size: 1.4rem; margin-top: auto; color: var(--negro-mila); }

.btn-add-icon { position: absolute; bottom: 12px; right: 15px; background: var(--rojo-mila); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; }

.btn-ws { position: fixed; bottom: 25px; left: 25px; background: var(--rojo-mila); width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 15px rgba(0,0,0,0.3); z-index: 2000; transition: transform 0.3s ease; cursor: pointer; border: 2px solid white;}
.btn-ws:hover { transform: scale(1.1) rotate(5deg); }
.btn-ws * { pointer-events: none; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--negro-mila); color: white; font-family: 'Oswald', sans-serif; font-size: 0.9rem; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; pointer-events: none;}

.footer { background: var(--negro-mila); color: white; text-align: center; padding: 50px 20px; margin-top: 60px; display: flex; flex-direction: column; align-items: center; }
.pagos-iconos-group { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; width: 100%; max-width: 600px; }
.pago-tag { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 20px; }

#toast { visibility: hidden; min-width: 250px; background-color: var(--negro-mila); color: white; text-align: center; border-radius: 8px; padding: 16px; position: fixed; z-index: 5000; left: 50%; bottom: 30px; font-size: 1.1rem; transform: translateX(-50%); font-family: 'Oswald', sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s; border: 2px solid var(--rojo-mila); }
#toast.show { visibility: visible; opacity: 1; }

/* --- MODALES --- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 3000; justify-content: center; align-items: center; padding: 15px; backdrop-filter: blur(3px); }
.modal-content { background: white; width: 100%; max-width: 500px; border-radius: 20px; padding: 25px; animation: popIn 0.3s ease-out; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; }
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-close { position: absolute; top: 15px; right: 15px; background: #eee; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.qty-selector { display: flex; align-items: center; gap: 15px; margin: 20px 0 10px 0; justify-content: center; }
.qty-btn { background: var(--negro-mila); color: white; border: none; width: 40px; height: 40px; border-radius: 8px; font-size: 1.5rem; cursor: pointer; font-family: 'Oswald';}
.qty-num { font-size: 1.5rem; font-family: 'Oswald'; font-weight: bold; width: 30px; text-align: center;}

.btn-block { display: block; width: 100%; background: var(--rojo-mila); color: white; border: none; padding: 15px; font-family: 'Oswald', sans-serif; font-size: 1.2rem; border-radius: 8px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; margin-top: 15px; transition: opacity 0.3s; }
.btn-block:active { opacity: 0.8; }
.btn-block.green { background: var(--whatsapp); }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-family: inherit; font-size: 1rem; transition: border 0.3s; }
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--rojo-mila); box-shadow: 0 0 5px rgba(204,16,16,0.2); }

.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-weight: bold; color: var(--negro-mila); }
.cart-item-note { font-size: 0.8rem; color: #777; margin-top: 3px; white-space: pre-wrap;}
.cart-item-price { font-family: 'Oswald'; font-weight: bold; }
.cart-item-remove { color: var(--rojo-mila); background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 0 10px; }

.resumen-total { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-top: 20px; font-family: 'Oswald'; font-size: 1.3rem; display: flex; flex-direction: column; gap: 5px; border: 2px solid #eee;}
.resumen-linea { display: flex; justify-content: space-between; font-size: 1rem; color: #555; font-family: 'Montserrat', sans-serif; font-weight: 600; transition: all 0.3s ease;}
.resumen-linea.final { font-family: 'Oswald', sans-serif; font-size: 1.4rem; color: var(--negro-mila); border-top: 2px solid #ddd; padding-top: 10px; margin-top: 5px; }
.text-verde { color: #1e8e3e !important; }

.modern-preview-box { width: 130px; height: 140px; border-radius: 10px; border: 2px solid #ddd; overflow: hidden; background: #eee; margin: 15px auto; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

@media (max-width: 600px) {
    .card { min-height: 135px; } 
    .foto-container { width: 140px; }
    .info { margin-left: 140px; }
    .nombre { font-size: 1.1rem; padding-right: 15px;}
    .precio { font-size: 1.2rem; }
}