.main_container {
  display: grid;
  place-items: center;
}

.servicios__services{
  font-size: 3em;
  padding-bottom: 30px;
}

.gallery {
  --size: 100px;
  display: grid;
  grid-template-columns: repeat(6, var(--size));
  grid-auto-rows: var(--size);
  margin-bottom: var(--size);
  place-items: start center;
  gap: 5px;
  
  &:has(:hover) img:not(:hover),
  &:has(:focus) img:not(:focus){
    filter: brightness(0.5) contrast(0.5);
    
  }

  & img {
    object-fit: cover;
    width: calc(var(--size) * 2);
    height: calc(var(--size) * 2);
    clip-path: path("M90,10 C100,0 100,0 110,10 190,90 190,90 190,90 200,100 200,100 190,110 190,110 110,190 110,190 100,200 100,200 90,190 90,190 10,110 10,110 0,100 0,100 10,90Z");
    transition: clip-path 0.25s, filter 0.75s;
    grid-column: auto / span 2;
    border-radius: 5px;

    &:nth-child(5n - 1) { 
      grid-column: 2 / span 2 
    }

    &:hover,
    &:focus {
      clip-path: path("M0,0 C0,0 200,0 200,0 200,0 200,100 200,100 200,100 200,200 200,200 200,200 100,200 100,200 100,200 100,200 0,200 0,200 0,100 0,100 0,100 0,100 0,100Z");
      z-index: 1;
      transition: clip-path 0.25s, filter 0.25s;
    }
    
    &:focus {
      outline: 1px dashed black;
      outline-offset: -5px;
    }
  }
}

.services__container{
  display: flex; /* Usa un contenedor flexible */
  width: 100%; 
  max-width: 1200px;
}

.services__information__1{
  flex: 1; /* Haz que ambos hijos tengan el mismo tamaño flexible */
  box-sizing: border-box;
  padding: 2em;
   
}

.services__information__2{
  flex: 2; /* Haz que ambos hijos tengan el mismo tamaño flexible */
  box-sizing: border-box;
  padding: 2em;
   
}

.contenedor-imagen {
  max-width: auto; /* Ajusta el ancho máximo según tus necesidades */
  height: 150px;
  overflow: hidden; /* Oculta la parte superior e inferior de la imagen que se sobresale */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.contenedor-imagen > img{
  width: 100%;
  height: 100hv
}



.services__information__tittle{
  font-size: 30px;
  padding-top: 20px;
}


.services__information__paragraph{
  padding-top: 20px;
  font-size: 15px;
  overflow: hidden; /* Evita que el texto sobresalga del contenedor */
  word-wrap: break-word; /* Permite dividir palabras largas si es necesario */

}

.services__information__paragraph__2{
  
  padding-top: 20px;
  font-size: 22px;
  overflow: hidden; /* Evita que el texto sobresalga del contenedor */
  word-wrap: break-word; /* Permite dividir palabras largas si es necesario */


}

.services__container__icons{
  display: flex;
  flex-direction: column;
  padding-top: 25px;
  gap: 1em;

}

.services__icons{
  display: flex;
  align-items: center; 
  gap: 1em;
}

.services__icons > i{
  color: #0E4F88;
}




@media screen and (max-width: 800px) {
  .services__container {
      flex-direction: column; /* Cambia la dirección a columna en pantallas más pequeñas */
  }

  .servicios__services{
    font-size: 2em;
  }

  .gallery {
    --size: 50px; /* Ajusta el tamaño según tus necesidades */
    display: grid;
    grid-template-columns: repeat(6, var(--size));
    grid-auto-rows: var(--size);
    margin-bottom: var(--size);
    place-items: start center;
    gap: 5px;
    
    &:has(:hover) img:not(:hover),
    &:has(:focus) img:not(:focus){
      filter: brightness(0.5) contrast(0.5);
    }
  
    & img {
      object-fit: cover;
      width: calc(var(--size) * 2);
      height: calc(var(--size) * 2);
      clip-path: path("M45,5 C50,0 50,0 55,5 95,45 95,45 95,45 100,50 100,50 95,55 95,55 55,95 55,95 50,100 50,100 45,95 45,95 5,55 5,55 0,50 0,50 5,45Z");
      transition: clip-path 0.25s, filter 0.75s;
      grid-column: auto / span 2;
      border-radius: 5px;
  
      &:nth-child(5n - 1) { 
        grid-column: 2 / span 2 
      }
  
      &:hover,
      &:focus {
        clip-path: path("M0,0 C0,0 100,0 100,0 100,0 100,50 100,50 100,50 100,100 100,100 100,100 50,100 50,100 50,100 50,100 0,100 0,100 0,50 0,50 0,50 0,50 0,50Z");
        z-index: 1;
        transition: clip-path 0.25s, filter 0.25s;
      }
      
      &:focus {
        outline: 1px dashed black;
        outline-offset: -5px;
      }
    }
  }
  
  

}