/* ÍCONO DE CAJA DE LUJO EN HEADER */
.luxury-box-icon {
    position: relative;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: floatRotate 4s ease-in-out infinite;
    margin-right: 15px;
}

.luxury-box-icon:hover {
    transform: scale(1.15);
    animation: none;
}

/* Glow effect */
.box-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent);
    border-radius: 50%;
    filter: blur(15px);
    animation: pulse 2s ease-in-out infinite;
}

/* Caja 3D */
.box-body {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffa500 100%);
    border-radius: 8px;
    border: 2px solid #ffed4e;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Detalles ornamentales */
.box-detail {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 237, 78, 0.5);
    border-radius: 6px;
}

/* Tapa */
.box-lid {
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, #ffed4e 0%, #ffd700 100%);
    border-radius: 8px 8px 0 0;
    border: 2px solid #ffed4e;
    border-bottom: none;
    box-shadow: 0 -2px 10px rgba(255, 215, 0, 0.4);
}

/* Moño */
.box-bow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.6);
}

.box-bow::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    border-radius: 10px 10px 0 0;
}

/* Cerradura */
.box-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 12px;
    background: linear-gradient(135deg, #92400e, #78350f);
    border-radius: 2px;
    border: 1px solid #451a03;
}

.box-lock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 6px;
    background: #000;
    border-radius: 1px;
}

/* Brillos */
.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkleAnim 1.5s ease-in-out infinite;
}

.sparkle-1 {
    top: 5px;
    right: 5px;
    animation-delay: 0s;
}

.sparkle-2 {
    bottom: 8px;
    left: 5px;
    animation-delay: 0.5s;
    width: 6px;
    height: 6px;
}

.sparkle-3 {
    top: 15px;
    right: 8px;
    animation-delay: 1s;
    width: 5px;
    height: 5px;
}

/* Badge de notificación */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 9px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0e27;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
    animation: bounce 2s ease-in-out infinite;
}

/* Tooltip */
.luxury-box-icon::before {
    content: '¡Caja de Lujo!';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.9);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    transition: transform 0.2s ease;
    border: 1px solid #ffd700;
    z-index: 1000;
}

.luxury-box-icon:hover::before {
    transform: translateX(-50%) scale(1);
}

/* Animaciones */
@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes sparkleAnim {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .luxury-box-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
}