/* Reseteo y variables temáticas */
:root {
    --buzz-green: #76C12E;
    --buzz-purple: #652B91;
    --space-dark: #0B0C10;
    --text-light: #F2F2F2;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--space-dark);
    font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
    overflow: hidden; /* Evita scroll durante las animaciones */
    color: var(--text-light);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
}

/* Videos responsivos */
.media-asset {
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(118, 193, 46, 0.5);
    transition: opacity 1s ease;
    background-color: #000;
}

/* Animación del cohete */
#rocket {
    position: absolute;
    bottom: -150px;
    width: 120px;
    transition: transform 2s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 10;
}

.rocket-fly {
    transform: translateY(-120vh); /* Vuela de abajo hacia arriba fuera de la pantalla */
}

/* Botones Galácticos */
button, .action-btn {
    background: linear-gradient(45deg, var(--buzz-purple), #8b3fd1);
    color: white;
    border: 3px solid var(--buzz-green);
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 0 15px var(--buzz-green);
    animation: pulse 2s infinite;
    z-index: 20;
    margin-top: 20px;
}

.action-btn {
    display: inline-block;
    background: var(--buzz-green);
    border-color: var(--buzz-purple);
    box-shadow: 0 0 15px var(--buzz-purple);
    animation: none;
}

/* Efecto Galáctico (Warp Speed) */
#warp-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 0 50px 50px rgba(101, 43, 145, 0.8), 0 0 100px 100px rgba(118, 193, 46, 0.8);
    z-index: 50;
    pointer-events: none;
}

.warp-active {
    animation: warpExplosion 1.5s ease-out forwards;
}

/* Animaciones Clave */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes warpExplosion {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(150); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(200); opacity: 0; }
}

/* Utilidades */
.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.fade-out {
    opacity: 0 !important;
}

/* --- NUEVO: Estilos para el fondo animado --- */
#stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.invitation-content {
    position: relative;
    z-index: 2; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(11, 12, 16, 0.6); 
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(4px); 
    max-width: 90%;
    border: 2px solid rgba(118, 193, 46, 0.3);
}

.title { color: var(--buzz-green); margin-bottom: 0; text-shadow: 2px 2px 4px #000; font-size: 2.5rem; }
.subtitle { color: var(--buzz-purple); margin-top: 5px; text-shadow: 1px 1px 3px #fff; font-size: 1.5rem; }
.event-details {
    background: rgba(11, 12, 16, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--buzz-purple);
    margin: 15px 0;
    font-size: 1.1rem;
}
.event-details p { margin: 8px 0; }
