/* ==========================================================================
   NEURA NETWORK — Hoja de estilos principal
   --------------------------------------------------------------------------
   Índice
     01. Tokens de diseño
     02. Reset y base
     03. Utilidades y layout
     04. Animaciones de revelado
     05. Cabecera y navegación
     06. Botones
     07. Hero
     08. Nuestros mundos
     09. Quiénes somos
     10. Pie de página
     11. Página interior (subpáginas)
     12. Tema del evento: Alice in Bordercraft
     13. Responsive
     14. Accesibilidad / movimiento reducido
   ========================================================================== */


/* 01. TOKENS DE DISEÑO ==================================================== */

:root {
  /* Superficies */
  --bg:            #04050a;
  --bg-elevated:   #080a12;
  --bg-card:       #0b0d16;
  --hairline:      rgba(255, 255, 255, .10);
  --hairline-soft: rgba(255, 255, 255, .06);

  /* Texto */
  --text:          #f5f7fb;
  --text-muted:    #a5abbd;
  --text-dim:      #6f7688;

  /* Marca */
  --blue:          #3b82f6;
  --cyan:          #22d3ee;
  --purple:        #a855f7;
  --violet:        #7c3aed;

  --grad-brand:    linear-gradient(120deg, var(--blue) 0%, var(--violet) 55%, var(--purple) 100%);
  --grad-text:     linear-gradient(120deg, #ffffff 0%, #cfe0ff 45%, #d8c4ff 100%);
  --grad-rule:     linear-gradient(90deg, var(--purple), var(--blue), transparent);

  /* Tipografía */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --fs-eyebrow:  clamp(.68rem, .55rem + .3vw, .8rem);
  --fs-body:     clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-lead:     clamp(1.25rem, 1.05rem + .9vw, 1.9rem);
  --fs-h2:       clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h1:       clamp(2.75rem, 1.5rem + 6vw, 6.5rem);
  --fs-display:  clamp(2.25rem, 1.2rem + 4.6vw, 4.75rem);

  /* Ritmo */
  --container:      1280px;
  --gutter:         clamp(1.25rem, 4vw, 3.5rem);
  --section-y:      clamp(5rem, 10vw, 9.5rem);
  --radius:         18px;
  --radius-lg:      24px;

  /* Movimiento */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur:       .8s;

  --header-h: 76px;
}


/* 02. RESET Y BASE ======================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Resplandor ambiental fijo — da profundidad sin coste de repintado */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70ch 60ch at 15% 8%,  rgba(59, 130, 246, .16), transparent 65%),
    radial-gradient(60ch 55ch at 88% 22%, rgba(168,  85, 247, .14), transparent 65%),
    radial-gradient(80ch 50ch at 50% 96%, rgba(124,  58, 237, .10), transparent 70%);
}

img, svg, video { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

::selection { background: rgba(168, 85, 247, .35); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }


/* 03. UTILIDADES Y LAYOUT ================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; z-index: 1; padding-block: var(--section-y); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #c9a7ff;
}
.eyebrow::after {
  content: "";
  width: clamp(48px, 8vw, 128px);
  height: 1px;
  background: var(--grad-rule);
}

.section-title {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.5rem);
  font-size: var(--fs-h2);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-title::before {
  content: "";
  flex: none;
  width: 4px;
  height: 1em;
  border-radius: 4px;
  background: var(--grad-brand);
}

.text-blue   { color: #6aa8ff; }
.text-purple { color: #c084fc; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* 04. ANIMACIONES DE REVELADO ============================================= */

/* El estado oculto SOLO se aplica cuando hay JavaScript (clase .js puesta por
   el script en línea del <head>). Sin JS no hay nada que vuelva a mostrar los
   elementos, así que sin esta condición la página entera quedaría invisible. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity   var(--dur) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--dur) var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Variante para bloques que entran desde el lateral */
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="right"].is-visible { transform: none; }


