.slider {
  position: relative;
  width: 100%;
  /* max-width: 900px; */
  margin: 0 auto;
  overflow: hidden;
  /* border-radius: 10px; */
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  /* background: #111; */
  background: white;
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 400ms ease;
  will-change: transform;
}

.slide {
  min-width: 100%;
  max-height: calc(100vh - 64px);
  /* padding: 40px; */
  color: #fff;
  text-align: center;
  font-size: 24px;
  user-select: none;
}

.slide img {
  width: 100%;
  max-height: calc(100vh - 64px);
  object-fit: cover;
  /* object-fit: contain; */
  display: block;
  /* evita espacio extra por inline-block */
}

/* Ejemplo de estilos de cada slide */
/* .slide:nth-child(1) { background: linear-gradient(135deg,#ff7a7a,#ffbdbd); color:#111; }
    .slide:nth-child(2) { background: linear-gradient(135deg,#7ad1ff,#bde9ff); color:#111; }
    .slide:nth-child(3) { background: linear-gradient(135deg,#8dffb0,#d6ffd9); color:#111; }
    .slide:nth-child(4) { background: linear-gradient(135deg,#cfa7ff,#efe0ff); color:#111; } */

/* Controles */
.control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.control:hover {
  background: rgba(0, 0, 0, 0.6);
}

.control.prev {
  left: 12px;
}

.control.next {
  right: 12px;
}

/* Indicadores simples (opcional) */
.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: rgba(255, 255, 255, 0.95);
}

/* Responsividad: reducir padding en pantallas pequeñas */
@media (max-width: 480px) {
  .slide {
    /* padding: 28px; */
    font-size: 18px;
  }

  .control {
    width: 38px;
    height: 38px;
  }
}