/* ===== ESCENA 3: EL ÁRBOL QUE FLORECE ===== */

#escena-3 {
    background: radial-gradient(ellipse at bottom, #2b0d3b 0%, #150122 50%, #05000a 100%);
    overflow: hidden;
    flex-direction: column;
}

/* SVG del árbol — centrado y grande */
#arbol-svg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 90vw);
    height: auto;
    overflow: visible;
}

/* Paths del árbol que se dibujan solos */
.arbol-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arbol-tronco {
    stroke: #ffdff4;
    stroke-width: 8;
    filter: drop-shadow(0 0 8px rgba(255, 100, 200, 0.4));
}

.arbol-rama {
    stroke: #ffb8e0;
    stroke-width: 4;
    filter: drop-shadow(0 0 5px rgba(255, 100, 200, 0.4));
}

.arbol-ramita {
    stroke: #ff99d6;
    stroke-width: 2;
    filter: drop-shadow(0 0 3px rgba(255, 100, 200, 0.4));
}

/* Pétalos / Flores */
.arbol-flor {
    opacity: 0;
    transform-origin: center;
}

.arbol-flor circle {
    fill: none;
}

/* Palabras que aparecen */
.arbol-palabra {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    text-shadow:
        0 0 10px currentColor,
        0 0 25px currentColor;
    white-space: nowrap;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Suelo / raíces */
#arbol-suelo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;    pointer-events: none;
}

/* Mensaje central del árbol */
#arbol-mensaje-final {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    width: 90%;
    max-width: 600px;
}

#arbol-mensaje-final h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    color: #ffe6f0;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.8), 0 0 30px rgba(255, 20, 147, 0.6);
    line-height: 1.5;
}

/* Partículas de luz del árbol */
.arbol-particula {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: flotarParticula linear infinite;
}

@keyframes flotarParticula {
    0%   { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-120px) scale(0); opacity: 0; }
}

/* Botón continuar */
#btn-continuar-c3 {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}
