/* =========================
   🎨 VARIABLES / RESET
========================= */
:root {
  --bg:#0b0b0e; --card:#131319; --ink:#e9e9ef; --muted:#a7a7b4; --acc:rgb(134, 3, 3);
}

* { box-sizing: border-box; }
html, body {
  margin:0; padding:0;
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.5px; color:var(--ink);
  scroll-behavior: smooth;
}

/* =========================
   🌌 FONDO R&B INTERACTIVO
========================= */
body {
  --x: calc(var(--posX, 0) * 1px);
  --y: calc(var(--posY, 0) * 1px);
  background-image:
    linear-gradient(115deg, rgb(134, 3, 3), rgb(0 0 0)),
    radial-gradient(90% 100% at calc(50% + var(--x)) calc(0% + var(--y)), rgb(214 191 163), rgb(60 40 30)),
    radial-gradient(100% 100% at calc(80% - var(--x)) calc(0% - var(--y)), rgb(122 74 31), rgb(43 0 0)),
    radial-gradient(150% 210% at calc(100% + var(--x)) calc(0% + var(--y)), rgb(75 15 15), rgb(0 0 0)),
    radial-gradient(100% 100% at calc(100% - var(--x)) calc(30% - var(--y)), rgb(214 191 163), rgb(43 0 0)),
    linear-gradient(60deg, rgb(43 0 0), rgb(60 40 30));
  background-blend-mode: overlay, overlay, difference, difference, difference, normal;
  background-attachment: fixed;
}

/* =========================
   🧭 LAYOUT / BASE UI
========================= */
a { color: inherit; text-decoration: none; }

.wrap { max-width:1100px; margin:0 auto; padding:24px; }

.site-header {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 8px 0;
}

/* Brand como enlace con logo */
.brand {
  .brand-logo {
  height: clamp(48px, 8vw, 72px);
  width: auto;
}

}
.brand-logo {
  height:48px; width:auto; display:block;
}
@media (max-width: 600px){
  .brand-logo { height:40px; }
}

.nav { display:flex; gap:10px; flex-wrap:wrap; }

