/* ==========================================================================
   Urukais Klick - Fondos Animados CSS
   Desarrollado por Manuel Casimiro Carrasco
   ========================================================================== */

/* ==========================================================================
   1. FONDO DE GRILLA ANIMADA
   ========================================================================== */

/* Grilla básica con perspectiva */
.background-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.background-grid-animated {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(60px);
    }
}

/* Grilla 3D con movimiento */
.background-grid-3d {
    position: absolute;
    inset: -50%;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid3dMove 8s linear infinite;
}

@keyframes grid3dMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(80px);
    }
}

/* ==========================================================================
   2. FONDO DE PARTÍCULAS
   ========================================================================== */

/* Contenedor de partículas */
.background-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Partícula individual */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff6b00;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px rgba(255, 107, 0, 0.6);
    animation: particleFloat linear infinite;
}

.particle::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(
        circle,
        rgba(255, 107, 0, 0.3) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* Partículas con movimiento horizontal */
.particle-float {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 
        0 0 10px rgba(255, 107, 0, 0.5),
        0 0 20px rgba(255, 107, 0, 0.3);
    animation: particleFloatSide 15s ease-in-out infinite;
}

@keyframes particleFloatSide {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateX(100vw) translateY(-100vh) scale(1);
    }
}

/* Partículas que explotan desde el centro */
.particle-burst {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff6b00;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.8);
    animation: particleBurst 4s ease-out infinite;
}

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1);
    }
}

/* ==========================================================================
   3. FONDO DE NEBULOSA
   ========================================================================== */

/* Nebula básica */
.background-nebula {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 210, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(255, 107, 0, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 60%, rgba(0, 210, 255, 0.05) 0%, transparent 40%);
}

/* Nebula animada */
.background-nebula-animated {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.nebula-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: nebulaFloat 20s ease-in-out infinite;
}

.nebula-cloud:nth-child(1) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.nebula-cloud:nth-child(2) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -100px;
    animation-delay: -7s;
}

.nebula-cloud:nth-child(3) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes nebulaFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* Nebula con movimiento de gas */
.background-nebula-gas {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(255, 107, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(0, 210, 255, 0.08) 0%, transparent 50%);
    animation: nebulaGas 15s ease-in-out infinite alternate;
}

@keyframes nebulaGas {
    0% {
        background-size: 100% 100%;
        background-position: 0% 0%;
    }
    100% {
        background-size: 120% 120%;
        background-position: 10% 10%;
    }
}

/* ==========================================================================
   4. FONDO DE GRADIENTE ANIMADO
   ========================================================================== */

/* Gradiente base */
.background-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        #121212 25%,
        #1a1a1a 50%,
        #121212 75%,
        #0a0a0a 100%
    );
}

/* Gradiente animado */
.background-gradient-animated {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        -45deg,
        #0a0a0a,
        #121212,
        #1a1a1a,
        #0f0f0f,
        #0a0a0a
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Gradiente con degrade de colores */
.background-gradient-color {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        rgba(255, 107, 0, 0.1) 25%,
        rgba(0, 210, 255, 0.1) 50%,
        rgba(255, 107, 0, 0.05) 75%,
        #0a0a0a 100%
    );
    background-size: 300% 300%;
    animation: gradientColorShift 12s ease infinite;
}

@keyframes gradientColorShift {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Gradiente radial animado */
.background-gradient-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(255, 107, 0, 0.15) 0%,
        rgba(0, 210, 255, 0.1) 25%,
        transparent 50%
    );
    transition: --x 0.3s, --y 0.3s;
}

/* ==========================================================================
   5. FONDO DE CÍRCULOS CONCÉNTRICOS
   ========================================================================== */

/* Círculos concéntricos animados */
.background-circles {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.circle-ring {
    position: absolute;
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 50%;
    animation: circlePulse 4s ease-in-out infinite;
}

.circle-ring:nth-child(1) {
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.circle-ring:nth-child(2) {
    width: 450px;
    height: 450px;
    border-color: rgba(0, 210, 255, 0.15);
    animation-delay: -1s;
}

.circle-ring:nth-child(3) {
    width: 600px;
    height: 600px;
    animation-delay: -2s;
}

.circle-ring:nth-child(4) {
    width: 750px;
    height: 750px;
    border-color: rgba(255, 107, 0, 0.1);
    animation-delay: -3s;
}

@keyframes circlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
}

/* Círculos que se expanden */
.background-circles-expand {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.circle-expand {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: circleExpand 6s ease-out infinite;
}

.circle-expand:nth-child(1) {
    animation-delay: 0s;
    width: 100px;
    height: 100px;
}

.circle-expand:nth-child(2) {
    animation-delay: 2s;
    width: 100px;
    height: 100px;
}

.circle-expand:nth-child(3) {
    animation-delay: 4s;
    width: 100px;
    height: 100px;
}

@keyframes circleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        border-width: 3px;
    }
    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
        border-width: 0px;
    }
}

