body {
  font-family: Poppins;
  background-color: #000;
  color: #eee;
  margin: 0;
  font-size: 12px;
  overflow: hidden;
  height: 100dvh;
}

.carrusel h2,
.carrusel p {
  margin: 10px 0;
}

.carrusel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
}

.carrusel .lista .item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}

.carrusel .lista .item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.carrusel .lista .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carrusel .lista .item .contenedor {
  position: absolute;
  top: 10%;
  width: 1140px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 5px 10px #0004;
}

.carrusel .lista .contenedor .autor,
.carrusel .lista .item .contenedor .titulo,
.carrusel .lista .item .contenedor .tema,
.carrusel .lista .item .contenedor .des,
.carrusel .lista .item .contenedor .botones {
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
  animation: none;
}

.carrusel .lista .item .contenedor .autor {
  font-weight: bold;
  letter-spacing: 10px;
  margin-top: 10px;
}

.carrusel .lista .item .contenedor .titulo,
.carrusel .lista .item .contenedor .tema {
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3em;
}

.carrusel .lista .contenedor .tema {
  color: #7b61ff;
}

.carrusel .lista .item .contenedor .botones {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  gap: 5px;
  margin-top: 20px;
}


.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background-color: #7120e9;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.btn:hover {
  background-color: #5b18b8;
}

/* THUMBNAIL */
.thumbnail {
  position: absolute;
  bottom: 15%;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}

.thumbnail .item {
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}

.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.thumbnail .item .contenedor {
  color: #fff;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}

.thumbnail .item .contenedor .titulo {
  font-weight: bold;
}

/* FLECHAS */
.flechas {
  position: absolute;
  top: 70%;
  right: 52%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 25px;
}

.flechas button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee4;
  border: none;
  color: #fff;
  font-family: monospace;
  font-weight: bold;
  transition: .5s;
  cursor: pointer;
}

.flechas button:hover {
  background-color: #fff;
  color: #000;
}

/* ANIMACIONES */
.carrusel .lista .item:nth-child(1) {
  z-index: 1;
}

.carrusel .lista .item:nth-child(1) .contenedor .autor,
.carrusel .lista .item:nth-child(1) .contenedor .titulo,
.carrusel .lista .item:nth-child(1) .contenedor .tema,
.carrusel .lista .item:nth-child(1) .contenedor .des,
.carrusel .lista .item:nth-child(1) .contenedor .botones {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: mostrarContenido .4s ease-out 1 forwards;
}

@keyframes mostrarContenido {
  from {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}

.carrusel .lista .item:nth-child(1) .contenedor .autor {
  animation-delay: 0.3s;
}

.carrusel .lista .item:nth-child(1) .contenedor .titulo {
  animation-delay: 0.45s;
}

.carrusel .lista .item:nth-child(1) .contenedor .tema {
  animation-delay: 0.6s;
}

.carrusel .lista .item:nth-child(1) .contenedor .des {
  animation-delay: 0.75s;
}

.carrusel .lista .item:nth-child(1) .contenedor .botones {
  animation-delay: 0.9s;
}

.carrusel.next .lista .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: MostrarImagen .5s linear 1 forwards;
}

@keyframes MostrarImagen {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.carrusel.next .thumbnail .item:nth-last-child(1) {
  width: 0;
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}

@keyframes showThumbnail {
  to {
    width: 150px;
  }
}

.carrusel.next .thumbnail {
  transform: translateX(150px);
  animation: transformThumbnail .5s linear 1 forwards;
}

@keyframes transformThumbnail {
  to {
    transform: translateX(0);
  }
}

.carrusel.prev .lista .item:nth-child(2) {
  z-index: 2;
}

.carrusel.prev .lista .item:nth-child(2) img {
  position: absolute;
  bottom: 0;
  left: 0;
  animation: outImage 0.5s linear 1 forwards;
}

@keyframes outImage {
  to {
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
    width: 150px;
    height: 220px;
  }
}

.carrusel.prev .thumbnail .item:nth-child(1) {
  width: 0;
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.carrusel.prev .lista .item:nth-child(2) .autor,
.carrusel.prev .lista .item:nth-child(2) .titulo,
.carrusel.prev .lista .item:nth-child(2) .tema,
.carrusel.prev .lista .item:nth-child(2) .des,
.carrusel.prev .lista .item:nth-child(2) .botones {
  animation: contentOut 1.5s linear 1 forwards;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

.carrusel.next .flechas button,
.carrusel.prev .flechas button {
  pointer-events: none;
}

.time {
  width: 0%;
  height: 5px;
  background-color: #f1683a;
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
}

.carrusel.next .time,
.carrusel.prev .time {
  width: 100%;
  animation: timeRunning 2s linear 1 forwards;
}

@keyframes timeRunning {
  to {
    width: 0;
  }
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
  .carrusel .lista .item .contenedor {
    padding-right: 10%;
    top: 15%;
  }

  .carrusel .lista .contenedor .titulo,
  .carrusel .lista .contenedor .tema {
    font-size: 2.5em;
  }

  .carrusel .lista .contenedor .des {
    font-size: 0.9em;
  }

  .flechas {
    top: 70%;
    right: 60%;
    width: auto;
  }

  .thumbnail {
    flex-wrap: wrap;
    bottom: 10%;
    gap: 10px;
  }
}

@media screen and (max-width: 768px) {


  .carrusel {
    top: 50px;
  }

  .carrusel .lista .item .contenedor {
    padding-right: 0;
    top: 10%;
    text-align: center;
  }

  .carrusel .lista .contenedor .titulo,
  .carrusel .lista .contenedor .tema {
    font-size: 2em;
  }

  .carrusel .lista .contenedor .des {
    font-size: 0.85em;
    padding: 0 10px;
  }

  .carrusel .lista .contenedor .botones {
    justify-content: center;
    grid-template-columns: 130px;
  }

  .thumbnail {
    justify-content: center;
    flex-wrap: wrap;
  }

  .thumbnail .item {
    width: 120px;
    height: 180px;
  }

  .flechas {
    top: 65%;
    right: 70%;
    transform: translateX(50%);
  }
}

@media screen and (max-width: 480px) {

  .autor {
    margin-top: -40px;
  }

  .carrusel .lista .contenedor .autor {
    font-size: 0.5rem;
    letter-spacing: 3px;
  }

  .carrusel .lista .item .contenedor .titulo {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
  }

  .carrusel .lista .item .contenedor .tema {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }

  .carrusel .lista .item .contenedor .des {
    font-size: 0.75rem;
  }

  .carrusel .lista .item .contenedor .botones {
    justify-content: center;
    grid-template-columns: 130px;
  }

  .thumbnail .item {
    width: 100px;
    height: 140px;
    margin-bottom: 40px;
  }

  .btn {
    padding: 5px 10px;
    font-size: 0.75rem;

  }

  .flechas {
    top: 95%;
    right: 70%;
    transform: translateX(50%);
  }

  .thumbnail {
    flex-wrap: wrap;
    bottom: 5%;
    gap: 10px;
  }

  .flechas button {
    width: 30px;
    height: 30px;
    font-size: 18px;
    margin-top: -250px;
  }
}