/* ============================================
   FONDO ANIMADO - TINTA QUE RESPIRA (MEJORADO)
============================================ */
body {
    position: relative;
    background-color: #0a0a0a;
}

.fondo-animado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* ========== MANCHAS DE TINTA PRINCIPALES ========== */
.mancha-tinta {
    position: absolute;
    background: radial-gradient(circle, rgba(139,0,0,0.12) 0%, rgba(139,0,0,0.04) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(12px);
    animation: respirarTinta 6s ease-in-out infinite alternate;
}

/* Mancha 1 - Superior izquierda */
.mancha-1 {
    width: 350px;
    height: 350px;
    top: -100px;
    left: -100px;
    animation-duration: 7s;
    animation-delay: 0s;
}

/* Mancha 2 - Inferior derecha */
.mancha-2 {
    width: 450px;
    height: 450px;
    bottom: -150px;
    right: -150px;
    animation-duration: 8s;
    animation-delay: 1s;
}

/* Mancha 3 - Centro derecha */
.mancha-3 {
    width: 280px;
    height: 280px;
    top: 40%;
    right: -80px;
    animation-duration: 6s;
    animation-delay: 2s;
}

/* Mancha 4 - Centro izquierda */
.mancha-4 {
    width: 320px;
    height: 320px;
    top: 55%;
    left: -80px;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

/* Mancha 5 - Superior derecha */
.mancha-5 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 15%;
    animation-duration: 5s;
    animation-delay: 3s;
}

/* Mancha 6 - Inferior izquierda */
.mancha-6 {
    width: 380px;
    height: 380px;
    bottom: 20%;
    left: 20%;
    animation-duration: 10s;
    animation-delay: 1.5s;
}

/* Mancha 7 - Flotante medio */
.mancha-7 {
    width: 150px;
    height: 150px;
    top: 70%;
    left: 45%;
    animation-duration: 4.5s;
    animation-delay: 4s;
}

/* Mancha 8 - Pequeña errante */
.mancha-8 {
    width: 120px;
    height: 120px;
    top: 25%;
    left: 55%;
    animation-duration: 5.5s;
    animation-delay: 2.5s;
}

@keyframes respirarTinta {
    0% {
        opacity: 0.05;
        transform: scale(0.85);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.08;
        transform: scale(0.95);
    }
}

/* ========== MANCHAS DE TINTA SECUNDARIAS (MÁS PEQUEÑAS) ========== */
.mancha-secundaria {
    position: absolute;
    background: radial-gradient(circle, rgba(139,0,0,0.08) 0%, transparent 80%);
    border-radius: 50%;
    filter: blur(8px);
    animation: flotarTinta 12s ease-in-out infinite;
}

@keyframes flotarTinta {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
    20% {
        opacity: 0.15;
    }
    80% {
        opacity: 0.15;
    }
    100% {
        opacity: 0;
        transform: translate(80px, -80px) scale(1.2);
    }
}

/* Posiciones de manchas secundarias */
.mancha-sec-1 { top: 20%; left: 10%; width: 80px; height: 80px; animation-duration: 14s; animation-delay: 0s; }
.mancha-sec-2 { top: 60%; left: 75%; width: 60px; height: 60px; animation-duration: 11s; animation-delay: 2s; }
.mancha-sec-3 { top: 80%; left: 30%; width: 100px; height: 100px; animation-duration: 16s; animation-delay: 4s; }
.mancha-sec-4 { top: 30%; left: 85%; width: 50px; height: 50px; animation-duration: 9s; animation-delay: 1s; }
.mancha-sec-5 { top: 45%; left: 15%; width: 70px; height: 70px; animation-duration: 13s; animation-delay: 6s; }
.mancha-sec-6 { top: 75%; left: 60%; width: 90px; height: 90px; animation-duration: 10s; animation-delay: 3s; }
.mancha-sec-7 { top: 15%; left: 40%; width: 40px; height: 40px; animation-duration: 8s; animation-delay: 7s; }
.mancha-sec-8 { top: 50%; left: 50%; width: 110px; height: 110px; animation-duration: 15s; animation-delay: 5s; }

/* ========== PARTÍCULAS DE TINTA (DINÁMICAS) ========== */
.particula-tinta {
    position: absolute;
    background: #8b0000;
    border-radius: 50%;
    opacity: 0;
    filter: blur(2px);
    animation: derivaParticula 15s linear infinite;
}

@keyframes derivaParticula {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    10% {
        opacity: 0.4;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx, 150px), var(--dy, -200px)) scale(1.5);
    }
}

/* ========== ONDAS CONCÉNTRICAS (EFECTO DE GOTA) ========== */
.onda-tinta {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(139,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    animation: expandirOnda 4s ease-out infinite;
}

@keyframes expandirOnda {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.5;
        border-width: 2px;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        border-width: 0.5px;
    }
}

/* Posiciones de ondas */
.onda-1 { top: 15%; left: 20%; animation-delay: 0s; }
.onda-2 { top: 45%; left: 70%; animation-delay: 3s; }
.onda-3 { top: 75%; left: 35%; animation-delay: 6s; }
.onda-4 { top: 30%; left: 50%; animation-delay: 9s; }
.onda-5 { top: 85%; left: 65%; animation-delay: 2s; }
.onda-6 { top: 55%; left: 15%; animation-delay: 5s; }
.onda-7 { top: 10%; left: 80%; animation-delay: 8s; }
.onda-8 { top: 65%; left: 85%; animation-delay: 1s; }
.onda-9 { top: 90%; left: 10%; animation-delay: 4s; }
.onda-10 { top: 20%; left: 60%; animation-delay: 7s; }


