:root {
  --bg: #0a0a0b;
  --bg-soft: #121214;
  --fg: #f4f3f0;
  --muted: #8a8a90;
  --accent: #ff5630;
  --accent-2: #ffb27a;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(16, 16, 18, 0.55);
  --font-display: "Sora", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Sombra para que el texto se lea sobre el logo 3D claro */
  --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.92), 0 2px 18px rgba(0, 0, 0, 0.65);
  --spotify: #1ed760;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* El scroll suave lo maneja Lenis. NO usar scroll-behavior: smooth aquí:
   entra en conflicto con Lenis y hace que el scroll se sienta raro/lag. */
html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--accent); color: #fff; }

/* ===== Preloader ===== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; gap: 18px; justify-items: center; width: min(70vw, 320px); }
.loader__brand { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.3em; font-size: 0.85rem; color: var(--muted); }
.loader__bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__fill { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s linear; }
.loader__pct { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.2em; }

/* ===== Ambiente (blobs de color difuso) ===== */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.45; will-change: transform; }
.blob--1 { width: 48vw; height: 48vw; top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(255,86,48,0.6), transparent 70%); animation: float1 18s ease-in-out infinite; }
.blob--2 { width: 42vw; height: 42vw; bottom: -14%; right: -6%;
  background: radial-gradient(circle, rgba(110,168,255,0.4), transparent 70%); animation: float2 22s ease-in-out infinite; }
.blob--3 { width: 30vw; height: 30vw; top: 40%; left: 55%;
  background: radial-gradient(circle, rgba(255,178,122,0.28), transparent 70%); animation: float1 26s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7%, -6%) scale(1.1); } }

/* ===== Grano de película ===== */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px; animation: grain 0.7s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 33% { transform: translate(-4%,2%); } 66% { transform: translate(3%,-3%); } 100% { transform: translate(0,0); }
}

/* ===== Canvas 3D ===== */
.scene {
  position: fixed; inset: 0; z-index: 1;
  width: 100vw; height: 100vh;
  pointer-events: none;
}

/* ===== Marquee ===== */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; background: rgba(10,10,11,0.4); backdrop-filter: blur(6px);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em;
  font-size: clamp(1rem, 2.2vw, 1.6rem); color: var(--muted); white-space: nowrap; padding-right: 1rem;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Navegación ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 16px; padding-bottom: 16px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.nav__logo-mark { height: 32px; width: auto; display: block; object-fit: contain; }
.nav__logo-text { letter-spacing: 0.18em; font-size: 0.82rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav__link {
  position: relative; font-size: 0.9rem; color: var(--muted);
  transition: color 0.3s var(--ease); padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 0.35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--fg); }
.nav__link.is-active::after { width: 100%; }
.nav__link--cta {
  color: var(--fg); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; background: rgba(255,255,255,0.02);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--accent); border-color: var(--accent); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--fg); transition: 0.3s var(--ease); }

/* ===== Layout secciones ===== */
.section {
  position: relative; z-index: 2;
  min-height: 100vh;
  padding: clamp(90px, 14vh, 160px) clamp(20px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.section--right { align-items: flex-start; }
.section--right .section__head, .section--right .releases,
.section--right .contact, .section--right .contact__direct { max-width: 560px; }
.section--left { align-items: flex-end; text-align: right; }
.section--left .bio { max-width: 760px; }
.section--center { align-items: center; text-align: center; }

.section__head { margin-bottom: 48px; }
.section__index {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  color: var(--accent); letter-spacing: 0.3em; font-size: 0.8rem; margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.02em;
}
.section__lead { color: var(--fg); text-shadow: var(--text-shadow); margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 46ch; }
.section--center .section__lead { margin-left: auto; margin-right: auto; }

/* ===== Línea FX animada bajo los títulos ===== */
.title-fx {
  display: block; position: relative;
  width: clamp(120px, 18vw, 230px); height: 3px; margin-top: 18px;
  border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.title-fx::before {
  content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent-2));
  box-shadow: 0 0 16px 2px rgba(255, 86, 48, 0.65);
  animation: fxRun 2.6s var(--ease) infinite;
}
@keyframes fxRun {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(280%); }
  100% { transform: translateX(280%); }
}
.section--center .title-fx { margin-left: auto; margin-right: auto; }
.section--left .title-fx { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .title-fx::before { animation: none; transform: none; width: 100%; opacity: 0.85; }
}

