/* Configuración General - Tonos Crepúsculo Índigo */
body {
    background-color: #1a0b2e; 
    color: #e6e6fa; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.identidad { padding: 20px; text-align: center; }
.identidad h1 { font-size: 1.8rem; margin: 0; letter-spacing: 3px; color: #d8d8ff; }
.identidad p { font-size: 0.9rem; margin: 5px 0 0 0; opacity: 0.7; font-style: italic; }

.interfaz {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    max-width: 500px; margin: 0 auto; padding: 20px;
}

.accion-principal { margin: 40px 0; text-align: center; }
.boton-magico {
    background: rgba(230, 230, 250, 0.05); color: #e6e6fa; border: 1px solid #e6e6fa;
    padding: 15px 30px; font-size: 1.2rem; border-radius: 50px;
    cursor: pointer; transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(230, 230, 250, 0.1);
}
.boton-magico:hover { background: #e6e6fa; color: #1a0b2e; box-shadow: 0 0 25px rgba(230, 230, 250, 0.4); }
.boton-magico:disabled { opacity: 0.4; cursor: not-allowed; }

.estado-carga { margin-top: 15px; font-style: italic; font-size: 0.9rem; opacity: 0; transition: opacity 0.5s; }

/* Menús Desplegables */
.capas-personalizacion { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.capa { display: flex; flex-direction: column; gap: 8px; }
.capa label { font-size: 0.85rem; text-transform: uppercase; opacity: 0.6; letter-spacing: 1px; }
.capa select {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(230, 230, 250, 0.2);
    color: #e6e6fa; padding: 12px; border-radius: 8px; font-size: 1rem; outline: none;
}

/* El Lienzo de la Poesía (Textura de Papiro Nocturno) */
#contenedor-poesia {
    background: linear-gradient(135deg, #2a1b38 0%, #1e112a 100%);
    border: 1px solid #4a3b5c;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.6), 0 15px 40px rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 50px 20px;
    width: 90%;
    max-width: 600px;
    margin: 0 auto 50px auto;
    display: none;
}

/* Las estrofas se muestran centradas con transición lenta */
.estrofa-poesia {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 40px;
    color: #fdfdff;
    text-align: center;
    opacity: 0; /* Empiezan invisibles */
    filter: blur(4px); /* Empiezan ligeramente desenfocadas */
    transform: translateY(10px);
    transition: opacity 3s ease-in-out, filter 3s ease-in-out, transform 3s ease-in-out;
}
.estrofa-visible { 
    opacity: 1; 
    filter: blur(0px);
    transform: translateY(0); 
}

/* Polvo de Plata (Fondo General) */
.estrellas-contenedor {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; background: radial-gradient(circle at top, #2a164a, #1a0b2e);
}
.polvo-plata {
    position: absolute; background: #e6e6fa; border-radius: 50%;
    bottom: -10px; animation: flotar linear infinite; opacity: 0.3;
}
@keyframes flotar {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 0.5; }
    100% { transform: translateY(-110vh); opacity: 0; }
}

/* Chispitas Lunares / Luciérnagas (Más intensas y cálidas) */
.contenedor-chispitas { position: relative; height: 10px; width: 100%; display: flex; justify-content: center; margin-bottom: 30px; }
.chispa-lunar {
    position: absolute; width: 4px; height: 4px; 
    background: #fffbe6; /* Tono cálido / oro pálido */
    border-radius: 50%; 
    box-shadow: 0 0 12px 2px rgba(255, 251, 230, 0.8); /* Halo más intenso */
    opacity: 0;
}
@keyframes explosionPlata {
    0% { transform: scale(0) translate(0, 0); opacity: 1; }
    100% { transform: scale(1.5) translate(var(--tx), var(--ty)); opacity: 0; }
}