:root {
    --primary: #FF9F1C;
    --dark: #222;
    --light: #f4f4f4;
    --whatsapp: #25D366;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { 
    background-color: var(--light); 
    color: var(--dark); 
    padding-top: 70px; 
    overflow-x: hidden; 
}

/* HEADER PC */
.sticky-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex; justify-content: center;
}

.header-container {
    width: 100%; max-width: 1200px; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    position: relative; 
}

.main-logo { height: 50px; width: auto; }

.desktop-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.desktop-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.desktop-nav a { 
    text-decoration: none; color: var(--dark); font-weight: 600; 
    text-transform: uppercase; font-size: 0.9rem; position: relative; 
}
.desktop-nav a:hover, .desktop-nav a.active-nav { color: var(--primary); }
.desktop-nav a.active-nav::after { 
    content: ''; position: absolute; bottom: -5px; left: 0; 
    width: 100%; height: 2px; background: var(--primary); 
}

.header-actions { display: flex; gap: 15px; align-items: center; margin-left: auto; }
.cart-btn { position: relative; font-size: 1.4rem; cursor: pointer; }
#cart-count { 
    position: absolute; top: -5px; right: -8px; background: var(--primary); color: white;
    font-size: 0.7rem; padding: 2px 5px; border-radius: 50%;
}
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- MENÚ MÓVIL NEGRO SÓLIDO (CORREGIDO) --- */
.mobile-menu { 
    display: flex; 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 85%; /* Menú lateral, no pantalla completa */
    height: 100vh; /* Altura completa */
    background-color: #000000 !important; /* NEGRO SÓLIDO FORZADO */
    flex-direction: column; 
    padding: 30px; 
    transition: right 0.3s ease; /* Animación suave */
    z-index: 9999; /* Encima de todo */
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}
.mobile-menu.active { right: 0; }

.mobile-header { 
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}
.mobile-logo-img { max-height: 50px; width: auto; object-fit: contain; }
.close-menu { color: white; font-size: 2.5rem; cursor: pointer; }

.mobile-menu ul { list-style: none; margin-top: 20px; text-align: left; }
.mobile-menu a { 
    display: block; font-size: 1.4rem; margin-bottom: 25px; 
    color: #ffffff; text-decoration: none; font-weight: 600; 
    border-bottom: 1px solid #333; padding-bottom: 10px;
}

