@import url('https://fonts.googleapis.com/css2?family=Lily+Script+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');


body {
    font-family: 'Fredoka', sans-serif;
    text-align: center;
    text-decoration: none;
    background-color: #b2e4eb;
}

.contenedor-principal {
    background-color: white;
    max-width: 1025px;
    margin: 0 auto;
}

/* Pantalla inicial */
#portada {
    position: fixed;
    inset: 0;
    background-color: #b2e4eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
}

#portada img {
    max-width: 65%;
    animation: flotar 2s ease-in-out infinite;
}

#portada p {
    margin-top: 20px;
    font-size: 24px;
    font-family: 'Fredoka', sans-serif;
    color: white;
}

.boton-inicio {
    background-color: #ff5681;
    padding: 23px 34px;
    border-radius: 40px;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-size: 31px;
    font-weight: 400;
    color: white;
    margin-bottom: 50px;
}

.boton-inicio:hover {
    background-color: #ff5681;
    padding: 23px 34px;
    border-radius: 40px;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-size: 31px;
    font-weight: 400;
    color: white;
    margin-bottom: 50px;
}

/* Invitación oculta al inicio */
#invitacion {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

#invitacion.activa {
    opacity: 1;
    visibility: visible;
}

/* Animación suave */
@keyframes flotar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

header {
    background-image: url(../imagenes/fondo.jpg);
    padding-top: 60px;
    padding-bottom: 85px;
}

header h4 {
    font-family: "Fredoka", sans-serif;
    color: #735339;
    font-size: 30px;
}

.contenedor1 {
    background-image: url(../imagenes/fondo1.jpg);
    background-size: cover;
    background-attachment: fixed;
    padding-bottom: 165px;
}

.contenedor1 img {
    margin-top: 55px;
}

.contenedor1 h1 {
    font-family: "Fredoka", sans-serif;
    color: #ff5681;
    font-size: 65px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.titulo-faltan {
    margin-bottom: 30px;
    color: #ff5681;
    font-size: 90px;
}

#final {
    font-family: "Lily Script One";
    color: #ff5681;
    font-size: 60px;
}

.contador {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.bloque {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 110px;
    margin-bottom: 161px;
}

.ventana {
    height: 60px;
    overflow: hidden;
    position: relative;
}

.numero {
    font-size: 2.8em;
    color: #ff5681;
    font-family: "Fredoka", sans-serif;
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease;
}

.texto {
    margin-top: 10px;
    font-size: 0.9em;
    color: #ff5681;
}

/* 🎉 Mensaje final */
#final {
    display: none;
    font-size: 3em;
    animation: zoom 1.5s ease infinite alternate;
    margin-top: 40px;
}

@keyframes zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}





.nubes {
    max-width: 100%;
    margin-bottom: -327px;
}

.divisor1 {
    background-image: url(../imagenes/div1.png);
    background-repeat: repeat-x;
    background-size: contain;
    height: 356px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    transform: translateY(-245px);
    margin-bottom: -180px;
}

.contenedor2 {
    background-image: url(../imagenes/fondo2.jpg);
    background-size: contain;
    padding: 45px;
    padding-top: 120px;
}

.contenedor2 h2 {
    font-family: "Fredoka", sans-serif;
    color: #735339;
    font-size: 37px;
    font-weight: 500;
    margin: 21px;
}

.contenedor2 h3 {
    font-family: "Fredoka", sans-serif;
    color: #735339;
    font-size: 37px;
    font-weight: 300;
    margin-top: 70px;
}

.contenedor3 {
    background-image: url(../imagenes/fondo3.jpg);
    background-size: contain;
    padding: 45px;
    padding-top: 65px;
}


.tarjeta {
    width: 100%;
    max-width: 40%;
    margin: 0 auto 60px;
    padding: 25px;
    padding-bottom: 50px;
    background-color: white;
    border: solid #ff5681 10px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tarjeta img {
    max-width: 67%;
}

.contenedor3 h2 {
    font-family: "Fredoka", sans-serif;
    font-size: 35px;
    color: #ff5681;
    font-weight: 600;
    margin-bottom: 35px;
}

.contenedor3 h4 {
    font-family: "Fredoka", sans-serif;
    font-size: 32px;
    margin-top: 35px;
    margin-bottom: 20px;
    color: #735339;
}

