.section_pag_places{
  position: relative;
  padding: 3rem;
  margin: 3rem 0;

  display: grid;
  justify-content: center;
  align-items: center;
  place-items: center;
}
.section_pag_places h1{
  position: relative;
  font-size: clamp(20px, 2vw, 50px);
  font-weight: bold;
  letter-spacing: 0.5vw;
  text-align: center;
  color: #000;
  -webkit-background-clip: text;
  padding: 2vw;
  text-transform: uppercase;
}
.categories_pag_places{
  position: relative;
  min-width: 100%;
  margin: 10px 0 20px 0;
  padding: 1px;
}
.categories_pag_places ul{
  position: relative;
  list-style: none;
  margin: 0;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
}
.categories_pag_places ul li{
  cursor: pointer;
  color: #000;
}
.img_galery_pag_places{
  position: relative;
  width: 100%;
  margin: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}
/*  ------------------------------------------------------------------------------------*/
/* Asegura que el zoom no se recorte */
.galery_card_pag_places{

 }

/* Imagen base */
.galery_card_pag_places img{

}



/* Si tienes un overlay encima, ocultarlo cuando la imagen está ampliada */


/* --------------------------------------------------------------------------------------- */
.galery_card_pag_places{
  position: relative;
  min-width: 200px;
  max-width: 300px;
  gap: 20px;
  aspect-ratio: 2 / 1; /* Mantiene la proporción cuadrada */
  position: relative;
  overflow: visible;

  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;

  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.8);
  }
.galery_card_pag_places img{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit:cover;
  margin: auto;
  transition: transform 0.4s ease-in-out;

  display: block;
  transform-origin: center center;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: zoom-in;
}
/* Estado ampliado (50% más grande) */
.galery_card_pag_places img.zoomed{
  transform: scale(1.5);
  position: relative;      /* para que el z-index surta efecto */
  z-index: 1000;
  box-shadow: 0 15px 40px rgba(0,0,0,.4);
  cursor: zoom-out;
}
.overlay_pag_places{ transition: opacity .25s ease; }
.galery_card_pag_places img.zoomed + .overlay_pag_places{
  opacity: 0; visibility: hidden;
}
.galery_card_pag_places .overlay_pag_places{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all .4s ease-in-out;
  background: rgba(100, 100, 100, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* Compatibilidad con Safari */
}
.card_info_pag_places{
  position: absolute;
  width: 100%;
  top: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: none;
  transition: all .6s ease-in-out;
}

.card_info_pag_places p{
  position: relative;
  color: yellow;
  font-size: clamp(15px, 1.5vw, 40px);


  font-size: x-large;
  text-align: center;
}
.galery_card_pag_places:hover .card_info_pag_places{
  opacity: 1;
  top:40%;
  pointer-events: unset;
}
.galery_card_pag_places:active .card_info_pag_places{
  opacity: 1;
  top:40%;
  pointer-events: unset;
}
.galery_card_pag_places:hover .overlay_pag_places{
  animation: fadeOpacity 10s ease forwards;
}
@keyframes fadeOpacity {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
 .active{
  border-bottom: 1px solid red;
}
.galery_card_pag_places.hide{
  display: none;
}
.galery_card_pag_places.show{
  animation: fadeIn 5s ease;
}
@keyframes fadeIn {
  0%{
    opacity: 0%;
  }
  100%{
    opacity: 100%;
  }
}
