From dc3ae9e49d051bf0210dffb990992c291a98ba97 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 15 Feb 2026 01:33:51 +0000 Subject: [PATCH] Auto commit: 2026-02-15T01:33:51.654Z --- index.php | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 87ebbd5..342af38 100644 --- a/index.php +++ b/index.php @@ -461,14 +461,29 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY"; const mic = document.createElement('i'); mic.className = 'bi bi-mic-fill floating-mic'; + const size = 0.8 + Math.random() * 10; // Variación de tamaño entre 0.8rem y 10.8rem const startX = Math.random() * window.innerWidth; const startY = Math.random() * window.innerHeight; - const moveX = (Math.random() - 0.5) * 600; - const moveY = (Math.random() - 0.5) * 600; - const delay = Math.random() * -30; - const duration = 40 + Math.random() * 40; - const blur = Math.random() * 2; - const opacity = 0.03 + Math.random() * 0.08; + const moveX = (Math.random() - 0.5) * 800; + const moveY = (Math.random() - 0.5) * 800; + const delay = Math.random() * -60; + + // Lógica de profundidad basada en el tamaño + let blur, opacity, duration; + + if (size < 3) { // Lejos (Fondo) + blur = 3 + Math.random() * 3; + opacity = 0.02 + Math.random() * 0.03; + duration = 80 + Math.random() * 40; + } else if (size < 7) { // Medio plano + blur = Math.random() * 1; + opacity = 0.05 + Math.random() * 0.07; + duration = 50 + Math.random() * 30; + } else { // Primer plano (Bokeh) + blur = 2 + Math.random() * 4; + opacity = 0.03 + Math.random() * 0.05; + duration = 35 + Math.random() * 20; + } mic.style.left = `${startX}px`; mic.style.top = `${startY}px`; @@ -476,7 +491,7 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY"; mic.style.setProperty('--move-y', `${moveY}px`); mic.style.animationDelay = `${delay}s`; mic.style.animationDuration = `${duration}s`; - mic.style.fontSize = `${1.5 + Math.random() * 4.5}rem`; + mic.style.fontSize = `${size}rem`; mic.style.filter = `blur(${blur}px)`; mic.style.color = `rgba(255, 255, 255, ${opacity})`;