/* Estilos del carrito, modales y elementos relacionados extraídos de index.php */

.status-dot.closed { background-color: #dc3545; }
.dark-toggle-btn {
    background: none;
    border: none;
    color: #eebc1d;
    font-size: 1.7rem;
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.2s;
}
.dark-toggle-btn:hover {
    color: #232946;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 600;
    color: #232946;
    margin-bottom: 4px;
}
.cart-item-details {
    font-size: 0.9em;
    color: #888;
    line-height: 1.4;
}
.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9em;
    padding: 4px 0;
    margin-top: 4px;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.cart-item-price {
    font-weight: 600;
    color: #eebc1d;
    font-size: 1.1em;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #eee;
    color: #232946;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
}
.cart-item-qty span {
    margin: 0 10px;
    font-weight: 500;
    color: #232946;
}

.cart-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1200;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #232946;
    color: #eebc1d;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.18);
    justify-content: center;
    transition: background 0.2s;
}
.cart-fab .fa-shopping-cart {
    font-size: 2rem;
}
#cart-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eebc1d;
    color: #232946;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 95vw;
    height: 100vh;
    /* Ajustar altura para dispositivos móviles */
    height: 100dvh; /* Dynamic viewport height */
    max-height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(35,41,70,0.18);
    z-index: 1300;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
    /* Asegurar que el panel no se extienda más allá del viewport */
    overflow: hidden;
}

/* Ajustes específicos para dispositivos móviles */
@media screen and (max-width: 768px) {
    .cart-panel {
        width: 100vw;
        right: -100vw;
        /* Usar altura dinámica del viewport */
        height: 100dvh;
        height: calc(100vh - env(safe-area-inset-bottom, 0px));
        /* Asegurar que el contenido no se oculte detrás de barras del navegador */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .cart-panel.show {
        right: 0;
    }
}
.cart-panel-header {
    padding: 24px 24px 12px 24px;
    border-bottom: 2px solid #eebc1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-panel-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #232946;
    font-weight: 700;
}
.cart-panel-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #eebc1d;
    cursor: pointer;
}
.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.cart-panel-footer {
    padding: 24px;
    border-top: 2px solid #eebc1d;
    /* Asegurar que el footer esté siempre visible en móviles */
    position: relative;
    background: #fff;
    z-index: 10;
}
.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #232946;
}
.cart-total {
    color: #eebc1d;
}
.cart-whatsapp-btn {
    width: 100%;
    background: #25d366;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 0;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    /* Asegurar visibilidad en móviles */
    margin-bottom: env(safe-area-inset-bottom, 0px);
    position: relative;
    z-index: 20;
}

/* Estilos específicos para dispositivos móviles */
@media screen and (max-width: 768px) {
    .cart-panel-footer {
        padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 20px)) 24px;
        /* Agregar padding extra para barras de navegador */
        padding-bottom: max(24px, calc(24px + env(safe-area-inset-bottom, 0px)));
    }
    
    .cart-whatsapp-btn {
        /* Agregar margen inferior para evitar que se oculte */
        margin-bottom: max(10px, env(safe-area-inset-bottom, 10px));
        /* Asegurar que el botón sea completamente visible */
        min-height: 48px;
        touch-action: manipulation;
    }
}

/* Soporte adicional para navegadores que no soportan env() */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
    .cart-panel-footer {
        padding-bottom: 44px; /* Fallback para iOS Safari */
    }
    
    .cart-whatsapp-btn {
        margin-bottom: 20px; /* Fallback adicional */
    }
}

/* Específico para iPhone con barra de herramientas */
@supports (padding: max(0px)) {
    @media screen and (max-width: 768px) {
        .cart-panel-footer {
            padding-bottom: max(24px, calc(24px + 20px));
        }
    }
}

/* Estilos específicos para Safari y Brave en dispositivos móviles/tablet */
@media screen and (max-width: 1024px) {
    body.safari-browser .cart-whatsapp-btn,
    body.brave-browser .cart-whatsapp-btn {
        margin-bottom: 50px;
    }
}

/* Overlay del carrito */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(35,41,70,0.45);
    z-index: 1299;
    display: none;
    transition: opacity 0.2s;
}

