/* ================================================
   EFECTOS ESPACIALES AVANZADOS
   ================================================ */

/* PARTÍCULAS FLOTANTES ANIMADAS */
@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(10px, -20px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-10px, -40px) scale(0.8);
        opacity: 0.7;
    }
    75% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.4;
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 8s ease-in-out infinite;
}

.particle-1 {
    width: 4px;
    height: 4px;
    background: rgba(177, 91, 117, 0.4);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    background: rgba(0, 71, 93, 0.3);
    top: 40%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle-3 {
    width: 3px;
    height: 3px;
    background: rgba(177, 91, 117, 0.5);
    top: 60%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    background: rgba(0, 71, 93, 0.4);
    top: 80%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 11s;
}

.particle-5 {
    width: 4px;
    height: 4px;
    background: rgba(177, 91, 117, 0.3);
    top: 30%;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.particle-6 {
    width: 6px;
    height: 6px;
    background: rgba(0, 71, 93, 0.5);
    top: 50%;
    left: 20%;
    animation-delay: 5s;
    animation-duration: 9s;
}

/* GLOWING BORDERS NEÓN */
.glow-border-neon {
    position: relative;
    box-shadow: 
        0 0 5px rgba(177, 91, 117, 0.3),
        0 0 10px rgba(177, 91, 117, 0.2),
        0 0 20px rgba(177, 91, 117, 0.1),
        inset 0 0 10px rgba(177, 91, 117, 0.1);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(177, 91, 117, 0.3),
            0 0 10px rgba(177, 91, 117, 0.2),
            0 0 20px rgba(177, 91, 117, 0.1),
            inset 0 0 10px rgba(177, 91, 117, 0.1);
    }
    50% {
        box-shadow: 
            0 0 10px rgba(177, 91, 117, 0.5),
            0 0 20px rgba(177, 91, 117, 0.3),
            0 0 40px rgba(177, 91, 117, 0.2),
            inset 0 0 20px rgba(177, 91, 117, 0.2);
    }
}

.glow-border-blue {
    box-shadow: 
        0 0 5px rgba(0, 71, 93, 0.3),
        0 0 10px rgba(0, 71, 93, 0.2),
        0 0 20px rgba(0, 71, 93, 0.1),
        inset 0 0 10px rgba(0, 71, 93, 0.1);
    animation: glow-pulse-blue 3s ease-in-out infinite;
}

@keyframes glow-pulse-blue {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 71, 93, 0.3),
            0 0 10px rgba(0, 71, 93, 0.2),
            0 0 20px rgba(0, 71, 93, 0.1),
            inset 0 0 10px rgba(0, 71, 93, 0.1);
    }
    50% {
        box-shadow: 
            0 0 10px rgba(0, 71, 93, 0.5),
            0 0 20px rgba(0, 71, 93, 0.3),
            0 0 40px rgba(0, 71, 93, 0.2),
            inset 0 0 20px rgba(0, 71, 93, 0.2);
    }
}

/* BREATHING ANIMATION (RESPIRA) */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.breathing {
    animation: breathing 4s ease-in-out infinite;
}

/* FLOATING HOVER (Flota en hover) */
@keyframes float-hover {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-on-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-on-hover:hover {
    animation: float-hover 2s ease-in-out infinite;
    box-shadow: 
        0 20px 60px rgba(0, 71, 93, 0.3),
        0 0 40px rgba(177, 91, 117, 0.2);
}

/* 3D DEPTH EFFECT */
.depth-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.depth-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(20px);
}

/* LIGHT EFFECT (Efecto de luz) */
.light-effect {
    position: relative;
    overflow: hidden;
}

.light-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.light-effect:hover::before {
    transform: translateX(100%);
}

/* SHIMMER EFFECT */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* GLASS CARD PREMIUM */
.glass-premium {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px 0 rgba(0, 71, 93, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(177, 91, 117, 0.1);
}

/* NEON TEXT */
.neon-text {
    text-shadow: 
        0 0 5px rgba(177, 91, 117, 0.5),
        0 0 10px rgba(177, 91, 117, 0.4),
        0 0 20px rgba(177, 91, 117, 0.3),
        0 0 40px rgba(177, 91, 117, 0.2);
    animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(177, 91, 117, 0.5),
            0 0 10px rgba(177, 91, 117, 0.4),
            0 0 20px rgba(177, 91, 117, 0.3),
            0 0 40px rgba(177, 91, 117, 0.2);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(177, 91, 117, 0.7),
            0 0 20px rgba(177, 91, 117, 0.5),
            0 0 40px rgba(177, 91, 117, 0.4),
            0 0 80px rgba(177, 91, 117, 0.3);
    }
}

/* ROTATE SLOW (Rotación suave) */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* SCALE PULSE */
@keyframes scale-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.scale-pulse {
    animation: scale-pulse 3s ease-in-out infinite;
}

/* GRADIENT ANIMATED */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* BORDER GLOW ROTATION */
@keyframes border-glow-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.border-glow-rotate {
    animation: border-glow-rotate 10s linear infinite;
}

/* PERSPECTIVE TILT */
.tilt-3d {
    transition: transform 0.3s ease;
}

.tilt-3d:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(-5deg);
}

/* AMBIENT LIGHT */
.ambient-light {
    position: relative;
}

.ambient-light::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle,
        rgba(177, 91, 117, 0.15) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-light 4s ease-in-out infinite;
}

@keyframes pulse-light {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}
