
/* Slider contenedor */
.slider {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  touch-action: pan-y;
}

/* Slides con fade */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Cada slide se superpone y se desvanece */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}

/* Slide activo visible */
.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Overlay de degradado */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
}

/* Texto del slide */
.caption {
  position: absolute;
  bottom: 30px;
  left: 40px;
  color: white;
  z-index: 2;
}

  .caption h1 {
    font-size: 2.5rem;
  }

  .caption p {
    font-size: 1.2rem;
  }
/* Animación de entrada para texto */
.caption h1,
.caption p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Activar animación cuando el slide está activo */
.slide.active .caption h1,
.slide.active .caption p {
  opacity: 1;
  transform: translateY(0);
}

/* Botones de navegación */
.control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.control.prev { left: 20px; }
.control.next { right: 20px; }

.control:hover {
  background: rgba(0,0,0,0.6);
}

/* Testimonios */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
}

.testimonial-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  gap: 2rem;
}

.testimonial-track > div {
  flex: 0 0 calc(33.333% - 1.33rem);
  box-sizing: border-box;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.testimonial-control.prev { left: 10px; }
.testimonial-control.next { right: 10px; }

.testimonial-control:hover {
  background: rgba(0,0,0,0.6);
}

#imagen-modal {
  aspect-ratio: auto;
}

/* Responsivo */
@media (max-width: 1024px) {
  .testimonial-track > div {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 640px) {
  .testimonial-track > div {
    flex: 0 0 100%;
  }
  .slider {
    height: 200px;
  }
  .caption h1 { font-size: 0.9rem; }
  .caption p { font-size: 0.5rem; }
  .control { font-size: 1rem; padding: 8px; }
  
}
/* Fuente base */
body {
  font-family: 'Public Sans', sans-serif;
}
