/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--spacing-lg) 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,147,68,0.15) 0%, transparent 60%);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

/* Hero Text */
.hero-text h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

.hero-text .gold {
  color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .white {
  color: var(--text-white);
}

.hero-text p {
  font-size: var(--font-size-base);
  color: var(--text-gray);
  margin-bottom: var(--spacing-xl);
  max-width: 550px;
  line-height: 1.8;
}

/* Hero Button */
.btn-gold {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
  background-size: 200% 200%;
  color: var(--black-bg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  text-decoration: none;
  animation: shimmer 3s ease-in-out infinite;
  box-shadow: var(--shadow-gold);
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-gold:hover,
.btn-gold:focus {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(212,168,67,0.5);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Phone Group */
.phone-group {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 450px;
}

.phone-item {
  position: absolute;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 3px solid rgba(212,168,67,0.4);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212,168,67,0.2);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform-origin: center center;
  /* Fondo dorado cuando la imagen no carga */
  background: var(--product-bg, linear-gradient(135deg, #0d0d0d 0%, #2a1a00 60%, #0d0d0d 100%));
  background-size: cover;
  background-position: center;
}

.phone-item:hover {
  transform: translateY(-20px) scale(1.15) rotate(0deg) !important;
  z-index: 100 !important;
  box-shadow: 0 30px 80px rgba(212,168,67,0.4), 0 0 60px rgba(212,168,67,0.3);
  border-color: var(--gold-primary);
}

/* Estado activo/seleccionado */
.phone-item.active {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.3) !important;
  z-index: 200 !important;
  box-shadow: 0 40px 100px rgba(212,168,67,0.6), 0 0 80px rgba(212,168,67,0.4);
  border-color: var(--gold-primary);
  border-width: 4px;
}

/* Otros teléfonos cuando uno está activo */
.phone-group.has-active .phone-item:not(.active) {
  opacity: 0.3;
  transform: scale(0.8) !important;
  z-index: 1 !important;
}

/* Animación de pulso para el teléfono activo */
.phone-item.active::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--gold-primary);
  border-radius: var(--border-radius-lg);
  opacity: 0;
  animation: phonePulse 2s infinite;
}

@keyframes phonePulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.phone-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.phone-item:hover img {
  transform: scale(1.1);
}

/* Phone positions con datos originales */
.phone-1 {
  left: 0;
  top: 30%;
  width: 140px;
  height: 280px;
  transform: rotate(-15deg);
  z-index: 1;
  --original-left: 0;
  --original-top: 30%;
  --original-width: 140px;
  --original-height: 280px;
  --original-rotation: -15deg;
  --original-z: 1;
}

.phone-2 {
  left: 25%;
  top: 0;
  width: 150px;
  height: 300px;
  transform: rotate(-8deg);
  z-index: 2;
  --original-left: 25%;
  --original-top: 0;
  --original-width: 150px;
  --original-height: 300px;
  --original-rotation: -8deg;
  --original-z: 2;
}

.phone-3 {
  right: 25%;
  top: 10%;
  width: 150px;
  height: 300px;
  transform: rotate(8deg);
  z-index: 3;
  --original-right: 25%;
  --original-top: 10%;
  --original-width: 150px;
  --original-height: 300px;
  --original-rotation: 8deg;
  --original-z: 3;
}

.phone-4 {
  right: 0;
  top: 35%;
  width: 140px;
  height: 280px;
  transform: rotate(15deg);
  z-index: 1;
  --original-right: 0;
  --original-top: 35%;
  --original-width: 140px;
  --original-height: 280px;
  --original-rotation: 15deg;
  --original-z: 1;
}

/* Golden orbs */
.golden-orb {
  position: absolute;
  background: radial-gradient(circle, var(--gold-light), var(--gold-primary));
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(212,168,67,0.8);
  animation: float 6s ease-in-out infinite;
}

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

.orb-1 {
  width: 35px;
  height: 35px;
  bottom: 25%;
  left: 5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 25px;
  height: 25px;
  bottom: 15%;
  right: 5%;
  animation-delay: 2s;
}

.orb-3 {
  width: 20px;
  height: 20px;
  top: 5%;
  right: 15%;
  animation-delay: 4s;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    gap: var(--spacing-xl);
  }
  
  .hero-carousel {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }
  
  .hero-text p {
    margin: 0 auto var(--spacing-lg);
  }
  
  .hero-carousel {
    height: 400px;
    order: -1;
  }
  
  .phone-group {
    max-width: 350px;
    height: 320px;
  }
  
  .phone-1 { width: 100px; height: 200px; }
  .phone-2 { width: 110px; height: 220px; }
  .phone-3 { width: 110px; height: 220px; }
  .phone-4 { width: 100px; height: 200px; }
  
  /* Ajustar animaciones para móvil */
  .phone-item.active {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.2) !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px var(--spacing-md) 60px;
  }
  
  .phone-group {
    max-width: 280px;
    height: 280px;
  }
  
  .phone-1, .phone-4 {
    display: none;
  }
  
  .phone-2, .phone-3 {
    width: 90px;
    height: 180px;
  }
  
  .phone-item.active {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.1) !important;
  }
}
/* Carousel Controls */
.carousel-indicators {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-xs);
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,67,0.4);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.carousel-indicator.active,
.carousel-indicator:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: scale(1.2);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,67,0.3);
  background: rgba(0,0,0,0.5);
  color: var(--gold-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-normal);
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-nav:hover,
.carousel-nav:focus {
  background: rgba(212,168,67,0.2);
  border-color: var(--gold-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -25px;
}

.carousel-next {
  right: -25px;
}

/* Hide controls on mobile */
@media (max-width: 768px) {
  .carousel-nav {
    display: none;
  }
  
  .carousel-indicators {
    bottom: -30px;
  }
  
  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: opacity 0.3s ease;
  }
  
  .phone-item {
    transition: none;
  }
  
  .golden-orb {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .phone-item {
    border-width: 4px;
  }
  
  .carousel-indicator {
    border-width: 3px;
  }
}