/* HERO BANNERS */
.hero-section { position: relative; height: 60vh; background: #000; overflow: hidden; }
.banner2-section { margin: 40px 0; height: 50vh; }
.hero-slider { width: 100%; height: 100%; position: relative; }
.hero-slide { 
    width: 100%; height: 100%; position: absolute; top: 0; left: 0; 
    object-fit: cover; opacity: 0; transition: opacity 1s; z-index: 1; 
    background: #333; 
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
    z-index: 10; pointer-events: none;
}
.hero-content { text-align: center; color: white; pointer-events: all; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; text-shadow: 2px 2px 5px black; }
.btn-primary { 
    background: var(--primary); color: white; padding: 12px 30px; 
    text-decoration: none; border-radius: 30px; font-weight: bold; display: inline-block;
}

/* OFERTAS */
.offers-section { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.section-title { text-align: center; color: var(--primary); font-size: 1.8rem; margin-bottom: 30px; text-transform: uppercase; font-weight: 800; }

.offers-container { 
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; 
    scroll-snap-type: x mandatory; 
    justify-content: flex-start; /* Alineado a la izquierda para que no corte */
    padding-left: 5px;
}
.offer-img { 
    height: 250px; border-radius: 15px; flex: 0 0 auto; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    cursor: pointer; transition: transform 0.3s; scroll-snap-align: center; 
    background: #ddd; min-width: 200px;
}
.offer-img:hover { transform: scale(1.03); }

/* MENU */
.main-menu-wrapper { 
    max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; 
    min-height: 300px; text-align: center; 
}
.category-block { margin-bottom: 40px; }
.cat-title { font-size: 1.8rem; margin-bottom: 20px; border-bottom: 3px solid var(--primary); padding-bottom: 10px; color: var(--dark); text-transform: uppercase; display: inline-block; }

.product-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; justify-content: center; 
}

.product-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s; border: 1px solid transparent;
    position: relative; text-align: left;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
.product-card img { width: 100%; height: 220px; object-fit: cover; background: #ddd; }

.product-card.out-of-stock { filter: grayscale(1); pointer-events: none; opacity: 0.8; }
.stock-tag {
    position: absolute; top: 15px; right: 15px; background: #e74c3c; color: white;
    padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; z-index: 5;
}

.p-info { padding: 20px; }
.p-title { font-weight: bold; margin-bottom: 5px; font-size: 1.1rem; }
.p-price { color: var(--primary); font-weight: 800; font-size: 1.3rem; }

/* UBICACION */
.location-section { padding: 40px 20px; background: #eee; }
.location-card {
    max-width: 1000px; margin: 0 auto; background: white; border-radius: 20px;
    overflow: hidden; display: flex; height: 400px; box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.loc-info { flex: 1; position: relative; background: #222; }
.loc-info img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); background: #222; }
.loc-text {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white; text-align: center; padding: 30px;
}
.loc-text h3 { font-size: 2rem; margin-bottom: 15px; }
.loc-map { flex: 1.5; }
.btn-map { background: var(--whatsapp); color: white; padding: 12px 25px; text-decoration: none; border-radius: 30px; margin-top: 20px; display: inline-block; font-weight: bold; }

/* FOOTER */
footer { background: #1a1a1a; color: #aaa; padding: 50px 20px 20px; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 30px; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #ddd; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }

.footer-info p { margin: 10px 0; font-size: 1.1rem; }
.footer-socials a { color: white; font-size: 1.8rem; margin: 0 15px; transition: 0.3s; }
.footer-socials a:hover { color: var(--primary); }

.copyright-area { border-top: 1px solid #333; padding-top: 20px; width: 100%; }
.copyright { font-size: 0.9rem; margin-bottom: 5px; }
.credits { font-size: 0.8rem; color: #777; }
/* Firma aly.cab discreta */
.credits a { color: #ccc; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.credits a:hover { color: white; }

/* MODALES */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center;
}
.modal-card-wide {
    background: white; width: 90%; max-width: 900px; border-radius: 15px;
    overflow: hidden; display: flex; max-height: 90vh; position: relative;
}
.modal-left { flex: 1; background: #ddd; }
.modal-left img { width: 100%; height: 100%; object-fit: cover; background: #ddd; }
.modal-right { flex: 1; padding: 40px; overflow-y: auto; }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; z-index: 10; background: white; border-radius: 50%; width: 45px; height: 45px; text-align: center; line-height: 45px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.btn-add-cart { width: 100%; background: var(--primary); color: white; border: none; padding: 15px; font-weight: bold; cursor: pointer; margin-top: 25px; border-radius: 10px; font-size: 1.1rem; }

.btn-secondary {
    width: 100%; background: #eee; color: #555; border: none; padding: 10px;
    font-weight: 600; cursor: pointer; margin-bottom: 10px; border-radius: 10px; font-size: 0.9rem;
}
.btn-secondary:hover { background: #ddd; }

.option-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; cursor: pointer; font-size: 1.05rem; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.option-row input { transform: scale(1.3); margin-right: 10px; }
textarea { width: 100%; padding: 15px; border: 1px solid #ddd; margin-top: 15px; border-radius: 10px; resize: none; }

/* PROMO FULLSCREEN */
.promo-overlay { background: rgba(0,0,0,0.95); cursor: pointer; z-index: 2100; }
.promo-modal-content { max-width: 90%; max-height: 90%; display: flex; justify-content: center; }
.promo-modal-content img { width: auto; height: auto; max-width: 100%; max-height: 80vh; border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.5); object-fit: contain; background: #eee; }
.close-modal-fullscreen { position: absolute; top: 30px; right: 40px; color: white; font-size: 3rem; cursor: pointer; }

/* CARRITO */
.cart-sidebar {
    position: absolute; top: 0; right: 0; width: 100%; max-width: 450px; height: 100%;
    background: white; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}
.cart-header { padding: 25px; background: #1a1a1a; color: white; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.cart-body { flex: 1; overflow-y: auto; padding: 25px; }

.cart-item { 
    border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; 
    display: flex; gap: 15px; align-items: flex-start; 
}
.cart-item-img { 
    width: 60px; height: 60px; border-radius: 8px; 
    object-fit: cover; flex-shrink: 0; background: #ddd; 
}
.cart-item-details { flex: 1; }
.cart-item-title { font-weight: bold; font-size: 1rem; }
.cart-item-extras { font-size: 0.85rem; color: #666; margin-top: 4px; }
.cart-item-price { font-weight: 800; color: var(--dark); margin-top: 5px; text-align: right; }

.cart-footer { padding: 25px; background: #f9f9f9; border-top: 1px solid #eee; flex-shrink: 0; }
.cart-total { font-size: 1.4rem; font-weight: 800; display: flex; justify-content: space-between; margin-bottom: 20px; }

.checkout-form input, .checkout-form select { 
    width: 100%; padding: 15px; margin-bottom: 15px; 
    border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; 
}
.form-row-compact { display: flex; gap: 10px; }
.form-row-compact input { margin-bottom: 15px; }

.btn-whatsapp-final { width: 100%; background: var(--whatsapp); color: white; padding: 18px; border: none; font-weight: bold; cursor: pointer; border-radius: 50px; font-size: 1.2rem; transition: 0.3s; }
.btn-whatsapp-final:hover { background: #1ebc57; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); }

/* --- RESPONSIVE MEJORADO --- */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .header-actions { margin-left: 0; }
    
    /* MENÚ MÓVIL NEGRO SÓLIDO Y LATERAL */
    .mobile-menu {
        /* Se define en la clase principal, aquí solo ajustes si necesario */
    }
    
    /* Titulo más pequeño en móvil */
    .section-title h3 { font-size: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .cart-footer { padding: 15px; }
    .checkout-form input, .checkout-form select { padding: 10px; margin-bottom: 10px; font-size: 0.95rem; }
    .cart-total { font-size: 1.2rem; margin-bottom: 10px; }
    .btn-whatsapp-final { padding: 14px; font-size: 1rem; }
    
    .location-card { flex-direction: column; height: auto; }
    .loc-info, .loc-map { height: 300px; }
    
    .modal-card-wide { flex-direction: column; max-width: 95%; height: 95vh; }
    .modal-left { height: 200px; flex: none; }
    .modal-right { padding: 25px; }
    
    .offer-img { height: 200px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card img { height: 140px; }
    .p-info { padding: 12px; }
    .p-title { font-size: 0.95rem; height: 40px; overflow: hidden; }
    .p-price { font-size: 1.1rem; }
}

/* =========================================================
   ESTILOS NUEVOS PARA ACORDEÓN Y SALSAS (AGREGADOS AL FINAL)
========================================================= */

/* ACORDEÓN */
.category-accordion { margin-bottom: 15px; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.accordion-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: #fff; border-bottom: 1px solid #f9f9f9; }
.accordion-header h2 { font-size: 1.3rem; margin: 0; color: var(--dark); text-transform: uppercase; font-weight: 800; }
.accordion-header i { font-size: 1.2rem; color: var(--primary); transition: transform 0.3s ease; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; padding: 0 20px; background: #fafafa; }
.accordion-item.active .accordion-content { max-height: 5000px; padding-bottom: 30px; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }

/* SALSAS (BOTONES GRANDES Y SELECCIONABLES) */
.salsa-selector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 15px; }
.salsa-option { border: 2px solid #ddd; border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; font-size: 0.8rem; font-weight: 600; min-height: 60px; display: flex; align-items: center; justify-content: center; transition: 0.2s; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.salsa-option:hover { border-color: #bbb; }
/* ESTADO SELECCIONADO */
.salsa-option.selected { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.05); box-shadow: 0 4px 10px rgba(255, 159, 28, 0.4); }

/* BOTÓN PARA ABRIR LISTA DE EXTRAS */
.btn-view-extras {
    background: #222;
    color: white;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    margin: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-view-extras:hover { background: #444; }

/* INDICADOR DE EXTRAS SELECCIONADOS */
#extras-summary {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}