/* === Preloader general === */
.preloader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111; /* color de fondo mientras carga */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Ocultar después de cargar */
.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* === Contenedor del pulpo === */
.pulpo-loader img {
  width: 120px; /* ajusta según tu logo */
  height: auto;
  animation: girarPulpo 2s linear infinite;
}

/* === Animación de giro === */
@keyframes girarPulpo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



/* === SLIDER 3D === */
/* === SLIDER 3D CON CSS PURO === */
.slider-3d {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfafa;
  
  perspective: 1200px;
  margin-top: 60px;
}

.slider-track {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  transform-style: preserve-3d;
  animation: rotate3D 16s infinite linear;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  transform-origin: center;

  transition: transform 1s ease, opacity 1s ease;
}

.slide img {
  width: 150%;
  height: 150%;
  object-fit: cover;
}

/* === Distribución de las imágenes en el espacio 3D === */
.slide:nth-child(1) {
  transform: translateX(-300px) translateZ(-200px) scale(0.8);
  opacity: 0.5;
}
.slide:nth-child(2) {
  transform: translateX(-150px) translateZ(-100px) scale(0.9);
  opacity: 0.7;
}
.slide:nth-child(3) {
  transform: translateX(0) translateZ(0) scale(1);
  opacity: 1;
  z-index: 2;
}
.slide:nth-child(4) {
  transform: translateX(150px) translateZ(-100px) scale(0.9);
  opacity: 0.7;
}
.slide:nth-child(5) {
  transform: translateX(300px) translateZ(-200px) scale(0.8);
  opacity: 0.5;
}



