* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  aspect-ratio: 4/5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slides-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  aspect-ratio: 4/5;
  /* height: 350px; */
  /* Altura base para móviles */
}

.slide {
  min-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.slide picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide header {
  background-color: transparent;
  margin-bottom: 15px;
  z-index: 11;
}

/* Estilos de tipografía y botones para móviles */
.slide h2 {
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
  font-weight: 700;
}

.slide p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.leerBtn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.leerBtn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.next-btn {
  right: 20px;
}

.prev-btn {
  left: 20px;
}

/* --- */

/* Desktop-first: Estilos para pantallas mayores a 768px */
@media (min-width: 769px) {
  /* .slider {
    max-width: 1200px;
  } */
  .slider,
  .slides-container {
    aspect-ratio: 2/0.7;
  }

  .slide h2 {
    font-size: 3rem;
  }

  .slide p {
    font-size: 1.5rem;
  }

  .leerBtn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .prev-btn,
  .next-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}
