  /* 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 - Reemplazado por animación */
.text1-wrapper {
    margin-bottom: 10px; /* Separación entre los textos */
}

/* Estilo para el segundo texto */
.text2 {
    text-align: center;
    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;
}

/* Estilos migrados a services.css */


.wide {
    grid-column: span 1;
    width: 45%;
}

.services-h2 {
    font-size: 8rem; /* Ajusta el tamaño de la fuente */
    color: #fbf1bd; /* O el color que prefieras */
    font-weight: bold;
    text-align: center;
    max-width: 90%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Para mejorar la legibilidad sobre la imagen */
    line-height: 10rem;
}

/* Estilos migrados a services.css */

/* Usar .section-title para todos los títulos de secciones */
.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%;
}

/* Estilos migrados a services.css */
@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;
    }
}

@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) {
    /* Estilos migrados a services.css */

    .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-align: center;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Para mejorar la legibilidad sobre la imagen */
        line-height: 4rem;
    }
    
    /* Estilos migrados a services.css */
   
}


.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;
    box-sizing: border-box; /* Asegurar que padding y border estén incluidos en el ancho */
}

.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;
    background-position: center;
}

.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 query para tablets */
@media (max-width: 1023px) and (min-width: 769px) {
    .gallery {
        width: 70%; /* Ancho apropiado para tablets */
    }
    
    .bottom-block {
        aspect-ratio: 1 / 1.8; /* Un poco menos alto para tablets */
    }
}

@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.5); /* Para mejorar la legibilidad sobre la imagen */
        line-height: 4rem;
    }

    /* Estilos migrados a services.css */

    /* 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%;
        min-height: auto; /* Eliminar altura mínima en móviles */
    }
    
    .bottom2-section {
        min-height: auto; /* Ajustar altura automáticamente */
        margin-bottom: 60px; /* Reducir margen inferior */
    }
    
    .bottom-row {
        grid-template-columns: 1fr 1fr 1fr; /* Asegurar columnas iguales */
    }
    
    .bottom-block {
        aspect-ratio: 1 / 1.5; /* Reducir ligeramente la proporción vertical */
        width: 100%; /* Asegurar que cada bloque ocupe todo su espacio */
        height: auto; /* Permitir altura automática */
    }
}

/* Media query para dispositivos muy pequeños */
@media (max-width: 480px) {
    .gallery {
        width: 95%; /* Aumentar ligeramente el ancho */
        gap: 4px; /* Reducir el espacio entre elementos */
    }
    
    .bottom-block {
        aspect-ratio: 1 / 1.2; /* Proporción aún más reducida para móviles pequeños */
    }
    
    .bottom2-section {
        margin-bottom: 40px; /* Reducir más el margen inferior */
    }
}