/* 
|--------------------------------------------------------------------------
| NATUERE BACKGROUND ANIMATION - CORDAMI
|--------------------------------------------------------------------------
| Simulación de tierra y crecimiento vegetal dinámico.
*/

.nature-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #f0f8ff 0%, #e3f2fd 100%); /* Fondo cielo más definido */
    overflow: hidden;
    pointer-events: none;
}

/* Capa de Tierra Orgánica */
.ground-layer {
    position: absolute;
    bottom: -10px;
    left: -5%;
    width: 110%;
    height: 15vh;
    background: linear-gradient(0deg, #3d1c08 0%, #6b3714 100%);
    border-radius: 50% 50% 0 0 / 30px 30px 0 0;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Contenedor de Brotes */
.plants-container {
    position: absolute;
    bottom: 0px; /* Base desde el suelo real */
    left: 0;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 15; /* AHORA: Frente a la tierra para asegurar visibilidad total */
    padding: 0 5%;
}

.sprout {
    width: 120px; /* Tamaño XL para impacto visual */
    height: auto;
    transform-origin: bottom center;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.25));
}

/* Animación de Crecimiento Organico */
.sprout path {
    fill: #2ecc71;
    transform-origin: bottom center;
}

.sprout:nth-child(even) path {
    fill: #27ae60;
}

.animate-growth {
    animation: growAndSway 6s ease-in-out infinite both;
}

/* Retrasos aleatorios para naturalidad sin sobreescribir tamaño */
.sprout:nth-child(1) { animation-delay: 0s; }
.sprout:nth-child(2) { animation-delay: 1.5s; }
.sprout:nth-child(3) { animation-delay: 0.8s; }
.sprout:nth-child(4) { animation-delay: 2.2s; }
.sprout:nth-child(5) { animation-delay: 1.2s; }

@keyframes growAndSway {
    0% {
        transform: scale(0) translateY(50px);
        opacity: 0;
    }
    15% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.05) rotate(5deg);
    }
    85% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(50px);
        opacity: 0;
    }
}

/* ---- Sistema de Nubes Premium ---- */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: linear-gradient(180deg, #ffffff 0%, #e1f5fe 60%, #b3e5fc 100%);
    width: 320px;
    height: 110px;
    border-radius: 100px;
    opacity: 0.98;
    /* Aplicar la textura SVG + un ligero blur para suavizar los bordes internos */
    filter: url(#cloudTexture) blur(4px); 
    box-shadow: 
        0 15px 45px rgba(0,0,0,0.1),
        inset 0 -10px 20px rgba(179, 229, 252, 0.4); /* Sombra interna azulada */
}

.cloud::after, .cloud::before {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.cloud::after { width: 70px; height: 70px; top: -30px; left: 20px; }
.cloud::before { width: 90px; height: 90px; top: -45px; right: 20px; }

.cloud-1 { top: 10%; animation: drift 45s linear infinite; }
.cloud-2 { top: 25%; animation: drift 65s linear infinite reverse; opacity: 0.4; }
.cloud-3 { top: 5%; animation: drift 55s linear infinite 5s; }

@keyframes drift {
    from { left: -200px; }
    to { left: 100%; }
}

/* Micro-partículas (Polen o aire) */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 20;
}

.particle {
    position: absolute;
    background: rgba(46, 204, 113, 0.4);
    border-radius: 50%;
    animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    30% { opacity: 0.8; }
    70% { opacity: 0.8; }
    100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}
