:root {
  --neon-red: #ff1744;
}

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: #000;
  color: #fff;
  cursor: url('https://cdn.custom-cursor.com/db/cursor/32/Pixel_Sword_Cursor.png'), auto;
}

/* Ajustamos la altura para que sea más alta, tipo hero completo */
.hero-slider {
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #000;
}

.slider {
  display: flex;
  width: 100%;
  height: 80vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  box-sizing: border-box;
}

.slide {
  min-width: 100%;
  height: 80vh;
  display: none;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 4rem 5%; /* menos padding horizontal para más espacio */
  box-sizing: border-box;
}

.slide.active {
  display: flex;
}

.slide-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  gap: 3rem;
  box-sizing: border-box;
}

.slide-text {
  flex: 1;
  max-width: 45%; /* limitamos ancho para dejar espacio a la imagen */
  animation: slideInLeft 1s ease forwards;
}

.slide-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #0ff, 0 0 20px #00f;
}

.slide-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: slideInLeft 1.5s ease forwards;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-red), #ff5252);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: 40px;
  box-shadow: 0 0 15px var(--neon-red);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideInLeft 2s ease forwards;
  color: #fff;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5252, var(--neon-red));
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--neon-red);
}

.slide-image {
  flex: 1;
  max-width: 55%; /* mayor espacio para imagen */
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-product {
  width: 80%;
  max-width: 600px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 15px var(--neon-red)) drop-shadow(0 0 30px #ff1744aa);
  animation:
    slideInRight 1.2s ease forwards,
    floatProduct 4s ease-in-out infinite,
    neonPulse 3s ease-in-out infinite;
  animation-delay: 0s, 0.5s;
  animation-fill-mode: forwards;
}

/* Controles */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--neon-red);
  color: var(--neon-red);
  font-size: 2.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-control:hover {
  background: rgba(255, 23, 68, 0.2);
  box-shadow: 0 0 25px var(--neon-red);
}

.slider-control.prev {
  left: 2rem;
}

.slider-control.next {
  right: 2rem;
}

/* Animaciones */
@keyframes floatProduct {
  0%, 100% {
    transform: translateY(0) scale(1.02);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes neonPulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px var(--neon-red)) drop-shadow(0 0 20px #ff1744aa);
  }
  50% {
    filter: drop-shadow(0 0 25px var(--neon-red)) drop-shadow(0 0 45px #ff1744cc);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .slide-inner {
    flex-direction: column;
    text-align: center;
  }

  .slide-text {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .slide-image {
    max-width: 100%;
    justify-content: center;
  }

  .slide-product {
    width: 350px;
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .slide-text h1 {
    font-size: 2rem;
  }

  .slide-text p {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
  }

  .slide-product {
    width: 250px;
  }
}

@media (max-width: 600px) {
  .slider-control {
    font-size: 1.5rem;
    padding: 0.3rem;
    width: 40px;
    height: 40px;
    line-height: 1;
    border-radius: 50%;
    background: rgba(255, 23, 68, 0.2);
    border: 1px solid var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
  }

  .slider-control.prev {
    left: 0.8rem;
    right: auto;
  }

  .slider-control.next {
    right: 0.8rem;
    left: auto;
  }
}
