@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Raleway", sans-serif;
    text-align: center;
    text-decoration: none;
    margin: 0;
    background-color: #fff2f5;
}

.contenedor-principal {
    background-color: white;
    max-width: 1025px;
    margin: 0 auto;
}

/* Pantalla inicial */
#portada {
    position: fixed;
    inset: 0;
    background-color: #fff2f5;
    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: 15px;
    font-size: 40px;
    font-family: "Lora", serif;
    color: #502C2C;
}


/* 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/fondo1.jpg);
    background-size: cover;
}

h1 {
    font-family: "Parisienne", cursive;
    font-size: 82px;
    font-weight: 600;
    color: #502C2C;
    padding-top: 4px;
    padding-bottom: 30px;
}

header img {
    max-width: 80%;
}

header h2 {
    font-family: "Raleway", sans-serif;
    font-size: 40px;
    max-width: 70%;
    font-weight: 600;
    color: #502C2C;
    padding-bottom: 100px;
    margin: 10px auto 0 auto;
}

.contenedor2 {
    background-image: url(../imagenes/fondo2.jpg);
    background-size: contain;
    padding-bottom: 100px;
}

.contenedor2 img {
    max-width: 40%;
    border: solid #ffc1c7 11px;
    border-radius: 30px;
    margin-bottom: 60px;
    margin-top: 60px;
}

.contenedor2 p {
    font-family: "Raleway", sans-serif;
    color: #502C2C;
    font-size: 40px;
    font-weight: 600;
    margin-top: 20px;
    padding: 0 60px 60px 60px;
}

.texto1 {
    padding: 30px;
    background-color: #fff2f5;
}

.contenedor2 h2 {
    font-family: "Parisienne", cursive;
    font-weight: 600;
    font-size: 65px;
    color: #502C2C;
}

.contenedor3 {
    background-image: url(../imagenes/fondo1.jpg);
    background-size: contain;
    background-attachment: fixed;
    padding-bottom: 50px;
}

.contenedor3 img {
    max-width: 55%;
}

.tarjeta1 h3 {
    font-family: "Raleway", sans-serif;
    font-size: 40px;
    color: #502C2C;
}

.tarjeta1 h2 {
    font-family: "Parisienne", cursive;
    font-size: 50px;
    font-weight: 600;
    color: #502C2C;
}

.tarjeta1 {
    padding: 35px;
    margin: 20px auto 40px auto;
    max-width: 60%;
    background-color: #fffdf4;
}

.tarjeta {
    padding: 35px;
    margin: 20px auto 40px auto;
    max-width: 60%;
    background-color: #fffdf4;
}

.tarjeta h3 {
    font-family: "Parisienne", cursive;
    font-size: 55px;
    font-weight: 600;
    color: #502C2C;
}

.tarjeta h4 {
    font-family: "Raleway", sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: #502C2C;
}

.tarjeta h5 {
    font-family: "Raleway", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #502C2C;
    margin-bottom: 30px;
    margin-top: 20px;
}

.tarjeta a {
    font-family: "Raleway", sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #592828;
    padding: 14px 23px;
    background-color: #f0c5c5;
    text-decoration: none;
    border-radius: 35px;
}

.tarjeta a:hover {
    font-family: "Raleway", sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #f0c5c5;
    padding: 14px 23px;
    background-color: #502C2C;
    text-decoration: none;
    border-radius: 35px;
}

.contenedor4 {
    background-image: url(../imagenes/fondo2.jpg);
    background-size: contain;
    padding-top: 40px;
    padding-bottom: 100px;
}

.contenedor4 img {
    max-width: 30%;
}

.contenedor4 h2 {
    font-family: "Parisienne", cursive;
    font-size: 55px;
    font-weight: 600;
    color: #502C2C;
    padding: 10px 100px;
    background-color: #fff2f5;
}

footer {
    background-color: #fff2f5;
    padding: 40px 20px;
}

footer h5 {
    color: #473f40;
    font-family: sans-serif;
}

footer img {
    max-width: 20%;
}


/*media queries*/
@media (max-width: 1024px) {
    #portada img {
        max-width: 85%;
    }

    #portada p {
        font-size: 40px;
    }
}

@media (max-width: 768px) {

    #portada img {
        max-width: 90%;
    }

    #portada p {
        font-size: 40px;
    }

    .contenedor4 {
        padding-bottom: 60px;
    }

    footer img {
        max-width: 20%;
    }

}

@media (max-width: 600px) {
    .tarjeta {
        margin: 10px auto 40px auto;
        max-width: 68%;
    }

    .tarjeta a {
        font-size: 17px;
        font-weight: 600;
    }

    .tarjeta a:hover {
        font-size: 17px;
        font-weight: 600;
    }

    footer h5 {
        font-size: 15px;
    }

    footer img {
        max-width: 27%;
    }

    .contenedor4 h2 {
        font-size: 36px;
    }

    .tarjeta h5 {
        font-size: 18px;
    }

}

@media (max-width: 480px) {

    #portada p {
        font-size: 22px;
    }

    h1 {
        font-size: 60px;
    }

    header h2 {
        font-size: 30px;
        padding-bottom: 80px;
    }

    .contenedor2 img {
        max-width: 50%;
    }

    .contenedor2 h2 {
        font-size: 50px;
    }

    .contenedor2 p {
        font-size: 30px;
        padding: 0 40px 0 40px;
    }

    .contenedor2 {
        padding-bottom: 50px;
    }

    .contenedor3 img {
        max-width: 60%;
    }

    .tarjeta1 h3 {
        font-size: 30px;
    }

    .tarjeta1 h2 {
        font-size: 45px;
    }

    .tarjeta1 {
        padding: 28px;
        margin: 6px auto 30px auto;
    }

    .tarjeta h3 {
        font-size: 32px;
    }

    .tarjeta h4 {
        font-size: 22px;
    }

    .tarjeta a {
        font-size: 15px;
        padding: 11px 19px;
    }


    .tarjeta a:hover {
        font-size: 15px;
        padding: 11px 19px;
    }

    .contenedor4 h2 {
        font-size: 32px;
        padding: 10px 30px;
        font-weight: 400;
    }

}

@media (max-width: 395px) {
    h1 {
        font-size: 50px;
    }

    header h2 {
        font-size: 26px;
        max-width: 75%;
        padding-bottom: 45px;
    }

    .contenedor2 img {
        max-width: 60%;
    }

    .contenedor2 h2 {
        font-size: 43px;
    }

    .contenedor2 p {
        font-size: 25px;
        padding: 0 20px 0 20px;
    }

    .contenedor3 img {
        max-width: 66%;
    }

    .tarjeta1 {
        margin: -45px auto 30px auto;
        max-width: 70%;
    }

    .tarjeta {
        padding: 20px 10px;
        max-width: 70%;
    }
}