* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d0d12;
    color: #ffffff;
    padding-bottom: 70px; 
    -webkit-tap-highlight-color: transparent;
}

.fondo-animado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    overflow: hidden;
    pointer-events: none; 
    background-color: #0d0d12;
}

.icono-rebote {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.15; 
    transition: transform 0.1s linear;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1rem;
    background: linear-gradient(135deg, #150824, #3a00b3);
    border-bottom: 2px solid #b026ff;
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.2);
}

header h1 {
    color: #e6c3ff;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.botones-superiores {
    display: flex;
    gap: 10px;
    align-items: center;
}

@keyframes latido {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(176, 38, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 18px rgba(176, 38, 255, 0.7); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(176, 38, 255, 0.4); }
}

.btn-carrito-top {
    position: relative;
    top: 0;
    background-color: #b026ff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    animation: latido 3s infinite ease-in-out;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.2s ease, top 0.2s ease;
}

.btn-carrito-top:hover {
    animation: none;
    top: -4px;
    transform: scale(1.02);
}

.btn-carrito-top:active {
    top: 2px;
    transform: scale(0.96);
}

#contador-carrito {
    background: white;
    color: #b026ff;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
}

.contenedor-busqueda {
    padding: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

#input-busqueda {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: 1px solid #2a1140;
    background-color: #16161e;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

#input-busqueda:focus {
    border-color: #b026ff;
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
}

.carrusel-contenedor {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto 1rem auto;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    border: 1px solid #2a1140;
}

.carrusel-slides {
    display: flex;
    width: 300%;
    animation: slide 15s infinite;
}

.carrusel-slides img {
    width: 33.33%;
    height: 200px;
    object-fit: cover;
}

@keyframes slide {
    0% { margin-left: 0; }
    30% { margin-left: 0; }
    35% { margin-left: -100%; }
    65% { margin-left: -100%; }
    70% { margin-left: -200%; }
    95% { margin-left: -200%; }
    100% { margin-left: 0; }
}

@media (max-width: 600px) {
    .carrusel-slides img { height: 150px; }
}

.barra-categorias {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem 1rem 1rem 1rem;
    -webkit-overflow-scrolling: touch;
    max-width: 1100px;
    margin: 0 auto;
}

.barra-categorias::-webkit-scrollbar { display: none; }
#lista-categorias { list-style: none; display: flex; gap: 10px; padding: 5px 0; }

#lista-categorias li {
    background-color: #16161e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #2a1140;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#lista-categorias li:hover {
    transform: translateY(-4px);
    border-color: #b026ff;
    box-shadow: 0 4px 12px rgba(176, 38, 255, 0.5);
}

#lista-categorias li.activo {
    background-color: #b026ff;
    color: white;
    border-color: #b026ff;
    box-shadow: 0 0 12px rgba(176, 38, 255, 0.6);
}

.catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.producto {
    background-color: #16161e;
    border-radius: 12px;
    border: 1px solid #2a1140;
    overflow: hidden;
    text-align: center;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(176, 38, 255, 0.6), 0 0 15px rgba(176, 38, 255, 0.4);
    border-color: #b026ff;
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #b026ff;
}

