: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 bordes blancos 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;
  /* 👇 solo opacity, sin translateY */
  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 / HERO
   ========================== */

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

.artists-hero {
  padding: 6.5rem 0 2.5rem; /* espacio por header fijo */
  text-align: center;
}

.artists-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8f8fa8;
  margin-bottom: 0.75rem;
}

.artists-title {
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.artists-subtitle {
  max-width: 540px;
  margin: 0.5rem auto 0;
  color: #a0a0bb;
  font-size: 0.9rem;
}

/* ==========================
   GRID DE ARTISTAS
   ========================== */

.artists-section {
  padding: 2rem 0 4rem;
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

/* Card estilo “analog-a” */

.artist-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top, rgba(255, 92, 170, 0.22), transparent 60%),
    radial-gradient(circle at bottom, rgba(42, 212, 255, 0.18), transparent 60%),
    #050515;
  padding: 1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
  text-align: left;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    translate 220ms ease;
}

.artist-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.artist-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 92, 170, 0.7);
}

.artist-card:hover::before {
  opacity: 1;
}

/* estado visible para IntersectionObserver */
.artist-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.artist-card[data-delay] {
  transition-delay: var(--delay, 0ms);
}

/* Thumb vertical */

.artist-thumb {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #0a0a15;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.artist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 260ms ease;
}

.artist-card:hover .artist-thumb img {
  transform: scale(1.06);
}

.artist-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 40%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.artist-card-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.artist-name {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.artist-empty-msg {
  text-align: center;
  color: #9a9ac0;
  padding: 2rem 0;
  font-size: 0.9rem;
}

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

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  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: 1024px) {
  .artists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .artists-hero {
    padding: 6rem 0 2rem;
  }

  .artists-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-card {
    min-height: 540px;
  }

  .artist-thumb {
    aspect-ratio: 3 / 4;
  }
}

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

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

  .artists-title {
    font-size: 1.4rem;
    letter-spacing: 0.18em;
  }

  .container {
    padding: 0 1.25rem;
  }
}

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