/* 0) Asegúrate de resetear todo */
/* en estilo.css (no en slider.css) */


/* 1) Slider full-bleed dentro de cualquier wrapper */
.slider {
  /* ---- BREAKOUT ---- */
  position: relative;
  width: 100vw;  
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* tu estilo original */
  height: 80vh;
  overflow: hidden;
}



/* Contenedor de todas las slides */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Cada slide individual */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 90vh;
  opacity: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transition: opacity 1.2s ease-in-out, filter 1.2s ease-in-out;
  display: flex;           /* ensure centering still works */
  align-items: center;
  justify-content: center;
}

/* Pseudo-elemento para superponer un oscurecimiento a cada slide */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad para el oscurecimiento */
  z-index: 1;
}

/* Slide activo: se muestra y se le aplica animación de desvanecimiento */
.slide.active {
  opacity: 1;
  filter: blur(0);
  z-index: 2;              /* bring to front */
}

.slide:not(.active) {
  opacity: 0;
  filter: blur(8px);
  z-index: 1;
}

/* Contenedor del contenido de la slide (texto, botones, etc.) */
.slide-content {
  position: relative;
  z-index: 2; /* Asegura que esté sobre la capa oscura */
  text-align: center;
  color: white;
  padding: 0 5%;
}

.slide-content h2 {
  font-size: 48px;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 24px;
  margin-bottom: 20px;
}


/* Estilo del botón */
.btn {
  padding: 10px 20px;
  background-color: deepskyblue;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #007acc;
}

/* Flechas de navegación */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(48, 48, 48, 0.426);
  border-radius: 8px;
  color: white;
  font-size: 50px;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.nav.prev {
  left: 20px;
}

.nav.next {
  right: 20px;
}

/* Dots (indicadores de slides) */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}

/* Animación de desvanecimiento para las slides */
@keyframes slideIn {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/*/* Asignación de imágenes de fondo corregidas */
.slide1 {
  background-image: url('../images/pexels-kelly-1179532-2519392.jpg');
}

.slide2 {
  background-image: url('../images/pexels-137666-747079.jpg');
}

.slide3 {
  background-image: url('../images/pexels-carrie-johnson-444447-1499139.jpg');
}
