body{
    font-family: "Mukta", sans-serif;
    background-color: #f5deb3;
    color: #000;
}
header{
    min-height: 600px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url("../assets/domo_inicio.jpg");
    border-image: fill 0 linear-gradient(#0001,#000);
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: end;
}
section{
    margin-top: 20px;
}
.image-header{
    margin: 20px;
    animation: rightBounce 2s ease 0s 1 normal forwards;
}
h1{
    font-size: 4em;
    display: inline-block;
}
.image-header h1, .image-header h2{
    color: #fff;
    margin: 10px 0;
}
.section_flex{
    display: flex;
    margin-top: 40px;
}
.description_container,.first_image,.profile_image{
    flex:1;
    margin: 40px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.description_container p{
    width: 100%;
    line-height: 1.25;
    font-size: 1.3rem;
}
.first_image {
    width: 100%;
    max-width: 500px; /* Por ejemplo, ajusta el ancho máximo del contenedor según tu diseño */
    height: auto; /* Esto permite que la altura del contenedor se ajuste automáticamente según el tamaño de la imagen */
    border-radius: 10px; /* Aplicar radio de borde al contenedor */
    overflow: hidden; /* Asegurar que la imagen se recorta según el radio de borde */
    margin: auto 40px; /* Para centrar horizontalmente */
    display: flex; /* Activar el modelo de caja flexible */
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
}

.first_image img {
    max-width: 100%; /* Ajustar el tamaño de la imagen según el contenedor */
    height: auto; /* Mantener la proporción original de la imagen */
    object-fit: cover; /* Ajustar la imagen para cubrir el contenedor sin distorsión */
}
.galeria_section{
    padding: 50px 0;
}
.title_section{
    text-align: center;
    font-size: 1.8em;
    padding-bottom: 20px;
}
.galeria_container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    row-gap: 3em;
}
.item_galeria{
    margin: auto;
}
.item_galeria img{
    object-fit: cover;
    height: 300px;
    width: 260px;
    border-radius: 15px;
    transition: transform 0.3s ease; /* Transición suave por defecto */
}
.item_galeria img:hover{
    transform: scale(1.15); /* Ajusta el valor según el aumento deseado */
    transition: transform 0.3s ease; /* Agrega una transición suave */
    cursor: pointer;
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(255, 255, 255); 
    background-color: rgba(255, 255, 255, 0.3);
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
}
.modal.mostrar {
    display: flex; /* Muestra el modal solo cuando tiene la clase "mostrar" */
}
.modal-contenido {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    border-radius: 15px;
    object-fit: contain;
}

.cerrar {
    color: #fff;
    position: absolute; /* Posición absoluta para ajustarse a la esquina superior derecha */
    top: 30px;
    right: 30px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar:hover,
.cerrar:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.description_text{
    text-align: left;
    margin: auto 0;
}
#description_profile{ 
    margin-right: 0;
    margin-left: 80px;
}
video{
    margin: 70px auto 30px;
    height: 700px;
    width: 1000px;
}
.profile_image{
    margin-left: 0px;
}
.profile_image img{
    width: 400px;
    height: 400px;
    animation: FadeBottom 2s ease-out 0s 1 normal forwards;
    border-radius: 50%;
}
.container_map{
    margin: 40px;
    flex: 1;
}
.social_container{
    margin: 40px;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
}
.social_container h2{
    flex-basis: 100%;
    text-align: center;
    margin: auto;
}
.social_container img{
    max-width: 150px;
    max-height: 150px;
    margin: 0 auto;
    flex-basis: calc(50% - 20px);
    margin-bottom: 10px;
    transition: transform 0.3s ease; /* Agrega una transición suave */
}
.social_container img:hover{
    transform: scale(1.15); /* Ajusta el valor según el aumento deseado */
    transition: transform 0.3s ease; /* Agrega una transición suave */
    cursor: pointer;
    flex: 1;
}
.map{
    width: 100%;
    height: 300px;
}
#instagram{
    max-width: 130px;
    max-height: 130px;
    margin-top: 10px;
}
@media screen and (max-width: 1300px){
    video{
        margin: 50px auto 10px;
        height: 500px;
        width: 800px;
    }
    .section_flex:nth-child(2){
        flex-direction: column;
    }
    .first_image:nth-child(2) {
        margin: 0 auto;
    }
    .description{
        margin-top: 0;
    }
}
@media screen and (max-width: 900px) {
    header{
        background-position-x: left;
    }
    .description_container p{
        line-height: 1.3;
        font-size: 1.1em;
    }
    .first_image,.description_container{
        margin: 15px;
    }
    .galeria_section{
        padding: 0 0 40px;
    }
    .item_galeria img{
        height: 260px;
        width: 210px;
    }
    video{
        height: 350px;
        width: 600px;
    }
}
@media screen and (max-width: 900px) {
    header{
        background-position-x: left;
    }
    .description_container p{
        line-height: 1.3;
        font-size: 0.9em;
    }
    .first_image,.description_container{
        margin: 15px;
    }
    .galeria_section{
        padding: 0 0 20px;
    }
    .item_galeria img{
        height: 180px;
        width: 130px;
    }
    
    .profile_image img{
        width: 300px;
        height: 300px;
    }
}
@media screen and (max-width: 700px) {
    header{
        background-position-x: left;
    }
    h1{
        font-size: 2.5rem;
    }
    h2{
        font-size: 1.2rem;
    }
    .section_flex{
        flex-direction: column-reverse;
        align-items: center;
    }
    .description_container p{
        line-height: 1.1;
        font-size: 0.9em;
    }
    .first_image:nth-child(2) {
        margin: 15px;
    }
    .first_image,.description_container{
        margin: 20px;
        width: auto;
    }
    .galeria_section{
        padding: 0 0 20px;
    }
    .galeria_container{
        grid-template-columns: repeat(2, 1fr);
    }
    .item_galeria img{
        height: 200px;
        width: 150px;
    }
    video{
        margin: 0 auto;
        height: 200px;
        width: 350px;
    }
    .profile_image{
        margin: 15px;
    }
    .profile_image img{
        width: 270px;
        height: 270px;
    }
    #description_profile{
        margin: 15px;
    }
    .text_center{
        text-align: center;
    }
    .map{
        width: 100%;
        height: 300px;
    }
    .social_container a img{
        margin-top: 25px;
        max-width: 100px;
        max-height: 100px;
    }
    #instagram{
        max-width: 85px;
        max-height: 85px;
        margin-top: 30px;
    }
}

@keyframes FadeBottom {
	0% {
		opacity: 0;
		transform: translateY(50px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes rightBounce {
	0% {
		animation-timing-function: ease-in;
		opacity: 0;
		transform: translateX(40px);
	}

	15% {
		animation-timing-function: ease-out;
		opacity: 1;
		transform: translateX(0);
	}

	35% {
		animation-timing-function: ease-in;
		transform: translateX(40px);
	}

	55% {
		animation-timing-function: ease-out;
		transform: translateX(0);
	}

	75% {
		animation-timing-function: ease-in;
		transform: translateX(32px);
	}

	100% {
		animation-timing-function: ease-out;
		transform: translateX(0);
	}
}