* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .brand { font-weight: 700; letter-spacing: -0.02em; }

.site-header nav a {
  color: inherit;
  text-decoration: none;
  margin-left: 1.5rem;
  opacity: 0.75;
}

.site-header nav a:hover { opacity: 1; }

.intro {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 0;
}

.intro h1 { font-size: 12vw; margin: 0; letter-spacing: -0.03em; }
.intro p { opacity: 0.6; margin-top: 0.5rem; }

.intro .credits {
  font-size: 0.75rem;
  opacity: 0.4;
  max-width: 80vw;
  margin-top: 1.5rem;
}

#gallery { position: relative; }

.frame {
  position: sticky;
  top: 0;
  height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1vh 1vw;
  opacity: 0;
  transform: scale(0.85) translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.frame.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.frame img,
.frame video {
  max-width: 118%;
  max-height: 118%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.tilt-left img,
.tilt-left video { transform: rotate(-3deg); }

.tilt-right img,
.tilt-right video { transform: rotate(3deg); }

/* Desktop: imágenes más grandes, pegadas a los costados */
@media (min-width: 768px) {
  .frame img,
  .frame video {
    max-width: 92vw;
    max-height: 92vh;
  }

  .tilt-left { justify-content: flex-start; padding-left: 3vw; }
  .tilt-right { justify-content: flex-end; padding-right: 3vw; }
}

#music-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

.store-grid figure {
  margin: 0;
}

.store-grid img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.store-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

@media (min-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 2rem;
    gap: 1.5rem;
  }
}
