/* --- VARIABLES --- */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --accent: #FFD700; 
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); padding-bottom: 6rem; }
h1, h2, h3 { font-family: var(--font-heading); text-transform: uppercase; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- HERO --- */
.hero { height: 25vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; border-bottom: 4px solid var(--accent); }
.logo-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-1550547660-d9450f859349?q=80&w=1000&auto=format&fit=crop'); background-size: cover; background-position: center; filter: blur(6px) brightness(0.4); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.brand-name { font-size: 3.5rem; color: var(--accent); text-shadow: 3px 3px 0px #000; margin-bottom: 0.2rem; letter-spacing: 2px; }
.tagline { font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: 1px; text-transform: uppercase; }

/* --- NAV --- */
.sticky-nav { position: sticky; top: 0; background: #000; z-index: 100; padding: 0; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid #333; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.sticky-nav ul { display: flex; list-style: none; padding: 0; margin: 0; }
.sticky-nav li { flex: 1; text-align: center; }
.nav-link { display: block; color: #fff; text-decoration: none; font-family: var(--font-heading); text-transform: uppercase; font-size: 1rem; padding: 1rem 1.5rem; transition: 0.3s; border-bottom: 4px solid transparent; opacity: 0.7; cursor: pointer; }
.nav-link.active { color: var(--accent); border-bottom: 4px solid var(--accent); background: rgba(255, 215, 0, 0.05); opacity: 1; }

/* --- SECCIONES --- */
.tab-content { display: none; opacity: 0; transition: opacity 0.3s ease-in; }
.tab-content.active { display: block; opacity: 1; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.menu-section { padding-top: 2rem; padding-bottom: 2rem; }
.section-title { font-size: 2rem; margin-bottom: 0.5rem; border-left: 5px solid var(--accent); padding-left: 1rem; }
.section-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; padding-left: 1.3rem; max-width: 600px; font-style: italic; }
.highlight { color: var(--accent); font-size: 1.2rem; font-weight: 400; }
.category-subtitle { width: 100%; text-align: center; background: #252525; color: var(--accent); font-family: var(--font-heading); padding: 0.5rem; border-radius: 8px; margin: 2rem 0 1rem 0; font-size: 1.2rem; border: 1px solid var(--accent); }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* --- CARDS --- */
.card { background: var(--bg-card); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #333; transition: 0.3s; border-left: 4px solid var(--accent); }
.special-card { border: 1px solid var(--accent); } 
.card-content { padding: 1.2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 0.3rem; color: #fff; }
.ingredientes { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; flex-grow: 1; line-height: 1.4; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; }
.price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.btn-order { background: var(--accent); color: #000; border: none; padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: bold; cursor: pointer; text-transform: uppercase; font-size: 0.9rem; }

/* --- DESPLEGABLES (EXTRAS Y BEBIDAS) --- */
details { width: 100%; }
details summary { list-style: none; cursor: pointer; outline: none; }
details summary::-webkit-details-marker { display: none; }
.card-content.horizontal { flex-direction: row; justify-content: space-between; align-items: center; padding: 1rem; }
.action { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.btn-order.small { font-size: 0.8rem; padding: 0.3rem 0.8rem; }

/* Botón especial para los EXTRAS integrados */
.extras-details { background: #151515; border-top: 1px solid #333; }
.extras-details summary { padding: 0.8rem; text-align: center; color: var(--accent); font-weight: bold; cursor: pointer; font-size: 0.85rem; text-transform: uppercase; }
.extras-details summary:hover { background: #222; }

.variant-list { background: #0a0a0a; border-top: 1px solid #333; padding: 0.5rem; animation: fadeIn 0.3s; }
.variant-row { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0.5rem; border-bottom: 1px solid #222; }
.variant-row:last-child { border-bottom: none; }
.variant-name { font-size: 0.9rem; color: #ddd; }
.btn-variant { background: var(--accent); color: #000; border: none; padding: 0.4rem 0.8rem; border-radius: 4px; font-weight: bold; font-size: 0.85rem; cursor: pointer; }

/* --- MODAL Y CARRITO --- */
.cart-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 500px; background: var(--accent); color: #000; padding: 1rem 1.5rem; border-radius: 50px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; cursor: pointer; font-weight: bold; box-shadow: 0 10px 25px rgba(0,0,0,0.5); transition: 0.3s; border: 2px solid #fff; }
.cart-bar.hidden { transform: translate(-50%, 150%); }
.count-badge { background: #000; color: var(--accent); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 10px; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: 0.3s; }
.modal.active { visibility: visible; opacity: 1; }
.modal-content { background: var(--bg-card); width: 95%; max-width: 500px; border-radius: 16px; overflow: hidden; border: 2px solid var(--accent); max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 1.5rem; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; background: #222; }
.close-btn { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.cart-list { list-style: none; padding: 1.5rem; max-height: 30vh; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 1rem; border-bottom: 1px dashed #333; padding-bottom: 0.5rem; }
.item-remove { color: var(--accent); cursor: pointer; text-decoration: underline; font-size: 0.8rem; }
.modal-footer { padding: 1.5rem; background: #252525; }
.total-row { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: bold; margin-bottom: 1rem; color: var(--accent); }
.btn-whatsapp { width: 100%; background: #25D366; color: #fff; border: none; padding: 1rem; border-radius: 8px; font-weight: bold; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: center; gap: 10px; }

/* --- INPUTS --- */
.input-group { margin-bottom: 1rem; text-align: left; }
.input-group label { display: block; font-size: 0.9rem; color: var(--accent); margin-bottom: 5px; font-weight: bold; }
.input-field { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #444; background: #111; color: #fff; font-size: 1rem; font-family: var(--font-body); }
.input-field:focus { outline: none; border-color: var(--accent); }

/* --- PC --- */
@media (min-width: 900px) {
    .hero { height: 40vh; }
    .grid-layout { grid-template-columns: repeat(3, 1fr); }
    .cart-bar { right: 40px; left: auto; transform: none; width: auto; min-width: 300px; bottom: 40px; border-radius: 12px; }
}