/* 05. CABECERA Y NAVEGACIÓN =============================================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease-soft), border-color .4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(6, 8, 14, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--hairline-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: clamp(.95rem, .85rem + .35vw, 1.2rem);
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }

.nav__link {
  position: relative;
  padding: .35rem 0;
  font-size: .975rem;
  color: var(--text-muted);
  transition: color .3s var(--ease-soft);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: background .2s var(--ease-soft);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .35s var(--ease-out);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }


/* 06. BOTONES ============================================================= */

.btn {
  --btn-py: .85rem;
  --btn-px: 1.6rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .975rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 30px rgba(99, 102, 241, .35);
}
.btn--primary:hover { box-shadow: 0 14px 44px rgba(124, 58, 237, .5); }

.btn--ghost {
  background: rgba(255, 255, 255, .02);
  border-color: var(--hairline);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
}

/* Botón de Discord de la cabecera */
.btn--discord {
  background: rgba(88, 101, 242, .07);
  border-color: rgba(129, 140, 248, .45);
  color: var(--text);
  box-shadow: 0 0 0 0 rgba(129, 140, 248, .35);
}
.btn--discord:hover {
  background: rgba(88, 101, 242, .16);
  border-color: rgba(165, 180, 252, .8);
  box-shadow: 0 0 34px rgba(99, 102, 241, .45);
}
.btn--discord svg { width: 20px; height: 20px; fill: currentColor; }

.btn--lg { --btn-py: 1.05rem; --btn-px: 2.25rem; font-size: 1.05rem; }


/* 07. HERO ================================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -.045em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: .9rem;
}

.hero__text {
  max-width: 46ch;
  color: var(--text-muted);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__visual img {
  width: min(100%, 620px);
  filter: drop-shadow(0 30px 80px rgba(59, 130, 246, .3));
  /* Desplazamiento vertical suave controlado por JS (parallax) */
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

/* Halo que respira detrás del monograma */
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 130, 255, .22), transparent 68%);
  animation: breathe 9s var(--ease-soft) infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.09); opacity: 1;   }
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .6rem;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--blue), transparent);
  animation: scrollHint 2.4s var(--ease-soft) infinite;
}

@keyframes scrollHint {
  0%   { opacity: 0; transform: scaleY(.3) translateY(-14px); }
  45%  { opacity: 1; transform: scaleY(1)  translateY(0); }
  100% { opacity: 0; transform: scaleY(.3) translateY(14px); }
}


/* 08. NUESTROS MUNDOS ===================================================== */

.worlds__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.world {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--hairline-soft);
  background: var(--bg-card);
  transition: transform .6s var(--ease-out), border-color .5s var(--ease-soft),
              box-shadow .6s var(--ease-out);
}
.world:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}

.world__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .9s var(--ease-out), filter .6s var(--ease-soft);
}
.world:hover .world__media { transform: scale(1.09); filter: saturate(1.15); }

/* Degradado de legibilidad sobre la imagen.
   Empieza pronto y cierra casi opaco: el texto debe leerse también sobre
   las zonas claras del arte (p. ej. la carta blanca de Alice in Borderland). */
.world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 5, 10, .05)  0%,
    rgba(4, 5, 10, .30) 30%,
    rgba(4, 5, 10, .78) 55%,
    rgba(4, 5, 10, .93) 78%,
    rgba(4, 5, 10, .97) 100%
  );
  transition: opacity .5s var(--ease-soft);
}

.world__body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  display: grid;
  gap: .35rem;
}

.world__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c9a7ff;
}

