* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f1e9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* separa bloques naturalmente */
}
#Fondo {
    opacity: 80%;
    filter: grayscale(10%);
    filter: contrast(90%);
    width: 100vw;
    height: 90%;
    position: absolute;
    z-index: 0;
}
#TextImg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 40%;
    padding: 20px;
    text-align: center;
    background-color: rgba(241, 218, 189, 0.5);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.434);
    border-radius: 30px;
}
#TextImg h {
    margin-bottom: 50px;
    font-weight: bold;
    font-size: 130%;
}
#TextImg p {
    margin: 20px;
    font-size: 110%;
    word-spacing: 2px;
    line-height: 25px;
}
.Ubicacion {
    margin-top: 900px;
    width: 80%;
    z-index: 10;
}
.TextoGM {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.TextoGM div {
    flex: 1;
}
.TextoGM h {
    text-align: left;
    font-weight: bold;
}
.TextoGM p {
    margin-top: 10px;
   
    margin: 20px;
    line-height: 1.5;

}
#GoogleM {
   border-radius: 10px;
  width: 100%;
  max-width: 350px;
  height: auto;
 transition: transform 0.3s ease, border 0.3s ease; 
}
    .TextoGM {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
   
    #GoogleM:hover{
        cursor: pointer;
        border: 2px solid #bc9090; 
        transform: scale(1.05); 

    }


/* Contenedor principal de la imagen y el texto */
.image-text-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    margin-top: 20px; /* Espacio superior */
    margin-bottom: 20px; /* Espacio inferior */
}

/* Contenedor de la imagen */
.image-container {
    flex: 1;
    margin-right: 20px; /* Espacio entre la imagen y el texto */
}

.image-container img {
    width: 100%;
    max-width: 400px; /* Ajusta el tamaño máximo de la imagen */
    height: auto;
    border-radius: 10px;
}

/* Contenedor del texto */
.text-container {
    flex: 2;
}

.text-container h {
    margin-left: 375px;
    font-weight: bold;
    font-size: 150%;
}

.text-container p {
    margin-top: 20px; /* Espacio entre párrafos */
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Ajustes adicionales para hacer que la imagen reaccione al pasar el ratón por encima */
.image-container img:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.footer-container {
display: flex;
justify-content: space-between;
}

.footer-section {
flex: 1;
min-width: 250px;
}

.footer-section h2,
.footer-section h3 {
font-size: 1.5rem;
color: #f5c16c;
}

.footer-section p {
font-size: 1rem;
line-height: 1.6;
}

.footer-section ul {
list-style: none;
padding: 0;
}

.footer-section ul li a {
text-decoration: none;
color: #f5f5f5;
transition: color 0.3s ease;
}

.footer-section ul li a:hover {
color: #f5c16c;
}

.footer-section .socials {
margin-top: 10px;
}

.footer-section .socials a {
margin-right: 10px;
}

.footer-section .socials img {
width: 30px;
transition: transform 0.3s ease;
}

.footer-section .socials img:hover {
transform: scale(1.2);
}

.footer-bottom {
text-align: center;
margin-top: 20px;
font-size: 0.9rem;
color: #a5a5a5;
}

@media (max-width: 768px) {
    #menu-container {
        width: 100%;
        background-color: #0F1E31; /* azul oscuro */
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        top: 0;
        left: 0;
        z-index: 1000;
    }

    #TextImg{
        position: relative; 
        top: auto;
        left: auto;
        transform: none;
        width: 90%;
        margin: 10px auto;
        padding: 20px;
        background-color: rgba(241, 218, 189, 0.5);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.434);
        border-radius: 30px;
        z-index: 10;
    }

    #TextImg h, .TextoGM h, .text-container h {
        font-size: 1.3rem;
        text-align: center;
    }

    #TextImg p, .TextoGM p, .text-container p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: justify;
    }
    
    .Ubicacion {
        margin-top: 10px;
        width: 80%;
        z-index: 10;
    }

    .TextoGM, .image-text-container {
        flex-direction: column;
        align-items: center;
    }

    #GoogleM {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .image-container {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }

    .image-container img {
        max-width: 100%;
        height: auto;
    }

    .text-container {
        width: 100%;
    }
}



/* Media Query para pantallas más pequeñas */
@media (max-width: 480px) {
    #TextImg {
        width: 90%;  /* Se hace aún más pequeño */
    }

    #TextImg h {
        font-size: 110%;
    }

    #TextImg p {
        font-size: 90%;
    }


    /* Pie de página en dispositivos pequeños */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 100%;  /* Las secciones del pie de página se ajustan */
        text-align: center;
    }

    .footer-section .socials a {
        margin-right: 5px;
    }

    .footer-section .socials img {
        width: 25px;
    }
}