/* ==========================================================================
   6. FONDO DE LÍNEAS
   ========================================================================== */

/* Líneas diagonales */
.background-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255, 107, 0, 0.03) 40px,
        rgba(255, 107, 0, 0.03) 41px
    );
    animation: linesMove 20s linear infinite;
}

@keyframes linesMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 41px 41px;
    }
}

/* Líneas horizontales con desvanecimiento */
.background-lines-fade {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 50px,
        rgba(255, 107, 0, 0.05) 50px,
        rgba(255, 107, 0, 0.02) 51px
    );
}

/* Líneas que fluyen */
.background-lines-flow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.flow-line {
    position: absolute;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 107, 0, 0.5),
        transparent
    );
    animation: flowLine 8s linear infinite;
}

.flow-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.flow-line:nth-child(2) {
    top: 40%;
    animation-delay: -2s;
}

.flow-line:nth-child(3) {
    top: 60%;
    animation-delay: -4s;
}

.flow-line:nth-child(4) {
    top: 80%;
    animation-delay: -6s;
}

@keyframes flowLine {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ==========================================================================
   7. FONDO DE ESTRELLAS
   ========================================================================== */

/* Estrellas base */
.background-stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Estrellas con estela */
.background-stars-trail {
    position: absolute;
    inset: 0;
}

.star-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff6b00;
    border-radius: 50%;
    box-shadow: 
        0 0 4px #ff6b00,
        0 0 8px rgba(255, 107, 0, 0.6),
        -20px 0 4px rgba(255, 107, 0, 0.4),
        -40px 0 2px rgba(255, 107, 0, 0.2);
    animation: starTrail 10s linear infinite;
}

@keyframes starTrail {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ==========================================================================
   8. FONDO DE ONDAS
   ========================================================================== */

/* Ondas sinusoidales */
.background-waves {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    border-radius: 40%;
    animation: waveRotate 20s linear infinite;
    opacity: 0.3;
}

.wave:nth-child(1) {
    background: radial-gradient(
        ellipse at center,
        rgba(255, 107, 0, 0.2) 0%,
        transparent 70%
    );
    animation-duration: 25s;
}

.wave:nth-child(2) {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 210, 255, 0.15) 0%,
        transparent 70%
    );
    animation-duration: 20s;
    animation-direction: reverse;
}

.wave:nth-child(3) {
    background: radial-gradient(
        ellipse at center,
        rgba(255, 107, 0, 0.1) 0%,
        transparent 70%
    );
    animation-duration: 30s;
}

@keyframes waveRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ondas de sonido */
.background-waveform {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.waveform-bar {
    width: 6px;
    height: 40px;
    background: linear-gradient(to top, #ff6b00, #ff8533);
    border-radius: 3px;
    animation: waveformPulse 1s ease-in-out infinite;
}

.waveform-bar:nth-child(odd) {
    animation-duration: 0.8s;
}

.waveform-bar:nth-child(2n) {
    animation-duration: 1.2s;
}

.waveform-bar:nth-child(3n) {
    animation-duration: 1s;
}

@keyframes waveformPulse {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ==========================================================================
   9. FONDO DE HEXÁGONOS
   ========================================================================== */

/* Patrón de hexágonos */
.background-hexagons {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 0L200 57v114L100 228L0 171V57z' fill='none' stroke='rgba(255,107,0,0.1)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 100px 174px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    animation: hexagonsMove 20s linear infinite;
}

@keyframes hexagonsMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 174px;
    }
}

/* Hexágonos con iluminación */
.background-hexagons-glow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hexagon {
    position: absolute;
    width: 60px;
    height: 52px;
    background: transparent;
    border: 2px solid rgba(255, 107, 0, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexagonPulse 3s ease-in-out infinite;
}

@keyframes hexagonPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ==========================================================================
   10. FONDO DE MATRIX/CÓDIGO
   ========================================================================== */

/* Efecto Matrix */
.background-matrix {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(255, 107, 0, 0.8);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: matrixFall 10s linear infinite;
    white-space: nowrap;
}

@keyframes matrixFall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(200vh);
        opacity: 0;
    }
}

/* ==========================================================================
   11. FONDO DE ORB
   ========================================================================== */

/* Orbes de luz */
.background-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #ff6b00;
    top: -100px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #00d2ff;
    bottom: -50px;
    left: -100px;
    animation: orbFloat2 15s ease-in-out infinite reverse;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #ff6b00;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 8s ease-in-out infinite;
}

.orb-4 {
    width: 150px;
    height: 150px;
    background: rgba(255, 107, 0, 0.5);
    top: 20%;
    left: 20%;
    animation: orbFloat4 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-50px, -30px);
    }
    50% {
        transform: translate(30px, -60px);
    }
    75% {
        transform: translate(60px, 30px);
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 50px);
    }
}

@keyframes orbFloat3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

@keyframes orbFloat4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, -30px) rotate(180deg);
    }
}

/* Orbs que siguen el mouse */
.background-orbs-follow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb-follow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    transition: transform 0.3s ease-out;
}

