:root {
    --cyan-neon: #00f3ff;
    --red-neon: #ff003c;
    --green-neon: #00ff66;
    --bg-dark: #020408; /* Negro purísimo */
    --card-bg: #0a0e17; /* Fondo de tarjetas casi negro */
    --text-light: #ffffff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding-bottom: 100px;
    background-image: radial-gradient(circle at 50% 0%, #0d1423 0%, #020408 60%);
}

/* --- ENCABEZADO Y LOGO --- */
header {
    text-align: center;
    padding: 20px 10px 5px 10px;
    background: transparent; /* CERO fondos grises feos */
    border-bottom: none;
}

.logo-imagen {
    max-width: 240px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.4));
    animation: latido-logo 3s infinite alternate;
}

@keyframes latido-logo {
    0% { filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.2)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.6)); transform: scale(1.02); }
}

/* --- ESTADO NEVERAS (LED NEÓN REAL) --- */
/* (Nota: Como esto se crea desde JS, forzamos los estilos aquí con !important para limpiar la basura) */
#badge-estado {
    display: inline-block !important;
    margin-top: 10px !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.8em !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    background: rgba(0, 255, 102, 0.05) !important;
    border: 1px solid var(--green-neon) !important;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.3), inset 0 0 8px rgba(0, 255, 102, 0.2) !important;
    color: var(--green-neon) !important;
}

/* --- CONTENEDOR Y TARJETAS NEÓN --- */
.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.producto {
    background: var(--card-bg);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1), inset 0 0 20px rgba(0, 243, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

/* El toque chimba: Una línea de luz en el borde izquierdo de cada granizado */
.producto::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-neon);
}

.producto:hover {
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.2);
}

.info h3 {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.precio-btn strong {
    font-size: 1.25em;
    color: var(--cyan-neon);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}

/* --- CONTROLES + / - (Estilo Gamer/Neón) --- */
.controles-cantidad {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.6);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.btn-qty {
    background: transparent;
    border: 1px solid var(--cyan-neon);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    color: var(--cyan-neon);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 5px rgba(0, 243, 255, 0.2);
}

.btn-qty:hover {
    background: var(--cyan-neon);
    color: #000;
    box-shadow: 0 0 15px var(--cyan-neon);
}

.qty-numero {
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    font-size: 1.2em;
}

/* --- CARRITO FLOTANTE Y BOTÓN "IR A PAGAR" VIVO --- */
.carrito-flotante {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 6, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 243, 255, 0.4);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 243, 255, 0.15);
    box-sizing: border-box;
    z-index: 100;
}

.carrito-flotante div {
    font-size: 1.15em;
    color: #fff;
}

.carrito-flotante button {
    background: linear-gradient(90deg, #ff003c, #ff3b3b);
    color: white;
    border: 1px solid #ff003c;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    transition: 0.3s;
    animation: pulso-rojo 2s infinite; /* Aquí le damos vida al botón */
}

@keyframes pulso-rojo {
    0% { box-shadow: 0 0 15px rgba(255, 0, 60, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 60, 0.9), 0 0 40px rgba(255, 0, 60, 0.4); }
    100% { box-shadow: 0 0 15px rgba(255, 0, 60, 0.5); }
}

/* --- REDES SOCIALES (Botones de Luz) --- */
.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px auto;
    max-width: 600px;
    padding: 0 15px;
}

.btn-social {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--cyan-neon);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 10px;
    border: 1px solid var(--cyan-neon);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-social:hover {
    background: var(--cyan-neon);
    color: #000;
    box-shadow: 0 0 20px var(--cyan-neon);
    transform: translateY(-3px);
}

/* --- MODAL Y FORMULARIO (Estilo Ciberpunk) --- */
.modal-oculto {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 15px 0; /* Le da aire arriba y abajo en celulares pequeños */
}

.modal-contenido {
    background: var(--card-bg);
    border: 1px solid var(--cyan-neon);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.2);
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 20px;
    position: relative;
    box-sizing: border-box;
    max-height: 85vh; /* El truco: nunca crecerá más del 85% de la pantalla */
    overflow-y: auto; /* ¡Y aquí habilitamos que se pueda deslizar hacia abajo! */
}

/* --- BARRA DE SCROLL NEÓN (OPCIONAL Y ELEGANTE) --- */
.modal-contenido::-webkit-scrollbar {
    width: 6px;
}
.modal-contenido::-webkit-scrollbar-track {
    background: #020408;
    border-radius: 10px;
}
.modal-contenido::-webkit-scrollbar-thumb {
    background: var(--cyan-neon);
    border-radius: 10px;
}

.cerrar {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--cyan-neon);
    text-shadow: 0 0 10px var(--cyan-neon);
    transition: 0.3s;
}

.cerrar:hover { color: #fff; }

.paquete-gratis {
    background: rgba(255, 0, 60, 0.05);
    border: 1px solid rgba(255, 0, 60, 0.5);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-bottom: 20px;
    color: #ffb3c1;
    box-shadow: inset 0 0 15px rgba(255, 0, 60, 0.1);
}

.paquete-gratis .etiqueta-gratis {
    color: var(--red-neon);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.6);
}

