/* Custom Premium CSS Enhancements */

/* Boxed Layout (Centrar contenido y dejar laterales) */
html {
  background-color: #e5e7eb; /* Color de fondo sutil para los laterales en modo claro */
}

[data-theme="dark"] html {
  background-color: #0f0f0f; /* Color de fondo sutil para los laterales en modo oscuro */
}

body {
  max-width: 1440px;
  margin: 0 auto;
  background-color: #ffffff; /* Fondo principal de la web */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05); /* Sombra elegante para separar la caja del fondo */
  position: relative;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background-color: #1a1a1a;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Ensure the hero video stays inside the boxed layout */
.hero-video {
  max-width: 1440px;
  left: 50%;
  transform: translateX(-50%);
}

/* Smooth Transitions for Cards */
.frente-card, .accesorio-card, .galeria-item {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  will-change: transform, box-shadow;
}

/* Hover Effects for Product Cards */
.frente-card:hover, .accesorio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .frente-card:hover, 
[data-theme="dark"] .accesorio-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Gallery Item Hover Focus */
.galeria-item {
  overflow: hidden;
}
.galeria-item img {
  transition: transform 0.6s ease;
}
.galeria-item:hover img {
  transform: scale(1.05);
}

/* Premium Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(178, 2, 2, 0.3);
}

/* Button Shine Effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Ghost Button Hover Enhancement */
.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
[data-theme="dark"] .btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Step Process Animation Enhancement */
.paso:hover .paso-num {
  background-color: var(--accent, #b20202);
  color: white;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Stats Hover */
.hero-stat:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
