/* =========================================================
   QUALITUR - Slider de reemplazo del banner Flash (fotos.swf)
   Tamaño calcado al <object> original: 656 x 261 px
   ========================================================= */

.qt-slider {
  position: relative;
  width: 656px;
  height: 261px;
  max-width: 100%;
  overflow: hidden;
  background: #2b2b2b; /* fallback mientras cargan las imágenes */
  font-family: Arial, Helvetica, sans-serif;
}

.qt-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.qt-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
}

.qt-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

/* Placeholder visible mientras no se han subido las fotos reales */
.qt-slide__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #f2f2f2;
  background: linear-gradient(135deg, #9aa832 0%, #6f7a20 100%);
  text-align: center;
  padding: 0 20px;
}

.qt-slide__placeholder strong {
  font-size: 16px;
  letter-spacing: 0.5px;
}

.qt-slide__placeholder span {
  font-size: 12px;
  opacity: 0.85;
}

/* Leyenda / texto sobre la foto (opcional, editable por slide) */
.qt-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}

/* Flechas de navegación */
.qt-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #6f7a20;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.qt-slider__arrow:hover {
  background: #cbdb2a;
  color: #fff;
}

.qt-slider__arrow--prev { left: 12px; }
.qt-slider__arrow--next { right: 12px; }

/* Puntos indicadores */
.qt-slider__dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.qt-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  padding: 0;
}

.qt-slider__dot.is-active {
  background: #cbdb2a;
}

@media (max-width: 680px) {
  .qt-slider { height: auto; aspect-ratio: 656 / 261; }
  .qt-slider__arrow { width: 30px; height: 30px; font-size: 15px; }
}
