@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --color-pink-neon: #ff007f;
    --color-pink-soft: #ffb6c1;
    --color-white: #ffffff;
    --color-black: #000000;
}

body {
    margin: 0;
    overflow: hidden; 
    height: 100vh;
    width: 100vw;
    background: var(--color-black);
    font-family: 'Playfair Display', serif;
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0;
}

/* EFECTOS DE FONDO CÓSMICO */
.stars, .twinkling, .clouds {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: block;
    pointer-events: none;
}

.stars {
    background: var(--color-black) url('https://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    z-index: 1;
}

.twinkling {
    background: transparent url('https://www.script-tutorials.com/demos/360/images/twinkling.png') repeat top center;
    z-index: 2;
    animation: move-twink-back 200s linear infinite;
}

.clouds {
    background: transparent url('https://www.script-tutorials.com/demos/360/images/clouds3.png') repeat top center;
    z-index: 3;
    opacity: 0.6;
    animation: move-clouds-back 200s linear infinite;
}

/* 💖✨ CORAZONES Y FLORES FLOTANTES */
.hearts-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}

.heart, .flower {
    position: absolute;
    animation: floatElements 10s linear infinite;
    opacity: 0.8;
    transform-origin: center;
    pointer-events: none;
}

.heart {
    color: #ff66b2;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px rgba(255,102,178,0.7));
}

.flower {
    color: #ffd1dc;
    font-size: 2.2rem;
    filter: drop-shadow(0 0 5px rgba(255,209,220,0.7));
}

@keyframes floatElements {
    0% { transform: translateY(100vh) scale(0.5) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5) rotate(720deg); opacity: 0; }
}

/* ANIMACIONES DE FONDO PRINCIPALES */
@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

@keyframes move-clouds-back {
    from { background-position: 0 0; }
    to { background-position: 10000px 0; }
}

/* CONTENIDO PRINCIPAL Y DISTRIBUCIÓN */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1200px;
    height: 95vh;
    padding: 1rem;
    box-sizing: border-box;
    z-index: 5;
}

/* TEXTOS */
.text-container {
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    text-shadow: 0 0 20px var(--color-pink-neon), 0 0 40px var(--color-pink-neon);
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 7rem;
    color: var(--color-white);
    text-shadow: 0 0 20px var(--color-white),
                 0 0 40px var(--color-pink-neon),
                 0 0 80px var(--color-pink-neon),
                 0 0 120px rgba(255,0,127,0.8);
    margin: 0;
    animation: textGlowPulse 4s infinite alternate ease-in-out;
}

@keyframes textGlowPulse {
    0% { text-shadow: 0 0 20px var(--color-white), 0 0 40px var(--color-pink-neon), 0 0 80px var(--color-pink-neon), 0 0 120px rgba(255,0,127,0.8); }
    100% { text-shadow: 0 0 25px var(--color-white), 0 0 50px var(--color-pink-neon), 0 0 100px var(--color-pink-neon), 0 0 150px rgba(255,0,127,0.95); }
}

p {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    line-height: 1.4;
    color: var(--color-white); 
    text-shadow: 0 0 10px rgba(0,0,0,0.9);
}

/* ✅ VIDEO O IFRAME (Versión corregida) */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Tamaño máximo para el video */
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    margin: 1rem 0;
    box-shadow: 0 0 50px var(--color-pink-neon), 0 0 100px rgba(255,0,127,0.7);
    border-radius: 20px;
    overflow: hidden;
    animation: pulseGlow 5s infinite alternate ease-in-out;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 50px var(--color-pink-neon), 0 0 100px rgba(255,0,127,0.7); }
    100% { box-shadow: 0 0 70px var(--color-pink-neon), 0 0 140px rgba(255,0,127,0.9); }
}

/* === AJUSTES RESPONSIVOS === */
@media (max-width: 768px) {
    h1 {
        font-size: 4rem;
    }

    p {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 3rem;
    }

    p {
        font-size: 1.2rem;
    }
}

/* ESTRELLA FUGAZ - Código para el efecto, no estaba en el CSS completo */
.shooting-star {
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--color-white));
    position: absolute;
    border-radius: 50%;
    animation: shoot 2s forwards ease-out;
    opacity: 0;
    filter: drop-shadow(0 0 5px var(--color-white));
    z-index: 2;
}

@keyframes shoot {
    0% { transform: translateX(0) translateY(0) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateX(200px) translateY(200px) scale(1.2); opacity: 0; }
}