.container-gallery { 
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
    align-items: center;
  padding-bottom: 5rem;
}

.container-gallery__title__section {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.container-gallery__title h2 {
  position: relative;
  padding-left: 48px; 
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.container-gallery__title h3 {
  position: relative;
  padding-left: 48px; 
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.container-gallery__title h2::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 50%;
  width: 1px;
  height: 45px;
  background-color: #000;
  transform: translateY(-50%);
}
.gallery-carousel__header{
  margin-bottom: 2rem;
}
.container-gallery__title h2::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: #F65058;
  transform: translateY(-50%);
}



.gallery-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 1400px;
  padding: 20px;
}


.gallery-card {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.gallery-card:hover{
    text-decoration: underline;
    color: #fff;
}

.gallery-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; 
  overflow: hidden;
}

.gallery-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  transition: transform 0.4s ease; 
}
.gallery-card:hover .gallery-card__image img {
  transform: scale(1.08); 
}

.gallery-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #42B38E;
  padding: 1rem;
}

.gallery-card__content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
}

.gallery-card__content h3:hover{
    text-decoration: underline;
    color: #fff;
}


.gallery-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: .5rem;
}

.gallery-pagination a,
.gallery-pagination span {
  padding: .5rem .75rem;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}

.gallery-pagination .current {
  background: #42B38E;
  color: #fff;
  border-color: #42B38E;
}
.gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.gallery-load-more button {
  padding: .75rem 2rem;
  background: #42B38E;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.gallery-load-more button:disabled {
  opacity: .6;
  cursor: not-allowed;
}


/* single gallery*/
.single-galeria{
  padding: 2rem 0;
}

.gallery-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
}

.gallery-hero__inner {
  width: 100%;
  position: relative;
}

.gallery-hero__image {
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.gallery-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🔑 */
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.gallery-hero__back {
  color: #fff !important;          /* quita azul por defecto */
  text-decoration: none !important;

  display: inline-flex;
  align-items: center;
  gap: .5rem;

  font-size: 1.1rem;               /* letra más grande */
  font-weight: 700;                /* bold */
}


.gallery-hero__title-wrapper {
  flex: 1;
  display: flex;
  align-items: center;  
}

.gallery-hero__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: center;
}


.gallery-hero__square {
  width: 18px;
  height: 18px;
  background: #F65058;
}

.gallery-hero__title h1 {
  font-size: 2.2rem;
  font-weight: 500;
  margin: 0;
}

.gallery-hero__social {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.75rem;
}

/* Botón */
.gallery-hero__social a {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.25s ease;
}

.gallery-hero__social .icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  color: #000;
  display: block;
  transition: color 0.25s ease, transform 0.25s ease;
}


.gallery-hero__social a:hover {
  background: #F65058;
}

.gallery-hero__social a:hover .icon {
  color: #fff;
}



.gallery-carousel-section {
  width: 80%;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 4rem;
  padding: 0 4rem;
  text-align: center;
}

.gallery-carousel__inner {
  width: 100%;

}
.slider-nav {
  margin-top: 20px;
  max-width: 60%;
  margin-inline: auto;
}

.slider-nav .slick-slide {
  opacity: 0.4;
  transform: scale(0.9);
  transition: all 0.3s ease;
  padding: 0 5px;
  cursor: pointer;
}

.slider-nav .slick-center {
  opacity: 1;
  transform: scale(1);
}

.slider-nav img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}


.gallery-slide {
  position: relative;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.gallery-slide__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85),
    rgba(0,0,0,0)
  );

  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  height: 5rem;
  display: flex;
  align-items: flex-end;
}

.gallery-carousel .slick-dots {
  bottom: -40px;
}

.gallery-carousel .slick-dots li button:before {
  font-size: 10px;
  color: #42B38E;
  opacity: 0.4;
}

.gallery-carousel .slick-dots li.slick-active button:before {
  opacity: 1;
  color: #42B38E;
}

.gallery-carousel {
  position: relative;
}

.gallery-carousel-section 
.gallery-carousel 
.slick-dots li.slick-active button:before {
  color: #42B38E;
  opacity: 1;
}
.gallery-carousel-section 
.gallery-carousel 
.slick-dots li button:before {
  color: #42B38E !important;
  opacity: 0.4;
}

.gallery-carousel .slick-prev,
.gallery-carousel .slick-next {
  width: 42px;
  height: 42px;
  z-index: 5;
    transition:
    transform 0.25s ease;
}

.gallery-carousel .slick-prev {
  left: -25px;   
}

.gallery-carousel .slick-next {
  right: -20px;   
  
}

.gallery-carousel .slick-prev:before,
.gallery-carousel .slick-next:before {
  font-size: 50px;  
  color: #42B38E;
  opacity: 1;
}

.gallery-carousel .slick-prev:hover,
.gallery-carousel .slick-next:hover {
  transform: translateY(-50%) scale(1.12);
}

@media (max-width: 1000px) {
  .gallery-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .slider-nav{
    max-width: 80%;
  }
  .gallery-carousel-section {
    padding: 0 1rem;
    width: 100%;
  }
  .slick-next::before,
  .slick-prev::before {
    display: none;
  }
  .gallery-cards {
    grid-template-columns: repeat(1, 1fr);
  }
  .gallery-hero__image {
    height: 220px;
  }

  .gallery-hero__title h1 {
    font-size: 1.5rem;
  }

  .gallery-hero__social {
    right: 1rem;
  }
  .single-galeria{
  padding: 0rem;
}


  /* single gallery*/
}