/* ==========================================================
   EL NIÑO DEL ESPACIO — Fansclub Pablo López
   Identidad: cósmica (negro estelar, violeta, azul, cian, magenta)
   ========================================================== */
    :root {
      --void: #05060d;
      --deep: #0b0f22;
      --panel: #0e1330;
      --violet: #3a2263;
      --blue: #1f6bb8;
      --cyan: #7be0ff;
      --magenta: #e5478f;
      --gold: #e8b64c;
      --star: #f4f2ff;
      --text: #d7dbef;
      --mut: #8b91b4;
      --line: rgba(123, 224, 255, .16);

      --display: "Fraunces", Georgia, serif;
      --serif: "Cormorant", Georgia, serif;
      --ui: "Space Grotesk", system-ui, sans-serif;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--void);
      color: var(--text);
      font-family: var(--ui);
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

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

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

    button {
      font-family: var(--ui);
      cursor: pointer;
    }

    /* ---------- Canvas de estrellas (fondo global) ---------- */
    #starfield {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    /* ==========================================================
       INTRO CINEMATOGRÁFICA (viaje espacial → planeta → bienvenida)
       ========================================================== */
    #cosmicIntro {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: var(--void);
      overflow: hidden;
      transition: opacity .75s ease;
    }

    #cosmicIntro.phase-out {
      opacity: 0;
      pointer-events: none;
    }

    #cosmicIntro.skip {
      transition-duration: .28s;
    }

    #introStars {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      display: block;
    }

    .ci-nebula {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      opacity: .38;
      mix-blend-mode: screen;
      pointer-events: none;
      z-index: 1;
      will-change: transform, opacity;
    }

    .ci-nebula--1 {
      width: 60vmax;
      height: 60vmax;
      top: -18vmax;
      left: -12vmax;
      background: radial-gradient(circle, var(--violet), transparent 70%);
    }

    .ci-nebula--2 {
      width: 52vmax;
      height: 52vmax;
      bottom: -20vmax;
      right: -12vmax;
      background: radial-gradient(circle, var(--blue), transparent 70%);
    }

    .ci-nebula--3 {
      width: 40vmax;
      height: 40vmax;
      top: 28vh;
      left: 52vw;
      background: radial-gradient(circle, var(--magenta), transparent 70%);
    }

    .ci-stage {
      position: absolute;
      inset: 0;
      z-index: 2;
    }

    /* ----- Planeta ----- */
    .ci-planet {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 6vmin;
      height: 6vmin;
      transform: translate3d(-50%, -50%, 0) scale(.3);
      border-radius: 50%;
      opacity: 0;
      will-change: transform, opacity, width, height;
      backface-visibility: hidden;
    }

    #cosmicIntro.phase-approach .ci-planet,
    #cosmicIntro.phase-landing .ci-planet,
    #cosmicIntro.phase-welcome .ci-planet {
      animation: ciPlanetGrow 1.5s cubic-bezier(.2, .7, .25, 1) forwards;
    }

    @keyframes ciPlanetGrow {
      0% {
        width: 6vmin;
        height: 6vmin;
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(.3);
      }

      55% {
        opacity: 1;
      }

      100% {
        width: 78vmin;
        height: 78vmin;
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) scale(1);
      }
    }

    .ci-planet__atmo {
      position: absolute;
      inset: -7%;
      border-radius: 50%;
      background: radial-gradient(circle, transparent 60%, rgba(123, 224, 255, .35) 78%, transparent 86%);
      filter: blur(6px);
    }

    .ci-planet__body {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background:
        radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .55), transparent 34%),
        radial-gradient(circle at 68% 72%, rgba(5, 6, 13, .55), transparent 58%),
        radial-gradient(circle at 40% 40%, var(--cyan) 0%, var(--blue) 42%, var(--violet) 76%, var(--void) 100%);
      box-shadow:
        inset -6vmin -4vmin 9vmin rgba(0, 0, 0, .55),
        inset 3vmin 2vmin 6vmin rgba(255, 255, 255, .12);
    }

    .ci-orbit-bird {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 13%;
      margin: -6.5% 0 0 -6.5%;
      opacity: 0;
      filter: drop-shadow(0 0 10px rgba(123, 224, 255, .6));
      will-change: transform, opacity;
    }

    #cosmicIntro.phase-approach .ci-orbit-bird,
    #cosmicIntro.phase-landing .ci-orbit-bird,
    #cosmicIntro.phase-welcome .ci-orbit-bird {
      animation: ciOrbit 5s linear infinite;
    }

    @keyframes ciOrbit {
      0% {
        transform: translate3d(46%, 0%, 0) scale(.9);
        opacity: .95;
      }

      12.5% {
        transform: translate3d(32.5%, 10.6%, 0) scale(1);
        opacity: 1;
      }

      25% {
        transform: translate3d(0%, 15%, 0) scale(1.05);
        opacity: 1;
      }

      37.5% {
        transform: translate3d(-32.5%, 10.6%, 0) scale(1);
        opacity: 1;
      }

      50% {
        transform: translate3d(-46%, 0%, 0) scale(.9);
        opacity: .7;
      }

      62.5% {
        transform: translate3d(-32.5%, -10.6%, 0) scale(.85);
        opacity: .5;
      }

      75% {
        transform: translate3d(0%, -15%, 0) scale(.8);
        opacity: .4;
      }

      87.5% {
        transform: translate3d(32.5%, -10.6%, 0) scale(.85);
        opacity: .6;
      }

      100% {
        transform: translate3d(46%, 0%, 0) scale(.9);
        opacity: .95;
      }
    }

    /* ----- Cohete ----- */
    .ci-rocket {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 14vmin;
      max-width: 150px;
      min-width: 70px;
      z-index: 3;
      transform: translate3d(-50%, -50%, 0);
      filter: drop-shadow(0 0 18px rgba(123, 224, 255, .45));
      will-change: transform, opacity;
      backface-visibility: hidden;
    }

    #cosmicIntro.phase-travel .ci-rocket {
      animation: ciRocketShake .15s linear infinite;
    }

    @keyframes ciRocketShake {

      0%,
      100% {
        transform: translate3d(-50%, -50%, 0) rotate(-1deg);
      }

      50% {
        transform: translate3d(calc(-50% + 2px), -50%, 0) rotate(1deg);
      }
    }

    #cosmicIntro.phase-approach .ci-rocket {
      animation: ciRocketHover 1.4s ease-in-out infinite;
    }

    @keyframes ciRocketHover {

      0%,
      100% {
        transform: translate3d(-50%, -50%, 0) rotate(-1deg);
      }

      50% {
        transform: translate3d(-50%, calc(-50% - 5px), 0) rotate(1deg);
      }
    }

    #cosmicIntro.phase-landing .ci-rocket {
      animation: ciRocketLand 1s ease-in forwards;
    }

    @keyframes ciRocketLand {
      0% {
        transform: translate3d(-50%, -50%, 0) scale(1);
        opacity: 1;
      }

      70% {
        transform: translate3d(-50%, -28%, 0) scale(.35);
        opacity: 1;
      }

      100% {
        transform: translate3d(-50%, -20%, 0) scale(.05);
        opacity: 0;
      }
    }

    #cosmicIntro.phase-welcome .ci-rocket {
      opacity: 0;
    }

    .ci-rocket .flame {
      transform-origin: 60px 150px;
      animation: ciRocketFlame .16s ease-in-out infinite alternate;
    }

    @keyframes ciRocketFlame {
      from {
        transform: scaleY(.7) scaleX(1);
        opacity: .85;
      }

      to {
        transform: scaleY(1.4) scaleX(.8);
        opacity: 1;
      }
    }

    /* ----- Destello del aterrizaje ----- */
    .ci-flash {
      position: absolute;
      inset: 0;
      z-index: 5;
      background: radial-gradient(circle at 50% 55%, #fff, var(--cyan) 40%, transparent 70%);
      opacity: 0;
      pointer-events: none;
    }

    #cosmicIntro.phase-landing .ci-flash {
      animation: ciFlash 1s ease-out forwards;
    }

    @keyframes ciFlash {

      0%,
      60% {
        opacity: 0;
      }

      75% {
        opacity: .9;
      }

      100% {
        opacity: 0;
      }
    }

    /* ----- Bienvenida ----- */
    .ci-welcome {
      position: absolute;
      inset: 0;
      z-index: 6;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1vmin;
      text-align: center;
      padding: 0 4vw;
      opacity: 0;
      pointer-events: none;
      will-change: transform, opacity;
    }

    .ci-welcome__pre {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 400;
      font-size: clamp(1.1rem, 3.4vw, 2.2rem);
      color: var(--text);
      letter-spacing: .04em;
    }

    .ci-welcome__name {
      font-family: var(--display);
      font-weight: 400;
      text-transform: uppercase;
      font-size: clamp(3rem, 12vw, 11rem);
      line-height: 1;
      letter-spacing: .03em;
      background: linear-gradient(90deg, var(--cyan), var(--star) 45%, var(--magenta));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      filter: drop-shadow(0 0 30px rgba(123, 224, 255, .55)) drop-shadow(0 0 55px rgba(229, 71, 143, .4));
    }

    #cosmicIntro.phase-welcome .ci-welcome {
      animation: ciWelcomeIn 1.2s cubic-bezier(.2, .8, .25, 1) forwards;
    }

    @keyframes ciWelcomeIn {
      0% {
        opacity: 0;
        transform: scale(.85) translateY(18px);
      }

      100% {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    /* ----- Botón saltar ----- */
    .ci-skip {
      position: absolute;
      right: 4vw;
      bottom: 4vh;
      z-index: 10;
      background: rgba(5, 6, 13, .5);
      border: 1px solid rgba(123, 224, 255, .3);
      color: var(--text);
      font-family: var(--ui);
      font-size: .78rem;
      letter-spacing: .08em;
      padding: 10px 18px;
      border-radius: 100px;
      backdrop-filter: blur(6px);
      opacity: .8;
      transition: opacity .25s, border-color .25s;
    }

    .ci-skip:hover {
      opacity: 1;
      border-color: var(--cyan);
    }

    @media (max-width:680px) {
      .ci-welcome {
        gap: .4vmin;
      }
    }

    /* ---------- Colibrí SVG (compartido) ---------- */
    .colibri-svg {
      filter: drop-shadow(0 0 10px rgba(234, 244, 255, .35));
    }

    .colibri-svg use,
    .mini-colibri use {
      transform-box: fill-box;
      transform-origin: center;
    }

    .hero__colibri svg,
    #loader svg,
    .popup__card svg {
      shape-rendering: geometricPrecision;
    }

    /* Colibríes de fondo (ambiente, flotando entre secciones) */
    .flock {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
    }

    .flock svg {
      position: absolute;
      opacity: .10;
      filter: drop-shadow(0 0 10px rgba(123, 224, 255, .35));
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      shape-rendering: geometricPrecision;
    }

    .flock .f1 {
      width: 70px;
      top: 12%;
      left: 6%;
    }

    .flock .f2 {
      width: 46px;
      top: 64%;
      left: 82%;
      transform: scaleX(-1);
    }

    .flock .f3 {
      width: 34px;
      top: 38%;
      left: 44%;
      opacity: .06;
    }

    /* Colibrí decorativo junto al título de sección */
    .label .label-bird {
      width: 26px;
      height: auto;
      margin-left: 2px;
      opacity: .9;
      filter: drop-shadow(0 0 8px rgba(123, 224, 255, .5));
      vertical-align: middle;
    }

    /* ---------- Nav ---------- */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 60;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 5vw;
      transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
    }

    .nav.solid {
      background: rgba(5, 6, 13, .88);
      backdrop-filter: blur(14px);
      padding: 12px 5vw;
      box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
      border-bottom: 1px solid var(--line);
    }

    .nav__brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .nav__brand svg {
      width: 34px;
      height: auto;
    }

    .nav__brand span {
      font-family: var(--display);
      font-size: 1rem;
      letter-spacing: .24em;
      text-transform: uppercase;
      color: var(--star);
    }

    .nav__links {
      display: flex;
      gap: 6px;
      list-style: none;
    }

    .nav__links a {
      font-size: .74rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      padding: 10px 14px;
      border-radius: 100px;
      color: var(--mut);
      transition: color .3s, background .3s;
    }

    .nav__links a:hover,
    .nav__links a.active {
      color: var(--star);
      background: rgba(123, 224, 255, .1);
    }

    .nav__burger {
      display: none;
      background: none;
      border: 0;
      width: 38px;
      height: 30px;
      position: relative;
    }

    .nav__burger span {
      position: absolute;
      left: 6px;
      right: 6px;
      height: 2px;
      background: var(--star);
      transition: transform .3s, opacity .3s;
      border-radius: 2px;
    }

    .nav__burger span:nth-child(1) {
      top: 7px;
    }

    .nav__burger span:nth-child(2) {
      top: 14px;
    }

    .nav__burger span:nth-child(3) {
      top: 21px;
    }

    .nav__burger.open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .nav__burger.open span:nth-child(2) {
      opacity: 0;
    }

    .nav__burger.open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    /* ---------- Secciones base ---------- */
    main {
      position: relative;
      z-index: 1;
    }

    .section {
      padding: 110px 5vw;
      position: relative;
    }

    .wrap {
      max-width: 1120px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .label {
      text-transform: uppercase;
      letter-spacing: .32em;
      font-size: .7rem;
      color: var(--cyan);
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
    }

    .label b {
      font-family: var(--display);
      font-weight: 400;
      color: var(--magenta);
      letter-spacing: 0;
      font-size: .92rem;
    }

    .h2 {
      font-family: var(--display);
      font-weight: 400;
      font-size: clamp(1.9rem, 4.6vw, 3rem);
      line-height: 1.1;
      color: var(--star);
      margin-bottom: 22px;
      max-width: 22ch;
    }

    .lede {
      font-family: var(--serif);
      font-size: 1.28rem;
      max-width: 62ch;
      color: var(--text);
    }

    /* ---------- Reveal on scroll ---------- */
    .reveal {
      opacity: 0;
      transform: translateY(34px);
      transition: opacity .9s ease, transform .9s ease;
    }

    .reveal.in {
      opacity: 1;
      transform: none;
    }

    .reveal[data-delay="1"] {
      transition-delay: .12s;
    }

    .reveal[data-delay="2"] {
      transition-delay: .24s;
    }

    .reveal[data-delay="3"] {
      transition-delay: .36s;
    }

    /* ---------- HERO ---------- */
    .hero {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      align-items: center;
      gap: 4vw;
      padding: 140px 5vw 80px;
      background:
        radial-gradient(120% 90% at 50% -10%, #241247 0%, rgba(36, 18, 71, 0) 55%),
        radial-gradient(90% 70% at 85% 25%, rgba(31, 107, 184, .32) 0%, rgba(31, 107, 184, 0) 55%);
    }

    .hero__eyebrow {
      text-transform: uppercase;
      letter-spacing: .42em;
      font-size: .68rem;
      color: var(--cyan);
      margin-bottom: 26px;
    }

    .hero__title {
      font-family: var(--display);
      font-weight: 400;
      font-size: clamp(3rem, 8.5vw, 5.6rem);
      line-height: .98;
      color: var(--star);
    }

    .hero__title .thin {
      display: block;
      font-size: .42em;
      letter-spacing: .3em;
      color: var(--mut);
      margin-bottom: 14px;
      font-family: var(--ui);
      font-weight: 300;
      text-transform: uppercase;
    }

    .hero__sub {
      font-family: var(--serif);
      font-style: italic;
      font-size: clamp(1.25rem, 3vw, 1.7rem);
      letter-spacing: .1em;
      margin: 18px 0 26px;
      background: linear-gradient(90deg, var(--cyan), var(--magenta));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero__lede {
      font-family: var(--serif);
      font-size: 1.3rem;
      max-width: 48ch;
      margin-bottom: 40px;
    }

    .hero__cta {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 30px;
      border-radius: 100px;
      border: 1px solid var(--line);
      font-size: .78rem;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--text);
      background: transparent;
      transition: all .35s ease;
    }

    .btn--solid {
      background: var(--cyan);
      color: var(--void);
      border-color: var(--cyan);
    }

    .btn--solid:hover {
      box-shadow: 0 0 34px rgba(123, 224, 255, .55);
      transform: translateY(-2px);
    }

    .btn:not(.btn--solid):hover {
      border-color: var(--cyan);
      color: var(--cyan);
    }

    .hero__visual {
      position: relative;
      display: flex;
      justify-content: center;
    }

    .hero__photo {
      position: relative;
      width: min(420px, 88%);
      aspect-ratio: 4/5;
      border-radius: 22px;
      overflow: hidden;
      border: 1px solid var(--line);
      box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(58, 34, 99, .5);
      transform: rotate(-2deg);
      transition: transform .6s ease;
    }

    .hero__photo:hover {
      transform: rotate(0deg) scale(1.02);
    }

    .hero__photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: opacity .35s ease;
    }

    .hero__photo #heroParticles {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity .3s ease;
      pointer-events: none;
      z-index: 3;
    }

    .hero__photo.dispersing img {
      opacity: 0;
    }

    .hero__photo.dispersing #heroParticles {
      opacity: 1;
    }

    /* desde la primera dispersión en adelante: sin marco, foto flotando en el aire */
    .hero__photo.dispersing,
    .hero__photo.morphed {
      border: none;
      box-shadow: none;
      border-radius: 0;
      overflow: visible;
    }

    /* fotos alternas: bordes muy difuminados a transparente, sin recorte duro */
    .hero__photo.morphed img {
      -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 30%, rgba(0, 0, 0, .45) 55%, transparent 84%);
      mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 30%, rgba(0, 0, 0, .45) 55%, transparent 84%);
    }

    .hero__photo::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 4;
      background: linear-gradient(200deg, rgba(123, 224, 255, .14), transparent 40%, rgba(58, 34, 99, .4));
      pointer-events: none;
    }

    .hero__photo::before {
      content: "✦ pásame el ratón";
      position: absolute;
      bottom: 14px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 5;
      font-family: var(--ui);
      font-size: .62rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--star);
      background: rgba(5, 6, 13, .55);
      backdrop-filter: blur(6px);
      padding: 6px 14px;
      border-radius: 100px;
      border: 1px solid var(--line);
      opacity: .75;
      transition: opacity .4s ease;
      pointer-events: none;
      white-space: nowrap;
    }

    .hero__photo:hover::before,
    .hero__photo.dispersing::before {
      opacity: 0;
    }

    .hero__photo .ph {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      background: linear-gradient(160deg, var(--panel), var(--deep));
      color: var(--mut);
      font-size: .8rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      text-align: center;
      padding: 20px;
    }

    .hero__colibri {
      position: absolute;
      top: -46px;
      right: -10px;
      width: 150px;
      z-index: 2;
      transform: rotate(-3deg);
    }

    .hero__scroll {
      position: absolute;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      color: var(--mut);
      font-size: 1.1rem;
      animation: bob 2s ease-in-out infinite;
    }

    @keyframes bob {

      0%,
      100% {
        transform: translate(-50%, 0);
      }

      50% {
        transform: translate(-50%, 8px);
      }
    }

    /* ---------- BIOGRAFÍA ---------- */
    #biografia {
      border-top: 1px solid var(--line);
    }

    .bio-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr;
      gap: 56px;
      margin-top: 44px;
    }

    .bio-grid p {
      font-family: var(--serif);
      font-size: 1.28rem;
      margin-bottom: 20px;
    }

    .bio-grid p em {
      color: var(--cyan);
    }

    .facts {
      list-style: none;
      border-top: 1px solid var(--line);
    }

    .facts li {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 16px 0;
      border-bottom: 1px solid var(--line);
    }

    .facts .k {
      text-transform: uppercase;
      letter-spacing: .2em;
      font-size: .64rem;
      color: var(--mut);
    }

    .facts .v {
      font-family: var(--serif);
      font-size: 1.16rem;
      color: var(--star);
    }

    .timeline {
      margin-top: 70px;
      position: relative;
      padding-left: 34px;
    }

    .timeline::before {
      content: "";
      position: absolute;
      left: 8px;
      top: 6px;
      bottom: 6px;
      width: 1px;
      background: linear-gradient(180deg, var(--cyan), var(--violet));
    }

    .tl-item {
      position: relative;
      padding: 0 0 44px 26px;
    }

    .tl-item::before {
      content: "";
      position: absolute;
      left: -31px;
      top: 8px;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--void);
      border: 2px solid var(--cyan);
      box-shadow: 0 0 14px rgba(123, 224, 255, .6);
    }

    .tl-item .year {
      font-family: var(--display);
      color: var(--magenta);
      font-size: 1.05rem;
      letter-spacing: .06em;
    }

    .tl-item h3 {
      font-family: var(--display);
      font-weight: 400;
      color: var(--star);
      font-size: 1.4rem;
      margin: 6px 0 8px;
    }

    .tl-item p {
      font-family: var(--serif);
      font-size: 1.16rem;
      color: var(--text);
      max-width: 64ch;
    }

