/* ========================================
   FLOATING ANIMATIONS - Reutilizable
   ======================================== */

/* Contenedor principal de elementos flotantes */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Elementos flotantes base */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatBackground 8s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Elementos individuales con posiciones y tamaños únicos */
.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.floating-element:nth-child(5) {
    width: 70px;
    height: 70px;
    bottom: 40%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 11s;
}

.floating-element:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 40%;
    left: 5%;
    animation-delay: 5s;
    animation-duration: 7s;
}

/* Elementos adicionales con diferentes colores */
.floating-element:nth-child(7) {
    width: 50px;
    height: 50px;
    top: 30%;
    right: 40%;
    animation-delay: 1.5s;
    animation-duration: 6s;
    background: rgba(102, 126, 234, 0.3);
}

.floating-element:nth-child(8) {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 50%;
    animation-delay: 3.5s;
    animation-duration: 9s;
    background: rgba(118, 75, 162, 0.3);
}

.floating-element:nth-child(9) {
    width: 40px;
    height: 40px;
    top: 70%;
    left: 40%;
    animation-delay: 4.5s;
    animation-duration: 5s;
    background: rgba(255, 255, 255, 0.4);
}

/* Animación principal */
@keyframes floatBackground {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-25px) rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-10px) rotate(270deg) scale(1.05);
        opacity: 0.5;
    }
}

/* ========================================
   VARIANTES DE FONDO
   ======================================== */

/* Fondo base para Landing Page y Sistema Interno */
.floating-background {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .floating-element:nth-child(1) { width: 60px; height: 60px; }
    .floating-element:nth-child(2) { width: 90px; height: 90px; }
    .floating-element:nth-child(3) { width: 45px; height: 45px; }
    .floating-element:nth-child(4) { width: 75px; height: 75px; }
    .floating-element:nth-child(5) { width: 55px; height: 55px; }
    .floating-element:nth-child(6) { width: 70px; height: 70px; }
    .floating-element:nth-child(7) { width: 40px; height: 40px; }
    .floating-element:nth-child(8) { width: 55px; height: 55px; }
    .floating-element:nth-child(9) { width: 30px; height: 30px; }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .floating-elements {
        opacity: 0.7; /* Reducir intensidad en móviles */
    }
    
    .floating-element {
        animation-duration: 12s; /* Animación más lenta en móviles */
    }
}
