/* 
  PLICA MOTION SYSTEM
  Premium Coffee Bean Particles & Hero Interactions
*/

.global-particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Profundidad de fondo global */
    pointer-events: none; /* Atraviesa los clicks para no romper links */
    mix-blend-mode: screen; 
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto; /* Allow mouse interaction */
}

/* Footer Rotating Bean (Watermark) */
.footer-bean-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado absoluto */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.04; /* Sutileza extrema de marca de agua */
    pointer-events: none;
    z-index: 0;
}

.rotating-bean {
    width: 380px; /* Gigante y visual */
    height: auto;
    filter: drop-shadow(0 0 30px rgba(221, 211, 196, 0.4));
    animation: bean-rotate 60s linear infinite; /* Rotación ultra lenta y elegante */
    transform-origin: center center;
}

@keyframes bean-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Base class for content that should stay on top of the animation */
.motion-on-top {
    position: relative;
    z-index: 10;
}

/* Desktop only optimization: reduce particles on mobile via JS, 
   but we can also use CSS to hide container if performance is critical */
@media (prefers-reduced-motion: reduce) {
    .global-particle-system {
        display: none !important;
    }
    .rotating-bean {
        animation: none !important;
    }
}
