@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');

body {
    overflow-x: hidden;
    font-family: "Libre Baskerville", serif;
    text-align: center;
    text-decoration: none;
    margin: 0;
    background-color: #d9d9f4;
}

.contenedor-principal {
    background-color: white;
    max-width: 1025px;
    margin: 0 auto;
}


/* Pantalla inicial */
#portada {
    position: fixed;
    inset: 0;
    background-image: url(../imagenes/fondo4.jpg);
    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;
}


/* 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);
    }
}

.perla1 {
    margin-top: -80px;
}

.perla1,
.perla2 {
    max-width: 100%;
    height: auto;
    display: block;
}

.foto-principal {
    max-width: 70%;
    height: auto;
}

.contenedor1 {
    background-image: url(../imagenes/fondo1.jpg);
    padding-top: 50px;
    padding-bottom: 50px;
}

.contenedor1 h1 {
    font-family: "Parisienne", cursive;
    font-size: 150px;
    color: #666A98;
}

.contenedor1 h2 {
    font-family: "Parisienne", cursive;
    font-size: 113px;
    margin-top: -40px;
    color: #666A98;
}

.inicial {
    font-family: "Parisienne", cursive;
    font-size: 56px;
}

.contenedor1 p {
    font-family: "Libre Baskerville", serif;
    margin-top: 80px;
    margin-bottom: 80px;
    color: #473f40;
    font-size: 38px;
    font-weight: 200;
    padding: 3px 15%;
}


/*contador*/

.contenedor1 h3 {
    font-family: "Parisienne", cursive;
    font-size: 52px;
    color: #473f40;
    margin-top: 110px;
}