/* ===== HERO ===== */
.section--hero { align-items: flex-start; justify-content: center; overflow: hidden; }
.hero__bgword {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(7rem, 26vw, 24rem); color: rgba(255,255,255,0.035);
  letter-spacing: -0.04em; z-index: -1; user-select: none; white-space: nowrap;
}
.hero__content { max-width: 620px; }
.hero__content > * { text-shadow: 0 2px 30px rgba(10,10,11,0.85); }
.hero__eyebrow { color: var(--accent); letter-spacing: 0.25em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 22px; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; line-height: 0.9;
  font-size: clamp(3rem, 11vw, 8rem); letter-spacing: -0.03em; display: flex; flex-direction: column;
}
.hero__title-accent { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.hero__sub { color: var(--fg); text-shadow: var(--text-shadow); margin: 22px 0 36px; font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 44ch; }
.hero__content .title-fx { margin-top: 22px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity:.4; } 50% { transform: scaleY(1); opacity:1; } }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255,86,48,0.35); }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); transform: translateY(-3px); }

/* ===== Lanzamientos — video destacado (último lanzamiento) ===== */
.release-feature {
  width: min(620px, 100%); padding: 10px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}
.release-feature__badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 6px 6px 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.release-feature__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 86, 48, 0.55); animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 86, 48, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 86, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 86, 48, 0); }
}
.release-feature__video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000;
}
.release-feature__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.release-feature__meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 8px 6px; }
.release-feature__meta h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.release-feature__meta p { color: var(--muted); font-size: 0.85rem; }
.release-feature__yt {
  flex: 0 0 auto; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; white-space: nowrap; transition: 0.3s var(--ease);
}
.release-feature__yt:hover { background: #ff0033; border-color: #ff0033; color: #fff; }
.release-feature__spotify { margin-top: 10px; }
.release-feature__spotify iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .release-feature__dot { animation: none; } }

/* ===== Biografía ===== */
.bio { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: clamp(22px, 3vw, 38px); align-items: stretch; text-align: left; }
.bio__photo {
  width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: center 15%;
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}
.bio__lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.25; margin-bottom: 22px; text-shadow: var(--text-shadow); }
.bio p { color: var(--fg); margin-bottom: 16px; text-shadow: var(--text-shadow); }
.bio__cities { font-size: 0.92rem; margin-top: 18px; }
.bio__cities strong { color: var(--accent); }
.bio__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 32px; justify-content: flex-start; }
.stat { display: grid; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--accent); }
.stat__label { color: var(--muted); font-size: 0.82rem; }

/* ===== Música — lista por lanzamiento + reproductor Spotify ===== */
.music { width: min(760px, 100%); margin: 0 auto; display: grid; gap: 16px; text-align: left; }
.music__player { border-radius: 14px; overflow: hidden; min-height: 80px; }
.music__player iframe { display: block; width: 100%; border: 0; border-radius: 14px; }

.tracklist {
  list-style: none; display: grid; gap: 4px; padding: 8px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}
