.embla-pdfs {
  margin: auto;
  --slide-height: 100%;
  --slide-spacing: 1rem;
  --slide-size: 30%;
  width: 80%;
  height: 15%;
  border: 2px solid black;
  border-radius: 8px;
}
.embla__viewport-pdfs {
  height: 80%;
  overflow: hidden;
}
.embla__container-pdfs {
  height: 100%;
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
}
.embla__slide-pdfs {
  height: 100%;
  transform: translate3d(0, 0, 0);
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
  display: flex;
  align-items: center;
  justify-content: center;
}

.embla__slide-pdfs a {
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: auto;
}

.embla__slide-pdfs a img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
}

.embla__slide-pdfs a p {
  font-size: 0.7vw;
}

.embla__controls-pdfs {
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  height: 20%;
}
.embla__buttons-pdfs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  align-items: center;
}
.embla__button-pdfs {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  width: 3.6rem;
  height: 100%;
  z-index: 1;
  border-radius: 50%;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
}
.embla__button-pdfs:disabled {
  color: var(--detail-high-contrast);
}
.embla__button__svg-pdfs {
  width: 35%;
  height: 35%;
  color: black;
}

.embla {
  max-width: 90%;
  margin: auto;
  --slide-height: 60vh;
  --slide-spacing: 1rem;
  --slide-size: 100%;
  position: relative;
}
.embla__viewport {
  overflow: hidden;
}
.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
}
.embla__slide {
  transform: translate3d(0, 0, 0);
  flex: 0 0 var(--slide-size);
  min-width: 0;
  max-width: 100%;
  padding-left: var(--slide-spacing);
  position: relative;
}
.embla__slide__img {
  border-radius: 1.8rem;
  display: block;
  height: var(--slide-height);
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.embla__slide:hover .embla__slide__img {
  transform: scale(1.02);
}
.embla__slide .image-overlay {
  position: absolute;
  bottom: 0;
  left: var(--slide-spacing);
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem 1rem 1rem;
  border-radius: 0 0 1.8rem 1.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.embla__slide:hover .image-overlay {
  opacity: 1;
}
.embla__slide .image-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.embla__slide .image-description {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}
.embla__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0;
  height: 0;
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.embla:hover .embla__controls {
  opacity: 1;
}
.embla__buttons {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.embla__button--prev {
  margin-left: 1rem;
}
.embla__button--next {
  margin-right: 1rem;
}

/* Media queries para ajustar márgenes según tamaño de pantalla */
@media (max-width: 480px) {
  .embla__button--prev {
    margin-left: 0.5rem;
  }
  .embla__button--next {
    margin-right: 0.5rem;
  }
}

@media (min-width: 768px) {
  .embla__button--prev {
    margin-left: 2rem;
  }
  .embla__button--next {
    margin-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .embla__button--prev {
    margin-left: 3rem;
  }
  .embla__button--next {
    margin-right: 3rem;
  }
}

/* Ajustes específicos para orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .embla__button--prev {
    margin-left: 1.5rem;
  }
  .embla__button--next {
    margin-right: 1.5rem;
  }
}

.embla__button {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  margin: 0;
  width: 3.6rem;
  height: 3.6rem;
  z-index: 1;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
}
.embla__button:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 1;
}
.embla__button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: rgba(200, 200, 200, 0.3);
}
.embla__button:disabled:hover {
  transform: none;
  background-color: rgba(200, 200, 200, 0.3);
  opacity: 0.3;
}
.embla__button__svg {
  width: 35%;
  height: 35%;
}

.embla__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
  padding: 0.5rem;
}

.embla__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.embla__dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.embla__dot--selected {
  background-color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.embla__parallax {
  border-radius: 1.8rem;
  height: 100%;
  overflow: hidden;
}
.embla__parallax__layer {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}
.embla__parallax__img {
  max-width: none;
  flex: 0 0 calc(115% + (var(--slide-spacing) * 2));
  object-fit: cover;
}