.contenedor3 h3 {
    font-family: "Fredoka", sans-serif;
    font-size: 35px;
    color: #ff5681;
    font-weight: 600;
    margin-bottom: 20px;
}

.contenedor3 p {
    font-family: "Fredoka", sans-serif;
    font-size: 27px;
    margin-top: 15px;
    margin-bottom: 55px;
    padding: 30px;
    color: #735339;
}

.contenedor3 a {
    background-color: #ff5681;
    padding: 16px 23px;
    border-radius: 40px;
    text-decoration: none;
    font-family: "Fredoka", sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: white;
    margin-bottom: 50px;
}

.contenedor3 a:hover {
    background-color: white;
    color: #ff5681;
    border: solid #ff5681 2px;
}

.divisor3 {
    background-image: url(../imagenes/div2.png);
    background-repeat: repeat-x;
    background-size: contain;
    height: 356px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.contenedor4 {
    background-image: url(../imagenes/fondo4-3.jpg);
    background-size: cover;
}

.contenedor4 h2 {
    font-family: "Fredoka", sans-serif;
    font-size: 45px;
    color: white;
    font-weight: 600;
    padding-top: 85px;
    padding-bottom: 60px;
    padding-left: 50px;
    padding-right: 50px;
}

.contenedor4 img {
    padding-bottom: 70px;
}

footer {
    background-color: #50686b;
    padding: 40px 20px;
}

footer h5 {
    color: #ffffff;
    font-family: sans-serif;
}

footer img {
    max-width: 20%;
}


/*media queries*/
@media (max-width: 1024px) {

    header h4 {
        font-size: 38px;
    }

    .divisor2 {
        height: 300px;
    }

    .divisor3 {
        height: 300px;
    }

    .tarjeta {
        max-width: 50%;
    }

    .tarjeta img {
        max-width: 50%;
    }

}

@media (max-width: 768px) {

    .bloque {
        padding: 11px;
        width: 87px;
        margin-bottom: -10px;
    }

    .numero {
        font-size: 40px;
    }


    .divisor2 {
        height: 250px;
    }

    .divisor3 {
        height: 250px;
    }

    .contenedor2 h3 {
        font-size: 32px;
        font-weight: 400;
        margin-top: 42px;
    }

    .contenedor2 h2 {
        font-size: 34px;
    }

    .tarjeta {
        max-width: 57%;
    }

    footer img {
    max-width: 20%;
}

}

@media (max-width: 480px) {

    #portada img {
        max-width: 95%;
        margin-bottom: 30px;
    }

    header img {
        max-width: 61%;
    }

    header h4 {
        font-size: 23px;
    }

    .bloque {
        padding: 11px;
        width: 87px;
        margin-bottom: -10px;
    }

    .numero {
        font-size: 40px;
    }

    .tarjeta {
        max-width: 97%;
    }

    .tarjeta img {
        max-width: 76%;
    }


}

@media (max-width: 397px) {

    #portada img {
        max-width: 78%;
    }

    header img {
        max-width: 80%;
    }

    header h4 {
        font-size: 23px;
    }

    .contenedor1 img:first-of-type {
        max-width: 80%;
    }

    .contenedor1 h1 {
        font-size: 42px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .contenedor2 h3 {
        font-size: 30px;
        margin-top: 11px;
    }

    .contenedor2 h2 {
        font-size: 30px;
    }

    .contenedor2 img {
        max-width: 99%;
    }

    .contenedor3 img:first-of-type {
        max-width: 99%;
    }

    .tarjeta {
        max-width: 93%;
    }

    .tarjeta img {
        max-width: 80%;
    }

    .contenedor3 h2 {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .contenedor3 h4 {
        font-size: 27px;
        margin-top: 25px;
        margin-bottom: 20px;
    }

    .contenedor3 h3 {
        font-size: 29px;
        font-weight: 600;
        margin-bottom: -13px;
    }

    .contenedor3 p {
        font-size: 24px;
        margin-top: 21px;
        margin-bottom: 48px;
        padding: 7px;
    }

    .contenedor4 h2 {
        font-size: 30px;
    }

    .contenedor4 img {
        max-width: 86%;
    }

}