@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Syne:wght@700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-bunker-dark: #07080b;
  --bg-bunker-card: rgba(13, 16, 25, 0.85);
  --gold-primary: #f5d77f;
  --gold-secondary: #d4af37;
  --gold-dark: #8a6d2b;
  --gold-glow: rgba(212, 175, 55, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-glass: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-bunker-dark);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #07080b;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f5d77f, #d4af37, #8a6d2b);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #fef08a;
}

/* FONDO CONTINUO PARA TODA LA PÁGINA (PANTALLA COMPLETA) */
.site-master-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(180deg, rgba(7, 8, 11, 0.82) 0%, rgba(7, 8, 11, 0.65) 45%, rgba(7, 8, 11, 0.9) 85%, #07080b 100%),
    radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.14) 0%, transparent 60%),
    url('../assets/bunker_hero_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Capas Dinámicas de Fondo para Gorras (Crossfade Cinematográfico) */
.site-caps-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  pointer-events: none;
}

.site-caps-bg.active {
  opacity: 1;
}



/* Canvas de Partículas Superpuestas en toda la pantalla */
#bunker-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Tipografía */
.font-syne {
  font-family: 'Syne', sans-serif;
}

.font-mono-tech {
  font-family: 'Space Grotesk', monospace;
}

/* Textos Metálicos con Brillo de Oro */
.text-gold-gradient {
  background: linear-gradient(135deg, #fff7d6 0%, #f5d77f 30%, #d4af37 70%, #9a782c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.45));
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #fff3c9 0%, #f5d77f 30%, #d4af37 70%, #9a782c 100%);
}

.glow-card-gold {
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.22), 0 20px 45px -10px rgba(0, 0, 0, 0.85);
}

/* Glassmorphism Refinado */
.glass-panel {
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
}

.glass-card {
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

/* TARJETAS DE PRODUCTO DE ALTO IMPACTO (100% Clickeables y Estables) */
.product-card {
  position: relative;
  background: rgba(13, 16, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.22s ease-out, border-color 0.22s ease-out, box-shadow 0.22s ease-out;
  cursor: pointer;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.25);
}

/* Tarjeta Insignia del Hero (Compacta & Proporcionada) */
.hero-product-card {
  max-width: 310px !important;
  padding: 0.875rem !important;
}

.hero-product-card .product-img-box {
  margin-bottom: 0.65rem;
}

@media (max-width: 640px) {
  .hero-product-card {
    max-width: 285px !important;
    padding: 0.75rem !important;
  }
}

/* Contenedor de Imagen de Producto */
.product-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.875rem;
  overflow: hidden;
  background-color: #030407;
  margin-bottom: 1rem;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.06);
}

/* Botón Shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 60%
  );
  transform: rotate(35deg) translateY(-100%);
  transition: transform 0.7s ease;
  pointer-events: none !important;
}
.btn-shimmer:hover::before {
  transform: rotate(35deg) translateY(100%);
}

/* Todos los botones son clickeables */
button, a, input, select, textarea {
  cursor: pointer;
  pointer-events: auto !important;
}

/* CARRITO LATERAL (DRAWER) CON MÁXIMA PRIORIDAD */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex !important;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.active .drawer-panel {
  transform: translateX(0) !important;
}

