@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    background: #000;
    color: #00ff66;
    font-family: Consolas, "Courier New", monospace;
    font-size: 18px;
}

#terminal {
    padding: 30px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.highlight {
    color: #ffffff;
    font-weight: bold;
}

/* ESCENA DEL AMANECER */

#amanecer {
    display: none;
    position: relative;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    background: linear-gradient(
        to bottom,
        #172554,
        #7c3aed,
        #f59e0b,
        #fde68a
    );

    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 30px;
}
#amanecer h1 {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 38px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* SOL DEL AMANECER */

.sol {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 1;

    background: radial-gradient(
        circle,
        #fff7ae,
        #ffd166,
        #ff9f43
    );

    bottom: 12%;
    left: 50%;

    transform: translateX(-50%) scale(0.5);

    opacity: 0;

    box-shadow:
        0 0 40px #ffd166,
        0 0 90px #ffb347;

    animation: salirSol 5s ease-out forwards;
}

@keyframes salirSol {
    from {
        bottom: 12%;
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }

    to {
        bottom: 48%;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.mensaje {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: aparecerMensaje 2.5s ease-out forwards;
    animation-delay: 3s;
    padding: 25px;
    max-width: 900px;
}

#amanecer .mensaje h1 {
    color: #ffffff;
    font-family: 'Dancing Script', cursive;
    font-size: 45px !important;
    font-weight: 800;
    text-shadow:
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 12px rgba(255, 220, 160, 0.8),
    0 0 25px rgba(255, 190, 100, 0.6),
    0 0 40px rgba(255, 170, 80, 0.4);
    margin-bottom: 18px;

}

/* ESTILO DEL TEXTO TE AMO */

#amanecer .mensaje #teAmoMensaje {
    color: #ffffff;
    font-family: 'Dancing Script', cursive;
    font-size: 45px !important;
    font-weight: 800;

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(255, 220, 160, 0.8),
        0 0 25px rgba(255, 190, 100, 0.6),
        0 0 40px rgba(255, 170, 80, 0.4);

    margin-top: 18px;
    margin-bottom: 18px;
}

.mensaje p {
    color: #fff3d6;
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    font-size: 28px;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
@keyframes aparecerMensaje {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* NUBES DEL AMANECER */

.nube {
    position: absolute;
    width: 180px;
    height: 55px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    filter: blur(8px);
    z-index: 1;
}

.nube::before,
.nube::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.nube::before {
    width: 80px;
    height: 80px;
    top: -35px;
    left: 30px;
}

.nube::after {
    width: 100px;
    height: 100px;
    top: -45px;
    right: 25px;
}

/* Posición y movimiento */

.nube1 {
    top: 20%;
    left: -220px;
    animation: moverNube 35s linear infinite;
}

.nube2 {
    top: 35%;
    left: -250px;
    transform: scale(0.7);
    animation: moverNube 45s linear infinite;
    animation-delay: 5s;
}

.nube3 {
    top: 15%;
    left: -200px;
    transform: scale(0.5);
    animation: moverNube 55s linear infinite;
    animation-delay: 12s;
}

@keyframes moverNube {
    from {
        left: -250px;
    }

    to {
        left: 110%;
    }
}

/* DESTELLOS LUMINOSOS */

.destellos {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    pointer-events: none;
    z-index: 1;

    background-image:
        radial-gradient(circle, rgba(255,255,220,0.9) 2px, transparent 3px),
        radial-gradient(circle, rgba(255,220,150,0.8) 2px, transparent 3px),
        radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 2px);

    background-size: 180px 160px, 230px 200px, 140px 180px;

    animation: brillar 4s ease-in-out infinite alternate;
}

@keyframes brillar {
    from {
        opacity: 0.15;
    }

    to {
        opacity: 0.75;
    }
}

/* CORAZÓN FINAL */

.corazon-final {
    position: relative;
    width: 280px;
    height: 250px;
    margin: 55px auto 0;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 1s ease, transform 1s ease;
}

.corazon-final.visible {
    opacity: 1;
    transform: translateX(-17px) scale(1);
}

.figura-corazon {
    position: absolute;
    inset: 0;
    font-size: 250px;
    line-height: 250px;
    filter: drop-shadow(0 0 20px rgba(255, 50, 100, 0.8));
    animation: latido 1.2s ease-in-out infinite;
}

.texto-corazon {
    position: absolute;
   top: calc(50% + 1px);
   left: calc(50% + 32px);

    transform: translate(-50%, -50%);

    width: 150px;
    text-align: center;

    color: #ffffff !important;
    font-family: 'Dancing Script', cursive !important;
    font-size: 48px !important;
    font-weight: 700;

    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    z-index: 2;
}@keyframes latido {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.10);
    }
}