.world__name {
  font-size: clamp(1.35rem, 1rem + 1.35vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.world__rule {
  width: 56px;
  height: 3px;
  margin-top: .5rem;
  border-radius: 3px;
  background: var(--grad-brand);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .55s var(--ease-out);
}
.world:hover .world__rule,
.world:focus-visible .world__rule { transform: scaleX(1); }
.world--featured .world__rule { transform: scaleX(1); }

.world__cta {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  color: var(--text-muted);
  font-size: .925rem;
  transition: max-height .55s var(--ease-out), opacity .45s var(--ease-soft),
              margin-top .55s var(--ease-out);
}
.world:hover .world__cta,
.world:focus-visible .world__cta {
  max-height: 5rem;
  opacity: 1;
  margin-top: .35rem;
}


/* 09. QUIÉNES SOMOS ======================================================= */

.about { position: relative; overflow: hidden; }

.about__inner {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
}

.about__statement {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about__text {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
}
.about__text + .about__text { margin-top: 1.25rem; }

.about__actions {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Línea divisoria luminosa reutilizable */
.glow-rule {
  position: relative;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.glow-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 180px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .85), transparent 70%);
}


/* 10. PIE DE PÁGINA ======================================================= */

.footer {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.footer__nav a { transition: color .3s var(--ease-soft); }
.footer__nav a:hover { color: var(--text); }

.footer__brand {
  font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__legal {
  margin-top: .85rem;
  font-size: .85rem;
  color: var(--text-dim);
}


/* 11. PÁGINA INTERIOR ===================================================== */

.page-hero {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.page-hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -.045em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero__lead {
  max-width: 56ch;
  margin: 1.25rem auto 0;
  color: var(--text-muted);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.notice {
  max-width: 52rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px dashed rgba(168, 85, 247, .4);
  border-radius: var(--radius-lg);
  background: rgba(168, 85, 247, .05);
  color: var(--text-muted);
  text-align: left;
}
.notice h2 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.notice ul { display: grid; gap: .5rem; margin-top: .75rem; }
.notice li { padding-left: 1.25rem; position: relative; }
.notice li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}


/* 12. TEMA DEL EVENTO: ALICE IN BORDERCRAFT ==============================
   El arte del evento es granate y oro, no el neón de la marca. La página
   redefine solo los tokens de color: la estructura y los componentes son los
   mismos, así que sigue leyéndose como parte del sitio.
   ========================================================================== */

.theme-alice {
  --bg:         #0a0406;
  --bg-card:    #170a0d;
  --text-muted: #c4aeb0;
  --text-dim:   #8a7275;

  --blue:   #c8102e;   /* rojo de la baraja */
  --cyan:   #e8c766;
  --purple: #d4af37;   /* oro */
  --violet: #8b1a2b;

  --grad-brand: linear-gradient(120deg, #8b1a2b 0%, #c8102e 48%, #d4af37 100%);
  --grad-text:  linear-gradient(120deg, #ffffff 0%, #f6e3ba 50%, #d4af37 100%);
  --grad-rule:  linear-gradient(90deg, #d4af37, #c8102e, transparent);
}

.theme-alice::before {
  background:
    radial-gradient(70ch 60ch at 12% 6%,  rgba(200, 16,  46, .18), transparent 65%),
    radial-gradient(60ch 55ch at 90% 20%, rgba(212, 175, 55, .12), transparent 65%),
    radial-gradient(80ch 50ch at 50% 96%, rgba(139, 26,  43, .16), transparent 70%);
}

.theme-alice .eyebrow { color: #e2c98a; }

/* --- Portada del evento ------------------------------------------------ */

.event-hero {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  overflow: hidden;
}

/* Textura de damasco del arte oficial, atenuada para que el texto respire */
.event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/alice-fondo.webp") center / cover no-repeat;
  opacity: .5;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

/* El lockup oficial trae su propio fondo de damasco, el mismo del hero: al
   difuminar los bordes deja de leerse como un rectángulo pegado encima. */
.event-hero__art {
  width: min(100%, 820px);
  margin-inline: auto;
  mask-image: radial-gradient(115% 115% at 50% 50%, #000 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(115% 115% at 50% 50%, #000 62%, transparent 100%);
}

.event-hero__lead {
  max-width: 46ch;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Botón de imagen (REGÍSTRATE) -------------------------------------- */

.btn-image {
  display: inline-block;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: 14px;
  transition: transform .4s var(--ease-out), filter .4s var(--ease-soft);
  filter: drop-shadow(0 10px 30px rgba(200, 16, 46, .35));
}
/* El ancho va en el enlace, no en la imagen: si se limita solo la imagen, el
   <a> conserva el ancho intrínseco del archivo y la imagen queda descentrada
   dentro de él. */
.btn-image     { width: min(100%, 300px); }
.btn-image img { width: 100%; }
.btn-image:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 18px 44px rgba(212, 175, 55, .5));
}
.btn-image:active { transform: translateY(0) scale(1); }

/* --- Bloque a dos columnas -------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.split__text p { color: var(--text-muted); }
.split__text p + p { margin-top: 1.15rem; }

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, .3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .65);
}

/* --- Tarjetas de detalles --------------------------------------------- */

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.detail {
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, .22);
  transition: transform .5s var(--ease-out), border-color .4s var(--ease-soft),
              box-shadow .5s var(--ease-out);
}
.detail:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, .5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

/* Los glifos de palos tienen un ojo tipográfico pequeño: necesitan bastante
   más cuerpo que el texto para pesar como icono. */
.detail__suit {
  font-size: 2.75rem;
  line-height: 1;
  color: #d4af37;
  margin-bottom: .75rem;
  text-shadow: 0 0 24px rgba(212, 175, 55, .45);
}
.detail__suit--red {
  color: #e03d52;
  text-shadow: 0 0 24px rgba(224, 61, 82, .45);
}

.detail__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .6rem;
}

/* Clase explícita en vez de `.detail p`: ese selector de elemento ganaba por
   especificidad a .detail__suit, que también es un <p> dentro de .detail. */
.detail__text { color: var(--text-muted); font-size: .975rem; }

/* --- Banda a sangre ---------------------------------------------------- */

.band {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 42vw, 460px);
  overflow: hidden;
  text-align: center;
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 4, 6, .92), rgba(10, 4, 6, .55) 50%, rgba(10, 4, 6, .95));
}
.band__caption {
  position: relative;
  z-index: 2;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #e2c98a;
}

/* --- Cierre ------------------------------------------------------------ */

.closing { text-align: center; }
.closing__question {
  max-width: 32ch;
  margin: 0 auto;
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.closing__text {
  max-width: 52ch;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) auto 0;
  color: var(--text-muted);
}


/* 13. RESPONSIVE ========================================================== */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(2rem, 6vw, 3rem);
  }
  .hero__grid > .hero__content { order: 2; }
  .hero__visual { order: 1; }
  .hero__visual img { width: min(78%, 420px); }
  .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .eyebrow { justify-content: center; }
  .section-title { justify-content: center; text-align: center; }

  .worlds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worlds__grid > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

  .split { grid-template-columns: 1fr; text-align: center; }
  .split__media { max-width: 420px; margin-inline: auto; }
  .details { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .nav__toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(6, 8, 14, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .4s var(--ease-out), opacity .3s var(--ease-soft),
                visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .nav__link {
    padding: .95rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .nav__link::after { display: none; }

  .nav .btn--discord { margin-top: 1.25rem; justify-content: center; }

  .hero { min-height: auto; }
  .hero__scroll { display: none; }
}

@media (max-width: 620px) {
  .worlds__grid { grid-template-columns: 1fr; }
  .worlds__grid > :first-child { aspect-ratio: 4 / 3; }
  .hero__actions .btn { width: 100%; }

  /* En móvil el CTA de las tarjetas siempre visible: no hay hover */
  .world__cta { max-height: 5rem; opacity: 1; margin-top: .35rem; }
  .world__rule { transform: scaleX(1); }
}


/* 14. ACCESIBILIDAD / MOVIMIENTO REDUCIDO ================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__visual img { transform: none; }
  .world__cta { max-height: 5rem; opacity: 1; }
}