/* MODALES DE ESPECIFICACIONES Y CHECKOUT CON MÁXIMO Z-INDEX */
.bunker-modal {
  position: fixed;
  inset: 0;
  z-index: 100001 !important;
  background-color: rgba(3, 4, 7, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.bunker-modal.open {
  display: flex !important;
}

.bunker-modal-card {
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toast */
.toast-notice {
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Animación de Parpadeo Neón para "STORE" */
@keyframes storeNeonBlink {
  0%, 100% {
    opacity: 1;
    color: #fbbf24 !important;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.95), 0 0 28px rgba(245, 158, 11, 0.6), 0 0 42px rgba(217, 119, 6, 0.35);
    transform: scale(1);
  }
  50% {
    opacity: 0.18;
    color: #d97706 !important;
    text-shadow: none;
    transform: scale(0.96);
  }
}

.store-badge-blink {
  display: inline-block !important;
  color: #fbbf24 !important;
  animation: storeNeonBlink 1.4s ease-in-out infinite !important;
  will-change: opacity, transform, text-shadow;
}

/* Lightbox HD Image Rendering & Smooth Zoom */
#lightbox-main-img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

/* ==========================================================================
   INSTAGRAM LUXURY BUTTON & ICON (BÚNKER 360° HIGH-END AESTHETIC)
   ========================================================================== */
.instagram-luxury-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.instagram-luxury-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22) 0%, rgba(225, 48, 108, 0.18) 35%, rgba(139, 92, 246, 0.12) 60%, transparent 75%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s ease;
  transform: scale(0.85);
  pointer-events-none;
}

.instagram-luxury-btn:hover {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.3), 0 0 40px rgba(225, 48, 108, 0.22);
  transform: translateY(-1px);
}

.instagram-luxury-btn:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* Floating Luxury Instagram Button */
.instagram-float-btn {
  background: linear-gradient(135deg, #0d101d 0%, #171126 50%, #07080b 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85), 0 0 20px rgba(225, 48, 108, 0.3), inset 0 0 12px rgba(251, 191, 36, 0.2);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.instagram-float-btn:hover {
  border-color: #fbbf24;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95), 0 0 35px rgba(225, 48, 108, 0.6), 0 0 30px rgba(251, 191, 36, 0.5), inset 0 0 18px rgba(251, 191, 36, 0.35);
  transform: scale(1.1) translateY(-2px);
}

@keyframes instaPulseAura {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85), 0 0 18px rgba(225, 48, 108, 0.35), 0 0 25px rgba(251, 191, 36, 0.25);
  }
  50% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.95), 0 0 30px rgba(225, 48, 108, 0.6), 0 0 40px rgba(251, 191, 36, 0.45);
  }
}

.instagram-float-btn {
  animation: instaPulseAura 3.2s ease-in-out infinite;
}

/* ==========================================================================
   VAULT VIP COMMAND ACCESS (BÚNKER 360° ADMIN BARRIER)
   ========================================================================== */
.vault-barrier {
  background: radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.12) 0%, rgba(13, 16, 24, 0.92) 42%, #050608 100%);
  position: relative;
  overflow: hidden;
}

.vault-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

