@import url('https://fonts.googleapis.com/css2?family=Delius+Swash+Caps&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body {
    font-family: "Delius Swash Caps";
    text-align: center;
    text-decoration: none;
    margin: 0;
    background-color: #662d91;
}

.contenedor-principal {
    background-color: white;
    max-width: 1025px;
    margin: 0 auto;
}

img {
    max-width: 99%;
}

/* Pantalla inicial */
#portada {
    position: fixed;
    inset: 0;
    background-color: #9666ba;
    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);
    }
}

.contenedor1 {
    background-image: url(../imagenes/fondo1.png);
    padding-top: 50px;
    padding-bottom: 50px;
}

.contenedor1 img {
    max-width: 98%;
}

.contenedor1 p {
    font-family: "Delius Swash Caps";
    margin-top: 80px;
    margin-bottom: 80px;
    color: black;
    font-size: 40px;
    font-weight: 200;
    padding: 5px 12%;
}


/*contador*/

.contenedor1 h3 {
    font-family: "Playfair Display", serif;
    font-size: 40px;
    font-weight: 700;
}

.contador {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.tiempo {
    text-align: center;
}

.tiempo span {
    font-family: "Delius Swash Caps";
    color: #662d91;
    font-size: 75px;
    display: block;
    padding: 10px;
    border-radius: 25px;
    background-color: white;
}

.texto {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 2px;
}

/*Carrusel*/
.contenedor2 {
    background-image: url(../imagenes/fondo2.png);
    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: white;
}

.swiper-pagination-bullet {
    background-color: white;
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    background-color: #9666ba;
    opacity: 1;
}

.contenedor3 {
    background-image: url(../imagenes/fondo3.png);
}

.contenedor3 h2 {
    font-family: "Playfair Display", serif;
    color: #662d91;
    font-weight: 300;
    font-size: 43px;
    margin-top: -60px;
    margin-bottom: 46px;
}

.contenedor3 h3 {
    font-family: "Playfair Display", serif;
    color: #662d91;
    font-size: 43px;
    font-weight: 300;
    margin-top: 56px;
    margin-bottom: 46px;
}

.contenedor3 h4 {
    font-family: "Delius Swash Caps";
    font-size: 40px;
    margin-bottom: 20px;
}


.contenedor4 {
    background-image: url(../imagenes/fondo4.png);
    background-size: contain;
    padding-top: 160px;
    padding-bottom: 50px;
}


.tarjeta {
    width: 100%;
    max-width: 55%;
    margin: 0 auto 88px;
    padding: 25px;
    padding-top: 80px;
    padding-bottom: 50px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cinta {
    margin-top: -203px;
}

.fecha {
    max-width: 95%;
}

.icono {
    max-width: 80%;
}

.tarjeta h3 {
    font-family: "Delius Swash Caps";
    color: #662d91;
    font-size: 45px;
    margin-bottom: 20px;
}

.tarjeta h4 {
    font-family: "Playfair Display", serif;
    color: #662d91;
    font-size: 30px;
    margin-top: 35px;
    margin-bottom: 42px;
}

.tarjeta h5 {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    margin-bottom: 50px;
    font-weight: 400;
}

.tarjeta a {
    padding: 17px;
    background-color: #662d91;
    font-size: 25px;
    color: white;
    text-decoration: none;
}

.tarjeta a:hover {
    border: solid #662d91;
    background-color: white;
    color: #662d91;
}

.contenedor5 {
    background-image: url(../imagenes/fondo3.png);
    background-size: cover;
}

.contenedor5 p {
    font-family: "Delius Swash Caps";
    color: #662d91;
    margin-top: -47px;
    margin-bottom: 50px;
    font-size: 40px;
    padding: 5px 12%;
}

.botonsi,
.botonno {
    display: block;
    width: fit-content;
    margin: 20px auto;
}

.botonsi {
    padding: 17px;
    background-color: #bd91e2;
    font-size: 34px;
    color: white;
    text-decoration: none;
}

.botonsi:hover {
    border: solid #bd91e2;
    background-color: white;
    color: #bd91e2;
}

.botonno {
    padding: 17px;
    background-color: #662d91;
    font-size: 34px;
    color: white;
    text-decoration: none;
}

.botonno:hover {
    border: solid #662d91;
    background-color: white;
    color: #662d91;
}

.contenedor6 {
    background-image: url(../imagenes/fondo4.png);
    background-size: contain;
    padding-top: 150px;
    padding-bottom: 50px;
}


.contenedor7 {
    background-image: url(../imagenes/fondo2.png);
    padding-top: 40px;
    padding-bottom: 40px;
}

.contenedor8 {
    padding-top: 35px;
    padding-bottom: 35px;
    background-image: url(../imagenes/fondo4.png);
}

.contenedor8 h3 {
    font-family: "Delius Swash Caps";
    color: #662d91;
    font-size: 34px;
    font-weight: 400;
    padding: 42px 15%;
}


footer {
    background-color: #662d91;
    padding: 40px 20px;
}

footer h5 {
    color: #ffffff;
    font-family: sans-serif;
}

footer img {
    max-width: 20%;
}


/*media queries*/
@media (max-width: 1024px) {
    .contenedor1 img {
        max-width: 80%;
    }

    .contenedor1 p {
        font-size: 36px;
    }

    .tiempo span {
        font-size: 64px;
    }

    .miCarrusel img {
        width: 65%;
    }

    .cinta {
        margin-top: -132px;
        max-width: 52%;
    }

    .tarjeta {
        margin: 0 auto 15%;
        padding: 25px;
    }

    .tarjeta h3 {
        font-size: 37px;
    }

    .tarjeta h4 {
        font-size: 28px;
    }

    .contenedor3 h4 {
        font-size: 44px;
    }

    .fecha {
        max-width: 75%;
    }

    .icono {
        max-width: 52%;
    }

    .contenedor5 p {
        margin-top: -60px;
        font-size: 32px;
        padding: 5px 14%;
    }

    .botonsi {
        font-size: 27px;
    }

    .botonno {
        font-size: 27px;
    }
}

@media (max-width: 768px) {
    .contenedor1 p {
        font-size: 31px;
    }

    .contenedor1 h3 {
        font-size: 35px;
        font-weight: 400;
    }

    .tiempo span {
        font-size: 47px;
    }

    .texto {
        font-size: 23px;
        font-weight: 500;
        letter-spacing: 1px;
    }

    .contenedor3 h2 {
        font-size: 41px;
        margin-bottom: 30px;
    }

    .contenedor3 h4 {
        font-size: 34px;
    }

    .contenedor3 h3 {
        font-size: 41px;
        margin-bottom: 30px;
    }

    .cinta {
        margin-top: -97px;
        max-width: 50%;
    }

    .fecha {
        max-width: 70%;
    }

    .contenedor5 p {
        font-size: 29px;
    }

    footer img {
        max-width: 20%;
    }
}

@media (max-width: 600px) {
    footer h5 {
        font-size: 15px;
    }

    footer img {
        max-width: 27%;
    }
}

@media (max-width: 480px) {
    #portada img {
        max-width: 95%;
    }

    .contenedor1 p {
        font-size: 26px;
    }

    .contenedor1 h3 {
        font-size: 30px;
    }

    .contador {
        gap: 22px;
    }

    .tiempo span {
        font-size: 44px;
    }

    .texto {
        font-size: 20px;
    }

    .miCarrusel img {
        width: 79%;
    }

    .contenedor3 h2 {
        font-size: 30px;
        margin-bottom: 25px;
        margin-top: -20px;
    }

    .contenedor3 h4 {
        font-size: 25px;
    }

    .contenedor3 h3 {
        font-size: 30px;
        margin-bottom: 25px;
    }

    .tarjeta {
        max-width: 65%;
        padding: 16px 15px 40px 15px;
    }

    .cinta {
        margin-top: -66px;
        max-width: 48%;
    }

    .tarjeta h3 {
        font-size: 30px;
    }

    .icono {
        max-width: 46%;
    }

    .tarjeta h4 {
        font-size: 22px;
        margin-bottom: 10px;
        margin-top: 15px;
    }

    .tarjeta h5 {
        font-size: 20px;
    }

    .tarjeta a {
        font-size: 20px;
    }

    .contenedor5 p {
        font-size: 22px;
        margin-top: -20px;
    }

    .botonsi {
        font-size: 20px;
    }

    .botonno {
        font-size: 20px;
    }

    .contenedor8 h3 {
        font-size: 23px;
    }
}

@media (max-width: 382px) {
    .tarjeta a {
        font-size: 18px;
    }

    .tarjeta a:hover {
        font-size: 18px;
    }
}

@media (min-width: 320px) {
    .tarjeta a {
        font-size: 16px;
    }

    .tarjeta a:hover {
        font-size: 16px;
    }

    .tarjeta {
        max-width: 69%;
    }
}