.trackrow { border-radius: 12px; transition: background 0.25s var(--ease); }
.trackrow__link {
  display: grid; grid-template-columns: 28px 30px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; color: var(--fg);
}
.trackrow__n { color: var(--muted); font-family: var(--font-display); font-size: 0.82rem; text-align: center; }
.trackrow__play {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 0.58rem; color: var(--fg); transition: 0.25s var(--ease);
}
.trackrow__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trackrow__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trackrow__date { color: var(--muted); font-size: 0.78rem; }
.trackrow__dur { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.trackrow:hover { background: rgba(255, 255, 255, 0.05); }
.trackrow:hover .trackrow__play { background: var(--accent); border-color: var(--accent); color: #fff; }
.trackrow.is-active { background: rgba(255, 86, 48, 0.14); }
.trackrow.is-active .trackrow__play { background: var(--accent); border-color: var(--accent); color: #fff; }
.trackrow.is-active .trackrow__title { color: var(--accent); }

/* ===== Botones de plataformas (apilados, con icono oficial) ===== */
.platforms { display: flex; flex-direction: column; gap: 12px; width: min(380px, 100%); margin: 36px auto 0; }
.platform {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px; border: 1px solid var(--line); border-radius: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--fg); background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.platform__icon { width: 26px; height: 26px; flex: 0 0 auto; }
.platform:hover { transform: translateY(-3px); background: rgba(28, 28, 33, 0.72); }

/* Iconos en su color oficial */
.platform--spotify   .platform__icon { color: #1ed760; }
.platform--apple     .platform__icon { color: #fa2d48; }
.platform--youtube   .platform__icon { color: #ff0033; }
.platform--instagram .platform__icon { color: #e1306c; }
.platform--tiktok    .platform__icon { color: #fff; }

/* Borde + glow de marca al pasar el mouse */
.platform--spotify:hover   { border-color: #1ed760; box-shadow: 0 12px 34px rgba(30, 215, 96, 0.18); }
.platform--apple:hover     { border-color: #fa2d48; box-shadow: 0 12px 34px rgba(250, 45, 72, 0.18); }
.platform--youtube:hover   { border-color: #ff0033; box-shadow: 0 12px 34px rgba(255, 0, 51, 0.18); }
.platform--instagram:hover { border-color: #e1306c; box-shadow: 0 12px 34px rgba(225, 48, 108, 0.18); }
.platform--tiktok:hover    { border-color: #69c9d0; box-shadow: 0 12px 34px rgba(105, 201, 208, 0.2); }

/* ===== Texto secundario legible sobre el logo 3D ===== */
.stat__num, .stat__label,
.release__meta h3, .release__meta p,
.contact__direct > a, .contact__social a { text-shadow: var(--text-shadow); }

/* ===== Contacto ===== */
.contact { display: grid; gap: 14px; width: 100%; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact input, .contact textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  color: var(--fg); font-family: var(--font-body); font-size: 0.95rem; resize: vertical;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--accent); }
.contact__direct { margin-top: 30px; display: grid; gap: 14px; }
.contact__direct > a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.8rem); }
.contact__social { display: flex; gap: 18px; }
.contact__social a { color: var(--muted); transition: color 0.3s; }
.contact__social a:hover { color: var(--accent); }

/* ===== Footer ===== */
.footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 28px clamp(20px, 6vw, 96px); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.82rem; background: var(--bg);
}

/* ===== Reveal animación ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  /* En móvil/tablet el logo se atenúa un poco para no tapar el texto */
  .scene { opacity: 0.7; }
  .section { text-shadow: 0 2px 20px rgba(10,10,11,0.7); }

  .nav__links {
    position: fixed; inset: 0; z-index: 40;
    flex-direction: column; justify-content: center;
    background: var(--bg); gap: 28px;
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.4rem; }
  .nav__burger { display: flex; z-index: 60; }
  /* Con el menú abierto, quitamos el backdrop-filter: si no, el menú
     (fixed) se posiciona dentro de la barra del nav y se desfasa */
  .nav.is-open {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
  }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section--left { align-items: flex-start; text-align: left; }
  .section--left .bio__stats { justify-content: flex-start; }
  .contact__row { grid-template-columns: 1fr; }
  .bio__stats { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  /* La bio apila la foto arriba del texto en pantallas chicas */
  .bio { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .bio__photo { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-width: 300px; }
}