.opciones-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.opcion-extra {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    background: rgba(0,0,0,0.6);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.formulario-pedido {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.formulario-pedido input, 
.formulario-pedido select {
    background: #000;
    border: 1px solid rgba(0, 243, 255, 0.4);
    padding: 14px;
    border-radius: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
}

.formulario-pedido input::placeholder { color: #4b627d; }
.formulario-pedido input:focus, .formulario-pedido select:focus { 
    border-color: var(--cyan-neon); 
    outline: none; 
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

#btn-confirmar-extra {
    width: 100%;
    background: var(--red-neon);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    transition: 0.3s;
}

#btn-confirmar-extra:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(255, 0, 60, 0.8);
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
#btn-flotante-wpp {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 99;
    transition: transform 0.3s;
}
#btn-flotante-wpp:hover { transform: scale(1.1); box-shadow: 0 0 30px rgba(37, 211, 102, 0.8); }
#btn-flotante-wpp.escondido { display: none; }

/* --- NOTIFICACIONES TOAST --- */
#toast-notificacion {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(4, 6, 10, 0.95);
    border: 1px solid var(--cyan-neon);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}
#toast-notificacion.mostrar { opacity: 1; }
/* --- ETIQUETA CON/SIN LICOR --- */
.etiqueta-licor {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 900;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 0, 60, 0.1);
    color: var(--red-neon);
    border: 1px solid rgba(255, 0, 60, 0.4);
    margin-bottom: 6px;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.2);
}

/* Si detecta que es "Sin Licor", cambia a estilo Azul Cian */
.etiqueta-licor.sin-licor {
    background: rgba(0, 243, 255, 0.1);
    color: var(--cyan-neon);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.2);
}
/* --- FILTROS DE CATEGORÍA --- */
.filtros-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px auto 5px auto;
    max-width: 600px;
    padding: 0 15px;
}

.btn-filtro {
    background: rgba(0, 0, 0, 0.6);
    color: #94a3b8;
    border: 1px solid #1e293b;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.btn-filtro.activo {
    background: rgba(0, 243, 255, 0.1);
    color: var(--cyan-neon);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.btn-filtro:hover:not(.activo) {
    border-color: rgba(0, 243, 255, 0.5);
    color: white;
}

/* --- ANIMACIÓN GOLPE DEL CARRITO --- */
@keyframes golpe-carrito {
    0% { transform: scale(1); }
    50% { transform: scale(1.02) translateY(-4px); box-shadow: 0 -15px 40px rgba(0, 243, 255, 0.4); }
    100% { transform: scale(1); }
}

.carrito-animado {
    animation: golpe-carrito 0.3s ease-out;
}
/* --- BOTONES DE HIELO ESCARCHADO --- */
.btn-qty {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.2), 
        inset 2px 2px 5px rgba(255, 255, 255, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    overflow: hidden;
}

/* El reflejo de la luz pegando en el hielo */
.btn-qty::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.6) 50%, transparent 55%);
    transform: rotate(45deg);
    transition: all 0.3s;
    opacity: 0;
}

.btn-qty:hover::before {
    animation: brillo-hielo 0.6s forwards;
    opacity: 1;
}

@keyframes brillo-hielo {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulso-verde {
    0% { box-shadow: 0 0 10px rgba(0, 255, 102, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 102, 0.6); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 102, 0.2); }
}
/* --- 🔥 PRODUCTOS DE TEMPORADA (VIP) 🔥 --- */
.producto-temporada {
    border: 2px solid #ff8c00 !important;
    background: linear-gradient(135deg, rgba(30, 10, 0, 0.9) 0%, rgba(10, 5, 0, 0.95) 100%) !important;
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.2), inset 0 0 20px rgba(255, 140, 0, 0.1) !important;
    transform: scale(1.02); /* Lo hace un poquitico más grande que el resto */
}

.producto-temporada:hover {
    box-shadow: 0 0 35px rgba(255, 140, 0, 0.4) !important;
    transform: scale(1.04);
}

.etiqueta-temporada {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 140, 0, 0.15);
    color: #ffaa00;
    border: 1px solid #ffaa00;
    margin-bottom: 8px;
    margin-right: 5px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
    animation: titilar-oro 1.5s infinite alternate;
}

@keyframes titilar-oro {
    0% { box-shadow: 0 0 5px rgba(255, 140, 0, 0.2); border-color: #ff8c00; }
    100% { box-shadow: 0 0 20px rgba(255, 170, 0, 0.8); border-color: #ffaa00; color: #fff;}
}
/* --- LOGO TIPOGRÁFICO EN PURO CÓDIGO (ZERO GRADOS) --- */
.header-logo-container {
    text-align: center;
    padding: 30px 10px 10px 10px;
    background: transparent;
    border: none;
}

.logo-texto {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Efecto Hielo Neón para "ZERO" */
.logo-zero {
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, var(--cyan-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.6), 0 0 30px rgba(0, 243, 255, 0.3);
    position: relative;
    filter: drop-shadow(0 2px 8px rgba(0, 243, 255, 0.4));
}

/* Texto Blanco Nítido para "GRADOS" */
.logo-grados {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 3px;
}

/* Eslogan Blanco Sutil y Elegante */
.logo-eslogan {
    margin-top: 10px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Ajuste para pantallas pequeñas (Celulares) */
@media (max-width: 480px) {
    .logo-texto {
        font-size: 2.1em;
        gap: 8px;
    }
    .logo-eslogan {
        font-size: 0.65em;
        letter-spacing: 2px;
    }
}