/* ========================================
   BANNER 3D ANIMADO - ESTILOS
   ======================================== */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  overflow-x: hidden;
  position: relative;
}

/* Contenedor de figuras de fondo - Fuera del banner */
.background-shapes-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  transform-style: preserve-3d;
  z-index: 1;
  perspective: 1000px;
}

/* Figuras de fondo con menor opacidad */
.background-shape-3d {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.background-shape-3d:hover {
  opacity: 0.8;
}

/* Cilindro de fondo */
.background-shape-3d.cylinder {
  width: clamp(25px, 5vw, 50px);
  height: clamp(40px, 8vw, 80px);
  background: linear-gradient(135deg, #E67E22, #FF8C00);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
}

/* Cubo de fondo */
.background-shape-3d.cube {
  width: clamp(30px, 6vw, 60px);
  height: clamp(30px, 6vw, 60px);
  background: linear-gradient(135deg, #00BCD4, #17A2B8);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
}

/* Tubo de fondo */
.background-shape-3d.pipe {
  width: clamp(20px, 4vw, 40px);
  height: clamp(50px, 10vw, 100px);
  background: linear-gradient(135deg, #2C3E50, #34495e);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.4);
}

/* Esfera de fondo */
.background-shape-3d.sphere {
  width: clamp(28px, 5.5vw, 55px);
  height: clamp(28px, 5.5vw, 55px);
  background: radial-gradient(circle at 30% 30%, #FF8C00, #E67E22);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.4);
}

/* Banner horizontal animado */
.horizontal-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 650px;
  padding: 1rem;
}

.banner-wrapper {
  position: relative;
  width: min(90%, 1200px);
  height: min(80%, 700px);
  background: transparent;
  border: none;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

/* Contenedor de figuras 3D */
.shapes-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

/* Figuras 3D base */
.shape-3d {
  position: absolute;
  width: clamp(40px, 8vw, 80px);
  height: clamp(40px, 8vw, 80px);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Cilindro */
.shape-3d.cylinder {
  width: clamp(30px, 6vw, 60px);
  height: clamp(50px, 10vw, 100px);
  background: linear-gradient(135deg, #E67E22, #FF8C00);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(230, 126, 34, 0.6);
}

/* Cubo */
.shape-3d.cube {
  width: clamp(40px, 8vw, 80px);
  height: clamp(40px, 8vw, 80px);
  background: linear-gradient(135deg, #00BCD4, #17A2B8);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.6);
}

/* Tubo */
.shape-3d.pipe {
  width: clamp(25px, 5vw, 50px);
  height: clamp(60px, 12vw, 120px);
  background: linear-gradient(135deg, #2C3E50, #34495e);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.6);
}

/* Esfera */
.shape-3d.sphere {
  width: clamp(35px, 7vw, 70px);
  height: clamp(35px, 7vw, 70px);
  background: radial-gradient(circle at 30% 30%, #FF8C00, #E67E22);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.6);
}

/* Contenido del banner */
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  color: #000000;
  margin: 0;
  line-height: 1;
  text-shadow: none;
  letter-spacing: -0.02em;
}

.banner-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  font-weight: 400;
  color: #000000;
  margin: 1.5rem 0 0;
  letter-spacing: 0.05em;
  text-shadow: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .background-shapes-container {
    perspective: 800px;
  }
  
  .background-shape-3d.cylinder {
    width: clamp(22px, 4.5vw, 45px);
    height: clamp(35px, 7vw, 70px);
  }
  
  .background-shape-3d.cube {
    width: clamp(25px, 5vw, 50px);
    height: clamp(25px, 5vw, 50px);
  }
  
  .background-shape-3d.pipe {
    width: clamp(18px, 3.5vw, 35px);
    height: clamp(45px, 9vw, 90px);
  }
  
  .background-shape-3d.sphere {
    width: clamp(24px, 5vw, 48px);
    height: clamp(24px, 5vw, 48px);
  }
}

@media (max-width: 768px) {
  .horizontal-banner {
    padding: 0.5rem;
    height: 70vh;
    min-height: 500px;
  }
  
  .banner-wrapper {
    width: 95%;
    height: 90%;
    max-height: 600px;
  }
  
  .banner-content {
    padding: 0 1rem;
  }
  
  .banner-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  
  .banner-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.8rem);
  }
  
  .background-shapes-container {
    perspective: 600px;
  }
  
  .background-shape-3d.cylinder {
    width: 20px;
    height: 32px;
  }
  
  .background-shape-3d.cube {
    width: 22px;
    height: 22px;
  }
  
  .background-shape-3d.pipe {
    width: 16px;
    height: 40px;
  }
  
  .background-shape-3d.sphere {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .horizontal-banner {
    height: 60vh;
    min-height: 400px;
    padding: 0.25rem;
  }
  
  .banner-wrapper {
    width: 98%;
    height: 95%;
  }
  
  .banner-title {
    font-size: clamp(1.5rem, 9vw, 2.5rem);
  }
  
  .banner-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.4rem);
    margin: 1rem 0 0;
  }
}

/* Animaciones de entrada */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Asegurar que el contenido esté sobre las figuras de fondo */
section, nav, .nav {
  position: relative;
  z-index: 10;
}

.horizontal-banner {
  z-index: 5;
}
