:root {
    --rosa-intenso: #ff007f;
    --rosa-pastel: #ffb6c1;
    --negro-espacial: #050507;
    --fuente-poetica: 'Playfair Display', serif;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%; height: 100%;
    background-color: #000;
    font-family: 'Montserrat', sans-serif;
    color: white; overflow: hidden; position: fixed;
}

#intro-screen {
    position: fixed; inset: 0; z-index: 5000;
    background: #000; display: flex; justify-content: center;
    align-items: center; padding: 30px; text-align: center;
    transition: opacity 2s ease;
}

.poema-intro {
    font-size: 1.4rem; font-weight: 100; line-height: 1.6;
    color: #888; filter: blur(8px); opacity: 0; transition: all 3s ease;
}

.poema-intro.reveal { filter: blur(0); opacity: 1; color: var(--rosa-pastel); }

#contenedor-faro {
    margin-top: 50px; display: flex; flex-direction: column;
    align-items: center; cursor: pointer; transition: 1.5s ease;
}

.pulso-faro {
    width: 25px; height: 25px; background: var(--rosa-intenso);
    border-radius: 50%; box-shadow: 0 0 15px var(--rosa-intenso);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 15px var(--rosa-intenso); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 35px var(--rosa-intenso); }
}

.texto-faro {
    margin-top: 15px; font-size: 0.7rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--rosa-pastel); opacity: 0.6;
}

#escenario { position: relative; width: 100vw; height: 100vh; background: var(--negro-espacial); }

.ui-superior { position: absolute; top: 30px; width: 100%; padding: 0 5%; z-index: 100; }

.fecha { font-size: 11px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; }

#ambiente-color {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 127, 0.2) 0%, transparent 70%);
    opacity: 0; transition: opacity 2s ease; z-index: 1;
}

#particles-js { position: absolute; inset: 0; z-index: 5; }

#narrativa-flotante {
    position: absolute; bottom: 20%; width: 100%;
    text-align: center; z-index: 100; pointer-events: none;
}

#texto-dinamico {
    font-family: var(--fuente-poetica); font-style: italic;
    font-size: 1.3rem; opacity: 0; transition: all 1s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.guia-sutil {
    margin-top: 20px; font-size: 0.65rem; letter-spacing: 3px;
    color: var(--rosa-pastel); opacity: 0.5; font-style: italic;
}

#revelacion-final {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro muy suave para no tapar todo */
    opacity: 0;
    transition: opacity 3s ease;
    padding: 20px;
    pointer-events: all;
}

#revelacion-final:not(.hidden) {
    opacity: 1;
}

.ventana-flotante {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.adorno-superior {
    width: 50px;
    height: 2px;
    background: #ff007f;
    margin: 0 auto 20px;
    box-shadow: 0 0 10px #ff007f;
}

.contenido-mensaje p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    font-weight: 200;
    color: #f0f0f0;
}

.firma {
    margin-top: 30px;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffb6c1;
    opacity: 0.8;
}

.hidden { display: none !important; }

@media (max-width: 600px) {
    .poema-intro { font-size: 1.1rem; }
}