/*=============================================
SLIDE GENERAL
=============================================*/
#slide {
  position: relative;
  width: 100%;
  max-width: 1200px; 
  margin: auto;
  overflow: hidden;
  box-sizing: border-box;
}

#slide ul {
  display: flex;
  padding: 0;
  margin: 0;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

#slide ul li {
  flex: 0 0 100%;
  list-style: none;
  overflow: hidden;
}

#slide ul li a {
  display: block;       
  width: 100%;
  height: 100%;
}

#slide ul li a img.slide-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}



/*=============================================
FLECHAS
=============================================*/
#slide .flechas {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: white;
  cursor: pointer;
  z-index: 10;
  background: rgba(0,0,0,0.3);
  padding: 10px 15px;
  border-radius: 50%;
  transition: background 0.3s;
  opacity: 1; 
}

#retroceder { left: 10px; }
#avanzar { right: 10px; }

#slide .flechas:hover {
  background: rgba(0,0,0,0.6); 
}

/*=============================================
PAGINACIÓN
=============================================*/
#paginacion {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
  z-index: 5;
}

#paginacion li {
  display: inline-block;
  margin: 0 3px;
  cursor: pointer;
  opacity: 0.4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
}

#paginacion li.active {
  opacity: 1;
}

/*=============================================
BOTÓN MOSTRAR/OCULTAR SLIDE
=============================================*/
#btnSlide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 8px;
  font-size: 8px;
  background-color: black;
  color: white;
  border: none;
  cursor: pointer;
  min-width: 30px;
  height: 18px;
  margin: 5px 0;
  gap: 4px;
}

#btnSlide i.fa { font-size: 12px; }
#btnSlide:hover { background-color: #222; transform: scale(1.05); }

/*=============================================
RESPONSIVE
=============================================*/
@media (max-width: 1200px) {
  #slide { max-width: 100%; }
}

@media (max-width: 992px) {
  #slide ul li img.slide-img {
    max-height: 250px; 
  }
}

@media (max-width: 768px) {
  #slide ul li img.slide-img {
    max-height: 200px; 
  }
}

@media (max-width: 576px) {
  #slide ul li img.slide-img {
    max-height: 150px; 
  }
}
