/* banner.css */

#banner {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background-color: #f5f3f0; /* fondo claro detrás del banner */
  display: flex;
  justify-content: center;
}

.slider {
  position: relative;
  width: 90%; /* más estrecho que el 100% */
  height: 600px; /* altura aumentada para mejor encuadre */
  max-width: 1200px;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Flechas */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  z-index: 10;
}

.prev {
  left: 1rem;
}

.next {
  right: 1rem;
}

.fade {
  animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
