/* ========================================
   SECCIÓN GALERÍA
======================================== */

.section-galeria {
  width: 100%;

  padding: 4rem var(--page-padding-mobile);

  background-color: var(--color6);
}

/* ========================================
   CONTENEDOR GENERAL
======================================== */

.container-galeria {
  width: 100%;
  max-width: var(--max-width);

  margin: 0 auto;
}

/* ========================================
   TEXTO
======================================== */

.galeria-texto {
  max-width: 760px;

  margin: 0 auto 3rem;

  text-align: center;
}

.section-galeria h5 {
  margin-bottom: 1rem;

  color: var(--color4);

  font-size: 0.9rem;
  font-weight: 700;

  text-align: center;
}

.section-galeria h1 {
  margin-bottom: 1.5rem;

  color: var(--color5);

  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;

  text-align: center;
}

.section-galeria p {
  max-width: 680px;

  margin: 0 auto;

  color: var(--color5);

  font-size: 1rem;
  line-height: 1.65;

  text-align: center;
}

/* ========================================
   SLIDER
======================================== */

.galeria-slider {
  position: relative;

  width: 100%;
}

/* ========================================
   VIEWPORT
======================================== */

.galeria-viewport {
  width: 100%;

  overflow: hidden;

  border-radius: 8px;
}

/* ========================================
   TRACK
======================================== */

.galeria-track {
  display: flex;

  gap: 1rem;

  transition: transform 0.45s ease;
}

/* ========================================
   SLIDE
======================================== */

.galeria-slide {
  flex: 0 0 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  border-radius: 8px;
}

.galeria-slide img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.galeria-slide:hover img {
  transform: scale(1.03);
}

/* ========================================
   FLECHAS
======================================== */

.galeria-btn {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  z-index: 5;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgba(65, 42, 29, 0.88);

  border-radius: 50%;

  color: white;

  font-family: Arial, sans-serif;

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.galeria-btn:hover {
  background-color: var(--color4);
}

.galeria-prev {
  left: 0.8rem;
}

.galeria-next {
  right: 0.8rem;
}

.galeria-btn:disabled {
  opacity: 0.3;

  cursor: default;
}

/* ========================================
   INDICADORES MOBILE
======================================== */

.galeria-indicadores {
  margin-top: 1.5rem;

  display: flex;
  justify-content: center;

  gap: 0.5rem;
}

.galeria-indicador {
  width: 8px;
  height: 8px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background-color: rgba(65, 42, 29, 0.3);
}

.galeria-indicador.activo {
  background-color: var(--color4);
}

/* ========================================
   TABLET
======================================== */

@media screen and (min-width: 768px) {
  .section-galeria {
    padding: 5rem var(--page-padding-tablet);
  }

  .galeria-texto {
    margin-bottom: 3.5rem;
  }

  .section-galeria h5 {
    font-size: 1rem;
  }

  .section-galeria h1 {
    font-size: 2.8rem;
  }

  .section-galeria p {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .galeria-track {
    gap: 1.25rem;
  }

  .galeria-slide {
    flex: 0 0 calc((100% - 1.25rem) / 2);
  }

  .galeria-btn {
    width: 46px;
    height: 46px;
  }
}

/* ========================================
   DESKTOP
======================================== */
@media screen and (min-width: 1024px) {

  .section-galeria {
    min-height: calc(100svh - var(--header-desktop));

    padding:
      4.5rem
      var(--page-padding-desktop);

    display: flex;
    align-items: center;
  }


  .container-galeria {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


  .galeria-texto {
    max-width: 820px;

    margin: 0 auto 3rem;
  }


  .section-galeria h1 {
    font-size: clamp(2.8rem, 3.6vw, 3.6rem);
  }


  .section-galeria p {
    max-width: 760px;
  }


  .galeria-track {
    gap: 1.5rem;
  }


  .galeria-slide {
    flex:
      0
      0
      calc((100% - 4.5rem) / 4);

    aspect-ratio: 4 / 3;
  }


  .galeria-btn {
    width: 48px;
    height: 48px;
  }


  .galeria-prev {
    left: -1.5rem;
  }


  .galeria-next {
    right: -1.5rem;
  }


  .galeria-indicadores {
    display: none;
  }

}
