/* =========================================
   1. SELECTOR 3D DE ADEREZOS Y UI JUAN ALITAS
   ========================================= */
.sauce-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.90);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer; 
}

.sauce-modal.hidden {
    opacity: 0;
    visibility: hidden; 
    pointer-events: none !important;
}

.sauce-modal-content {
    width: 90%;
    max-width: 400px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.sauce-selector-container {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* TERMÓMETRO LATERAL */
.thermo-bar {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    pointer-events: none; 
}
.thermo-bar .label-top, .thermo-bar .label-bottom {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 2px;
}
.thermo-bar .gradient-line {
    flex: 1;
    width: 8px;
    margin: 10px 0;
    border-radius: 4px;
    background: linear-gradient(to bottom, #ff0000, #ff8800, #ffee00, #00ff00);
    box-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
}

/* CILINDRO 3D VIRTUAL */
.wheel-viewport {
    flex: 1;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    pointer-events: auto;
    cursor: default; 
}
.sweet-spot {
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 60px;
    margin-top: -30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    pointer-events: none;
    z-index: 10;
}
.wheel-list {
    position: absolute;
    top: 50%; left: 0; width: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}
.wheel-item {
    position: absolute;
    top: 0; left: 0; width: 100%;
    height: 60px;
    margin-top: -30px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15px;
    cursor: pointer;
    backface-visibility: hidden;
    border: 1px solid transparent;
    transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto Vidrio de Selección */
.wheel-item.selected-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.3);
}

.wheel-item .w-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2px;
    transition: color 0.2s;
}
.wheel-item .w-desc {
    font-size: 0.65rem;
    color: #aaa;
    text-transform: uppercase;
}

/* Botón Aderezo Grande con Degradado */
.btn-aderezo-multi {
    background: linear-gradient(90deg, #ff0000, #ff8c00, #ffd700, #32cd32);
    color: #000;
    text-shadow: 0px 1px 2px rgba(255,255,255,0.8);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 900;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Etiquetas miniaturas de los aderezos seleccionados (estilo scroll horizontal) */
.mini-salsa-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: #111;
    font-weight: bold;
    white-space: nowrap;
    text-transform: uppercase;
}

/* =========================================
   2. NUEVO BANNER DE CIERRE (RÉPLICA DE LA IMAGEN)
   ========================================= */
.sauce-header-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px 25px 10px;
    cursor: pointer; 
    user-select: none;
    position: relative;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.sauce-header-banner:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.sh-fire {
    font-size: clamp(3.5rem, 14vw, 5.5rem); 
    line-height: 1;
    margin-right: -8px; 
    z-index: 2;
    filter: drop-shadow(0px 4px 10px rgba(255, 69, 0, 0.6));
}

.sh-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

.sh-elige {
    color: #fff;
    font-size: clamp(1rem, 4vw, 1.5rem);
    white-space: nowrap;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-left: 2px;
    padding-bottom: 6px;
}

.sh-aderezo {
    color: #fff;
    font-size: clamp(1.8rem, 8vw, 3.5rem); 
    white-space: nowrap;
    font-weight: 900;
    line-height: 0.8; 
    letter-spacing: -0.05em; 
    text-transform: uppercase;
    transform: scaleY(1.3); 
    transform-origin: bottom left;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.8);
    margin-bottom: 8px;
}

.sh-sabiamente {
    background: linear-gradient(90deg, #ff0000, #cc0000); 
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    align-self: flex-end; 
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
    z-index: 3;
}

.main-banner-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom; 
    width: 100%;
    height: 35vh;
    min-height: 250px;
    max-height: 450px;
    background-color: #000;
    position: relative;
    scroll-behavior: smooth;
}

.main-banner-carousel::-webkit-scrollbar {
    display: none;
}

.main-banner-slide {
    display: flex !important;
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    scroll-snap-align: center;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #000;
    overflow: hidden; 
}

.main-banner-slide .bg-blur {
    position: absolute !important;
    top: -10% !important; 
    left: -10% !important;
    width: 120% !important; 
    height: 120% !important;
    object-fit: cover !important; 
    filter: blur(25px) brightness(0.4) !important; 
    z-index: 1 !important;
    pointer-events: none !important;
    transform: translateZ(0); 
    display: block !important;
}

.main-banner-slide .fg-clear {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; 
    object-position: center !important;
    z-index: 2 !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8)) !important; 
    display: block !important;
}

/* =========================================
   FORZAR ENVOLTURA PARA CONTROLES SUPERIORES
   ========================================= */
/* OVERRIDE: Obligamos a core.js a permitir el salto de línea */
.dish-action {
    display: flex !important;
    flex-wrap: wrap !important; /* <--- ESTO ES LA MAGIA QUE FALTABA */
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important; 
}

/* Diseño interactivo de la mini carta */
.mini-salsa-tag {
    font-size: 0.65rem;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    font-weight: bold;
    white-space: nowrap;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0; /* Evita que se aplasten */
}

.mini-salsa-tag:active {
    transform: scale(0.9);
    background: rgba(255, 51, 102, 0.3);
}

/* =========================================
   PÍLDORAS RESPONSIVAS Y COMPACTAS
   ========================================= */
.mini-salsas-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    margin-bottom: 4px;
}

.mini-salsa-tag {
    font-size: 0.62rem !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: transform 0.12s ease, opacity 0.12s ease;
    user-select: none;
}

.mini-salsa-tag:active {
    transform: scale(0.92);
    opacity: 0.7;
}

/* =========================================
   BOTÓN ROSADO DENTRO DEL MODAL
   ========================================= */
.btn-modal-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff3366, #e6194d);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 18px rgba(255, 51, 102, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    z-index: 20;
}

.btn-modal-add-cart:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.3);
}

.btn-modal-add-cart .btn-modal-plus {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

/* =========================================
   ANIMACIÓN DE SALTO EN EL CARRITO 🛒
   ========================================= */
@keyframes cartBounceJump {
    0% { transform: scale(1) translateY(0); }
    25% { transform: scale(1.3) translateY(-14px); }
    50% { transform: scale(0.9) translateY(3px); }
    75% { transform: scale(1.15) translateY(-5px); }
    100% { transform: scale(1) translateY(0); }
}

.cart-jump-active {
    animation: cartBounceJump 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}