.contador {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 35px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.tiempo {
    text-align: center;
}

.tiempo span {
    font-family: "Parisienne", cursive;
    color: #666A98;
    font-size: 68px;
    font-weight: 600;
    display: block;
    padding: 10px;

}

.texto {
    font-family: "Libre Baskerville", serif;
    font-size: 25px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 2px;
    color: #473f40;
}

/*Carrusel*/
.contenedor2 {
    background-image: url(../imagenes/fondo2.jpg);
    padding-top: 40px;
    padding-bottom: 40px;
}

.miCarrusel {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 30px;
}

.miCarrusel img {
    width: 70%;
    border-radius: 20px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #666A98;
}

.swiper-pagination-bullet {
    color: #666A98;
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    background-color: #3d3973;
    opacity: 1;
}

.contenedor3 {
    background-image: url(../imagenes/fondo4.jpg);
    padding-bottom: 50px;
}

.contenedor3 h2 {
    font-family: "Parisienne", cursive;
    color: #454974;
    font-weight: 400;
    font-size: 62px;
    margin-top: -421px;
    margin-bottom: 51px;
}

.contenedor3 h3 {
    font-family: "Parisienne", cursive;
    color: #454974;
    font-weight: 400;
    font-size: 62px;
    margin-top: 25px;
    margin-bottom: 51px;
}

.contenedor3 h4 {
    font-family: "Libre Baskerville", serif;
    color: #473f40;
    font-size: 33px;
    margin-bottom: 20px;
}

.contenedor3 h5 {
    font-family: "Parisienne", cursive;
    color: #454974;
    font-weight: 400;
    font-size: 62px;
    margin-top: 43px;
    margin-bottom: -257px;
}


.contenedor4 {
    background-image: url(../imagenes/fondo3.jpg);
    background-size: contain;
    padding-top: 160px;
    padding-bottom: 50px;
}


.tarjeta {
    width: 100%;
    max-width: 48%;
    margin: 0 auto 55px;
    padding: 25px;
    padding-top: 85px;
    padding-bottom: 60px;
    border-radius: 228px;
    background-color: #fffdf7;
}

.cinta {
    margin-top: -181px;
}

.icono {
    max-width: 60%;
}

.tarjeta h3 {
    font-family: "Parisienne", cursive;
    color: #454974;
    font-size: 50px;
    margin-bottom: 20px;
}

.tarjeta h4 {
    font-family: "Libre Baskerville", serif;
    color: #666A98;
    font-size: 26px;
    margin-top: 35px;
    margin-bottom: 35px;
}

.tarjeta h5 {
    font-family: "Libre Baskerville", serif;
    color: #473f40;
    font-size: 24px;
    margin-bottom: 53px;
    font-weight: 400;
}

.tarjeta a {
    padding: 17px;
    background-color: #666A98;
    font-size: 23px;
    color: white;
    text-decoration: none;
    border-radius: 34px;
}

.contenedor4 a:hover {
    border: solid #666A98;
    background-color: white;
    color: #666A98;
    border-radius: 34px;
}

.contenedor5 {
    background-image: url(../imagenes/fondo4.jpg);
}

.contenedor5 h3 {
    font-family: "Parisienne", cursive;
    color: #454974;
    font-weight: 400;
    font-size: 45px;
    margin-top: 10px;
    margin-bottom: 50px;
    padding-left: 150px;
    padding-right: 150px;
}

.contenedor5 h4 {
    font-family: "Libre Baskerville", serif;
    color: #473f40;
    font-size: 26px;
    margin-bottom: 35px;
}

.botonsi,
.botonno {
    display: block;
    width: fit-content;
    margin: 20px auto;
}

.botonsi {
    font-family: "Libre Baskerville", serif;
    padding: 17px;
    background-color: #a3a3db;
    font-size: 26px;
    color: white;
    text-decoration: none;
    border-radius: 34px;
}

.botonsi:hover {
    border: solid #a3a3db;
    background-color: white;
    color: #a3a3db;
    border-radius: 34px;
}

.botonno {
    font-family: "Libre Baskerville", serif;
    padding: 17px;
    background-color: #484883;
    font-size: 26px;
    color: white;
    text-decoration: none;
    border-radius: 34px;
}

.botonno:hover {
    border: solid #484883;
    background-color: white;
    color: #484883;
    border-radius: 34px;
}

.contenedor5 img {
    max-width: 100%;
    height: auto;
    display: block;
}

.contenedor6 {
    background-image: url(../imagenes/fondo3.jpg);
    background-size: contain;
    padding-top: 150px;
    padding-bottom: 50px;
}

.contenedor6 a {
    padding: 17px;
    background-color: #666A98;
    font-size: 25px;
    color: white;
    text-decoration: none;
}

.contenedor6 a:hover {
    border: solid #666A98;
    background-color: white;
    color: #666A98;
}

.contenedor7 {
    background-image: url(../imagenes/fondo2.jpg);
    padding-top: 40px;
    padding-bottom: 40px;
}

.contenedor8 {
    background-image: url(../imagenes/fondo4.jpg);
}

.contenedor8 h3 {
    font-family: "Libre Baskerville", serif;
    color: #666a98;
    font-size: 30px;
    font-weight: 400;
    padding-left: 210px;
    padding-right: 210px;
    padding-top: 80px;
}

.contenedor8 img {
    max-width: 60%;
}

footer {
    background-color: #d9d9f4;
    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;
    }

    .foto-principal {
        max-width: 60%;
    }

    .contenedor1 h1 {
        font-size: 135px;
    }

    .contenedor1 h2 {
        font-size: 100px;
        margin-top: -36px;
    }

    .contenedor1 p {
        font-size: 30px;
        padding: 4px 17%;
    }

    .inicial {
        font-size: 46px;
    }

    .contador {
        gap: 37px;
        margin-top: 25px;
        margin-bottom: 45px;
    }

    .tiempo span {
        font-size: 55px;
    }

    .contenedor3 h2 {
        font-size: 55px;
        margin-top: -443px;
        margin-bottom: 40px;
    }

    .contenedor3 h3 {
        font-size: 55px;
        margin-top: 35px;
        margin-bottom: 40px;
    }

    .contenedor3 h4 {
        font-size: 32px;
    }

    .contenedor3 h5 {
        font-size: 55px;
        margin-top: 35px;
    }

    .tarjeta {
        max-width: 56%;
    }

    .icono {
        max-width: 55%;
    }

    .contenedor5 h3 {
        font-size: 40px;
        padding: 5px 15%;
        margin-bottom: 35px;
    }

    .contenedor5 h4 {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .botonsi {
        font-size: 22px;
    }

    .botonsi :hover {
        font-size: 22px;
    }

    .botonno {
        font-size: 22px;
    }

    .botonno :hover {
        font-size: 22px;
    }

}

@media (max-width: 777px) {
    #portada img {
        max-width: 75%;
    }

    .foto-principal {
        max-width: 54%;
    }

    .contenedor1 h1 {
        font-size: 100px;
    }

    .contenedor1 h2 {
        font-size: 81px;
        margin-bottom: -20px;
    }

    .contenedor1 p {
        padding: 5px 15%;
        font-size: 24px;
    }

    .inicial {
        font-size: 35px;
    }

    .contenedor1 h3 {
        font-size: 40px;
        margin-top: 69px;
    }

    .tiempo span {
        font-size: 40px;
    }

    .contador {
        gap: 25px;
        margin-top: 14px;
        margin-bottom: 31px;
    }

    .texto {
        font-size: 18px;
        font-weight: 600;
        margin-top: 1px;
        letter-spacing: 0px;
    }

    .contenedor3 img {
        max-width: 99%;
    }

    .contenedor3 h2 {
        font-size: 45px;
        margin-top: -359px;
        margin-bottom: 28px;
    }

    .contenedor3 h4 {
        font-size: 25px;
    }

    .contenedor3 h3 {
        font-size: 45px;
    }

    .contenedor3 h5 {
        font-size: 45px;
        padding: 5px 14%;
    }

    .cinta {
        margin-top: -65px;
    }

    .tarjeta {
        max-width: 52%;
        padding: 30px 10px 50px 10px;
        margin-bottom: 70px;
    }

    .tarjeta h3 {
        font-size: 38px;
    }

    .icono {
        max-width: 50%;
    }

    .tarjeta h4 {
        font-size: 24px;
        margin-top: 22px;
        margin-bottom: 22px;
    }

    .tarjeta h5 {
        font-size: 22px;
        margin-bottom: 45px;
    }

    .tarjeta a {
        font-size: 20px;
    }

    .tarjeta a :hover {
        font-size: 20px;
    }

    .contenedor8 h3 {
        font-size: 25px;
        font-weight: 400;
        padding: 80px 15% 30px 15%;
    }

    footer img {
        max-width: 20%;
    }
}



