/* =========================================
   TU CÓDIGO ORIGINAL (SIN CAMBIOS)
   ========================================= */
:root { --naranja: #ff6600; --amarillo: #ffcc00; --oscuro: #0a0a0a; --gris: #1a1a1a; --verde: #2ecc71; --rojo: #e74c3c; --premium-gradient: linear-gradient(135deg, #ff6600 0%, #ff3300 100%); }
body { font-family: 'Segoe UI', sans-serif; margin: 0; background-color: var(--oscuro); color: white; user-select: none; }

#splash { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--oscuro); z-index: 30000; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.8s ease-out; }
.splash-logo { width: 240px; max-width: 80%; animation: pulse-logo 2s infinite ease-in-out; margin-bottom: 30px; }
.loader { border: 4px solid #222; border-top: 4px solid var(--naranja); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; }
@keyframes pulse-logo { 0% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 0.9; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#toast { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); background: var(--verde); color: white; padding: 12px 25px; border-radius: 50px; z-index: 10000; transition: 0.5s; font-size: 0.9em; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 5000; backdrop-filter: blur(10px); align-items: center; justify-content: center; }
.modal-box { background: var(--gris); padding: 30px; border-radius: 25px; border: 1px solid #333; text-align: center; max-width: 350px; width: 85%; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

.container { max-width: 800px; margin: auto; background: var(--gris); min-height: 100vh; padding-bottom: 140px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.header { background: #000; height: 100px; display: flex; justify-content: center; align-items: center; border-bottom: 3px solid var(--naranja); }
.logo-header { width: 120px; }

.datos-entrega { padding: 20px 15px 5px 15px; }
.label-datos { font-size: 0.7em; color: var(--amarillo); font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }

.search-container { padding: 10px 15px; background: var(--gris); position: sticky; top: 0; z-index: 1100; }
.search-input { width: 100%; padding: 15px; background: #222; border: 1px solid #333; color: white; border-radius: 15px; box-sizing: border-box; outline: none; transition: 0.3s; }
.search-input:focus { border-color: var(--naranja); background: #000; }

.cat-nav { position: sticky; top: 73px; background: var(--gris); z-index: 1000; padding: 12px; border-bottom: 1px solid #2a2a2a; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-btn { background: #222; border: 1px solid transparent; color: #ccc; padding: 8px 18px; border-radius: 20px; white-space: nowrap; cursor: pointer; transition: 0.3s; font-size: 0.9em; }
.cat-btn.active { background: var(--naranja); color: white; box-shadow: 0 4px 12px rgba(255,102,0,0.3); }

.producto { background: #222; margin: 10px 15px; border-radius: 20px; display: flex; border: 1px solid #2a2a2a; align-items: center; padding: 15px; }
.img-producto { width: 110px; height: 110px; object-fit: cover; border-radius: 15px; margin-right: 15px; }
.info-prod { flex: 1; }

.tallas-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-talla { background: #2a2a2a; color: white; border: 1px solid #3a3a3a; padding: 8px 12px; border-radius: 12px; cursor: pointer; text-align: left; flex: 1; min-width: 80px; transition: 0.2s; position: relative; display: flex; flex-direction: column; justify-content: center; }
.btn-talla:active { transform: scale(0.95); background: #333; }
.btn-talla::after { content: '+'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-weight: bold; color: var(--naranja); font-size: 1.2em; }
.precio-t { display: block; color: var(--amarillo); font-weight: bold; font-size: 0.85em; }
.label-t { font-size: 0.6em; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }

#modal-combinar { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 5000; backdrop-filter: blur(10px); }
.combinar-content { max-width: 650px; margin: 30px auto; background: var(--gris); border-radius: 25px; border: 1px solid #333; position: relative; max-height: 85vh; display: flex; flex-direction: column; }
.combinar-body { padding: 25px; overflow-y: auto; }
.grid-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.card-extra { background: #222; border: 1px solid #333; padding: 12px; border-radius: 15px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; }
.card-extra.active { border-color: var(--naranja); color: var(--naranja); font-weight: bold; }
.card-extra img { width: 45px; height: 45px; border-radius: 8px; margin-bottom: 5px; }

.sub-tallas-pasta { display: none; background: #111; border: 1px solid #444; border-radius: 10px; margin-top: 10px; padding: 5px; grid-template-columns: 1fr; gap: 5px; }
.btn-sub-talla { background: #333; border: 1px solid #444; color: white; padding: 10px; border-radius: 8px; font-size: 0.75em; cursor: pointer; position: relative; text-align: left; padding-right: 25px; }
.btn-sub-talla::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--naranja); font-weight: bold; }
.btn-sub-talla.active { border-color: var(--naranja); color: var(--naranja); background: #000; }

.btn-opt-style { width: 100%; padding: 15px; background: #222; color: #ccc; border-radius: 15px; text-align: center; font-size: 0.8em; border: 1px solid #333; cursor: pointer; font-weight: bold; transition: 0.3s; text-transform: uppercase; }
.btn-opt-style.confirm-active { border-color: var(--naranja); color: var(--naranja); background: #000; }
.btn-close-modal { background: #333; color: white; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.cart-item { background: #222; margin-bottom: 12px; padding: 15px; border-radius: 18px; display: flex; align-items: center; border-left: 4px solid var(--naranja); position: relative; gap: 10px; }
.cart-info { flex: 1; }
.cart-controls { display: flex; align-items: center; gap: 12px; }
.btn-eliminar-item { background: rgba(231, 76, 60, 0.15); color: var(--rojo); border: 1px solid var(--rojo); width: 28px; height: 28px; border-radius: 8px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 900; }

.qty-controls { display: flex; align-items: center; gap: 10px; background: #333; border-radius: 10px; padding: 5px 12px; }
.btn-qty { background: none; border: none; color: white; font-weight: bold; cursor: pointer; font-size: 1.2em; }

#btn-flotante { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 760px; background: rgba(30, 30, 30, 0.9); backdrop-filter: blur(15px); border: 1px solid rgba(255, 102, 0, 0.4); padding: 12px 25px; border-radius: 100px; display: none; z-index: 2000; align-items: center; justify-content: space-between; transition: 0.3s; box-sizing: border-box; }
.cart-icon-wrapper { background: var(--premium-gradient); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: relative; }
.badge { position: absolute; top: -3px; right: -3px; background: white; color: black; font-size: 0.7em; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid var(--naranja); }

#modal-carrito { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 3000; backdrop-filter: blur(8px); }
.modal-content { max-width: 600px; margin: 20px auto; background: var(--gris); padding: 25px; border-radius: 30px; border: 1px solid #333; max-height: 90vh; display: flex; flex-direction: column; }
.modal-scrollable { overflow-y: auto; flex: 1; padding-right: 5px; }
.modal-fixed-footer { padding-top: 15px; background: var(--gris); border-top: 1px solid #333; }

input[type="text"], textarea { width: 100%; padding: 15px; margin: 8px 0; background: #000; border: 1px solid #333; color: white; border-radius: 12px; box-sizing: border-box; font-family: inherit; }
.selector-box { display: flex; gap: 10px; margin-top: 10px; }
.opt { flex: 1; padding: 12px; background: #222; border-radius: 15px; text-align: center; font-size: 0.8em; border: 1px solid #333; cursor: pointer; transition: 0.3s; color: #ccc; }
.opt.active { border-color: var(--naranja); color: var(--naranja); font-weight: bold; background: #000; }

#modal-confirm-add .resumen-item { background: #111; padding: 20px; border-radius: 20px; margin: 15px 0; text-align: left; font-size: 0.9em; border: 1px solid #222; }
.btn-flex { display: flex; gap: 10px; margin-top: 20px; }
.btn-secundario { background: #333; color: white; flex: 1; border: none; padding: 12px; border-radius: 12px; font-weight: bold; cursor: pointer; }
.btn-primario { background: var(--naranja); color: white; flex: 1; border: none; padding: 12px; border-radius: 12px; font-weight: bold; cursor: pointer; }

/* =========================================
   PARCHE SWEETALERT2 (AÑADIDO AL FINAL)
   ========================================= */
.swal2-container {
    z-index: 999999 !important;
    position: fixed !important;
}

/* Fondo oscuro y texto blanco */
.swal2-popup {
    background: var(--gris) !important;
    color: white !important;
    border-radius: 25px !important;
}

/* Botón de Confirmación Naranja */
.swal2-confirm {
    background: var(--naranja) !important;
    border-radius: 15px !important;
}

/* Botón de Cancelar Gris */
.swal2-cancel {
    background: #333 !important;
    border-radius: 15px !important;
}

/* Colores de Iconos */
.swal2-icon.swal2-warning { border-color: var(--naranja) !important; color: var(--naranja) !important; }
.swal2-icon.swal2-info { border-color: var(--amarillo) !important; color: var(--amarillo) !important; }
.swal2-icon.swal2-success { border-color: var(--verde) !important; color: var(--verde) !important; }

body.swal2-shown > [id^="modal-"], 
body.swal2-shown > .modal-overlay {
    filter: none !important; 
    backdrop-filter: none !important;
}