/* CONTENEDOR DEL SLIDER */
.sliderpro-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

.sliderpro-container,
.sliderpro,
.slidepro img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.sliderpro {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

/* SLIDE INDIVIDUAL */
.slidepro {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
  height: 500px; /* altura base desktop */
  overflow: hidden;
}

/* Overlay oscuro */
.slidepro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slidepro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* TEXTO (caption) */
.captionpro {
  position: absolute;
  top: 50%;
  left: 10%; /* Desktop → alineado izquierda */
  transform: translateY(-50%);
  max-width: 600px;
  z-index: 2;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.8);
}

/* Fondo opcional detrás del texto */
.captionpro .overlaypro {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
}

/* Estilos del título */
.captionpro h2 {
  color: #ffffff;
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin-bottom: 1rem;
}

/* Estilos del texto */
.captionpro p {
  color: #ffffff;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}

/* Botón llamativo */
.btnpro {
  background: linear-gradient(135deg,  #8bc34a 0%, #689f38 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}

.btnpro:hover {
  background: linear-gradient(135deg, #18a3fa, #004aad);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Botones de navegación */
.navigationpro {
  position: absolute;
  width: 100%;
  top: 45%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* Puntos de navegación */
.dotspro {
  text-align: center;
  margin-top: 10px;
}

.dotspro span {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dotspro .active {
  background: #004aad;
}

/* 📱 Responsividad */
@media (max-width: 768px) {
  .slidepro {
    height: 50vh; /* altura adaptativa */
  }

  .slidepro img {
    height: 100%;
  }

  .captionpro {
    top: 50%;
    left: 50%; /* centrado horizontal */
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: none;
  }

  .captionpro h2 {
    font-size: 1.6rem;
  }

  .captionpro p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .slidepro {
    height: 40vh;
  }

  .slidepro img {
    height: 100%;
  }

  .captionpro h2 {
    font-size: 1.3rem;
  }

  .captionpro p {
    font-size: 0.9rem;
  }
}

/* 🖥 Ajuste específico desktop grande */
@media (min-width: 1200px) {
  .captionpro h2 {
    font-size: 2.5rem;
  }

  .captionpro p {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 2rem;
  }
}
