* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

.slider {
  height: 90vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slides {
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 1.2s ease-in-out,
    transform 1.8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}


/* EFECTOS */
.effect-fade {
  animation: fade 1.5s ease;
}

.effect-zoom {
  animation: zoom 8s ease forwards;
}

.effect-slide {
  animation: slideIn 1.2s ease;
}

/* CAPTION */
.caption {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #ffffff;
  max-width: 500px;
}

.caption h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 10px;
}

.caption p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #fff;
}

/* CONTROLES */
.controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.controls button {
  z-index: 999;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 6px;
}

.controls button:hover {
  background: rgba(0,0,0,0.8);
}

/*----------------------------------------------*/
/* FLECHAS LATERALES */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 90px;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(6px);
  transition: 
    background 0.4s ease,
    transform 0.4s ease,
    opacity 0.4s ease;
  opacity: 0.6;
}

/* POSICIÓN */
.nav-arrow.left {
  left: 0;
  border-radius: 0 12px 12px 0;
}

.nav-arrow.right {
  right: 0;
  border-radius: 12px 0 0 12px;
}

/* HOVER ELEGANTE */
.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

/* OCULTAR PARCIALMENTE */
.slider:hover .nav-arrow {
  opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-arrow {
    width: 45px;
    height: 70px;
    font-size: 1.8rem;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .caption {
    left: 5%;
    bottom: 15%;
  }
}

/* ANIMACIONES */
@keyframes fade {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoom {
  from {transform: scale(1);}
  to {transform: scale(1.1);}
}

@keyframes slideIn {
  from {transform: translateX(100px); opacity: 0;}
  to {transform: translateX(0); opacity: 1;}
}
