/* ==========================================================================
   PISTON QUARKS — Estilos enterprise (extraídos de code.html del ZIP Stitch)
   CSP-safe: sin style="" inline, sin <style> en HTML, sin directivas Tailwind.
   ========================================================================== */

/* Reset base */
html, body {
  margin: 0;
  padding: 0;
  background-color: #030712;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overscroll-behavior: none; }
::-webkit-scrollbar { display: none; }

/* Glass cards */
.glass-card {
  background: rgba(13, 27, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  background: rgba(16, 36, 62, 0.85);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 30px -5px rgba(0, 210, 255, 0.2);
  transform: translateY(-2px);
}

.glow-cyan {
  box-shadow: 0 0 40px -10px rgba(0, 210, 255, 0.4);
}

.glow-text {
  text-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

/* Spotlight superior — reducido para no tapar el texto */
.spotlight-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.12) 0%, rgba(3, 6, 12, 0) 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Nav links (reemplaza @apply de Tailwind) */
.nav-link {
  padding: 0.875rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  color: #94a3b8;
}
.nav-link-active {
  color: #67e8f9;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
  box-shadow: 0 0 20px -5px rgba(0, 210, 255, 0.4);
}
.nav-link-inactive {
  color: #94a3b8;
}
.nav-link-inactive:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}

/* CTA primary — alto contraste */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #030712;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 30px -5px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 0 40px -5px rgba(255, 255, 255, 0.6);
}

/* CTA ghost — alto contraste */
.cta-ghost {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #ffffff;
}
.cta-ghost:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
}

/* Botones adquirir — alto contraste */
.btn-adquirir {
  padding: 0.375rem 0.9375rem;
  border-radius: 0.5rem;
  background-color: #22d3ee;
  color: #030712;
  font-weight: 800;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px -5px rgba(34, 211, 238, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.5);
}
.btn-adquirir:hover {
  background-color: #67e8f9;
  transform: translateY(-2px);
  box-shadow: 0 0 30px -5px rgba(34, 211, 238, 0.8);
}
.btn-adquirir:active {
  transform: scale(0.98);
}

/* Botones de acción hero — blanco puro sobre fondo oscuro */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #030712;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 30px -5px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-hero:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 0 40px -5px rgba(255, 255, 255, 0.6);
}

/* Botón secundario hero — blanco translúcido sobre oscuro */
.btn-hero-sec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-hero-sec:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Cards de catálogo */
.card-item {
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-item:hover {
  border-color: rgba(0, 102, 255, 0.5);
}

/* Panel checkout */
.checkout-panel {
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(0, 102, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .checkout-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Animaciones de revelado al scroll (Intersection Observer)
   ========================================================================== */

/* Estado inicial: oculto */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Estado activo: visible */
.reveal-active,
.fade-up-active {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para aparición en conjunto */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hover suave en tarjetas */
.card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px -10px rgba(0, 210, 255, 0.25);
}

/* Hover en nav links */
.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Spotlight que sigue el cursor (opcional, ya en JS) */
.cursor-glow {
  position: fixed;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}