/* Modal de platillo */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(35,41,70,0.45);
    z-index: 1400;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show {
    display: flex;
}
/* Globo de promoción mejorado */
.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff1744 60%, #ff8a65 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05em;
    padding: 6px 16px 6px 12px;
    border-radius: 18px 6px 18px 6px;
    box-shadow: 0 4px 16px rgba(35,41,70,0.18);
    z-index: 10;
    pointer-events: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: 2px solid #fff3e0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', Arial, sans-serif;
    text-shadow: 0 2px 8px rgba(35,41,70,0.10);
}
.promo-badge::before {
    content: '\f06b'; /* fa-bolt */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 1em;
    color: #fffde7;
    filter: drop-shadow(0 1px 2px #ff8a65);
}
.dish-img-wrap {
    position: relative;
}
.promo-badge-modal {
    top: 18px;
    left: 18px;
    font-size: 1.15em;
    padding: 8px 20px 8px 16px;
    border-radius: 22px 8px 22px 8px;
}
body.dark-mode .promo-badge, .dark-mode .promo-badge {
    background: linear-gradient(135deg, #ffe082 60%, #ffb300 100%);
    color: #232946;
    border: 2px solid #fffde7;
    text-shadow: 0 2px 8px rgba(35,41,70,0.10);
}
.promos-section {
    background: #8fbc8f;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(238, 188, 29, 0.2);
}

@media screen and (max-width:780px){
    .promos-section{
        padding: 25px 12px;
    }
}

body.dark-mode .promos-section {
    background: linear-gradient(135deg, rgba(238, 188, 29, 0.15), rgba(238, 188, 29, 0.08));
    border-color: rgba(238, 188, 29, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.promos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.promos-title {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Agrega esta animación en tu archivo CSS */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.promos-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
  animation: pulse 2s ease-in-out infinite; /* Animación suave y repetitiva */
}

/* Opcional: animación al pasar el mouse */
.promos-title {
  transition: all 0.3s ease;
}

.promos-title:hover {
  transform: translateY(-5px);
  color: #e74c3c;
}

body.dark-mode .promos-title {
    color: #eebc1d;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promos-view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 2px;
}

body.dark-mode .promos-view-toggle {
    background: rgba(0, 0, 0, 0.2);
}

.view-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-toggle-btn.active {
    background: #eebc1d;
    color: white;
    box-shadow: 0 2px 8px rgba(238, 188, 29, 0.3);
}

.view-toggle-btn:hover:not(.active) {
    background: rgba(238, 188, 29, 0.1);
    color: #eebc1d;
}

body.dark-mode .view-toggle-btn {
    color: #ccc;
}

body.dark-mode .view-toggle-btn:hover:not(.active) {
    background: rgba(238, 188, 29, 0.2);
    color: #eebc1d;
}

.promo-category-title {
    font-size: 1.3rem;
    color: #fff;
    margin: 15px 0;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .promo-category-title {
    color: #fff;
}

/* Estilos para el slider de promociones */
.promos-slider-wrapper {
    position: relative;
}

.promo-category-slider {
    display: none;
}

.promo-category-slider.active {
    display: block;
}

.promo-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.promo-nav-buttons {
    display: flex;
    gap: 8px;
}

.promo-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.616);
    color: #232946;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.promo-nav-btn:hover {
    background: #eebc1d;
    color: white;
    transform: scale(1.1);
}

body.dark-mode .promo-nav-btn {
    background: rgba(238, 188, 29, 0.2);
    color: #fff;
}

.promo-slider-container {
    overflow: hidden;
    border-radius: 10px;
}

.promo-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.promo-slider::-webkit-scrollbar {
    display: none;
}

.promo-slider .dish-card-modern {
    flex: 0 0 420px;
    min-width: 320px;
}

/* Asegurar que en desktop se muestren 2 por fila en modo lista */
.promos-list-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.promos-container .promos-list-wrapper .dish-card-modern {
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
    max-width: calc(50% - 10px);
}

@media (max-width: 992px) {
    .promos-container .promos-list-wrapper .dish-card-modern {
        flex: 0 0 100%;
        min-width: 280px;
        max-width: 100%;
        margin: 0 0 24px 0;
    }
}

.promo-category-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.promo-cat-nav-btn {
    padding: 8px 16px;
    border: 2px solid rgba(238, 188, 29, 0.3);
    background: #232946;;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.promo-cat-nav-btn.active {
    background: #eebc1d;
    color: white;
    border-color: #eebc1d;
}

.promo-cat-nav-btn:hover:not(.active) {
    background: rgba(238, 188, 29, 0.1);
    border-color: #eebc1d;
}

body.dark-mode .promo-cat-nav-btn {
    color: #fff;
    border-color: rgba(238, 188, 29, 0.4);
}

body.dark-mode .promo-cat-nav-btn:hover:not(.active) {
    background: rgba(238, 188, 29, 0.2);
    color: #ccc;
}

/* Estilos para el modo lista */
.promos-list-wrapper .promo-category-list {
    margin-bottom: 25px;
}

.promos-list-wrapper .promo-category-list:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .promos-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .promo-category-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .promo-slider .dish-card-modern {
        flex: 0 0 350px;
        min-width: 280px;
    }
    
    .promos-container .promos-list-wrapper .dish-card-modern {
        flex: 0 0 100%;
        min-width: 280px;
        max-width: 100%;
        margin: 0 0 24px 0;
    }
    
    .promos-container .promos-list-wrapper .row {
        gap: 15px;
    }
    
    .promo-category-nav {
        gap: 8px;
    }
    
    .promo-cat-nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Ajustes específicos para iPhone 16 y pantallas similares (390px - 430px) */
@media (max-width: 430px) and (min-width: 350px) {
    .promo-slider .dish-card-modern {
        flex: 0 0 400px;
        min-width: 100%;
    }
    
    .promos-container .promos-list-wrapper .dish-card-modern {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 0 0 18px 0;
    }
    
    .promos-container .promos-list-wrapper .row {
        gap: 12px;
    }
    
    /* Reducir tamaño de imágenes en las tarjetas */
    .dish-card-modern .dish-img {
        height: 140px !important;
    }
    
    /* Reducir tamaño de textos */
    .dish-card-modern .dish-name {
        font-size: 0.95rem !important;
        line-height: 1.3;
    }
    
    .dish-card-modern .dish-description {
        font-size: 0.8rem !important;
        line-height: 1.4;
    }
    
    .dish-card-modern .dish-price {
        font-size: 1.1rem !important;
    }
    
    .dish-card-modern .dish-price-original {
        font-size: 0.85rem !important;
    }
    
    /* Ajustar padding de las tarjetas */
    .dish-card-modern {
        padding: 12px !important;
    }
    
    /* Reducir tamaño del badge de promoción */
    .promo-badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
    
    /* Ajustar títulos de categorías */
    .promo-category-title {
        font-size: 1.1rem !important;
    }
    
    .promos-title {
        font-size: 1.5rem !important;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 430px) {
    .promos-container .promos-list-wrapper .dish-card-modern {
        flex: 0 0 100%;
        min-width: 100%;
        margin: 0 0 18px 0;
        padding: 12px !important;
    }
    
    .promos-container .promos-list-wrapper .dish-card-modern .dish-img {
        height: 140px !important;
    }
    
    .promos-container .promos-list-wrapper .dish-card-modern .dish-name {
        font-size: 0.95rem !important;
        line-height: 1.3;
    }
    
    .promos-container .promos-list-wrapper .dish-card-modern .dish-description {
        font-size: 0.8rem !important;
        line-height: 1.4;
    }
    
    .promos-container .promos-list-wrapper .dish-card-modern .dish-price {
        font-size: 1.1rem !important;
    }
    
    .promos-container .promos-list-wrapper .dish-card-modern .dish-price-original {
        font-size: 0.85rem !important;
    }
}
/* Modal de Información y Platillo */
.modal-content {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.18);
    max-width: 65vw;
    width: 100%;
}
.modal-header {
    background: #1b1f36;
    border-radius: 18px 18px 0 0;
    padding: 24px 20px 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.modal-title {
    background: none !important;
    color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #eebc1d;
    cursor: pointer;
    margin-left: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
}
.modal-body {
    padding: 15px;
}
.info-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.info-content {
    flex: 1;
}
.service-badge {
    display: inline-block;
    background: #eebc1d;
    color: #232946;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.95em;
    margin-right: 8px;
    margin-bottom: 4px;
}
.service-badge.disabled {
    background: #eee;
    color: #aaa;
}
.whatsapp-link {
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
}
.whatsapp-link:hover {
    text-decoration: underline;
}
.status-badge.open {
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.95em;
    font-weight: 600;
}
.status-badge.closed {
    background: #dc3545;
    color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.95em;
    font-weight: 600;
} 

/* --- Estilos extraídos del JS para el modal de platillo y controles --- */
.dish-modal-img {
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(60,60,120,0.22);
    object-fit: cover;
}
.dish-modal-desc {
    margin-bottom: 16px;
    font-size: 1.1em;
}
.dish-modal-sabor {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dish-modal-sabor-icon {
    font-size: 1.3em;
}
.dish-modal-alergenos {
    margin-bottom: 12px;
}
.dish-modal-presentaciones {
    margin-bottom: 16px;
}
.dish-modal-presentaciones-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dish-modal-presentacion-label {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dish-modal-precio {
    margin-bottom: 16px;
}
.dish-modal-adicionales {
    margin-bottom: 12px;
}
.dish-modal-adicional-label {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 6px;
    font-weight: 500;
    cursor: pointer;
}
.dish-modal-footer-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}
.dish-modal-qty-input {
    width: 60px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #eebc1d;
    padding: 4px 8px;
    font-size: 1.1em;
}
.dish-modal-add-btn {
    background: #eebc1d;
    color: #232946;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.dish-modal-add-btn:hover {
    background: #ffd700;
} 

/* --- Layout responsive para el modal de platillo --- */
.dish-modal-flex {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.dish-modal-img-wrap {
    flex: 0 0 300px;
    max-width: 340px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.dish-modal-info {
    flex: 1 1 0%;
    min-width: 0;
}
@media (max-width: 980px) {
    .dish-modal-flex {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .dish-modal-img-wrap {
        max-width: 100%;
        margin-bottom: 0;
    }
}

/* Preloader styles moved to preloader.css */

/* BOTONES DE CABECERA (volver y modo oscuro) */
.header-btn, .dark-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #eebc1d;
    border-radius: 12px;
    color: #232946;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    margin: 0 2px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.08);
    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: pointer;
    outline: none;
    text-decoration: none !important;
}
.header-btn:hover, .dark-toggle-btn:hover {
    background: #eebc1d;
    color: #232946;
    border-color: #ffd700;
}
.header-btn:active, .dark-toggle-btn:active {
    background: #232946;
    color: #eebc1d;
    border-color: #eebc1d;
}
@media (max-width: 700px) {
    .header-btn, .dark-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

.carta-actions-top, .responsive-inline {
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

/* MODO OSCURO PARA EL CARRITO */
body.dark-mode .cart-panel {
    background: #232946;
    color: #fff;
    box-shadow: -4px 0 24px rgba(238,188,29,0.18);
}
body.dark-mode .cart-panel-header,
body.dark-mode .cart-panel-footer {
    border-color: #eebc1d;
    background: #232946;
}

/* Modo oscuro para el footer del carrito en móviles */
@media screen and (max-width: 768px) {
    body.dark-mode .cart-panel-footer {
        background: #232946;
        border-top: 2px solid #eebc1d;
    }
}
body.dark-mode .cart-panel-header h2,
body.dark-mode .cart-total-row,
body.dark-mode .cart-item-name {
    color: #eebc1d;
}
body.dark-mode .cart-panel-header button,
body.dark-mode .cart-item-remove {
    color: #eebc1d;
}
body.dark-mode .cart-panel-body {
    background: #232946;
    color: #fff;
}
body.dark-mode .cart-item-details {
    color: #eebc1d;
}
body.dark-mode .cart-fab {
    background: #eebc1d;
    color: #232946;
    box-shadow: 0 4px 24px rgba(238,188,29,0.18);
}
body.dark-mode .cart-fab .fa-shopping-cart {
    color: #232946;
}
body.dark-mode #cart-count {
    background: #232946;
    color: #eebc1d;
}
body.dark-mode .cart-whatsapp-btn {
    background: #232946;
    color: #eebc1d;
    border: 2px solid #eebc1d;
}
body.dark-mode .cart-whatsapp-btn:hover {
    background: #eebc1d;
    color: #232946;
}
body.dark-mode .cart-item {
    border-bottom: 1px solid #eebc1d44;
}
body.dark-mode .cart-item-qty button {
    background: #eebc1d;
    color: #232946;
}
body.dark-mode .cart-item-qty span {
    color: #eebc1d;
}

/* --- NUEVOS ESTILOS PARA 'DESDE' EN EL PRECIO DE PRODUCTOS CON VARIANTES --- */

@media (max-width: 700px) {
  .promo-badge {
    font-size: 0.85em;
    padding: 4px 10px 4px 8px;
    border-radius: 14px 5px 14px 5px;
  }
  .promo-badge-modal {
    font-size: 0.95em;
    padding: 6px 12px 6px 10px;
    border-radius: 16px 6px 16px 6px;
  }
}

/* --- ESTILOS PARA LAS PESTAÑAS DE CATEGORÍAS --- */

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #232946;
    border-radius: 16px;
    padding: 8px 18px;
    margin: 3px;
    font-size: 1.08em;
    font-weight: 600;
    border: 2px solid #ffe0b2;
    box-shadow: 0 2px 8px rgba(35,41,70,0.06);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border 0.2s;
    min-width: unset;
    max-width: 100%;
}
.category-tab:hover, .category-tab.active {
    background: #ffe0b2;
    color: #e53935;
    border: 2px solid #eebc1d;
}
body.dark-mode .category-tabs, .dark-mode .category-tabs {
    background: #232946;
    border-radius: 5px;
    scrollbar-color: #ffb300 #232946;
}
body.dark-mode .category-tab, .dark-mode .category-tab {
    background: #232946;
    color: #ffe082;
    border: 2px solid #232946;
}
body.dark-mode .category-tab:hover, .dark-mode .category-tab.active {
    background: #232946;
    color: #ffb300;
    border: 2px solid #ffb300;
}

/* Scroll suave mejorado para tabs */
.category-tabs {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.category-tab {
    scroll-snap-align: start;
}

/* Transición suave para las pestañas activas */
.category-tab {
    transition: all 0.3s ease-in-out;
}

.category-tab.active {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(238, 188, 29, 0.3);
}

/* Mejorar la transición del scroll */
.category-section {
    scroll-margin-top: 20px;
}
.category-content{
        text-align: center;
}

.promos-view-toggle{
    display: none;
}

/* Estilos para platos agotados */
.dish-card-modern.out-of-stock {
    opacity: 0.7;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

body.dark-mode .dish-card-modern.out-of-stock {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

.dish-image-modern.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.dish-card-modern.out-of-stock .dish-add-btn {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.dish-card-modern.out-of-stock .dish-add-btn:hover {
    background-color: #6c757d;
    transform: none;
}

.dish-card-modern.out-of-stock .dish-title-modern,
.dish-card-modern.out-of-stock .dish-desc-modern {
    color: #6c757d;
}

body.dark-mode .dish-card-modern.out-of-stock .dish-title-modern,
body.dark-mode .dish-card-modern.out-of-stock .dish-desc-modern {
    color: #adb5bd;
}

/* Estilos para alerta de restaurante cerrado */
.restaurant-closed-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 90%;
    width: auto;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #ff6b35;
}

@media (max-width: 768px) {
    .restaurant-closed-alert {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Estilos para el botón de información de zonas */
#zoneInfoBtn {
    background: #eebc1d !important;
    color: #232946 !important;
    border: 2px solid #eebc1d !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(238, 188, 29, 0.2) !important;
}

#zoneInfoBtn:hover {
    background: #232946 !important;
    color: #eebc1d !important;
    border-color: #232946 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(238, 188, 29, 0.3) !important;
}

#zoneInfoBtn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(238, 188, 29, 0.2) !important;
}

/* Estilos para modo oscuro */
body.dark-mode #zoneInfoBtn {
    background: #ffb300 !important;
    color: #232946 !important;
    border-color: #ffb300 !important;
}

body.dark-mode #zoneInfoBtn:hover {
    background: #232946 !important;
    color: #ffb300 !important;
    border-color: #ffb300 !important;
    box-shadow: 0 4px 8px rgba(255, 179, 0, 0.3) !important;
}