/* ADAPTACIÓN PARA CELULARES */

@media screen and (max-width: 600px) {

    #amanecer {
        padding: 15px;
    }

    .mensaje {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    #amanecer .mensaje h1 {
        font-size: 44px !important;
    }

    .mensaje p {
        font-size: 23px;
    }

    .corazon-final {
    width: 220px;
    height: 200px;
    margin: 40px auto 0;
    left: 0;
    right: 0;
    transform: translateX(-10px) scale(0.3);
}

    .figura-corazon {
        font-size: 200px;
        line-height: 200px;
    }

    .texto-corazon {
        top: calc(50% + 5px);
        left: calc(50% + 30px);
        width: 120px;
        font-size: 38px !important;
    }
}

/* LLUVIA DE CORAZONES */

#lluviaCorazones {
    position: absolute;
    inset: -100px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.corazon-lluvia {
    position: absolute;
    top: -40px;
    color: #ff4d88;
    font-size: 22px;
    opacity: 0;
    animation: caerCorazon linear forwards;
}

@keyframes caerCorazon {
    0% {
        transform: translateY(-30px) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 0.9;
    }

    85% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(550px) rotate(360deg);
        opacity: 0;
    }
}

/* PANTALLA DE BIENVENIDA */

#bienvenida {
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: linear-gradient(
        to bottom,
        #172554,
        #7c3aed,
        #f59e0b,
        #fde68a
    );
    color: white;
}

#bienvenida h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 55px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

#bienvenida p {
    font-family: 'Dancing Script', cursive;
    font-size: 27px;
    margin-bottom: 35px;
}

#botonSorpresa {
    display: block;

    margin: 30px auto 0 auto;

    padding: 14px 35px;

    border: 2px solid #f9a8d4;
    border-radius: 30px;

    background:
        linear-gradient(135deg, #be185d, #7e22ce);

    color: white;

    font-family: 'Dancing Script', cursive;
    font-size: 25px;

    cursor: pointer;

    box-shadow:
        0 0 18px rgba(236, 72, 153, 0.5);

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

#botonSorpresa:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 28px rgba(236, 72, 153, 0.8);
}
#botonSorpresa:hover {
    background: white;
    color: #7c3aed;
    transform: scale(1.08);
}

/* ADAPTACIÓN PARA CELULARES */

@media screen and (max-width: 600px) {
    #bienvenida h1 {
        font-size: 42px;
    }

    #bienvenida p {
        font-size: 23px;
    }

    #botonSorpresa {
        font-size: 14px;
        padding: 13px 22px;
    }
}

/* ANIMACIONES DE BIENVENIDA */

#bienvenida h1 {
    animation: entradaTitulo 1.8s ease-out both;
}

#bienvenida p:nth-of-type(1) {
    animation: entradaTexto 2s ease-out both;
    animation-delay: 0.6s;
}

#bienvenida p:nth-of-type(2) {
    animation: entradaTexto 2s ease-out both;
    animation-delay: 1.2s;
}

#botonSorpresa {
    animation: entradaBoton 1.5s ease-out both,
               brilloBoton 2s ease-in-out infinite;
    animation-delay: 1.8s, 3.3s;
}

@keyframes entradaTitulo {
    from {
        opacity: 0;
        transform: translateY(-35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes entradaTexto {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes entradaBoton {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes brilloBoton {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255,255,255,0.3);
    }
    50% {
        box-shadow: 0 0 22px rgba(255,255,255,0.9);
    }
}

/* CORAZONES FLOTANTES DE BIENVENIDA */

#corazonesBienvenida {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.corazon-bienvenida {
    position: absolute;
    bottom: -40px;
    color: #ffb6c1;
    opacity: 0;
    animation: flotarCorazon linear infinite;
}

@keyframes flotarCorazon {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 0.7;
    }

    85% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Mantener el contenido por encima de los corazones */

#bienvenida h1,
#bienvenida p,
#botonSorpresa {
    position: relative;
    z-index: 1;
}

/* ================================
   PANTALLA ROMÁNTICA - PANTALLA 3
   ================================ */

#transicion {
    display: none;

    width: 100%;
    min-height: 100vh;

    box-sizing: border-box;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px 20px;

    background: linear-gradient(
        to bottom,
        #172554,
        #7c3aed,
        #db2777
    );

    color: white;
}

