/* ================= VARIABLES TEMÁTICAS ================= */
:root {
    --bg-dark: #0f0f11;
    --bg-card: #1c1c1f;
    --primary-red: #e50914; 
    --text-light: #f5f5f5;
    --text-gray: #a1a1aa;
    --whatsapp: #25D366;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body { background-color: var(--bg-dark); color: var(--text-light); padding-bottom: 90px; }
.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

/* ================= NAV Y HAMBURGUESA MORPHING ================= */
.navbar {
    background-color: rgba(15, 15, 17, 0.95); display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--primary-red);
}

.navbar h2 { color: var(--primary-red); font-size: 24px; font-style: italic; }

.menu-toggle {
    display: none; width: 30px; height: 22px; position: relative; cursor: pointer; z-index: 1001;
}

.menu-toggle span {
    display: block; position: absolute; height: 3px; width: 100%;
    background: var(--primary-red); border-radius: 9px; opacity: 1; left: 0;
    transform: rotate(0deg); transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.open span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; left: -60px; }
.menu-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-red); }

/* ================= PORTADA ================= */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
}

.hero-content h1 { font-size: 3.5rem; color: var(--primary-red); margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.hero-content p { font-size: 1.2rem; margin-bottom: 25px; max-width: 600px; }
.btn-primary {
    background-color: var(--primary-red); color: white; padding: 12px 30px;
    text-decoration: none; border-radius: 30px; font-weight: bold; font-size: 1.1rem; transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background-color: #b90710; transform: translateY(-3px); }

/* ================= MENÚ Y PRODUCTOS ================= */
.section-title { font-size: 28px; margin: 40px 0 20px; border-bottom: 1px solid #333; padding-bottom: 10px; color: var(--primary-red); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product-card {
    background-color: var(--bg-card); border-radius: 10px; padding: 20px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-5px); border: 1px solid var(--primary-red); }
.product-info h3 { margin-bottom: 10px; }
.product-info p { color: var(--text-gray); font-size: 14px; margin-bottom: 15px; min-height: 40px; }
.price { font-size: 20px; font-weight: bold; color: var(--text-light); display: block; margin-bottom: 15px; }
.btn-add {
    background-color: transparent; color: var(--primary-red); border: 2px solid var(--primary-red);
    padding: 10px; border-radius: 5px; font-weight: bold; cursor: pointer; transition: all 0.3s;
}
.btn-add:hover { background-color: var(--primary-red); color: white; }

/* ================= CARTELERA ================= */
.events-container { display: flex; flex-direction: column; gap: 15px; }
.event-card { background-color: var(--bg-card); display: flex; border-radius: 8px; overflow: hidden; border-left: 5px solid var(--primary-red); }
.event-date { background-color: #000; padding: 20px; font-weight: bold; text-align: center; min-width: 120px; display: flex; align-items: center; justify-content: center; }
.event-details { padding: 15px 20px; }
.event-details h3 { font-size: 1.2rem; margin-bottom: 5px; }
.event-details p { color: var(--text-gray); font-size: 0.9rem; }

/* ================= POP-UP DE ÉXITO (TOAST) ================= */
#toast-container {
    position: fixed; top: 80px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px;
}
.toast {
    background-color: #000; border-left: 4px solid var(--primary-red); color: white; padding: 15px 20px; border-radius: 5px;
    font-weight: bold; box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    animation: slideIn 0.3s ease-out forwards, fadeOut 0.3s ease-in 2.7s forwards;
}
.toast i { color: var(--primary-red); margin-right: 8px; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 0.9; } to { transform: translateX(120%); opacity: 0; } }

footer { text-align: center; padding: 40px 20px; background-color: #000; color: var(--text-gray); margin-top: 40px; }

/* ================= BARRA DE CARRITO ================= */
#cart-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--bg-card); border-top: 2px solid var(--whatsapp);
    padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; z-index: 1000;
}
#cart-bar.active { transform: translateY(0); }
.cart-info { font-size: 1.1rem; font-weight: bold; color: var(--whatsapp); }
#cart-total { font-weight: bold; font-size: 1.2rem; }
.btn-whatsapp { background-color: var(--whatsapp); color: #000; padding: 8px 20px; border-radius: 20px; font-weight: bold; }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; right: 0; background-color: rgba(15, 15, 17, 0.98);
        width: 100%; flex-direction: column; text-align: center; padding: 10px 0; border-bottom: 2px solid var(--primary-red);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: all 0.3s ease-in-out;
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links li { padding: 15px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .event-card { flex-direction: column; }
    .event-date { padding: 10px; }
    #cart-bar { padding: 15px; flex-direction: column; gap: 10px; text-align: center; }
    .btn-whatsapp { width: 100%; }
    #toast-container { top: auto; bottom: 120px; left: 50%; transform: translateX(-50%); width: 90%; }
}