@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(255,42,133,0.9), 0 0 25px rgba(255,42,133,0.6); }
    50% { text-shadow: 0 0 5px rgba(255,42,133,0.4), 0 0 12px rgba(255,42,133,0.3); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes borderGlow {
    0%, 100% { border-color: rgba(255, 42, 133, 0.3); box-shadow: 0 0 10px rgba(255, 42, 133, 0.1); }
    50% { border-color: rgba(0, 240, 255, 0.7); box-shadow: 0 0 25px rgba(0, 240, 255, 0.3); }
}
@keyframes shimmerEffect {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
@keyframes floatParticle {
    0% { transform: translateY(0px) translateX(0px); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}
@keyframes splashFade {
    0% { opacity: 1; visibility: visible; }
    80% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

/* Asegura que al hacer clic en cualquier enlace con ancla (#), se alinee perfectamente arriba */
html {
    scroll-behavior: smooth;
}

#catalogo, [id*="catalogo"] {
    scroll-margin-top: 30px; /* Ajusta este valor seg¨²n la altura de tu barra de navegaci¨®n superior */
}

.img-blur {
    filter: blur(10px);
    transform: scale(1.05);
    opacity: 0.5;
}

.img-loaded {
    filter: blur(0px);
    transform: scale(1);
    opacity: 1;
}

#splash-screen {
    position: fixed;
    inset: 0;
    background: #07060a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: splashFade 1.2s ease-in-out forwards;
    animation-delay: 0.5s;
}

.particle {
    position: absolute;
    background: rgba(255, 42, 133, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

.flip-card {
    perspective: 1000px;
    background: transparent;
    height: 520px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1.5rem;
}
.flip-card-back {
    transform: rotateY(180deg);
    background: rgba(18, 15, 24, 0.98);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.flip-card-back-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 0.75rem;
}
.flip-card-back-content::-webkit-scrollbar {
    width: 4px;
}
.flip-card-back-content::-webkit-scrollbar-thumb {
    background: rgba(255, 42, 133, 0.4);
    border-radius: 2px;
}

.animate-fade-in { animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.neon-glow-text { animation: neonPulse 3.5s infinite alternate; }
.btn-clicked { animation: buttonPulse 0.2s ease; }

.shimmer-badge {
    background: linear-gradient(90deg, #ff2a85 0%, #ff73b3 50%, #ff2a85 100%);
    background-size: 200% 100%;
    animation: shimmerEffect 3s infinite linear;
}

#cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 42, 133, 0.10) 0%, rgba(0, 240, 255, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99;
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #07060a; }
::-webkit-scrollbar-thumb { background: #261f33; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ff2a85; }

.glass-panel {
    background: rgba(18, 15, 24, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 42, 133, 0.18);
    animation: borderGlow 6s infinite;
}

body.cart-active .glass-panel {
    animation: none !important;
}

.product-stand-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(7, 6, 10, 0.7);
    border: 1px solid rgba(255, 42, 133, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-clean {
    max-height: 160px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}
.product-stand-container:hover .product-img-clean {
    transform: scale(1.06);
}

.modal-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 42, 133, 0.4);
    background-color: #040306;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 320px;
}
.modal-img-container img {
    max-height: 280px;
    width: auto;
    object-fit: contain;
}

/* Notificaciones Toast Estilo NeÃ³n */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: rgba(18, 15, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 42, 133, 0.5);
    box-shadow: 0 0 25px rgba(255, 42, 133, 0.3);
    color: #fff;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: 320px;
}

.toast-notification.success {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.toast-notification.remove {
    border-color: rgba(255, 75, 75, 0.6);
    box-shadow: 0 0 25px rgba(255, 75, 75, 0.3);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(10px) scale(0.95); }
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}