  /* Estilo básico para el body */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Estilo del contenedor de la imagen */
.image-container {
    box-shadow: inset 0 0 0 1000px rgba(0,0,0,.2);
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: background-position 0.3s ease;
}

/* Imagen para escritorio (pantallas grandes) */
@media (min-width: 1024px) {
    .image-container {
        background-image: url('../images/header.png');
        background-position: center;
    }
}

/* Imagen para dispositivos móviles (pantallas pequeñas) */
@media (max-width: 1023px) {
    .image-container {
        background-image: url('../images/header.png');
        background-position: calc(100% - 30%) center;
    }
}

.text-container {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.text-container.shrink {
    transform: translateY(-50px) scale(0.6);
    opacity: 0;
}

/* Estilo para el primer texto */
.text1 {
    font-size: 6rem;
    font-weight: bold;
    color: #fbf1bd;
    margin-bottom: 10px; /* Separación entre los textos */
}

/* Estilo para el segundo texto */
.text2 {
    font-size: 1.6rem;
    font-weight: normal;
    color: white;
    margin-top: 30px;
    max-width: 100%;
}

/* Estilo para la segunda parte debajo de la imagen */
.bottom-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.right-text {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.4rem;
    color: black;
    padding-left: 20px;
    line-height: 2.7rem;
    text-align: left;
    font-style: italic;
    border-left: 8px solid black;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 1.3rem;
    background-size: cover;
    background-position: center;
    height: 9rem;
    padding: 10px;
    line-height: 1.7rem;
}


.wide {
    grid-column: span 1;
    width: 45%;
}

.services-h2 {
    font-size: 8rem; /* Ajusta el tamaño de la fuente */
    color: white; /* O el color que prefieras */
    font-weight: bold;
    max-width: 90%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Para mejorar la legibilidad sobre la imagen */
    line-height: 10rem;
}

.service2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    background-size: cover;
    color: white;
}

.service1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    background-size: cover;
    color: white;
    grid-column: span 3;
}

.service3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    background-size: cover;
    color: white;
    grid-column: span 2;

}

.service4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    background-size: cover;
    color: white;
}

.service5 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    background-size: cover;
    color: white;
    grid-column: span 2;

}

.gallery-h2 {
    width: 40%;
    margin-top: 80px;
    margin-bottom: 80px;
    text-align: left;
    font-size: 1.7rem;
    text-transform: uppercase;
    padding-left: 20px;
    padding-right: 20px;
    font-style: italic;
    border-left: 8px solid black;
    margin-left: 35%;
}

/* Estilo para la sección en escritorio */
@media (min-width: 1024px) {
    .bottom-section {
        flex-direction: row;
    }
    .left-image {
        width: 50%;
        height: 100%;
        /* background-image: url('../images/ibiza_dress.png'); */
        background-image: url('../images/photos/13.png');
        background-size: cover;
        background-position: center;
        display: flex;
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
        text-align: center;
    }
    .right-image-container {
        width: 50%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-color: #cfcabe;
        padding-left: 50px;
        padding-right: 50px;
    }

}

@media (max-width: 1467px) {
    .services-h2 {
        font-size: 5rem;
        line-height: 7rem;
        max-width: 100%;
    }
}

/* Estilo para la sección post movil */
@media (max-width: 1023px) {

    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 10px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .grid-item {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        font-size: 1.3rem;
        background-size: cover;
        background-position: center;
        height: 200px;
        line-height: 1.7rem;

    }

    .bottom-section {
        height: auto;
        flex-direction: column;
    }

    .left-image-mobile {
        display: flex;
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
        text-align: center;
        width: 100%;
        height: 50vh;
        background-image: url('../images/ibiza_dress.png');
        background-size: cover;
        background-position: center;
        
    }

    .services-h2 {
        font-size: 4rem; /* Ajusta el tamaño de la fuente */
        color: white; /* O el color que prefieras */
        font-weight: bold;
        max-width: 100%;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Para mejorar la legibilidad sobre la imagen */
        line-height: 4rem;
    }
    
    .right-image-container {
        width: 100%;
        height: 75vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #cfcabe;
        position: relative;
    }
   
}


.bottom2-section {
    margin-top: 50px;
    margin-bottom: 140px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.gallery {
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 3fr 2fr;
    min-height: 80vh;
    width: 40%;
    gap: 8px;
}

.left {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    background-image: url('../images/cactus.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.right {
    display: grid;
    grid-template-rows: 2fr 1fr;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    gap: 8px;
}

.top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.top-left {
    background-image: url('../images/tree_mountain.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.top-right {
    background-image: url('../images/girl_flowers.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bottom {
    background-image: url('../images/sea.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column: 1 / 3;
    gap: 8px;
}

.bottom-block {
    aspect-ratio: 1 / 2;
}

.bottom-img1 {
    background-image: url('../images/church.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.bottom-img2 {
    background-image: url('../images/ibiza_dress2.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.bottom-img3 {
    background-image: url('../images/drink.png');
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .text-container.shrink {
        transform: translateY(-50px) scale(0.1);
        opacity: 0;
    }
    /* Estilo para el primer texto */
    .text1 {
        font-size: 3rem;
        margin-bottom: 10px; /* Separación entre los textos */
    }

    /* Estilo para el segundo texto */
    .text2 {
        text-align: center;
        font-size: 1.2rem;
        margin-top: 30px;
        max-width: 100%;
    }

    /* Services*/
    .services-h2 {
        font-size: 4rem; /* Ajusta el tamaño de la fuente */
        color: white; /* O el color que prefieras */
        font-weight: bold;
        max-width: 100%;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Para mejorar la legibilidad sobre la imagen */
        line-height: 4rem;
    }

    .grid-item {
        height: 150px;
    }

    .service1 {
        grid-column: span 3;
    }
    .service2 {
        grid-column: span 1;
    }

    .service3 {
        grid-column: span 2;
    }

    .service4 {
        grid-column: span 2;
    }

    .service5 {
        grid-column: span 1;
    }

    /* Gallery */

    .gallery-h2 {
        width: 85%;
        margin-top: 40px;
        margin-bottom: 40px;
        text-align: left;
        font-size: 1.7rem;
        text-transform: uppercase;
        padding-left: 20px;
        padding-right: 20px;
        font-style: italic;
        border-left: 8px solid black;
        margin-left: 45px;
    }

    .gallery {
        width: 90%;
    }
}