.producto-info { 
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto h2 { color: #ffffff; margin-bottom: 0.3rem; font-size: 1.3rem; }
.precio-tag { color: #b026ff; font-weight: bold; font-size: 1.2rem; margin-bottom: 0.5rem; display: block; }
.producto p { color: #9090a0; font-size: 0.95rem; margin-bottom: 1.2rem; flex-grow: 1; }

.botones-producto {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.btn-mitad {
    flex: 1;
    padding: 0.8rem 0.4rem;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-agregar-cart {
    background-color: #8a2be2;
    color: white;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.btn-agregar-cart:hover {
    transform: translateY(-4px);
    background-color: #9d4edd;
    box-shadow: 0 6px 15px rgba(138, 43, 226, 0.6);
}

.btn-agregar-cart:active { transform: translateY(1px); }

.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex; justify-content: center; align-items: center; z-index: 2000;
    padding: 10px;
}

.modal.oculto { display: none; }

.modal-contenido {
    background-color: #150824; 
    width: 95%; 
    max-width: 450px; 
    max-height: 85vh;
    overflow-y: auto; 
    overflow-x: hidden;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #b026ff; 
    position: relative;
}

.modal-contenido::-webkit-scrollbar { width: 6px; }
.modal-contenido::-webkit-scrollbar-track { background: #0d0d12; border-radius: 10px; }
.modal-contenido::-webkit-scrollbar-thumb { background: #b026ff; border-radius: 10px; }

.cerrar-modal {
    position: absolute; top: 12px; right: 15px; font-size: 1.6rem; color: #b026ff; cursor: pointer;
}

.item-carrito {
    display: flex; flex-direction: column; gap: 8px; padding: 15px 0; border-bottom: 1px solid #2a1140;
}

.item-header { display: flex; justify-content: space-between; color: #e6c3ff; font-weight: bold; }
.controles-cantidad { display: flex; align-items: center; justify-content: space-between; background: #0d0d12; padding: 6px; border-radius: 10px; }
.bloque-izq { display: flex; align-items: center; gap: 10px; }

.btn-cant { 
    background: #8a2be2; 
    color: white; 
    border: none; 
    width: 34px; 
    height: 34px; 
    border-radius: 8px; 
    font-size: 1.2rem; 
    cursor: pointer; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.btn-cant:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(176, 38, 255, 0.6);
}
.btn-cant:active { transform: translateY(1px); }

.cantidad-texto { width: 25px; text-align: center; font-weight: bold; }

.btn-eliminar { 
    background: #ff3366; 
    color: #ffffff; 
    border: none; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 0.85rem; 
    font-weight: bold;
    cursor: pointer; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 51, 102, 0.2);
}
.btn-eliminar:hover {
    transform: translateY(-3px);
    background-color: #ff1a53;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.6);
}
.btn-eliminar:active { transform: translateY(1px); }

.contenedor-descuento {
    display: flex; gap: 10px; margin-top: 15px;
}

#input-descuento {
    flex-grow: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid #2a1140;
    background-color: #0d0d12; color: white; outline: none; font-size: 0.9rem; transition: border-color 0.3s;
}

#input-descuento:focus {
    border-color: #b026ff; box-shadow: 0 0 8px rgba(176, 38, 255, 0.4);
}

#btn-aplicar-descuento {
    background-color: #b026ff; color: white; border: none; padding: 0 15px; border-radius: 8px;
    font-weight: bold; cursor: pointer; font-size: 0.9rem; transition: background-color 0.2s, transform 0.2s;
}

#btn-aplicar-descuento:hover { background-color: #8a2be2; transform: scale(1.02); }

.mensaje-descuento { font-size: 0.85rem; margin-top: 6px; text-align: left; min-height: 18px; }
.mensaje-descuento.exito { color: #25d366; }
.mensaje-descuento.error { color: #ff3366; }

.carrito-total {
    display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-top: 1.5rem;
    padding-top: 1rem; border-top: 2px dashed #b026ff; color: #e6c3ff;
}

.btn-enviar-pedido {
    background-color: #25d366; 
    color: white; border: none; padding: 1rem; border-radius: 25px; font-size: 1rem; font-weight: bold;
    width: 100%; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4); cursor: pointer; margin-top: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-enviar-pedido:hover {
    transform: translateY(-3px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

.btn-pagar-mp-total {
    background-color: #009ee3;
    color: white; border: none; padding: 1rem; border-radius: 25px; font-size: 1rem; font-weight: bold;
    width: 100%; box-shadow: 0 4px 10px rgba(0, 158, 227, 0.3); cursor: pointer; margin-top: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; justify-content: center; align-items: center;
}
.btn-pagar-mp-total:hover {
    transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 158, 227, 0.6);
}

footer {
    text-align: center; padding: 2rem 1rem 5rem 1rem; margin-top: 2rem; border-top: 1px solid #2a1140; font-size: 0.85rem; color: #606070;
}

.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.footer-links a { color: #9090a0; text-decoration: none; }
.footer-links a:hover { color: #b026ff; }

.contenedor-pagos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap; 
}

.contenedor-pagos img {
    height: 38px;
    width: auto;
    background-color: #ffffff; 
    padding: 6px 14px;
    border-radius: 8px;
    opacity: 0.9;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.contenedor-pagos img:hover {
    opacity: 1; 
    transform: translateY(-3px);
}

.horarios-barra {
    position: fixed; bottom: 0; left: 0; width: 100%; background-color: #0d0d12; border-top: 1px solid #b026ff;
    display: flex; align-items: center; height: 45px; z-index: 1000; font-size: 0.9rem; color: #e6c3ff; box-shadow: 0 -2px 10px rgba(176, 38, 255, 0.2);
}

.estado-tienda {
    background: linear-gradient(135deg, #150824, #2a1140); padding: 0 15px; height: 100%; display: flex;
    align-items: center; font-weight: bold; border-right: 2px solid #b026ff; white-space: nowrap; z-index: 2; color: #ffffff;
}

.horarios-scroll { flex-grow: 1; overflow: hidden; white-space: nowrap; position: relative; height: 100%; display: flex; align-items: center; }
.horarios-texto { display: inline-block; padding-left: 100%; animation: scrollHorarios 25s linear infinite; }
@keyframes scrollHorarios { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.btn-whatsapp-flotante {
    position: fixed; bottom: 60px; right: 20px; z-index: 9999; width: 50px; height: 50px;
    background-color: #25d366; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); animation: latidoWhatsApp 2s infinite;
}

.btn-whatsapp-flotante img { width: 30px; height: 30px; }
@keyframes latidoWhatsApp { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

.notificacion-compra {
    position: fixed; bottom: 120px; left: 20px; background-color: #150824; border: 1px solid #b026ff;
    padding: 12px 15px; border-radius: 12px; display: flex; align-items: center; gap: 12px; z-index: 9998;
    color: white; font-size: 0.85rem; box-shadow: 0 4px 15px rgba(176, 38, 255, 0.4); transition: transform 0.5s ease, opacity 0.5s ease; max-width: 280px;
}

.notificacion-compra.oculto { opacity: 0; transform: translateX(-150px); pointer-events: none; }
.notif-icon { font-size: 1.5rem; }

/* --- ESTILOS EXCLUSIVOS DE LA NOTIFICACIÓN FLOTANTE (TOAST) --- */
#notificacion-toast {
    visibility: hidden;
    min-width: 260px;
    background-color: #16161e;
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
    padding: 14px;
    position: fixed;
    z-index: 10005;
    left: 50%;
    transform: translateX(-50%);
    bottom: 65px;
    font-size: 0.95rem;
    font-weight: bold;
    border: 1px solid #b026ff;
    box-shadow: 0 6px 20px rgba(176, 38, 255, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease, bottom 0.4s ease, visibility 0.4s;
}

#notificacion-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 80px;
}