* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #050505;
  color: #ededed;
  overflow-x: hidden;
  touch-action: manipulation;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism para Navbar */
.navbar-glass {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Tarjetas Bento Glass */
.bento-card {
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
  .bento-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.85);
    transform: translateY(-3px);
  }
}

/* ANIMACIONES SUAVES DE ENTRADA Y SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* MODAL LIGHTBOX FLUIDO */
#lightbox-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

#lightbox-modal.modal-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#lightbox-img {
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-modal.modal-open #lightbox-img {
  transform: scale(1);
}

/* Ecualizador Animado */
.eq-bar {
  width: 3px;
  background-color: #1DB954;
  border-radius: 2px;
  animation: bounce 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 18px; animation-delay: 0.35s; }
.eq-bar:nth-child(3) { height: 7px;  animation-delay: 0.55s; }
.eq-bar:nth-child(4) { height: 15px; animation-delay: 0.2s; }

@keyframes bounce {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1.15); }
}

.eq-paused .eq-bar {
  animation: none;
  height: 3px !important;
  background-color: #555;
}

/* Scrollbar Minimalista */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}