:root {
  --bg: #02020a;
  --bg-soft: #050515;
  --fg: #f5f5f5;
  --fg-muted: #9090a5;
  --accent: #ff5caa;
  --border-soft: #272738;
  --radius-lg: 18px;
  --transition: 220ms ease;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: #02020a; /* 👈 evita borde blanco arriba/abajo en móvil */
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #181826 0, #02020a 45%);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-ready {
  opacity: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================
   PRELOADER
   ========================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at top, #181826 0, #02020a 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.preloader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.preloader-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 92, 170, 0.55), transparent 60%);
  filter: blur(18px);
  opacity: 0.9;
}

.preloader-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 2, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.9);
  animation: preloader-pulse 2.2s ease-in-out infinite;
  overflow: hidden;
}

.preloader-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.preloader-logo {
  position: relative;
  width: 72px;
  height: auto;
  opacity: 0.96;
}

.preloader-text {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

@keyframes preloader-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 92, 170, 0);
  }
  45% {
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(255, 92, 170, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 92, 170, 0);
  }
}

/* ==========================
   HEADER (igual al resto del sitio)
   ========================== */

.ag-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.7rem 0;
  background: #02020a;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.ag-header.navbar--scrolled {
  background: rgba(2, 2, 10, 0.97);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

.ag-header-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.ag-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ag-header-logo img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.ag-header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ag-header-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
  position: relative;
  transition: opacity 0.2s ease;
}

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

.ag-header-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.18s ease;
}

.ag-header-nav a:hover::after {
  width: 100%;
}

/* ==========================
   MAIN / LAYOUT ARTISTA
   ========================== */

main {
  flex: 1;
  background: linear-gradient(to bottom, rgba(2, 2, 10, 0) 0, #02020a 15%, #050515 100%);
}

.dj-section {
  padding-top: 6rem;   /* espacio por el header fijo */
  padding-bottom: 3rem;
}

.dj-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* ==========================
   GALERÍA / SLIDER
   ========================== */

.dj-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 92, 170, 0.18), transparent 60%),
    #050515;
  padding: 0.7rem 0.7rem 1.2rem;
  overflow: hidden;
}

.dj-gallery-inner {
  display: flex;
  width: 100%;
  transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dj-slide {
  flex: 0 0 100%;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #111120;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  display: block;
}

.dj-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flechas */

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(5, 5, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #f5f5f5;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition),
    border-color var(--transition),
    opacity var(--transition);
  opacity: 0.9;
}

.gallery-nav:hover {
  background: rgba(10, 10, 25, 1);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.04);
}

.gallery-nav--prev {
  left: 0.9rem;
}

.gallery-nav--next {
  right: 0.9rem;
}

/* Hint + dots */

.dj-gallery-hint {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.gallery-dots {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
  opacity: 0.7;
}

.gallery-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
  opacity: 1;
}

/* ==========================
   INFO ARTISTA
   ========================== */

.dj-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dj-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.dj-name {
  margin: 0;
}

.artist-logo {
  height: 40px;
  width: auto;
  opacity: 0.98;
  display: inline-block;
}

.dj-meta {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.dj-tags {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #c2c2f1;
}

.dj-description {
  font-size: 0.95rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}

.dj-description p {
  margin-bottom: 0.7rem;
}

.dj-note {
  font-size: 0.8rem;
  color: #77779a;
  margin-top: 0.4rem;
}

/* ==========================
   SPOTIFY / YOUTUBE
   ========================== */

.spotify-section {
  padding-bottom: 3.5rem;
}

.spotify-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.spotify-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: 0.8rem;
}

.spotify-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8);
}

.spotify-embed iframe {
  width: 100%;
  border: 0;
  height: 380px;
}

/* ==========================
   FOOTER
   ========================== */

.footer {
  padding: 2rem 0 2.5rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.footer-logo {
  width: 45px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 900px) {
  .dj-grid {
    grid-template-columns: minmax(0, 1fr); /* galería arriba, info abajo */
  }

  .dj-section {
    padding-top: 5.5rem;
  }
}

@media (max-width: 768px) {
  .dj-section {
    padding-top: 5.3rem;
  }

  .dj-gallery {
    margin-bottom: 1.5rem;
  }

  .dj-slide {
    aspect-ratio: 3 / 4;
  }

  .spotify-embed iframe {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .ag-header-nav {
    gap: 1.2rem;
  }

  .ag-header-logo img {
    height: 26px;
  }

  .container {
    padding: 0 1.25rem;
  }
}
