:root {
    --primary: #ff4d6d;
    --bg: #0a0a0c;
    --glass: rgba(255, 255, 255, 0.05);
}

body, html {
    margin: 0; padding: 0;
    /* Fondo radial: más claro en el centro, oscuro en los bordes */
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0c 100%);
    font-family: 'Montserrat', sans-serif;
    color: white;
    min-height: 100vh; /* Asegura que cubra toda la pantalla */
}

.btn-back {
    background: rgba(255,255,255,0.1);
    color: white; border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px; border-radius: 30px;
    cursor: pointer; transition: 0.3s;
}
.btn-back:hover { background: var(--primary); border-color: var(--primary); }

#canvas-poemas { position: fixed; top: 0; left: 0; z-index: 0; }

.poemas-wrapper {
    position: relative; z-index: 10;
    width: 100%;
}

.nav-fixed {
    position: fixed; top: 20px; left: 20px; z-index: 100;
}

.poemas-intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.titulo-magico {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 77, 109, 0.5);
}

/* --- ESTILO DE ESTROFAS DINÁMICAS --- */
.estrofa {
    padding: 60px 20px;
    margin: 100px auto;
    max-width: 600px;
    text-align: center;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    line-height: 2;
    font-style: italic;
    
    /* Estado inicial (oculto) */
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

/* Clase que se activa con JS al hacer scroll */
.estrofa.visible {
    opacity: 1;
    transform: translateY(0);
}

.poema-separador {
    color: var(--primary);
    font-size: 2rem;
    margin: 40px 0;
}

.final-espacio {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

/* CELULAR */
@media (max-width: 600px) {
    .estrofa { font-size: 1.1rem; width: 85%; }
}