@charset "utf-8";

/* CONTENEDOR PRINCIPAL (ANTES era body) */
.carrousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  padding: 40px 0;
}

/* CONTENEDOR DEL CARRUSEL */
.carrousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    perspective: 1000px;
}

/* RESTO IGUAL */
.carrousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carrousel-item {
    position: absolute;
    width: 60%;
    left: 20%;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.carrousel-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Estados */
.carrousel-item.active {
    transform: translateX(0) translateZ(0px) scale(1);
    opacity: 1;
    z-index: 10;
}

.carrousel-item.prev {
    transform: translateX(-40%) translateZ(-100px) scale(0.8);
    opacity: 0.6;
    z-index: 5;
}

.carrousel-item.next {
    transform: translateX(40%) translateZ(-100px) scale(0.8);
    opacity: 0.6;
    z-index: 5;
}

.carrousel-item.hidden {
    opacity: 0;
    transform: translateZ(-200px);
}

/* Hover */
.carrousel-item a img {
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.carrousel-item a img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Botones */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  z-index: 100;
}

/*.prev { left: 10px; }
.next { right: 10px; } */
.nav-btn.prev {left: 15px; }
.nav-btn.next {right: 15px; }

.nav-btn:hover {
  background-color: rgba(0,0,0,0.8);
}