/* ==========================================================================
   🎄 RECARGASNEY - TEMA NAVIDEÑO 3D / 4D GAMER (EDICIÓN ESPECIAL NAVIDAD) 🎅
   Diseño ultra-moderno, 3D, partículas de nieve, Santa Gamer y luces festivas
   100% no invasivo (pointer-events respetados, cero bloqueos de clics)
   ========================================================================== */

/* ❄️ CANVAS DE NIEVE 3D SUAVE */
#christmas-snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none !important;
    z-index: 9998;
    opacity: 0.95;
    transition: opacity 0.5s ease;
}

body.snow-disabled #christmas-snow-canvas {
    opacity: 0;
    display: none;
}

/* 🎅 BOTÓN TOGGLE DE NIEVE EN HEADER (OCULTO A SOLICITUD) */
.holiday-snow-toggle {
    display: none !important;
}

/* 🌟 BARRA SUPERIOR NAVIDEÑA */
.top-banner.christmas-edition {
    background: linear-gradient(90deg, #7f1d1d 0%, #14532d 25%, #831843 50%, #14532d 75%, #7f1d1d 100%) !important;
    background-size: 300% 100% !important;
    animation: festiveShine 12s linear infinite !important;
    border-bottom: 1.5px solid rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 2px 15px rgba(220, 38, 38, 0.3) !important;
}

@keyframes festiveShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* 🎅 GORRITO DE NAVIDAD 3D SOBRE EL LOGO */
.main-logo-wrapper {
    position: relative !important;
}

.logo-santa-hat {
    position: absolute;
    top: -18px;
    left: -14px;
    width: 52px;
    height: 52px;
    pointer-events: none;
    z-index: 12;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
    animation: hatBounce 3s infinite ease-in-out;
    transform-origin: bottom right;
}

@keyframes hatBounce {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-3px); }
}

/* 🎄 MASCOTA SANTA CLAUS GAMER 3D FLOTANTE */
.santa-3d-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9995;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    user-select: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Burbuja de diálogo interactiva */
.santa-speech-bubble {
    pointer-events: auto;
    position: relative;
    background: linear-gradient(135deg, rgba(22, 11, 42, 0.96) 0%, rgba(35, 12, 50, 0.98) 100%);
    border: 1.5px solid rgba(0, 240, 255, 0.55);
    border-radius: 14px;
    padding: 9px 14px;
    color: #fff;
    font-size: 0.80rem;
    line-height: 1.35;
    max-width: 210px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 240, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transform-origin: bottom right;
    animation: bubbleGlow 3s infinite ease-in-out;
}

.santa-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 38px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(35, 12, 50, 0.98);
}

.santa-bubble-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: #FFD700;
    font-size: 0.82rem;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.santa-bubble-text {
    font-size: 0.75rem;
    color: #e2e8f0;
}

.santa-bubble-close {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, background 0.2s ease;
}

.santa-bubble-close:hover {
    transform: scale(1.15);
    background: #dc2626;
}

@keyframes bubbleGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 240, 255, 0.35);
        border-color: rgba(0, 240, 255, 0.55);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 22px rgba(244, 63, 94, 0.45);
        border-color: rgba(244, 63, 94, 0.65);
    }
}

/* Contenedor del personaje 3D */
.santa-avatar-container {
    pointer-events: auto;
    position: relative;
    width: 145px;
    height: 185px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: santaFloat3D 3.5s infinite ease-in-out;
}

.santa-avatar-container:hover {
    transform: scale(1.08) translateY(-6px) rotate(1.5deg);
}

.santa-avatar-container:active {
    transform: scale(0.96);
}

.santa-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(0, 240, 255, 0.55));
    transition: filter 0.3s ease;
}

.santa-avatar-container:hover .santa-avatar-img {
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 28px rgba(0, 240, 255, 0.9));
}

/* Aura de luz festiva giratoria detrás de Santa */
.santa-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(239, 68, 68, 0.2) 50%, transparent 70%);
    filter: blur(14px);
    z-index: -1;
    pointer-events: none;
    animation: auraPulse 3s infinite alternate ease-in-out;
}

@keyframes auraPulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

@keyframes santaFloat3D {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1.5deg);
    }
}

/* Botón flotante minimizado (icono regalo 🎁) */
.santa-minimized-btn {
    pointer-events: auto;
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9994;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    border: 2px solid #FFD700;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5), 0 0 15px rgba(255, 215, 0, 0.4);
    color: #fff;
    font-size: 1.4rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: giftJiggle 3.5s infinite ease-in-out;
}

.santa-minimized-btn:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.7), 0 0 25px rgba(255, 215, 0, 0.7);
}

@keyframes giftJiggle {
    0%, 85%, 100% { transform: rotate(0) scale(1); }
    88% { transform: rotate(-10deg) scale(1.08); }
    92% { transform: rotate(10deg) scale(1.08); }
    96% { transform: rotate(-5deg) scale(1.05); }
}

/* 🎄 BADGE FESTIVO EN SECCIÓN DE DIAMANTES */
.christmas-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #FFD700;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    margin-bottom: 8px;
    animation: festivePulse 2s infinite ease-in-out;
}

@keyframes festivePulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* 📱 RESPONSIVE PARA DISPOSITIVOS MÓVILES */
@media (max-width: 600px) {
    .santa-3d-widget {
        bottom: 82px;
        right: 12px;
    }
    .santa-avatar-container {
        width: 110px;
        height: 140px;
    }
    .santa-speech-bubble {
        max-width: 175px;
        font-size: 0.74rem;
        padding: 8px 11px;
    }
    .santa-bubble-title {
        font-size: 0.76rem;
    }
    .santa-bubble-text {
        font-size: 0.70rem;
    }
    .santa-minimized-btn {
        bottom: 82px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .logo-santa-hat {
        width: 44px;
        height: 44px;
        top: -15px;
        left: -11px;
    }
}