/* ---------- EN SUS PALABRAS (historia de canciones) ---------- */
    #palabras {
      background:
        radial-gradient(80% 60% at 100% 0%, rgba(58, 34, 99, .35), transparent 60%),
        radial-gradient(70% 50% at 0% 100%, rgba(31, 107, 184, .26), transparent 60%);
      border-top: 1px solid var(--line);
    }

    .songs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin-top: 50px;
    }

    .song {
      position: relative;
      border-radius: 18px;
      padding: 34px;
      overflow: hidden;
      background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
      border: 1px solid var(--line);
      transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
      cursor: pointer;
    }

    .song::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity .5s ease;
      background: radial-gradient(70% 90% at 20% 0%, var(--song-glow, rgba(123, 224, 255, .16)), transparent 65%);
      pointer-events: none;
    }

    .song:hover {
      transform: translateY(-6px);
      border-color: rgba(123, 224, 255, .4);
      box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    }

    .song:hover::before {
      opacity: 1;
    }

    .song .mini-colibri {
      width: 52px;
      margin-bottom: 18px;
      filter: drop-shadow(0 0 10px var(--song-glow, rgba(123, 224, 255, .5)));
    }

    .song h3 {
      font-family: var(--display);
      font-weight: 400;
      font-size: 1.7rem;
      color: var(--star);
      margin-bottom: 4px;
    }

    .song .meta {
      font-size: .7rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--mut);
      margin-bottom: 16px;
    }

    .song blockquote {
      font-family: var(--serif);
      font-style: italic;
      font-size: 1.22rem;
      color: var(--cyan);
      border-left: 2px solid var(--song-accent, var(--cyan));
      padding-left: 16px;
      margin-bottom: 14px;
    }

    .song p {
      font-family: var(--serif);
      font-size: 1.12rem;
      color: var(--text);
    }

    .song .more {
      margin-top: 16px;
      font-size: .72rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--song-accent, var(--cyan));
    }

    .song--wide {
      grid-column: 1 / -1;
    }

    /* Modal historia completa */
    .modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .modal.open {
      display: flex;
    }

    .modal__bg {
      position: absolute;
      inset: 0;
      background: rgba(3, 4, 10, .86);
      backdrop-filter: blur(8px);
    }

    .modal__card {
      position: relative;
      max-width: 680px;
      width: 100%;
      max-height: 84vh;
      overflow: auto;
      background: linear-gradient(170deg, var(--panel), var(--deep));
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 44px;
      box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
      animation: modalIn .45s cubic-bezier(.2, .9, .3, 1.2);
    }

    @keyframes modalIn {
      from {
        opacity: 0;
        transform: translateY(40px) scale(.96);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    .modal__close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .06);
      border: 1px solid var(--line);
      color: var(--star);
      font-size: 1rem;
      transition: background .3s;
    }

    .modal__close:hover {
      background: var(--magenta);
      border-color: var(--magenta);
    }

    .modal__card h3 {
      font-family: var(--display);
      font-weight: 400;
      font-size: 2rem;
      color: var(--star);
      margin-bottom: 6px;
    }

    .modal__card .meta {
      font-size: .7rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--mut);
      margin-bottom: 22px;
    }

    .modal__card blockquote {
      font-family: var(--serif);
      font-style: italic;
      font-size: 1.3rem;
      color: var(--cyan);
      border-left: 2px solid var(--cyan);
      padding-left: 18px;
      margin: 18px 0;
    }

    .modal__card p {
      font-family: var(--serif);
      font-size: 1.18rem;
      margin-bottom: 16px;
      color: var(--text);
    }

    /* ---------- TIENDA ---------- */
    .shop-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      margin-top: 48px;
    }

    .shop-item {
      display: flex;
      flex-direction: column;
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: hidden;
      background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
      transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
    }

    .shop-item:hover {
      transform: translateY(-8px);
      border-color: var(--gold);
      box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    }

    .shop-item__img {
      aspect-ratio: 1;
      width: 100%;
      object-fit: cover;
      background: linear-gradient(150deg, var(--panel), var(--deep));
    }

    .shop-item__body {
      padding: 22px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .shop-item__format {
      font-family: var(--ui);
      font-size: .62rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 8px;
    }

    .shop-item__title {
      font-family: var(--display);
      font-weight: 400;
      font-size: 1.3rem;
      color: var(--star);
      line-height: 1.2;
      margin-bottom: 8px;
    }

    .shop-item__desc {
      font-family: var(--serif);
      font-size: 1.02rem;
      color: var(--mut);
      flex: 1;
      margin-bottom: 16px;
    }

    .shop-item__price {
      font-family: var(--display);
      font-size: 1.5rem;
      color: var(--gold);
      margin-bottom: 16px;
    }

    .shop-item__btn {
      display: inline-block;
      text-align: center;
      padding: 13px 20px;
      border-radius: 100px;
      background: var(--gold);
      color: var(--void);
      font-family: var(--ui);
      font-size: .76rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      transition: box-shadow .3s, transform .3s;
    }

    .shop-item__btn:hover {
      box-shadow: 0 0 26px rgba(232, 182, 76, .55);
      transform: translateY(-2px);
    }

    .shop-legal {
      margin-top: 34px;
      font-family: var(--ui);
      font-size: .76rem;
      color: var(--mut);
      text-align: center;
    }

    @media (max-width:900px) {
      .shop-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width:600px) {
      .shop-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ---------- EVENTOS ---------- */
    #eventos {
      border-top: 1px solid var(--line);
    }

    .events {
      margin-top: 46px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .event {
      display: grid;
      grid-template-columns: 110px 1fr auto;
      align-items: center;
      gap: 22px;
      padding: 22px 26px;
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
      border: 1px solid var(--line);
      transition: transform .35s ease, border-color .35s ease, background .35s ease;
    }

    .event:hover {
      transform: translateX(8px);
      border-color: rgba(123, 224, 255, .45);
      background: rgba(123, 224, 255, .05);
    }

    .event__date {
      text-align: center;
      border-right: 1px solid var(--line);
      padding-right: 22px;
    }

    .event__date .d {
      font-family: var(--display);
      font-size: 1.9rem;
      color: var(--star);
      line-height: 1;
    }

    .event__date .m {
      font-size: .66rem;
      letter-spacing: .24em;
      text-transform: uppercase;
      color: var(--magenta);
    }

    .event__info h3 {
      font-family: var(--display);
      font-weight: 400;
      font-size: 1.3rem;
      color: var(--star);
    }

    .event__info p {
      font-family: var(--serif);
      font-size: 1.05rem;
      color: var(--mut);
    }

    .event__tag {
      font-size: .64rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      padding: 8px 16px;
      border-radius: 100px;
      border: 1px solid var(--line);
      color: var(--cyan);
      white-space: nowrap;
    }

    .event--past {
      opacity: .45;
    }

    .events-note {
      margin-top: 26px;
      font-size: .8rem;
      color: var(--mut);
    }

    /* ---------- BLOG ---------- */
    #blog {
      background: radial-gradient(70% 50% at 50% 0%, rgba(31, 107, 184, .2), transparent 60%);
      border-top: 1px solid var(--line);
    }

    .posts {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      margin-top: 48px;
    }

    .post {
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
      transition: transform .4s ease, border-color .4s ease;
      display: flex;
      flex-direction: column;
      cursor: pointer;
    }

    .post:hover {
      transform: translateY(-8px);
      border-color: rgba(229, 71, 143, .5);
    }

    .post__banner {
      height: 130px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(140deg, var(--post-a, #241247), var(--post-b, #0c3f74));
      position: relative;
      overflow: hidden;
    }

    .post__banner svg {
      width: 64px;
      filter: drop-shadow(0 0 12px rgba(123, 224, 255, .5));
    }

    .post__body {
      padding: 24px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .post__date {
      font-size: .66rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--magenta);
      margin-bottom: 10px;
    }

    .post__body h3 {
      font-family: var(--display);
      font-weight: 400;
      font-size: 1.28rem;
      color: var(--star);
      margin-bottom: 10px;
      line-height: 1.25;
    }

    .post__body p {
      font-family: var(--serif);
      font-size: 1.06rem;
      color: var(--mut);
      flex: 1;
    }

    .post__read {
      margin-top: 16px;
      font-size: .7rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--cyan);
    }

    /* ---------- PIZARRA ---------- */
    #pizarra {
      border-top: 1px solid var(--line);
    }

    .board-form {
      margin-top: 44px;
      display: grid;
      grid-template-columns: 1fr 2fr auto;
      gap: 14px;
    }

    .board-form input,
    .board-form textarea {
      background: rgba(255, 255, 255, .05);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 15px 18px;
      color: var(--star);
      font-family: var(--ui);
      font-size: .95rem;
      transition: border-color .3s, box-shadow .3s;
      resize: none;
    }

    .board-form input:focus,
    .board-form textarea:focus {
      outline: none;
      border-color: var(--cyan);
      box-shadow: 0 0 0 3px rgba(123, 224, 255, .15);
    }

    .board-form textarea {
      height: 52px;
      line-height: 1.4;
    }

    .board-status {
      margin-top: 12px;
      font-size: .8rem;
      color: var(--cyan);
      min-height: 1.2em;
    }

    .board {
      margin-top: 40px;
      columns: 3;
      column-gap: 20px;
    }

    .note {
      break-inside: avoid;
      margin-bottom: 20px;
      padding: 24px;
      border-radius: 4px 18px 18px 18px;
      background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
      border: 1px solid var(--line);
      position: relative;
      transform: rotate(var(--tilt, 0deg));
      transition: transform .35s ease, border-color .35s ease;
      animation: noteIn .6s ease both;
    }

    @keyframes noteIn {
      from {
        opacity: 0;
        transform: translateY(24px) rotate(var(--tilt, 0deg));
      }

      to {
        opacity: 1;
      }
    }

    .note:hover {
      transform: rotate(0deg) scale(1.03);
      border-color: rgba(123, 224, 255, .4);
      z-index: 2;
    }

    .note::before {
      content: "";
      position: absolute;
      top: -7px;
      left: 22px;
      width: 34px;
      height: 12px;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--cyan), var(--magenta));
      opacity: .85;
      transform: rotate(-3deg);
    }

    .note p {
      font-family: var(--serif);
      font-size: 1.14rem;
      color: var(--text);
      margin-bottom: 14px;
    }

    .note .who {
      font-size: .7rem;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--cyan);
    }

    .note .when {
      font-size: .64rem;
      color: var(--mut);
      letter-spacing: .1em;
      margin-top: 2px;
    }

    /* ---------- NEWSLETTER POPUP ---------- */
    .popup {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .popup.open {
      display: flex;
    }

    .popup__bg {
      position: absolute;
      inset: 0;
      background: rgba(3, 4, 10, .88);
      backdrop-filter: blur(8px);
    }

    .popup__card {
      position: relative;
      max-width: 480px;
      width: 100%;
      text-align: center;
      background:
        radial-gradient(90% 70% at 50% 0%, rgba(58, 34, 99, .55), transparent 70%),
        linear-gradient(170deg, var(--panel), var(--deep));
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 52px 40px 44px;
      box-shadow: 0 40px 100px rgba(0, 0, 0, .75), 0 0 90px rgba(58, 34, 99, .5);
      animation: modalIn .5s cubic-bezier(.2, .9, .3, 1.2);
    }

    .popup__card .colibri-svg {
      width: 88px;
      margin: 0 auto 20px;
    }

    .popup__card h3 {
      font-family: var(--display);
      font-weight: 400;
      font-size: 1.8rem;
      color: var(--star);
      margin-bottom: 10px;
    }

    .popup__card p {
      font-family: var(--serif);
      font-size: 1.14rem;
      color: var(--mut);
      margin-bottom: 26px;
    }

    .popup__form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .popup__form input {
      background: rgba(255, 255, 255, .06);
      border: 1px solid var(--line);
      border-radius: 100px;
      padding: 15px 22px;
      color: var(--star);
      font-family: var(--ui);
      font-size: .95rem;
      text-align: center;
      transition: border-color .3s, box-shadow .3s;
    }

    .popup__form input:focus {
      outline: none;
      border-color: var(--cyan);
      box-shadow: 0 0 0 3px rgba(123, 224, 255, .15);
    }

    .popup__later {
      margin-top: 16px;
      background: none;
      border: 0;
      color: var(--mut);
      font-size: .74rem;
      letter-spacing: .12em;
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    .popup__later:hover {
      color: var(--star);
    }

    .popup__msg {
      margin-top: 14px;
      font-size: .84rem;
      color: var(--cyan);
      min-height: 1.2em;
    }

    /* ---------- FOOTER ---------- */
    footer {
      position: relative;
      z-index: 1;
      border-top: 1px solid var(--line);
      padding: 70px 5vw 40px;
      text-align: center;
      background: radial-gradient(80% 100% at 50% 100%, rgba(31, 107, 184, .16), transparent 70%);
    }

    footer .colibri-svg {
      width: 56px;
      margin: 0 auto 22px;
    }

    footer .foot-title {
      font-family: var(--display);
      letter-spacing: .24em;
      text-transform: uppercase;
      color: var(--star);
      font-size: .95rem;
      margin-bottom: 8px;
    }

    footer .foot-sub {
      font-family: var(--serif);
      font-style: italic;
      color: var(--mut);
      margin-bottom: 26px;
    }

    .socials {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-bottom: 30px;
    }

    .socials a {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--mut);
      font-size: .72rem;
      letter-spacing: .05em;
      transition: all .3s;
    }

    .socials a:hover {
      border-color: var(--cyan);
      color: var(--void);
      background: var(--cyan);
      box-shadow: 0 0 20px rgba(123, 224, 255, .4);
    }

    .disclaimer {
      max-width: 64ch;
      margin: 0 auto;
      font-size: .74rem;
      line-height: 1.7;
      color: var(--mut);
    }

    /* ---------- Cursor glow ---------- */
    #glow {
      position: fixed;
      width: 340px;
      height: 340px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 2;
      background: radial-gradient(circle, rgba(123, 224, 255, .07), transparent 65%);
      transform: translate(-50%, -50%);
      transition: opacity .4s;
    }

    /* ---------- CANCIONES PARA OTROS (compositor) ---------- */
    #compositor {
      border-top: 1px solid var(--line);
      background: radial-gradient(70% 50% at 50% 0%, rgba(232, 182, 76, .12), transparent 60%);
    }

    .comp-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 48px;
    }

    .comp {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 20px;
      border-radius: 14px;
      background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
      border: 1px solid var(--line);
      transition: border-color .35s ease, background .35s ease, transform .35s ease;
    }

    .comp:hover {
      border-color: rgba(232, 182, 76, .45);
      background: rgba(232, 182, 76, .05);
      transform: translateY(-3px);
    }

    .comp__play {
      width: 46px;
      height: 46px;
      flex: none;
      border-radius: 50%;
      border: 1px solid var(--line);
      background: var(--gold);
      color: var(--void);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .9rem;
      transition: transform .25s, box-shadow .25s;
    }

    .comp__play:hover {
      transform: scale(1.08);
      box-shadow: 0 0 20px rgba(232, 182, 76, .5);
    }

    .comp__play.playing {
      background: var(--cyan);
    }

    .comp__main {
      flex: 1;
      min-width: 0;
    }

    .comp__song {
      font-family: var(--display);
      font-weight: 400;
      color: var(--star);
      font-size: 1.24rem;
      line-height: 1.15;
    }

    .comp__artist {
      font-family: var(--serif);
      font-size: 1.02rem;
      color: var(--gold);
    }

    .comp__artist .note {
      color: var(--mut);
      font-style: italic;
      font-size: .92rem;
    }

    .comp__wave {
      display: flex;
      gap: 2px;
      align-items: center;
      height: 20px;
      flex: none;
      padding-right: 4px;
    }

    .comp__wave span {
      width: 2px;
      height: 5px;
      background: var(--mut);
      border-radius: 2px;
      transition: height .2s;
    }

    .comp.playing .comp__wave span {
      background: var(--cyan);
      animation: wave 1s ease-in-out infinite;
    }

    .comp__wave span:nth-child(2) {
      animation-delay: .1s;
    }

    .comp__wave span:nth-child(3) {
      animation-delay: .2s;
    }

    .comp__wave span:nth-child(4) {
      animation-delay: .3s;
    }

    .comp__wave span:nth-child(5) {
      animation-delay: .4s;
    }

    @keyframes wave {

      0%,
      100% {
        height: 5px;
      }

      50% {
        height: 18px;
      }
    }

    .comp__nofile {
      font-size: .62rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--mut);
      white-space: nowrap;
    }

    .comp-note {
      margin-top: 30px;
      font-size: .82rem;
      color: var(--mut);
      line-height: 1.7;
    }

    @media (max-width:760px) {
      .comp-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ---------- PIANO INTERACTIVO ---------- */
    #piano {
      border-top: 1px solid var(--line);
      text-align: center;
      background: radial-gradient(70% 60% at 50% 0%, rgba(58, 34, 99, .24), transparent 60%);
    }

    .piano-wrap {
      margin-top: 44px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }

    .piano {
      display: inline-flex;
      position: relative;
      padding: 18px 18px 0;
      border-radius: 14px 14px 8px 8px;
      background: linear-gradient(180deg, #14182e, #0a0d1c);
      box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .06);
      border: 1px solid var(--line);
      overflow-x: auto;
      overflow-y: hidden;
      max-width: 96vw;
    }

    .piano::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 6px;
      background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--gold));
      opacity: .8;
    }

    .keys {
      display: flex;
      position: relative;
      height: 200px;
    }

    .key {
      position: relative;
      width: 46px;
      height: 100%;
      background: linear-gradient(180deg, #f4f6fb 0%, #dde3ee 92%, #c3cad8 100%);
      border: 1px solid #aab2c4;
      border-top: none;
      border-radius: 0 0 6px 6px;
      cursor: pointer;
      transition: background .08s ease, transform .05s ease;
      box-shadow: inset 0 -6px 8px rgba(0, 0, 0, .12);
    }

    .key:active,
    .key.down {
      background: linear-gradient(180deg, #c9e8f5 0%, #a7d4ec 100%);
      transform: translateY(2px);
      box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .2);
    }

    .key.black {
      position: absolute;
      top: 0;
      width: 30px;
      height: 62%;
      z-index: 2;
      background: linear-gradient(180deg, #2a2f42 0%, #0c0f1c 100%);
      border: 1px solid #000;
      border-radius: 0 0 5px 5px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, .5), inset 0 -3px 4px rgba(255, 255, 255, .08);
    }

    .key.black:active,
    .key.black.down {
      background: linear-gradient(180deg, #3a6a86 0%, #12303f 100%);
      transform: translateY(2px);
    }

    .key .lbl {
      position: absolute;
      bottom: 8px;
      left: 0;
      right: 0;
      font-size: .6rem;
      color: #8b93a8;
      letter-spacing: .05em;
      pointer-events: none;
    }

    .piano-hint {
      font-family: var(--serif);
      font-size: 1.1rem;
      color: var(--mut);
    }

    @media (max-width:680px) {
      .key {
        width: 32px;
      }

      .key.black {
        width: 20px;
      }

      .keys {
        height: 150px;
      }
    }

    /* ---------- HISTORIA PARALLAX ---------- */
    #historia {
      position: relative;
      padding: 0;
      overflow: hidden;
      border-top: 1px solid var(--line);
    }

    .px-intro {
      padding: 100px 5vw 60px;
      text-align: center;
      position: relative;
      z-index: 2;
    }

    .px-scene {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 80px 5vw;
      overflow: hidden;
    }

    .px-scene__bg {
      position: absolute;
      inset: -10% 0;
      z-index: 0;
      background-size: cover;
      background-position: center;
      will-change: transform;
    }

    .px-scene__bg.ph {
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(150deg, var(--panel), var(--deep));
      color: var(--mut);
      font-size: .8rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      text-align: center;
    }

    .px-scene::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(90deg, rgba(5, 6, 13, .92) 0%, rgba(5, 6, 13, .6) 45%, rgba(5, 6, 13, .25) 100%);
    }

    .px-scene--right::after {
      background: linear-gradient(270deg, rgba(5, 6, 13, .92) 0%, rgba(5, 6, 13, .6) 45%, rgba(5, 6, 13, .25) 100%);
    }

    .px-card {
      position: relative;
      z-index: 2;
      max-width: 520px;
      background: rgba(11, 15, 34, .55);
      backdrop-filter: blur(6px);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 40px;
      will-change: transform;
    }

    .px-scene--right .px-card {
      margin-left: auto;
    }

    .px-card .yr {
      font-family: var(--display);
      color: var(--cyan);
      font-size: 1.1rem;
      letter-spacing: .08em;
    }

    .px-card h3 {
      font-family: var(--display);
      font-weight: 400;
      color: var(--star);
      font-size: 2rem;
      margin: 6px 0 14px;
      line-height: 1.15;
    }

    .px-card p {
      font-family: var(--serif);
      font-size: 1.22rem;
      color: var(--text);
    }

    .px-card .quote {
      margin-top: 16px;
      font-style: italic;
      color: var(--cyan);
      border-left: 2px solid var(--cyan);
      padding-left: 14px;
    }

    @media (max-width:680px) {
      .px-scene {
        min-height: auto;
        padding: 60px 6vw;
      }

      .px-card {
        padding: 28px;
      }
    }

    /* ---------- Reproductor de audio flotante ---------- */
    .audio-dock {
      position: fixed;
      bottom: 22px;
      left: 22px;
      z-index: 70;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 16px 10px 12px;
      border-radius: 100px;
      background: rgba(11, 15, 34, .85);
      backdrop-filter: blur(14px);
      border: 1px solid var(--line);
      box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
      transition: transform .5s cubic-bezier(.2, .9, .3, 1.2), opacity .5s;
    }

    .audio-dock.hidden {
      transform: translateY(120px);
      opacity: 0;
      pointer-events: none;
    }

    .audio-dock__btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      flex: none;
      border: 1px solid var(--line);
      background: var(--cyan);
      color: var(--void);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .9rem;
      transition: transform .3s, box-shadow .3s;
    }

    .audio-dock__btn:hover {
      transform: scale(1.08);
      box-shadow: 0 0 20px rgba(123, 224, 255, .5);
    }

    .audio-dock__info {
      display: flex;
      flex-direction: column;
      line-height: 1.2;
      padding-right: 6px;
    }

    .audio-dock__label {
      font-size: .6rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--mut);
    }

    .audio-dock__track {
      font-family: var(--serif);
      font-size: .98rem;
      color: var(--star);
    }

    .audio-dock__eq {
      display: flex;
      gap: 2px;
      align-items: flex-end;
      height: 14px;
      margin-left: 2px;
    }

    .audio-dock__eq span {
      width: 3px;
      background: var(--cyan);
      border-radius: 2px;
      height: 4px;
    }

    .audio-dock.playing .audio-dock__eq span {
      animation: eq .9s ease-in-out infinite;
    }

    .audio-dock__eq span:nth-child(2) {
      animation-delay: .15s;
    }

    .audio-dock__eq span:nth-child(3) {
      animation-delay: .3s;
    }

    .audio-dock__eq span:nth-child(4) {
      animation-delay: .45s;
    }

    @keyframes eq {

      0%,
      100% {
        height: 4px;
      }

      50% {
        height: 14px;
      }
    }

    .audio-dock__close {
      background: none;
      border: 0;
      color: var(--mut);
      font-size: .9rem;
      padding: 4px;
      transition: color .3s;
    }

    .audio-dock__close:hover {
      color: var(--star);
    }

    @media (max-width:680px) {
      .audio-dock__info {
        display: none;
      }
    }

    /* ---------- Toast ---------- */
    #toast {
      position: fixed;
      bottom: 26px;
      left: 50%;
      transform: translate(-50%, 80px);
      background: var(--cyan);
      color: var(--void);
      padding: 14px 28px;
      border-radius: 100px;
      font-size: .82rem;
      letter-spacing: .08em;
      z-index: 95;
      opacity: 0;
      transition: transform .45s cubic-bezier(.2, .9, .3, 1.3), opacity .45s;
      box-shadow: 0 10px 40px rgba(123, 224, 255, .4);
    }

    #toast.show {
      transform: translate(-50%, 0);
      opacity: 1;
    }


    /* ---------- DISCOGRAFÍA (línea del tiempo con tracklist en hover) ---------- */
    #discografia {
      border-top: 1px solid var(--line);
      background: radial-gradient(70% 50% at 50% 0%, rgba(58, 34, 99, .22), transparent 60%);
    }

    .disco-line {
      position: relative;
      margin-top: 56px;
      padding-left: 36px;
    }

    .disco-line::before {
      content: "";
      position: absolute;
      left: 9px;
      top: 8px;
      bottom: 8px;
      width: 1px;
      background: linear-gradient(180deg, var(--cyan), var(--violet), var(--magenta));
      opacity: .6;
    }

    .disco {
      position: relative;
      padding: 0 0 30px 30px;
    }

    .disco::before {
      content: "";
      position: absolute;
      left: -32px;
      top: 10px;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: var(--void);
      border: 2px solid var(--disco, #7be0ff);
      box-shadow: 0 0 16px var(--disco, #7be0ff);
      transition: transform .3s ease;
    }

    .disco:hover::before {
      transform: scale(1.3);
    }

    .disco__card {
      border: 1px solid var(--line);
      border-radius: 16px;
      overflow: hidden;
      background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
      transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
    }

    .disco:hover .disco__card {
      border-color: var(--disco, #7be0ff);
      box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
      transform: translateX(6px);
    }

    .disco__head {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 24px 26px;
      cursor: pointer;
    }

    .disco__cover {
      width: 84px;
      height: 84px;
      flex: none;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: linear-gradient(150deg, var(--panel), var(--deep));
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

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

    .disco__cover .cover-ph {
      width: 44px;
      opacity: .5;
    }

    .disco__bird {
      width: 40px;
      flex: none;
      filter: drop-shadow(0 0 8px rgba(234, 244, 255, .4));
    }

    .disco__main {
      flex: 1;
      min-width: 0;
    }

    .disco__year {
      font-family: var(--display);
      color: var(--disco, #7be0ff);
      font-size: 1rem;
      letter-spacing: .06em;
    }

    .disco__title {
      font-family: var(--display);
      font-weight: 400;
      color: var(--star);
      font-size: 1.55rem;
      line-height: 1.15;
      margin: 2px 0 4px;
    }

    .disco__meta {
      font-family: var(--serif);
      font-size: 1.05rem;
      color: var(--mut);
    }

    .disco__cta {
      font-size: .62rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--mut);
      white-space: nowrap;
      border: 1px solid var(--line);
      border-radius: 100px;
      padding: 8px 14px;
      transition: all .3s;
    }

    .disco:hover .disco__cta {
      color: var(--void);
      background: var(--disco, #7be0ff);
      border-color: var(--disco, #7be0ff);
    }

    /* lista de canciones: colapsada por defecto, se despliega en hover/focus */
    .disco__tracks {
      max-height: 0;
      overflow: hidden;
      transition: max-height .55s cubic-bezier(.3, .9, .3, 1);
    }

    .disco:hover .disco__tracks,
    .disco:focus-within .disco__tracks,
    .disco.open .disco__tracks {
      max-height: 640px;
    }

    .disco__tracks ol {
      list-style: none;
      padding: 6px 26px 26px 92px;
      columns: 2;
      column-gap: 34px;
    }

    .disco__tracks li {
      break-inside: avoid;
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 7px 0;
      border-bottom: 1px solid rgba(255, 255, 255, .05);
      font-family: var(--serif);
      font-size: 1.12rem;
      color: var(--text);
      opacity: 0;
      transform: translateY(6px);
      transition: opacity .4s ease, transform .4s ease;
    }

    .disco:hover .disco__tracks li,
    .disco:focus-within .disco__tracks li,
    .disco.open .disco__tracks li {
      opacity: 1;
      transform: none;
    }

    .disco__tracks li .n {
      font-family: var(--ui);
      font-size: .72rem;
      color: var(--disco, #7be0ff);
      min-width: 20px;
      letter-spacing: .06em;
    }

    .disco__tracks li .track__title {
      flex: 1;
      min-width: 0;
    }

    .disco__tracks li .feat {
      font-size: .78rem;
      color: var(--mut);
      font-style: italic;
    }

    .track__play {
      flex: none;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--disco, var(--cyan));
      font-size: .6rem;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .25s ease, color .25s ease, transform .15s ease, box-shadow .25s ease;
    }

    .track__play:hover:not(:disabled) {
      background: var(--disco, var(--cyan));
      color: var(--void);
      box-shadow: 0 0 14px rgba(123, 224, 255, .4);
    }

    .track__play:active:not(:disabled) {
      transform: scale(.9);
    }

    .track__play.playing {
      background: var(--disco, var(--cyan));
      color: var(--void);
    }

    .track__play:disabled {
      opacity: .3;
      cursor: default;
      color: var(--mut);
    }

    .disco__note {
      padding: 0 26px 22px 92px;
      font-family: var(--serif);
      font-size: 1.05rem;
      color: var(--mut);
      max-height: 0;
      overflow: hidden;
      transition: max-height .5s ease;
    }

    .disco:hover .disco__note,
    .disco:focus-within .disco__note,
    .disco.open .disco__note {
      max-height: 120px;
    }

    @media (max-width:680px) {
      .disco__tracks ol {
        columns: 1;
        padding-left: 26px;
      }

      .disco__note {
        padding-left: 26px;
      }

      .disco__head {
        flex-wrap: wrap;
      }

      .disco__cta {
        order: 3;
      }
    }

    /* Tarjeta del próximo álbum */
    .disco--next .disco__card {
      border-color: rgba(58, 160, 224, .5);
      background:
        radial-gradient(80% 100% at 0% 0%, rgba(58, 34, 99, .4), transparent 60%),
        linear-gradient(160deg, rgba(58, 160, 224, .08), rgba(255, 255, 255, .012));
    }

    .disco--next::before {
      animation: nextPulse 2.6s ease-in-out infinite;
    }

    @keyframes nextPulse {

      0%,
      100% {
        box-shadow: 0 0 12px var(--disco);
      }

      50% {
        box-shadow: 0 0 22px var(--disco), 0 0 34px var(--disco);
      }
    }

    .disco__cta--next {
      background: var(--disco);
      color: var(--void);
      border-color: var(--disco);
      font-weight: 500;
    }

    .disco--next .disco__year {
      font-weight: 500;
    }

    /* ---------- Responsive ---------- */
    @media (max-width:960px) {
      .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
      }

      .hero__lede {
        margin-inline: auto;
      }

      .hero__cta {
        justify-content: center;
      }

      .hero__visual {
        margin-top: 44px;
      }

      .bio-grid {
        grid-template-columns: 1fr;
        gap: 36px;
      }

      .songs {
        grid-template-columns: 1fr;
      }

      .song--wide {
        grid-column: auto;
      }

      .posts {
        grid-template-columns: 1fr 1fr;
      }

      .board {
        columns: 2;
      }
    }

    @media (max-width:680px) {
      .nav__links {
        position: fixed;
        inset: 0;
        top: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: rgba(5, 6, 13, .97);
        backdrop-filter: blur(16px);
        transform: translateX(100%);
        transition: transform .45s ease;
      }

      .nav__links.open {
        transform: none;
      }

      .nav__links a {
        font-size: 1rem;
      }

      .nav__burger {
        display: block;
        z-index: 5;
      }

      .posts {
        grid-template-columns: 1fr;
      }

      .board {
        columns: 1;
      }

      .board-form {
        grid-template-columns: 1fr;
      }

      .event {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
      }

      .event__date {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 12px;
      }

      .section {
        padding: 80px 6vw;
      }
    }

    /* ---------- Accesibilidad ---------- */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
      outline: 2px solid var(--cyan);
      outline-offset: 3px;
    }

    @media (prefers-reduced-motion:reduce) {

      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
      }

      html {
        scroll-behavior: auto;
      }
    }