.orb-follow-1 {
    background: radial-gradient(circle, rgba(255, 107, 0, 0.3) 0%, transparent 70%);
    transform: translate(var(--x-1, 0), var(--y-1, 0));
}

.orb-follow-2 {
    background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
    width: 250px;
    height: 250px;
    transform: translate(var(--x-2, 0), var(--y-2, 0));
    transition-delay: 0.1s;
}

/* ==========================================================================
   12. FONDO DE RETÍCULA/TARGET
   ========================================================================== */

/* Retícula de radar */
.background-radar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.radar-circle {
    position: absolute;
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 50%;
}

.radar-circle:nth-child(1) {
    width: 200px;
    height: 200px;
}

.radar-circle:nth-child(2) {
    width: 400px;
    height: 400px;
}

.radar-circle:nth-child(3) {
    width: 600px;
    height: 600px;
}

.radar-line {
    position: absolute;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.8), transparent);
    transform-origin: left center;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Retícula de mira */
.background-crosshair {
    position: absolute;
    inset: 0;
}

.crosshair-line {
    position: absolute;
    background: rgba(255, 107, 0, 0.2);
}

.crosshair-line.horizontal {
    width: 100%;
    height: 1px;
    top: 50%;
    transform: translateY(-50%);
}

.crosshair-line.vertical {
    width: 1px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.crosshair-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 107, 0, 0.5);
    border-radius: 50%;
    animation: crosshairPulse 2s ease-in-out infinite;
}

@keyframes crosshairPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

/* ==========================================================================
   13. FONDO DE BURBUJAS
   ========================================================================== */

/* Burbujas ascendentes */
.background-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 107, 0, 0.4),
        rgba(255, 107, 0, 0.1)
    );
    border-radius: 50%;
    animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-120vh) scale(0.5);
        opacity: 0;
    }
}

/* ==========================================================================
   14. FONDO DE LÁSER/LÍNEAS
   ========================================================================== */

/* Líneas laser cruzadas */
.background-lasers {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.laser-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 107, 0, 0.8),
        transparent
    );
    animation: laserScan 3s ease-in-out infinite;
}

.laser-line:nth-child(1) {
    width: 100%;
    top: 30%;
    animation-delay: 0s;
}

.laser-line:nth-child(2) {
    width: 100%;
    top: 50%;
    animation-delay: -1s;
}

.laser-line:nth-child(3) {
    width: 100%;
    top: 70%;
    animation-delay: -2s;
}

@keyframes laserScan {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(100%);
        opacity: 1;
    }
}

/* ==========================================================================
   15. COMPOSICIONES COMPLETAS
   ========================================================================== */

/* Hero con múltiples efectos */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-background .grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-background .glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-background .orb-1 {
    width: 400px;
    height: 400px;
    background: #ff6b00;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero-background .orb-2 {
    width: 300px;
    height: 300px;
    background: #00d2ff;
    bottom: -50px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-background .orb-3 {
    width: 200px;
    height: 200px;
    background: #ff6b00;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(0, -60px);
    }
    75% {
        transform: translate(-30px, -30px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ==========================================================================
   16. UTILIDADES Y CONFIGURACIÓN
   ========================================================================== */

/* Contenedor para fondos animados */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Capas de fondo */
.bg-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-layer-1 {
    z-index: -1;
}

.bg-layer-2 {
    z-index: -0.5;
}

.bg-layer-3 {
    z-index: 0;
}

/* Clases para combinar fondos */
.bg-grid-particles {
    position: relative;
}

.bg-grid-particles::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Modo oscuro */
.bg-dark {
    background-color: #0a0a0a;
}

/* Modo claro */
.bg-light {
    background-color: #f8fafc;
}

/* ==========================================================================
   17. MEDIA QUERIES RESPONSIVAS
   ========================================================================== */

@media (max-width: 1024px) {
    .orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    .nebula-cloud {
        filter: blur(40px);
    }
}

@media (max-width: 768px) {
    .background-circles-expand .circle-expand {
        width: 80px;
        height: 80px;
    }
    
    .background-waves .wave {
        animation-duration: 15s;
    }
    
    .hero-background .orb-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-background .orb-2 {
        width: 180px;
        height: 180px;
    }
    
    .hero-background .orb-3 {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .orb-2 {
        width: 150px;
        height: 150px;
    }
    
    .orb-3 {
        width: 100px;
        height: 100px;
    }
    
    .background-grid-animated {
        background-size: 40px 40px;
    }
}

/* ==========================================================================
   18. OPTIMIZACIONES DE RENDIMIENTO
   ========================================================================== */

/* Reducir animaciones */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration */
.animated-bg {
    transform: translateZ(0);
    will-change: transform;
}

.particle,
.orb,
.bubble,
.wave {
    will-change: transform, opacity;
}

/*慎    /* Evitar repaints */
.background-gradient,
.background-gradient-animated,
.background-gradient-color {
    transform: translateZ(0);
}