@media (max-width: 692px) {
    .foto-principal {
        max-width: 78%;
    }

    .tiempo span {
        font-size: 55px;
    }

    .miCarrusel img {
        width: 85%;
    }

    .contenedor3 h2 {
        margin-top: -335px;
    }

    .contenedor8 h3 {
        font-size: 24px;
    }
}

@media (max-width: 674px) {
    .tiempo span {
        font-size: 46px;
    }

    .contenedor3 h2 {
        font-size: 41px;
        margin-top: -323px;
    }

    .contenedor3 h3 {
        font-size: 41px;
    }

    .contenedor3 h5 {
        font-size: 41px;
    }

    .contenedor3 h3 {
        font-size: 41px;
    }

    .cinta {
        margin-top: -68px;
        max-width: 82%;
    }

    .icono {
        max-width: 46%;
    }

    .tarjeta {
        max-width: 54%;
        padding: 27px 10px 65px 10px;
        margin-bottom: 70px;
    }

    .tarjeta h3 {
        font-size: 35px;
    }

    .tarjeta h5 {
        font-size: 20px;
        margin-bottom: 39px;
    }

    .contenedor5 h3 {
        font-size: 34px;

    }

    .contenedor5 h4 {
        font-size: 22px;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    footer h5 {
        font-size: 15px;
    }

    footer img {
        max-width: 27%;
    }
}

@media (max-width: 584px) {
    .foto-principal {
        max-width: 71%;
    }

    .contenedor1 p {
        padding: 5px 11%;
        font-size: 22px;
    }

    .miCarrusel img {
        width: 70%;
    }

    .contenedor3 h2 {
        font-size: 36px;
        margin-top: -269px;
    }

    .contenedor3 h4 {
        font-size: 22px;
    }

    .contenedor3 h3 {
        font-size: 36px;
    }

    .contenedor3 h5 {
        font-size: 35px;
        padding: 3px 19%;
        margin-bottom: -212px;
    }

    .tarjeta h3 {
        font-size: 32px;
    }

    .tarjeta h5 {
        font-size: 19px;
        padding: 15px;
        margin-bottom: 39px;
    }

    .contenedor5 h4 {
        padding: 5px 15%;
    }

    .contenedor8 h3 {
        font-size: 22px;
    }
}

@media (max-width: 482px) {
    #portada img {
        max-width: 84%;
    }

    .contenedor1 h1 {
        font-size: 80px;
    }

    .contenedor1 h2 {
        font-size: 68px;
    }

    .contenedor1 p {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .contenedor1 h3 {
        font-size: 32px;
        margin-top: 35px;
    }

    .contador {
        gap: 20px;
    }

    .tiempo span {
        font-size: 36px;
    }

    .texto {
        font-size: 15px;
        font-weight: 400;
    }

    .contenedor3 h2 {
        margin-top: -169px;
        font-size: 33px;
        margin-bottom: 15px;
    }

    .contenedor3 h4 {
        font-size: 20px;
        font-weight: 400;
        margin-bottom: 10px;
    }

    .contenedor3 h3 {
        font-size: 33px;
    }

    .contenedor3 h5 {
        font-size: 33px;
    }

    .tarjeta {
        max-width: 70%;
    }

    .icono {
        max-width: 52%;
    }

    .tarjeta h3 {
        font-size: 32px;
    }

    .tarjeta h4 {
        font-size: 21px;
        margin-top: 19px;
        margin-bottom: 13px;
    }

    .tarjeta h5 {
        font-size: 18px;
    }

    .tarjeta a {
        font-size: 15px;
    }

    .tarjeta a :hover {
        font-size: 15px;
    }

    .contenedor5 h3 {
        font-size: 27px;
        margin-bottom: 20px;
    }

    .contenedor5 h4 {
        font-size: 18px;
        font-weight: 400;
        padding: 2px 13%;
    }

    .botonsi {
        font-size: 18px;
    }

    .botonsi :hover {
        font-size: 18px;
    }

    .botonno {
        font-size: 18px;
    }

    .botonno :hover {
        font-size: 18px;
    }

    .contenedor8 h3 {
        font-size: 20px;
    }
}

@media (max-width: 423px) {
    #portada img {
        max-width: 100%;
    }

    .contenedor1 h1 {
        font-size: 60px;
        margin-top: 17px;
    }

    .contenedor1 h2 {
        font-size: 52px;
        margin-top: 5px;
    }

    .contenedor1 p {
        margin-top: 40px;
        margin-bottom: 23px;
    }

    .miCarrusel img {
        width: 80%;
    }

    .contenedor3 h4 {
        font-size: 18px;
        padding: 4px 45px;
    }

    .contenedor3 h5 {
        margin-bottom: -164px;
        font-size: 27px;
        margin-top: 20px;
    }

    .contenedor4 {
        padding-top: 106px;
        padding-bottom: 20px;
    }

    .contenedor8 img {
        max-width: 65%;
        margin-bottom: 10px;
    }
}

