@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

main {
  width: 100%;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Menú */
.nav01 {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 10px 20px;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: top 0.3s ease-in-out;
}

.nav-item01 {
  color: #020202;
  padding: 0.5em 1em;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-item01::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: #FCC31C;
  transition: width 0.3s ease-in-out;
}

.nav-item01:hover {
  color: #000000;
  transform: scale(1.1);
}

.nav-item01:hover::after {
  width: 100%;
}

@media (max-width: 580px) {
  .nav01 {
    flex-direction: column;
    padding: 10px;
  }

  .nav-item01:hover {
    padding: 12px 0;
  }
}

/* Controles */
.nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 5;
  user-select: none;
}

.nav .btn {
  background-color: #229b92;
  color: white;
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav .btn:hover {
  background-color:#FCC31C;
  transform: scale(1.2); /* Aumenta el tamaño del botón al pasar el cursor */
}

/* Slider */
.slider {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
  height: 100vh; /* Ocupa el 100% de la altura de la pantalla */
}

.item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
  opacity: 1;
}


/* Primer cuento (completo) */
.item:nth-child(1),
.item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

/* Siguiente preview pequeño */
.item:nth-child(3) {
  width: 180px;
  height: 120px;
  right: 20px;
  bottom: 20px;
  top: auto;
  left: auto;
  transform: none;
  opacity: 0.9;
  z-index: 10;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Ocultar más allá del preview */
.item:nth-child(4),
.item:nth-child(5),
.item:nth-child(6) {
  left: 100%;
  opacity: 0;
}

.content {
  width: min(30vw, 400px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: none;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo negro con opacidad */
  padding: 20px;
  border-radius: 15px;
}

.content .title {
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #FCC31C; /* Color dorado para el título */
}

.content .description {
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  font-size: 0.8rem;
}

.content button {
  background-color: #229b92;
  color: white;
  border: 2px solid white;
  border-radius: 0.25rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.content button:hover {
  background-color: #F8746f;
  transform: scale(1.1); /* Efecto de aumento en el botón */
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}
@media (max-width: 768px) {
  .item {
    background-size: cover; /* Asegura que la imagen cubra todo el contenedor */
    height: 80%; /* Ajusta la altura para pantallas pequeñas */
  }

  .slider {
    height: 70vh; /* Ajusta la altura del carrusel en pantallas pequeñas */
  }

  .content {
    width: 80%;
    left: 10%;
    font-size: 0.8rem;
  }
}
.main {
  overflow: hidden;
  height: 100vh;
}