/* SÍMBOLO INFINITO */

#transicion .simbolo-infinito {
    display: block;

    font-size: 130px;
    font-weight: bold;

    color: #ffffff;

    margin: 0 auto;

    text-align: center;

    text-shadow:
        0 0 10px #ffffff,
        0 0 25px #f9a8d4,
        0 0 45px #ec4899;

    animation: latidoInfinito 2s ease-in-out infinite;
}

/* FRASE */

#transicion h2 {
    display: block;

    width: 100%;
    max-width: 760px;

    margin: 25px auto 0 auto;
    padding: 0;

    box-sizing: border-box;

    text-align: center;

    font-family: 'Dancing Script', cursive;
    font-size: 38px;
    font-weight: 600;

    text-shadow:
        0 0 15px rgba(255,255,255,0.6);

    animation: aparecerFrase 2s ease forwards;
}

/* CONTENEDOR DEL VIDEO */

#transicion .contenedor-video {
    display: flex;

    width: 100%;
    max-width: 650px;

    margin: 30px auto 0 auto;
    padding: 0;

    box-sizing: border-box;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 20px;
}

/* VIDEO */

#transicion #videoOsitos {
    display: block;

    width: 100%;
    max-height: 380px;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 18px;

    box-shadow:
        0 0 25px rgba(255, 105, 180, 0.45);

    background: #000;
}

/* BOTÓN PLAY */

#transicion #botonVideo {
    display: block;

    margin: 0 auto;

    padding: 14px 35px;

    border: 2px solid #f9a8d4;
    border-radius: 30px;

    background:
        linear-gradient(135deg, #be185d, #7e22ce);

    color: white;

    font-family: 'Dancing Script', cursive;
    font-size: 25px;

    cursor: pointer;

    box-shadow:
        0 0 18px rgba(236, 72, 153, 0.5);

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

#transicion #botonVideo:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 28px rgba(236, 72, 153, 0.8);
}

/* ANIMACIONES */

@keyframes latidoInfinito {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes aparecerFrase {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CELULARES */

@media screen and (max-width: 600px) {

    #transicion .simbolo-infinito {
        font-size: 100px;
    }

    #transicion h2 {
        font-size: 30px;
    }

    #transicion .contenedor-video {
        max-width: 100%;
    }

    #transicion #videoOsitos {
        max-height: 280px;
    }
}

/* BOTÓN CONTINUAR - PANTALLA 2 */

#botonContinuar {
    display: block;

    margin: 30px auto 0 auto;

    padding: 14px 35px;

    border: 2px solid #f9a8d4;
    border-radius: 30px;

    background:
        linear-gradient(135deg, #be185d, #7e22ce);

    color: white;

    font-family: 'Dancing Script', cursive;
    font-size: 25px;

    cursor: pointer;

    box-shadow:
        0 0 18px rgba(236, 72, 153, 0.5);

    transition:
        transform 0.3s,
        box-shadow 0.3s;

    opacity: 0;
    pointer-events: none;
}

#botonContinuar:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 28px rgba(236, 72, 153, 0.8);
}

/* FOTOGRAFÍA DE MAGALI Y JHONNY */

#fotoPareja {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.7),
        0 0 25px rgba(255, 190, 100, 0.5);
    display: block;
    margin: 20px auto;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.2s ease, transform 1.2s ease;
}


/* AJUSTES DE LA SEGUNDA PANTALLA EN CELULARES */

@media screen and (max-width: 600px) {

    #amanecer {
        min-height: 100vh;
        height: auto;
        box-sizing: border-box;
        padding: 15px 10px;
    }

    #amanecer .mensaje {
        padding: 10px 5px;
        width: 100%;
        max-width: 100%;
    }

    #amanecer .mensaje h1 {
        font-size: 34px !important;
        margin-bottom: 10px;
    }

    #amanecer .mensaje p {
        font-size: 18px;
        line-height: 1.35;
color: #65432f;
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.35);
    }

    #fotoPareja {
        width: 120px;
        height: 120px;
        margin: 12px auto;
    }

    #botonContinuar {
        margin-top: 8px;
        font-size: 14px;
        padding: 12px 20px;
    }

}