@media (max-width: 320px) {
    .foto-principal {
        max-width: 80%;
    }

    .contenedor1 h1 {
        font-size: 50px;
    }

    .contenedor1 h2 {
        font-size: 44px;
    }

    .contenedor1 p {
        font-size: 18px;
    }

    .contenedor1 h3 {
        font-size: 28px;
    }

    .contenedor1 h3 {
        font-size: 28px;
    }

    .contador {
        gap: 14px;
    }

    .texto {
        font-size: 14px;
    }

    .contenedor3 h2 {
        margin-top: -149px;
        font-size: 26px;
        margin-bottom: 13px;
    }

    .contenedor3 h4 {
        font-size: 17px;
        padding: 5px 12%;
    }

    .contenedor3 h3 {
        font-size: 26px;
    }

    .contenedor3 h5 {
        margin-bottom: -141px;
        font-size: 25px;
        margin-top: 20px;
    }

    .contenedor4 {
        padding-top: 76px;
        padding-bottom: 10px;
    }

    .tarjeta {
        max-width: 73%;
    }

    .icono {
        max-width: 63%;
    }

    .tarjeta h4 {
        font-size: 19px;
    }

    .tarjeta a {
        font-size: 16px;
        padding: 15px 10px;
    }

    .tarjeta a :hover {
        font-size: 16px;
        padding: 15px 10px;
    }

    .contenedor8 h3 {
        font-size: 18px;
    }
}