.vault-card {
  position: relative;
  background: linear-gradient(165deg, rgba(20, 24, 38, 0.92) 0%, rgba(10, 13, 22, 0.97) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(245, 158, 11, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 28px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vault-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  opacity: 0.85;
}

/* Tactical Corner Brackets */
.tactical-corner-tl, .tactical-corner-tr, .tactical-corner-bl, .tactical-corner-br {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.tactical-corner-tl {
  top: 10px; left: 10px;
  border-top: 2px solid #fbbf24;
  border-left: 2px solid #fbbf24;
  border-top-left-radius: 6px;
}
.tactical-corner-tr {
  top: 10px; right: 10px;
  border-top: 2px solid #fbbf24;
  border-right: 2px solid #fbbf24;
  border-top-right-radius: 6px;
}
.tactical-corner-bl {
  bottom: 10px; left: 10px;
  border-bottom: 2px solid #fbbf24;
  border-left: 2px solid #fbbf24;
  border-bottom-left-radius: 6px;
}
.tactical-corner-br {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid #fbbf24;
  border-right: 2px solid #fbbf24;
  border-bottom-right-radius: 6px;
}

/* Biometric Scanner Laser Beam */
@keyframes laserScan {
  0% {
    top: 6%;
    opacity: 0.15;
  }
  50% {
    top: 86%;
    opacity: 1;
    filter: drop-shadow(0 0 6px #fbbf24);
  }
  100% {
    top: 6%;
    opacity: 0.15;
  }
}

.vault-laser-beam {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, #ffffff, #fbbf24, transparent);
  box-shadow: 0 0 10px #fbbf24, 0 0 20px rgba(245, 158, 11, 0.9);
  animation: laserScan 2.6s ease-in-out infinite;
  pointer-events: none;
}

/* Radar rotation */
@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.vault-radar-spin {
  animation: radarSpin 24s linear infinite;
  transform-origin: center;
}

/* Segmented PIN Cells */
.vault-pin-cell {
  width: 54px;
  height: 58px;
  border-radius: 14px;
  background: rgba(13, 16, 26, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 24px;
  font-weight: 900;
  color: #fbbf24;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.vault-pin-cell.active {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35), inset 0 0 8px rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

.vault-pin-cell.filled {
  border-color: rgba(251, 191, 36, 0.8);
  color: #fff;
  text-shadow: 0 0 12px #fbbf24;
}

.vault-pin-cell.error {
  border-color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.12) !important;
  color: #f43f5e !important;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.45) !important;
}

.vault-pin-cell.success {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

/* Keypad Buttons */
.vault-key-btn {
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.165, 0.84, 0.44, 1);
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.vault-key-btn:hover {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.16) 0%, rgba(251, 191, 36, 0.04) 100%);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 14px rgba(245, 158, 11, 0.22);
}

.vault-key-btn:active {
  transform: scale(0.92);
  background: rgba(251, 191, 36, 0.25);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.vault-key-btn.action-btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.vault-key-btn.action-btn:hover {
  color: #f8fafc;
}

/* Master Gold Action Button */
.vault-master-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  color: #08090d;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 10px 25px -4px rgba(245, 158, 11, 0.45),
    0 0 18px rgba(251, 191, 36, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
  transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 16px;
  cursor: pointer;
}

.vault-master-btn:hover {
  background: linear-gradient(135deg, #fffbeb 0%, #fbbf24 50%, #ea580c 100%);
  box-shadow: 
    0 14px 30px -4px rgba(245, 158, 11, 0.6),
    0 0 25px rgba(251, 191, 36, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-1.5px);
}

.vault-master-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Shake Animation for incorrect PIN */
@keyframes vaultShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-9px); }
  40%, 80% { transform: translateX(9px); }
}
.vault-shake-anim {
  animation: vaultShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ==========================================================================
   PLAYLIST MANAGER & MULTI-TRACK CONTINUOUS SYSTEM
   ========================================================================== */
.playlist-track-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.22s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.playlist-track-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(251, 191, 36, 0.35);
  transform: translateX(2px);
}

.playlist-track-row.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(20, 24, 38, 0.85) 100%);
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15), inset 0 0 10px rgba(245, 158, 11, 0.05);
}

.playlist-track-row.active .track-num-badge {
  background: #fbbf24;
  color: #07080b;
  font-weight: 900;
}

.bunker-playlist-chip {
  animation: fadeInWidget 0.3s ease-out;
}

@keyframes fadeInWidget {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   BÚNKER 360° RHYTHM-LOCKED KINETIC TYPOGRAPHY VISUALIZER
   ========================================================================== */
#hero-title {
  transform-origin: left center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
}

#hero-title .hero-line {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#hero-title-aura {
  pointer-events: none;
  transform-origin: center center;
  z-index: -1;
}

/* ==========================================================================
   SUPRESIÓN TOTAL DE DISTINTIVOS EXTERNOS (NETLIFY HUD / BADGES)
   ========================================================================== */
#nl-hud-frame,
iframe[id^="nl-hud"],
iframe[title*="Netlify" i],
iframe[src*="netlify" i],
.nl-wrap,
.nl-card,
.nl-badge,
#nl-badge,
[data-netlify-site-id] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  clip: rect(0, 0, 0, 0) !important;
}