/* Estilo clásico para botones no-uiverse (se mantiene para otros lugares) */
.pill { padding:8px 12px; border:1px solid #2a2a33; border-radius:999px; background:#15151c; cursor:pointer; }
.pill.accent { background:var(--acc); color:#fff; border-color:#6e4cff; }

.card {
  background:var(--card); border:1px solid #22222a; border-radius:20px;
  padding:20px; box-shadow:0 6px 24px rgb(0 0 0 / .25);
}

h1 {
  font-weight:700; font-size:clamp(36px, 6vw, 56px);
  line-height:1.05; text-transform:uppercase; letter-spacing:2px; margin:0 0 10px;
}
h2 { font-size:22px; margin:0 0 12px; }
p  { color:var(--muted); margin:0 0 12px; }

.btn { display:inline-flex; align-items:center; gap:8px; padding:12px 16px; border-radius:12px; background:#1b1b24; border:1px solid #2a2a33; cursor:pointer; }
.btn:hover { border-color:#3a3a47; transform:translateY(-1px); }
.btn.primary { background:var(--acc); border-color: rgb(134, 3, 3); color:white; font-weight:600; }

.grid { display:grid; gap:12px; }
.grid.cols-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }

.row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.tag { font-size:12px; border:1px solid #2a2a33; border-radius:999px; padding:4px 8px; color:var(--muted); }
.section { margin:28px 0; }
.hide { display:none; }

input[type=email], input[type=password], input[type=text]{
  width:100%; padding:12px 14px; border-radius:12px;
  border:1px solid #2a2a33; background:#12121a; color:var(--ink);
}
label { font-size:12px; color:var(--muted); }

.table { width:100%; border-collapse:collapse; font-size:14px; }
.table th, .table td { border-bottom:1px solid #252533; padding:10px; text-align:left; vertical-align:top; }

footer { margin:32px 0; color:#7b7b89; font-size:13px; text-align:center; }

/* =========================
   🦋 HERO (TEXTO IZQ / COVER DER)
========================= */
.hero { margin:32px 0; scroll-margin-top: 12px; }

.hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 640px) 1fr; /* izq fija, der fluida (móvil/tablet) */
  gap:28px;
  align-items:start;
}

.hero-left{ display:flex; flex-direction:column; gap:16px; }
#presave { scroll-margin-top: 80px; }
#presave-buttons { margin-top: 6px; }
#release-meta { margin-top: 2px; }

/* derecha (cover) */
.hero-art{
  align-self:start;
  display:flex; justify-content:center; align-items:center;
  padding:16px; border-radius:20px; background:rgba(0,0,0,.25);
  box-shadow:0 12px 30px rgba(0,0,0,.40); overflow:hidden;
}

/* wrapper cuadrado por defecto (móvil/tablet) */
.cover-wrap{
  width: clamp(260px, 32vw, 520px);
  aspect-ratio: 1 / 1;
  border-radius:16px; overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,.4);
}

/* imagen rellena sin deformarse */
.cover-img{
  width:100%; height:100%; display:block;
  object-fit:cover; object-position:50% 50%;
}

/* =========================
   📱 RESPONSIVE FIXES (evitar encimados)
========================= */
@media (max-width: 900px){
  .site-header { flex-direction: column; align-items:flex-start; gap:10px; }
  .nav { gap:8px; }

  .hero-grid{ grid-template-columns:1fr; }
  .hero-art { order: 0; }
  .hero-left { order: -1; }

  .cover-wrap{ width:min(88vw, 520px); margin:0 auto; }

  .social-cta .social-container {
    display:flex; flex-wrap:wrap; gap:8px;
  }
  .social-cta .social-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
    padding: 10px 12px;
    font-size: 14px;
  }

  #presave-buttons { margin-top: 10px; }
  #release-meta { margin-top: 4px; }
}

/* Parche por si quedó alguna regla vieja en otros CSS */
.hero img.cover, .hero-art .cover {
  height:auto !important; aspect-ratio:auto !important;
}

/* =========================
   💻 DESKTOP: 50/50 y alturas iguales
========================= */
@media (min-width: 901px){
  .hero-grid{
    grid-template-columns: 1fr 1fr;   /* mitad / mitad */
    align-items: stretch;             /* estira ambas columnas */
  }

  .hero-left,
  .hero-art,
  .hero-left.card,
  .hero-art.card{ height: 100%; }

  .cover-wrap{
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
    border-radius:16px; overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,.4);
  }
  .cover-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* =========================
   🎠 GALLERY / SLIDER
========================= */
.gallery-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.gallery-controls .pill{ padding:6px 10px; }

.slider{ padding:0; overflow:hidden; }
.slides{
  display:flex; gap:12px; overflow:auto; scroll-snap-type:x mandatory; padding:12px;
  border-radius:18px;
}
.slide{
  scroll-snap-align:center; flex:0 0 80%; max-width:80%;
  border-radius:14px; overflow:hidden; border:1px solid #22222a; background:#101018;
  box-shadow:0 8px 24px rgb(0 0 0 / .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.slide img{ width:100%; height:320px; object-fit:cover; display:block; }
.slide:hover{ transform:translateY(-3px); box-shadow:0 14px 34px rgb(0 0 0 / .45); }

@media (max-width:900px){
  .slide{ flex-basis:90%; max-width:90%; }
  .slide img{ height:240px; }
}

/* =========================
   ✨ BOTÓN PRE-SAVE / UIVERSE (compartido)
========================= */
.uiverse {
  --duration: 7s;
  --easing: linear;
  --c-color-1: rgba(0, 0, 0, 0.7);
  --c-color-2: #000000;
  --c-color-3: rgba(134, 3, 3, 0.7);
  --c-color-4: rgba(134, 3, 3, 0.7);
  --c-shadow: rgba(134, 3, 3, 0.7);
  --c-shadow-inset-top: rgba(134, 3, 3, 0.7);
  --c-shadow-inset-bottom: rgba(255, 250, 215, 0.8);
  --c-radial-inner: #FFB22C;
  --c-radial-outer: rgba(134, 3, 3, 0.7);
  --c-color: #fff;

  -webkit-tap-highlight-color: transparent;
  appearance: none; -webkit-appearance: none;
  outline: none;
  position: relative;
  cursor: pointer;
  border: none;
  display: inline-block; /* sirve para <a> y <button> */
  border-radius: 24px;
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--c-color);
  background: radial-gradient(circle, var(--c-radial-inner), var(--c-radial-outer) 80%);
  box-shadow: 0 0 14px var(--c-shadow);
  overflow: hidden;
}

.uiverse:before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 24px;
  box-shadow:
    inset 0 3px 12px var(--c-shadow-inset-top),
    inset 0 -3px 4px var(--c-shadow-inset-bottom);
}

.uiverse .wrapper {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  overflow: hidden;
  border-radius: 24px;
  min-width: 132px;
  padding: 12px 18px;
  position: relative;
}

.uiverse .wrapper span { display:inline-block; position:relative; z-index:1; }
.uiverse:hover { --duration: 1400ms; }

.uiverse .wrapper .circle {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  filter: blur(var(--blur, 8px));
  background: var(--background, transparent);
  transform: translate(var(--x, 0), var(--y, 0)) translateZ(0);
  animation: var(--animation, none) var(--duration) var(--easing) infinite;
}

/* colores / blur por grupo */
.uiverse .wrapper .circle.circle-1,
.uiverse .wrapper .circle.circle-9,
.uiverse .wrapper .circle.circle-10 { --background: var(--c-color-4); }
.uiverse .wrapper .circle.circle-3,
.uiverse .wrapper .circle.circle-4 { --background: var(--c-color-2); --blur: 14px; }
.uiverse .wrapper .circle.circle-5,
.uiverse .wrapper .circle.circle-6 { --background: var(--c-color-3); --blur: 16px; }
.uiverse .wrapper .circle.circle-2,
.uiverse .wrapper .circle.circle-7,
.uiverse .wrapper .circle.circle-8,
.uiverse .wrapper .circle.circle-11,
.uiverse .wrapper .circle.circle-12 { --background: var(--c-color-1); --blur: 12px; }

/* posiciones iniciales + animaciones */
.uiverse .wrapper .circle.circle-1  { --x: 0;   --y: -40px; --animation: circle-1; }
.uiverse .wrapper .circle.circle-2  { --x: 92px; --y: 8px;   --animation: circle-2; }
.uiverse .wrapper .circle.circle-3  { --x: -12px;--y: -12px; --animation: circle-3; }
.uiverse .wrapper .circle.circle-4  { --x: 80px; --y: -12px; --animation: circle-4; }
.uiverse .wrapper .circle.circle-5  { --x: 12px; --y: -4px;  --animation: circle-5; }
.uiverse .wrapper .circle.circle-6  { --x: 56px; --y: 16px;  --animation: circle-6; }
.uiverse .wrapper .circle.circle-7  { --x: 8px;  --y: 28px;  --animation: circle-7; }
.uiverse .wrapper .circle.circle-8  { --x: 28px; --y: -4px;  --animation: circle-8; }
.uiverse .wrapper .circle.circle-9  { --x: 20px; --y: -12px; --animation: circle-9; }
.uiverse .wrapper .circle.circle-10 { --x: 64px; --y: 16px;  --animation: circle-10; }
.uiverse .wrapper .circle.circle-11 { --x: 4px;  --y: 4px;   --animation: circle-11; }
.uiverse .wrapper .circle.circle-12 { --blur:14px; --x: 52px; --y: 4px; --animation: circle-12; }

/* 12 KEYFRAMES */
@keyframes circle-1  { 33% { transform: translate(0px, 16px) } 66% { transform: translate(12px, 64px) } }
@keyframes circle-2  { 33% { transform: translate(80px, -10px) } 66% { transform: translate(72px, -48px) } }
@keyframes circle-3  { 33% { transform: translate(20px, 12px) } 66% { transform: translate(12px, 4px) } }
@keyframes circle-4  { 33% { transform: translate(76px, -12px) } 66% { transform: translate(112px, -8px) } }
@keyframes circle-5  { 33% { transform: translate(84px, 28px) } 66% { transform: translate(40px, -32px) } }
@keyframes circle-6  { 33% { transform: translate(28px, -16px) } 66% { transform: translate(76px, -56px) } }
@keyframes circle-7  { 33% { transform: translate(8px, 28px) }  66% { transform: translate(20px, -60px) } }
@keyframes circle-8  { 33% { transform: translate(32px, -4px) } 66% { transform: translate(56px, -20px) } }
@keyframes circle-9  { 33% { transform: translate(20px, -12px) } 66% { transform: translate(80px, -8px) } }
@keyframes circle-10 { 33% { transform: translate(68px, 20px) } 66% { transform: translate(100px, 28px) } }
@keyframes circle-11 { 33% { transform: translate(4px, 4px) }   66% { transform: translate(68px, 20px) } }
@keyframes circle-12 { 33% { transform: translate(56px, 0px) }  66% { transform: translate(60px, -32px) } }

/* =========================
   🧿 UIVERSE COMPACTO PARA NAV
========================= */
.nav .uiverse {
  font-size: 14px;                 /* más compacto */
  box-shadow: 0 0 8px rgba(134,3,3,.5); /* menos glow */
}
.nav .uiverse .wrapper {
  min-width: auto;
  padding: 8px 14px;               /* menos padding */
}
.nav .uiverse:before {
  box-shadow:
    inset 0 2px 8px var(--c-shadow-inset-top),
    inset 0 -2px 3px var(--c-shadow-inset-bottom);
}
