/* Fuentes locales de Mewet Legacy (SIL Open Font License 1.1, ver OFL-*.txt). Sin CDN en tiempo de ejecucion. */
/* Cinzel: titulos. Cormorant Garamond: lore y citas. Inter: texto e interfaz. Variables: un fichero cubre todos los pesos. */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   Mewet Legacy - estilo de la web
   El frio del Trono Helado roto por la luz del Vacio, sujeto por el oro de los titanes.
   Oro para lo que se pulsa y los titulos, violeta para el brillo, hielo para la informacion.
   (las @font-face de static/fonts/fuentes.css se anteponen al construir)
   ===================================================================== */
:root {
  --abismo: #07080F; --noche: #0D1020; --noche-2: #151A30; --noche-3: #1D2340; --borde: #262C4A;
  --texto: #E6E4EF; --texto-suave: #A7A9C2; --texto-tenue: #7C809E;
  --oro-700: #8A6A2E; --oro-500: #C9A55A; --oro-300: #E9D29A; --oro-brillo: #FFF1C9;
  --vacio-900: #1C1446; --vacio-700: #3A1F7A; --vacio-600: #6A3FD6; --vacio-500: #9C7BFF; --vacio-300: #B48CFF;
  --hielo-900: #1B3A4F; --hielo-500: #4F88A0; --hielo-300: #7DB0C2; --hielo-100: #ACCED5;
  --exito: #5FD3A0; --aviso: #F2B654; --error: #FF6B7A;

  --grieta: linear-gradient(115deg, #4F88A0 0%, #6A3FD6 48%, #C9A55A 100%);
  --titulo-oro: linear-gradient(180deg, #FFF1C9 0%, #E9D29A 45%, #C9A55A 100%);
  --halo-vacio: 0 0 22px rgba(144, 79, 243, .45);
  --velo-abajo: linear-gradient(180deg, rgba(7,8,15,.15) 0%, rgba(7,8,15,.55) 55%, #07080F 100%);
  --velo-lado: linear-gradient(90deg, #07080F 0%, rgba(7,8,15,.78) 42%, rgba(7,8,15,.05) 80%);

  --radio: 10px; --radio-grande: 18px;
  --sombra: 0 10px 30px rgba(0,0,0,.45);
  --sombra-brillo: 0 0 0 1px rgba(201,165,90,.35), 0 12px 40px rgba(106,63,214,.25);

  --f-titulo: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-lore: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-texto: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --alto-cabecera: 72px;
  --acento: var(--vacio-500);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-cabecera) + 16px); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; overflow-x: clip;
  font: 400 1rem/1.65 var(--f-texto); color: var(--texto);
  background-color: var(--abismo);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(106,63,214,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(79,136,160,.10), transparent 60%),
    radial-gradient(900px 700px at 110% 90%, rgba(201,165,90,.06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--vacio-300); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s; }
a:hover { color: var(--oro-300); }
:focus-visible { outline: 2px solid var(--vacio-300); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(156,123,255,.4); color: #fff; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
code { font: 500 .92em/1.4 ui-monospace, 'Cascadia Code', Consolas, monospace; color: var(--hielo-100);
  background: rgba(79,136,160,.14); border: 1px solid rgba(79,136,160,.3); border-radius: 6px; padding: .12em .45em; word-break: break-word; }
strong { color: #fff; font-weight: 650; }
em { font-style: italic; color: var(--hielo-100); }
[hidden] { display: none !important; }
main:focus { outline: none; }
/* Los anillos que giran del sello (y otros adornos) no deben ensanchar la pagina en el movil. */
main, .pie { overflow-x: clip; }

h1, h2, h3 {
  font-family: var(--f-titulo); font-weight: 600; letter-spacing: .04em; line-height: 1.15; margin: 0 0 .5em;
  color: var(--oro-300); background: var(--titulo-oro); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.2vw, 4rem); filter: drop-shadow(0 0 18px rgba(144,79,243,.35)); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.35rem); }
h4 { font: 600 .82rem/1.3 var(--f-titulo); letter-spacing: .14em; text-transform: uppercase; color: var(--oro-500); margin: 0 0 .6em; }
@media (forced-colors: active) {
  h1, h2, h3 { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; }
}

.solo-lectores { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.salto { position: absolute; left: 16px; top: -100px; z-index: 100; padding: .7em 1.2em; border-radius: var(--radio);
  background: var(--oro-500); color: var(--abismo); font-weight: 700; text-decoration: none; }
.salto:focus { top: 12px; color: var(--abismo); }
.defs-svg { position: absolute; width: 0; height: 0; overflow: hidden; }

.contenedor { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .contenedor { padding-inline: 28px; } }
.estrecho { max-width: 860px; }
.centrado { text-align: center; }
.icono { width: 24px; height: 24px; flex: none; }
.icono-grande { width: 40px; height: 40px; }

/* ------------------------------------------------------------------ botones */
.boton {
  --b-fondo: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.1 var(--f-titulo); letter-spacing: .08em; text-decoration: none; cursor: pointer;
  transition: transform .25s, box-shadow .3s, background-color .3s, border-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.boton:active { transform: translateY(1px) scale(.99); }
.boton-oro { background: var(--titulo-oro); color: var(--abismo); border-color: rgba(255,241,201,.6);
  box-shadow: 0 0 0 1px rgba(138,106,46,.6), 0 8px 24px rgba(201,165,90,.22); position: relative; overflow: hidden; }
.boton-oro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s; pointer-events: none; }
.boton-oro:hover { color: var(--abismo); box-shadow: 0 0 0 1px var(--oro-300), 0 0 28px rgba(144,79,243,.55), 0 10px 28px rgba(201,165,90,.3); transform: translateY(-2px); }
.boton-oro:hover::after { transform: translateX(120%); }
.boton-cristal { background: rgba(21,26,48,.55); color: var(--texto); border-color: rgba(201,165,90,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.boton-cristal:hover { color: var(--oro-brillo); border-color: var(--oro-300); box-shadow: var(--halo-vacio); transform: translateY(-2px); }
.boton-vacio { background: var(--vacio-600); color: #fff; border-color: var(--vacio-500); }
.boton-vacio:hover { color: #fff; box-shadow: var(--halo-vacio); transform: translateY(-2px); }
.boton-inactivo { background: rgba(21,26,48,.5); color: var(--texto-suave); border: 1px dashed var(--borde); cursor: default;
  font-family: var(--f-texto); font-weight: 500; letter-spacing: .02em; }
.boton-grande { min-height: 52px; padding: .85em 1.8em; font-size: 1rem; }
.boton-pequeno { min-height: 38px; padding: .5em 1.1em; font-size: .82rem; }
.boton-bloque { width: 100%; }
.boton[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.icono-boton { width: 18px; height: 18px; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.botones.centrado { justify-content: center; }
.boton-icono { display: inline-flex; align-items: center; justify-content: center; gap: .4em; position: relative;
  min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--borde);
  background: var(--noche-2); color: var(--hielo-300); cursor: pointer; transition: color .2s, border-color .2s; }
.boton-icono:hover { color: var(--oro-300); border-color: var(--oro-700); }
.boton-icono .icono { width: 18px; height: 18px; }
.copiado { font: 600 .75rem/1 var(--f-texto); color: var(--exito); }
.copiado:empty { display: none; }

/* ------------------------------------------------------------------ insignias de estado */
.insignia { display: inline-flex; align-items: center; gap: .4em; padding: .28em .75em; border-radius: 999px;
  font: 600 .72rem/1.2 var(--f-texto); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor; background: rgba(7,8,15,.55); }
.insignia::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.estado-disponible { color: var(--exito); }
.estado-en_pruebas { color: var(--aviso); }
.estado-en_desarrollo { color: var(--vacio-300); }
.estado-proximamente { color: var(--hielo-300); }
.estado-prevista { color: var(--texto-suave); }

/* ------------------------------------------------------------------ cabecera */
.cabecera { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--alto-cabecera);
  transition: background-color .35s, box-shadow .35s, border-color .35s; border-bottom: 1px solid transparent; }
.cabecera::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grieta); opacity: 0; transition: opacity .35s; }
.cabecera.solida, .no-js .cabecera { background: rgba(10,12,24,.88); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cabecera.solida::after { opacity: .7; }
.cabecera-fila { height: 100%; display: flex; align-items: center; gap: 16px; }
.cabecera-logo { display: block; flex: none; margin-right: auto; }
.cabecera-logo img { height: 46px; width: auto; filter: drop-shadow(0 0 12px rgba(144,79,243,.35)); transition: filter .3s; }
.cabecera-logo:hover img { filter: drop-shadow(0 0 16px rgba(144,79,243,.7)); }
.nav-lista { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-enlace { display: block; padding: .55em .8em; border-radius: 8px; color: var(--texto); text-decoration: none;
  font: 600 .8rem/1 var(--f-titulo); letter-spacing: .1em; text-transform: uppercase; position: relative; }
.nav-enlace::after { content: ""; position: absolute; left: .8em; right: .8em; bottom: .15em; height: 1px; background: var(--grieta);
  transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.nav-enlace:hover { color: var(--oro-300); }
.nav-enlace:hover::after, .nav-enlace[aria-current="page"]::after { transform: scaleX(1); }
.nav-enlace[aria-current="page"] { color: var(--oro-300); }
.nav-cta { margin-left: 10px; }
.boton-menu { display: none; }

@media (max-width: 1080px) {
  :root { --alto-cabecera: 64px; }
  .cabecera-logo img { height: 40px; }
  .boton-menu { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px;
    border: 1px solid rgba(201,165,90,.4); background: rgba(13,16,32,.7); color: var(--oro-300); cursor: pointer; }
  .hamburguesa { position: relative; width: 20px; height: 14px; }
  .hamburguesa span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .3s, top .3s; }
  .hamburguesa span:nth-child(1) { top: 0; } .hamburguesa span:nth-child(2) { top: 6px; } .hamburguesa span:nth-child(3) { top: 12px; }
  .boton-menu[aria-expanded="true"] .hamburguesa span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .boton-menu[aria-expanded="true"] .hamburguesa span:nth-child(2) { opacity: 0; }
  .boton-menu[aria-expanded="true"] .hamburguesa span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .nav { position: fixed; inset: var(--alto-cabecera) 0 auto; max-height: calc(100vh - var(--alto-cabecera)); overflow-y: auto;
    background: rgba(10,12,24,.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--borde); box-shadow: 0 30px 50px rgba(0,0,0,.5);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }
  .nav.abierta { transform: none; opacity: 1; visibility: visible; transition: opacity .3s, transform .3s; }
  .nav-lista { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px; }
  .nav-enlace { padding: 1em .6em; font-size: .92rem; border-bottom: 1px solid rgba(38,44,74,.6); border-radius: 0; }
  .nav-enlace::after { display: none; }
  .nav-enlace[aria-current="page"] { color: var(--oro-300); background: linear-gradient(90deg, rgba(106,63,214,.18), transparent); }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .boton { width: 100%; min-height: 48px; font-size: .9rem; }
  /* sin JS el menu se queda a la vista */
  .no-js .boton-menu { display: none; }
  .no-js .cabecera { height: auto; position: absolute; }
  .no-js .cabecera-fila { flex-wrap: wrap; padding-block: 10px; }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; border: 0; max-height: none; }
  .no-js .nav-lista { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .no-js .nav-enlace { border: 0; padding: .5em .6em; font-size: .78rem; }
}
.menu-abierto { overflow: hidden; }

/* ------------------------------------------------------------------ titulos de seccion y ornamentos */
.seccion { position: relative; padding-block: clamp(56px, 7vw, 96px); }
.seccion-alterna { background: linear-gradient(180deg, rgba(13,16,32,.0), rgba(13,16,32,.85) 12%, rgba(13,16,32,.85) 88%, rgba(13,16,32,0)); }
.titulo-seccion { margin-bottom: clamp(32px, 5vw, 56px); max-width: 820px; }
.titulo-seccion.centrado { margin-inline: auto; }
.antetitulo { font: 600 .78rem/1.3 var(--f-titulo); letter-spacing: .24em; text-transform: uppercase; color: var(--oro-500); margin-bottom: .8em; }
.entradilla { font: 500 clamp(1.12rem, 1.7vw, 1.32rem)/1.6 var(--f-lore); color: var(--texto-suave); margin: 0 auto; max-width: 720px; }
.titulo-seccion:not(.centrado) .entradilla { margin-inline: 0; }
.subtitulo { margin: 2.2em 0 1em; }

.ornamento { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--oro-500); margin: .2em auto 1.1em; max-width: 420px; }
.ornamento svg { width: 96px; height: auto; flex: none; filter: drop-shadow(0 0 6px rgba(144,79,243,.45)); }
.ornamento-linea { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,165,90,.7)); }
.ornamento-linea:last-child { background: linear-gradient(90deg, rgba(201,165,90,.7), transparent); }
.ornamento-izq { justify-content: flex-start; margin-left: 0; max-width: 260px; }
.ornamento-izq .ornamento-linea:first-child { display: none; }

.grieta { position: relative; height: 56px; display: flex; align-items: center; justify-content: center; margin-block: -28px; z-index: 2; pointer-events: none; }
.grieta-trazo { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 24px; transform: translateY(-50%) rotate(-.6deg);
  filter: drop-shadow(0 0 6px rgba(144,79,243,.9)) drop-shadow(0 0 16px rgba(106,63,214,.6)); }
.grieta-sello { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28,20,70,.95) 40%, rgba(7,8,15,0) 72%); }
.grieta-sello img { width: 48px; height: auto; filter: drop-shadow(0 0 10px rgba(144,79,243,.8)); }

.nota { color: var(--texto-suave); font-size: .92rem; }
.nota.centrado { margin-inline: auto; max-width: 760px; margin-top: 2em; }
.enlace-flecha a { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.enlace-flecha .icono { width: 18px; height: 18px; transition: transform .3s; }
.enlace-flecha a:hover .icono { transform: translateX(4px); }

.prosa p { color: var(--texto); }
.prosa-lore p, .prosa-lore li { font: 500 clamp(1.12rem, 1.5vw, 1.28rem)/1.65 var(--f-lore); color: #DCDAE8; }
.prosa h2 { margin-top: 1.6em; }

.dos-columnas { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 860px) { .dos-columnas { grid-template-columns: 1.15fr .85fr; } }
.tres-columnas { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 900px) { .tres-columnas { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------ hero (pantalla de carga) */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--alto-cabecera) + 16px) 0 132px; overflow: hidden; isolation: isolate; }
.hero-fondo { position: absolute; inset: 0; z-index: -3; }
.hero-fondo picture { width: 100%; height: 100%; }
.hero-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-particulas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grieta { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .75;
  filter: drop-shadow(0 0 6px rgba(156,123,255,.95)) drop-shadow(0 0 22px rgba(106,63,214,.7)); pointer-events: none; }
.hero-velo { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(7,8,15,.62) 0%, rgba(7,8,15,.25) 60%, transparent 100%),
    linear-gradient(180deg, rgba(7,8,15,.55) 0%, rgba(7,8,15,.2) 30%, rgba(7,8,15,.55) 70%, #07080F 100%); }
.hero-contenido { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(460px, 78vw, 44vh); height: auto; margin-bottom: 10px; filter: drop-shadow(0 0 30px rgba(144,79,243,.55)) drop-shadow(0 6px 18px rgba(0,0,0,.8)); }
.hero-ante { color: var(--hielo-100); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.hero-titulo { max-width: 15em; font-size: clamp(2rem, min(4.8vw, 6.6vh), 3.7rem); text-shadow: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.9)) drop-shadow(0 0 22px rgba(144,79,243,.45)); }
.hero-sub { max-width: 680px; font: 500 clamp(1.1rem, 1.6vw, 1.3rem)/1.6 var(--f-lore); color: #E9E7F2; text-shadow: 0 2px 12px rgba(0,0,0,.95); }
.hero-sub strong { color: var(--oro-300); }
.hero .botones { justify-content: center; margin-top: 1.1em; }
.hero-nota { margin: .9em 0 0; font-size: .88rem; color: var(--texto-suave); text-shadow: 0 1px 6px #000; }

.carga { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 22px; z-index: 1; }
.carga-consejo { font: 500 1.02rem/1.45 var(--f-lore); color: var(--texto-suave); text-align: center; margin: 0 auto 10px; max-width: 760px;
  min-height: 1.45em; text-shadow: 0 1px 8px #000; transition: opacity .5s; }
.carga-consejo.cambiando { opacity: 0; }
.carga-etq { font: 600 .74rem/1 var(--f-titulo); letter-spacing: .18em; text-transform: uppercase; color: var(--oro-500); margin-right: .3em; }
.carga-marco { display: flex; align-items: center; max-width: 820px; margin: 0 auto; }
.carga-remate { width: 26px; height: 26px; flex: none; transform: rotate(45deg); border: 2px solid var(--oro-500);
  background: radial-gradient(circle, var(--vacio-500) 25%, var(--vacio-900) 70%); box-shadow: 0 0 12px rgba(144,79,243,.8), inset 0 0 6px rgba(0,0,0,.8); }
.carga-barra { flex: 1; height: 14px; margin: 0 -4px; border: 2px solid var(--oro-700); border-left: 0; border-right: 0;
  background: linear-gradient(180deg, #05060c, #10132a); box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 0 0 1px rgba(233,210,154,.25); overflow: hidden; }
.carga-relleno { display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #2c5b70, #4F88A0 20%, #6A3FD6 55%, #9C7BFF 75%, #E9D29A 100%);
  box-shadow: 0 0 12px rgba(156,123,255,.9); position: relative; }
.carga-relleno::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 9px); }
.carga-estado { margin: 10px 0 0; text-align: center; font: 600 .8rem/1.3 var(--f-titulo); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-300);
  text-shadow: 0 0 10px rgba(144,79,243,.7), 0 1px 4px #000; }
.carga-estado .punto { margin-right: .5em; vertical-align: middle; }

@media (max-width: 700px) {
  .hero { padding-bottom: 164px; }
  /* En el movil la pantalla de carga debe caber entera: logo algo menor y los dos avisos en una fila. */
  .hero-logo { width: min(220px, 60vw, 28vh); margin-bottom: 4px; }
  .hero-sub { font-size: 1rem; line-height: 1.5; }
  .hero .botones { gap: 8px; }
  .hero .botones .boton-grande { flex: 0 0 100%; }
  .hero .botones .boton-inactivo { flex: 1 1 0; min-width: 0; min-height: 44px; padding: .55em .7em; font-size: .78rem; line-height: 1.25; white-space: normal; text-align: center; }
  .hero-nota { font-size: .8rem; }
  .hero-fondo img { object-position: 40% 25%; }
  .carga-consejo { font-size: .95rem; padding-inline: 4px; }
}

/* ------------------------------------------------------------------ estado del reino */
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--texto-tenue); flex: none; }
.punto.en-linea { background: var(--exito); box-shadow: 0 0 0 0 rgba(95,211,160,.6); }
.punto.fuera { background: var(--error); }
.seccion-estado { padding-top: 28px; z-index: 3; }
.panel-estado { position: relative; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--radio-grande);
  background: linear-gradient(160deg, rgba(29,35,64,.92), rgba(13,16,32,.95)); border: 1px solid var(--borde); box-shadow: var(--sombra); overflow: hidden; }
.panel-estado::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grieta);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.estado-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 24px; }
.estado-cabeza .antetitulo { margin: 0 0 .2em; }
.estado-titulo { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.estado-runa { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--hielo-100);
  background: radial-gradient(circle, rgba(79,136,160,.35), rgba(27,58,79,.2)); border: 1px solid rgba(125,176,194,.35); }
.estado-runa .icono { width: 28px; height: 28px; }
.estado-linea { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: .6em; padding: .55em 1.1em; border-radius: 999px;
  background: rgba(7,8,15,.6); border: 1px solid var(--borde); font-weight: 600; }
.estado-linea.en-linea { color: var(--exito); border-color: rgba(95,211,160,.4); }
.estado-linea.fuera { color: var(--error); border-color: rgba(255,107,122,.4); }
.estado-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(132px, 42%), 1fr)); gap: 12px; margin: 0; }
.estado-datos > div { padding: 16px 18px; border-radius: var(--radio); background: rgba(7,8,15,.45); border: 1px solid rgba(38,44,74,.8); }
.estado-datos dt { font-size: .8rem; color: var(--texto-suave); letter-spacing: .02em; }
.estado-datos dd { margin: .25em 0 0; font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--f-titulo); color: var(--oro-300); font-variant-numeric: tabular-nums; }
.estado-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 22px; }
.estado-version { margin: 0; color: var(--texto-suave); font-size: .85rem; }
.realmlist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.realmlist-etq { font-size: .85rem; color: var(--texto-suave); }
.realmlist code { font-size: .95rem; padding: .45em .8em; }

/* ------------------------------------------------------------------ que es + sello */
.sello { position: relative; aspect-ratio: 1; width: min(420px, 78vw); margin-inline: auto; display: grid; place-items: center; }
.sello-emblema { width: 64%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 0 40px rgba(144,79,243,.6)); }
.sello-anillo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201,165,90,.35); }
.sello-anillo-1 { inset: 4%; border-style: dashed; border-color: rgba(201,165,90,.4); }
.sello-anillo-2 { inset: 12%; border-color: rgba(156,123,255,.45); box-shadow: 0 0 40px rgba(106,63,214,.35), inset 0 0 40px rgba(106,63,214,.25); }
.sello-anillo-3 { inset: -2%; border-color: rgba(125,176,194,.2); border-width: 1px 0; }

/* ------------------------------------------------------------------ cifras */
.cifras { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cifra { text-align: center; padding: 26px 12px; border-radius: var(--radio-grande); background: linear-gradient(180deg, rgba(21,26,48,.7), rgba(13,16,32,.4));
  border: 1px solid var(--borde); position: relative; overflow: hidden; }
.cifra::before { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 1px; background: var(--grieta); }
.cifra-valor { display: block; font: 700 clamp(2.1rem, 4vw, 3rem)/1 var(--f-titulo); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  background: var(--titulo-oro); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(144,79,243,.45)); }
.cifra-etq { display: block; margin-top: .6em; color: var(--texto-suave); font-size: .9rem; }

/* ------------------------------------------------------------------ tarjetas destacadas / sistemas */
.destacados { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.destacado, .sistema, .bloque {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radio-grande); background: var(--noche-2); border: 1px solid var(--borde);
  transition: border-color .35s, box-shadow .35s, transform .35s, background-color .35s; }
.destacado:hover, .sistema:hover, .bloque:hover { border-color: rgba(201,165,90,.55); box-shadow: var(--sombra-brillo); transform: translateY(-4px); background: var(--noche-3); }
.destacado h3, .sistema h3, .bloque h3, .bloque h2 { font-size: 1.12rem; margin: .9em 0 .5em; }
.destacado p, .sistema p, .bloque p { color: var(--texto-suave); font-size: .95rem; margin-bottom: .8em; }
.destacado-icono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--oro-300);
  background: linear-gradient(145deg, rgba(58,31,122,.55), rgba(28,20,70,.4)); border: 1px solid rgba(156,123,255,.35);
  box-shadow: inset 0 0 18px rgba(106,63,214,.35); }
.destacado-icono .icono { width: 26px; height: 26px; }
.bloque-facciones { display: flex; gap: 10px; }

/* ------------------------------------------------------------------ citas */
.cita { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--acento); position: relative; }
.cita blockquote { margin: 0; }
.cita blockquote p { font: italic 500 clamp(1.25rem, 2vw, 1.5rem)/1.45 var(--f-lore); color: var(--hielo-100); margin: 0 0 .5em; }
.cita blockquote p::before { content: "«"; color: var(--oro-500); margin-right: .1em; }
.cita blockquote p::after { content: "»"; color: var(--oro-500); margin-left: .1em; }
.cita figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .9rem; color: var(--texto-suave); }
.cita-autor::before { content: "— "; }
.marca-lore { display: inline-flex; align-items: center; gap: .4em; padding: .2em .7em; border-radius: 999px; font: 600 .68rem/1.3 var(--f-texto);
  letter-spacing: .08em; text-transform: uppercase; color: var(--vacio-300); background: rgba(58,31,122,.35); border: 1px solid rgba(156,123,255,.35); }
.marca-lore::before { content: "✦"; color: var(--oro-500); }
.cita-grande { max-width: 860px; margin-inline: auto; padding: 0; border: 0; text-align: center; }
.cita-grande blockquote p { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.35; }
.cita-grande figcaption { justify-content: center; margin-top: 1em; }
.seccion-cita { padding-block: clamp(48px, 7vw, 90px); }

/* ------------------------------------------------------------------ puertas (instancias en portada) */
.puertas { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.puerta a { display: block; position: relative; aspect-ratio: 3 / 2; border-radius: var(--radio-grande); overflow: hidden; text-decoration: none;
  color: var(--texto); border: 1px solid var(--borde); isolation: isolate; transition: border-color .35s, box-shadow .35s, transform .35s; }
.puerta-img, .puerta-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s, filter .6s; }
.puerta a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,8,15,0) 30%, rgba(7,8,15,.92) 100%); }
.puerta a:hover, .puerta a:focus-visible { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento), 0 18px 40px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--acento) 35%, transparent); transform: translateY(-4px); }
.puerta a:hover .puerta-img img { transform: scale(1.06); filter: saturate(1.2); }
.puerta-texto { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.puerta-origen { font: 600 .7rem/1 var(--f-titulo); letter-spacing: .2em; text-transform: uppercase; color: var(--acento); }
.puerta-nombre { font: 600 1.3rem/1.2 var(--f-titulo); color: #fff; text-shadow: 0 2px 10px #000; }
.puerta-tipo { font-size: .85rem; color: var(--texto-suave); }
.puerta .insignia { position: absolute; top: 14px; right: 14px; }
.puerta-final { grid-column: 1 / -1; }
@media (min-width: 640px) { .puerta-final a { aspect-ratio: 12 / 5; } .puerta-final .puerta-nombre { font-size: clamp(1.5rem, 3vw, 2.2rem); } .puerta-final .puerta-texto { left: 28px; bottom: 24px; } }

/* colores por arco / instancia */
.arco-ataldazar { --acento: #E3B341; } .arco-camaras { --acento: #F0B866; } .arco-tierrasfuego { --acento: #FF7A2F; }
.arco-heraldos { --acento: #F28C5A; } .arco-corte { --acento: #C77DFF; } .arco-bastion { --acento: #E07BDB; }
.arco-rajavacio { --acento: #5C7CFF; } .arco-forja { --acento: #8C5BFF; }
.capitulo-prologo { --acento: var(--oro-500); } .capitulo-arco1 { --acento: #7DB0C2; } .capitulo-arco2 { --acento: #E3B341; }
.capitulo-arco3 { --acento: #C77DFF; } .capitulo-arco4 { --acento: #5C7CFF; } .capitulo-arco5 { --acento: #8C5BFF; }
.capitulo-epilogo { --acento: var(--oro-300); }

/* ------------------------------------------------------------------ franjas con imagen */
.franja { position: relative; isolation: isolate; padding-block: clamp(80px, 12vw, 160px); overflow: hidden; }
.franja-fondo, .franja-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.franja-velo { position: absolute; inset: 0; z-index: -1; background: var(--velo-lado), linear-gradient(180deg, #07080F 0%, transparent 18%, transparent 82%, #07080F 100%); }
.franja-contenido { max-width: 1200px; }
.franja-contenido > * { max-width: 560px; }
.franja-texto { font: 500 clamp(1.15rem, 1.7vw, 1.35rem)/1.6 var(--f-lore); color: #E9E7F2; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
@media (max-width: 700px) { .franja-velo { background: linear-gradient(180deg, #07080F 0%, rgba(7,8,15,.7) 30%, rgba(7,8,15,.85) 100%); } }

/* ------------------------------------------------------------------ ranking */
.tabla-envoltura { overflow-x: auto; border-radius: var(--radio-grande); border: 1px solid var(--borde); background: var(--noche-2); }
.tabla-ranking { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabla-ranking th { text-align: left; font: 600 .72rem/1 var(--f-titulo); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-500);
  padding: 16px 18px; border-bottom: 1px solid var(--borde); background: rgba(7,8,15,.35); }
.tabla-ranking td { padding: 12px 18px; border-bottom: 1px solid rgba(38,44,74,.6); vertical-align: middle; }
.tabla-ranking tbody tr:last-child td { border-bottom: 0; }
.tabla-ranking tbody tr { transition: background-color .25s; }
.tabla-ranking tbody tr:hover { background: rgba(29,35,64,.7); }
.tabla-vacia { text-align: center; color: var(--texto-suave); padding: 28px !important; }
.rk-puesto { font: 700 1.05rem/1 var(--f-titulo); color: var(--texto-suave); width: 52px; }
.rk-top .rk-puesto { color: var(--oro-300); }
.rk-heroe { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rk-heroe img, .rk-clase img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--borde); flex: none; }
.rk-clase { display: flex; align-items: center; gap: 10px; }
.rk-clase img { border-radius: 8px; border-color: var(--rk-color, var(--borde)); box-shadow: 0 0 10px color-mix(in srgb, var(--rk-color, transparent) 40%, transparent); }
.rk-nivel { font: 600 1.05rem/1 var(--f-titulo); color: var(--oro-300); }
.rk-raza { display: block; font-weight: 400; font-size: .8rem; color: var(--texto-suave); }
@media (max-width: 640px) { .col-logros { display: none; } .tabla-ranking th, .tabla-ranking td { padding: 10px; } .rk-clase span { display: none; } }

.seccion-final { text-align: center; overflow: hidden; }
.seccion-final::before { content: ""; position: absolute; inset: 10% 0; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(106,63,214,.22), transparent 70%); z-index: -1; }
.final-emblema { width: 104px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 0 26px rgba(144,79,243,.75)); }

/* ------------------------------------------------------------------ cabecera de pagina */
.cabecera-pagina { position: relative; isolation: isolate; padding: calc(var(--alto-cabecera) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.cp-fondo, .cp-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cp-velo { position: absolute; inset: 0; z-index: -1; background: var(--velo-lado), var(--velo-abajo); }
.cp-contenido > * { max-width: 760px; }
.cp-contenido .entradilla { margin-inline: 0; color: #E2E0EC; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.cp-contenido.centrado > * { margin-inline: auto; }
.cp-contenido.centrado .entradilla { margin-inline: auto; }
.cabecera-corta { padding-bottom: clamp(40px, 6vw, 72px); }
.cabecera-cosmos { background:
  radial-gradient(ellipse 70% 90% at 80% 0%, rgba(106,63,214,.35), transparent 60%),
  radial-gradient(ellipse 50% 70% at 10% 100%, rgba(79,136,160,.22), transparent 60%), var(--abismo); }
.cabecera-cosmos::before, .cosmos-estrellas { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 68%, #cfd8ff, transparent),
    radial-gradient(1.5px 1.5px at 44% 34%, #fff, transparent), radial-gradient(1px 1px at 61% 81%, #e9d29a, transparent),
    radial-gradient(1px 1px at 72% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 86% 56%, #b48cff, transparent),
    radial-gradient(1px 1px at 93% 88%, #fff, transparent), radial-gradient(1px 1px at 6% 90%, #acced5, transparent),
    radial-gradient(1px 1px at 52% 6%, #fff, transparent), radial-gradient(1px 1px at 36% 92%, #fff, transparent);
  background-size: 320px 240px; }
.cabecera-cosmos .cp-velo { background: none; }
.cp-sello { position: absolute; z-index: -1; right: max(4vw, calc((100vw - 1200px) / 2)); top: 50%; width: min(340px, 30vw); transform: translateY(-40%); opacity: .9; }
.cabecera-corta .cp-sello { width: min(240px, 24vw); }
@media (max-width: 760px) { .cp-sello { right: -60px; width: 220px; opacity: .28; } }
.cabecera-404 { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }

/* ------------------------------------------------------------------ lore: cronica y linea temporal */
.seccion-cronica { padding-top: clamp(40px, 6vw, 72px); }
.lore-intro { max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.entradilla-lore { font: 500 clamp(1.2rem, 2vw, 1.5rem)/1.6 var(--f-lore); color: var(--texto); }
.aviso-citas { font-size: .88rem; }
.cronica { display: grid; gap: 40px; }
@media (min-width: 1000px) { .cronica { grid-template-columns: 220px 1fr; gap: 56px; } }
.linea-tiempo { display: none; }
@media (min-width: 1000px) {
  .linea-tiempo { display: block; position: sticky; top: calc(var(--alto-cabecera) + 32px); align-self: start; }
  .linea-tiempo-titulo { font: 600 .74rem/1 var(--f-titulo); letter-spacing: .24em; text-transform: uppercase; color: var(--oro-500); }
  .linea-tiempo ol { list-style: none; position: relative; padding-left: 22px; }
  .linea-tiempo ol::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, var(--oro-500), var(--hielo-300) 20%, #E3B341 38%, #C77DFF 55%, #5C7CFF 72%, #8C5BFF 86%, var(--oro-300)); border-radius: 2px; opacity: .7; }
  .linea-tiempo a { display: block; position: relative; padding: .5em 0 .5em 8px; text-decoration: none; color: var(--texto-suave); transition: color .25s; }
  .linea-tiempo a::before { content: ""; position: absolute; left: -22px; top: .95em; width: 12px; height: 12px; border-radius: 50%;
    background: var(--abismo); border: 2px solid var(--borde); transition: border-color .3s, box-shadow .3s, background .3s; }
  .linea-tiempo a:hover { color: var(--oro-300); }
  .linea-tiempo a.activo { color: var(--oro-300); }
  .linea-tiempo a.activo::before { border-color: var(--oro-300); background: var(--vacio-500); box-shadow: 0 0 12px var(--vacio-500); }
  .tl-num { display: block; font: 600 .68rem/1.2 var(--f-titulo); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-500); }
  .tl-tit { display: block; font: 500 1.05rem/1.25 var(--f-lore); }
}
.capitulos { position: relative; display: grid; gap: clamp(56px, 8vw, 96px); min-width: 0; }
.capitulo { position: relative; min-width: 0; }
.capitulo-cab { margin-bottom: 18px; }
.capitulo-num { display: inline-block; font: 600 .78rem/1 var(--f-titulo); letter-spacing: .3em; text-transform: uppercase; color: var(--acento);
  padding: .5em 1em; border: 1px solid color-mix(in srgb, var(--acento) 60%, transparent); border-radius: 999px; margin-bottom: 1em; }
.capitulo-cab h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .2em; }
.capitulo-lugar { color: var(--texto-suave); font: italic 500 1.1rem/1.4 var(--f-lore); }
.capitulo-banda { position: relative; border-radius: var(--radio-grande); overflow: hidden; aspect-ratio: 12 / 5; margin-bottom: 28px;
  border: 1px solid var(--borde); box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 20px 50px rgba(0,0,0,.45); }
.capitulo-banda::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(7,8,15,.65); border-radius: inherit;
  background: linear-gradient(180deg, transparent 60%, rgba(7,8,15,.55)); pointer-events: none; }
.capitulo-banda img { width: 100%; height: 100%; object-fit: cover; }
.capitulo-arco1 .capitulo-banda img { object-position: 50% 25%; }
.capitulo-cosmos { display: grid; place-items: center; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(106,63,214,.45), rgba(28,20,70,.4) 45%, #07080F 80%); }
.cosmos-estrellas { z-index: 0; }
.cosmos-emblema { position: relative; z-index: 1; width: clamp(80px, 14vw, 128px); height: auto; filter: drop-shadow(0 0 30px rgba(156,123,255,.9)); }
.capitulo-cuerpo { max-width: 760px; }
.seccion-arco { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--borde); position: relative; }
.seccion-arco::before { content: ""; position: absolute; left: 0; top: -1px; width: 120px; height: 2px; background: var(--acento); box-shadow: 0 0 10px var(--acento); }
.seccion-arco-lugar { font: 600 .72rem/1 var(--f-titulo); letter-spacing: .2em; text-transform: uppercase; color: var(--acento); margin-bottom: .6em; }
.seccion-arco-cab h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.seccion-arco-img { margin: 0 0 18px; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); aspect-ratio: 3 / 2; }
.seccion-arco-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1200px) {
  .capitulo-cuerpo { max-width: none; }
  .capitulo-cuerpo > .prosa, .capitulo-cuerpo > .cita, .capitulo-cuerpo > .nota { max-width: 760px; }
  .seccion-arco.con-imagen { display: grid; grid-template-columns: 1fr 300px; column-gap: 36px; }
  .seccion-arco.con-imagen .seccion-arco-cab { grid-column: 1 / -1; }
  .seccion-arco.con-imagen .seccion-arco-img { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: calc(var(--alto-cabecera) + 24px); }
  .seccion-arco.con-imagen .seccion-arco-texto { grid-column: 1; grid-row: 2; }
}
.lista-jefes { counter-reset: jefe; list-style: none; display: grid; gap: 10px; margin: 1em 0; }
.lista-jefes li { counter-increment: jefe; position: relative; padding: 12px 16px 12px 56px; border-radius: var(--radio); background: rgba(21,26,48,.7);
  border: 1px solid var(--borde); font-size: 1.15rem !important; }
.lista-jefes li::before { content: counter(jefe, upper-roman); position: absolute; left: 14px; top: 12px; width: 30px; text-align: center;
  font: 600 .85rem/1.6 var(--f-titulo); color: var(--acento); }
.nota-lore { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radio); background: rgba(27,58,79,.35);
  border: 1px solid rgba(79,136,160,.45); color: var(--hielo-100); }
.nota-lore .icono { color: var(--hielo-300); margin-top: 2px; }

.spoiler { margin-top: 18px; border-radius: var(--radio); border: 1px dashed rgba(156,123,255,.55); background: rgba(28,20,70,.35); }
.spoiler summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; color: var(--vacio-300); }
.spoiler summary::-webkit-details-marker { display: none; }
.spoiler summary::after { content: "+"; margin-left: auto; font: 400 1.4rem/1 var(--f-texto); color: var(--oro-500); transition: transform .3s; }
.spoiler[open] summary::after { transform: rotate(45deg); }
.spoiler summary:hover { color: var(--oro-300); }
.spoiler-etq { font: 600 .68rem/1 var(--f-titulo); letter-spacing: .18em; text-transform: uppercase; padding: .45em .8em; border-radius: 999px;
  background: var(--vacio-700); color: #fff; }
.spoiler-cuerpo { padding: 4px 20px 18px; }
.spoiler-capitulo { margin-top: 0; }

.sellados { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.sellado { position: relative; padding: 28px 22px 22px; border-radius: var(--radio-grande); overflow: hidden;
  background: linear-gradient(160deg, rgba(21,26,48,.85), rgba(13,16,32,.6)); border: 1px solid var(--borde); }
.sellado::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(156,123,255,.04) 0 12px, transparent 12px 24px); pointer-events: none; }
.sellado-num { position: absolute; right: 14px; top: 2px; font: 700 4.2rem/1 var(--f-titulo); color: rgba(156,123,255,.12); }
.sellado-candado { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--hielo-300); border: 1px solid rgba(125,176,194,.4); background: rgba(27,58,79,.35); }
.sellado h3 { margin: .9em 0 .2em; font-size: 1.15rem; }
.sellado-lugar { font: 600 .74rem/1.3 var(--f-titulo); letter-spacing: .14em; text-transform: uppercase; color: var(--hielo-300); }
.sellado p:not(.sellado-lugar) { color: var(--texto-suave); font: 500 1.08rem/1.55 var(--f-lore); }

.glosario { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; margin: 0 0 24px; }
.glosario-item { padding: 20px 22px; border-radius: var(--radio); background: var(--noche-2); border: 1px solid var(--borde); border-left: 2px solid var(--oro-500); }
.glosario dt { font: 600 1.05rem/1.3 var(--f-titulo); color: var(--oro-300); margin-bottom: .4em; }
.glosario dd { margin: 0; color: var(--texto-suave); font: 500 1.1rem/1.5 var(--f-lore); }

/* ------------------------------------------------------------------ contenido */
.subnav { position: sticky; top: var(--alto-cabecera); z-index: 20; background: rgba(10,12,24,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--borde); }
.subnav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: .5em 1em; border-radius: 999px; color: var(--texto-suave); text-decoration: none; font-size: .88rem; font-weight: 600;
  border: 1px solid transparent; transition: color .25s, border-color .25s, background-color .25s; }
.subnav a:hover, .subnav a.activo { color: var(--oro-300); border-color: rgba(201,165,90,.45); background: rgba(29,35,64,.7); }
.pagina-contenido { scroll-padding-top: calc(var(--alto-cabecera) + 70px); }
.pagina-contenido .seccion, .pagina-contenido .franja, .pagina-contenido .instancia { scroll-margin-top: calc(var(--alto-cabecera) + 62px); }

.ficha { display: grid; gap: 0; margin: 0; border-radius: var(--radio-grande); overflow: hidden; border: 1px solid var(--borde); background: var(--noche-2); }
.ficha > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid rgba(38,44,74,.6); }
.ficha > div:last-child { border-bottom: 0; }
.ficha dt { color: var(--oro-500); font: 600 .76rem/1.5 var(--f-titulo); letter-spacing: .12em; text-transform: uppercase; }
.ficha dd { margin: 0; }
@media (max-width: 480px) { .ficha > div { grid-template-columns: 1fr; gap: 4px; } }
.dos-columnas-datos { align-items: start; }

.clases { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; }
.clase { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: var(--radio); background: var(--noche-2);
  border: 1px solid var(--borde); text-align: center; font-size: .82rem; line-height: 1.25; transition: border-color .3s, box-shadow .3s, transform .3s; }
.clase img { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--color-clase, var(--borde)); box-shadow: 0 0 14px color-mix(in srgb, var(--color-clase, transparent) 45%, transparent); }
.clase:hover { border-color: var(--color-clase); transform: translateY(-3px); }
.clase-guerrero { --color-clase: #C69B6D; } .clase-paladin { --color-clase: #F48CBA; } .clase-cazador { --color-clase: #AAD372; }
.clase-picaro { --color-clase: #FFF468; } .clase-sacerdote { --color-clase: #FFFFFF; } .clase-caballero-muerte { --color-clase: #C41E3A; }
.clase-chaman { --color-clase: #0070DD; } .clase-mago { --color-clase: #3FC7EB; } .clase-brujo { --color-clase: #8788EE; } .clase-druida { --color-clase: #FF7C0A; }

.bandas { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.banda { display: flex; flex-direction: column; border-radius: var(--radio-grande); overflow: hidden; background: var(--noche-2); border: 1px solid var(--borde);
  transition: border-color .35s, box-shadow .35s, transform .35s; }
.banda:hover { border-color: rgba(125,176,194,.6); box-shadow: 0 0 0 1px rgba(125,176,194,.3), 0 16px 40px rgba(0,0,0,.45); transform: translateY(-4px); }
.banda-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.banda-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.banda:hover .banda-img img { transform: scale(1.05); }
.banda-medallon { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(79,136,160,.4), rgba(27,58,79,.25) 40%, var(--noche) 75%); }
.banda-medallon img { width: 112px; height: 112px; border-radius: 50%; border: 2px solid var(--hielo-500); box-shadow: 0 0 30px rgba(125,176,194,.5); }
.banda:hover .banda-medallon img { transform: none; }
.banda-texto { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.banda-nombre { font: 600 1.08rem/1.25 var(--f-titulo); color: var(--oro-300); }
.banda-jefe { color: var(--texto-suave); font-size: .9rem; }

.mazmorras { position: relative; isolation: isolate; margin-top: 40px; border-radius: var(--radio-grande); overflow: hidden; border: 1px solid var(--borde); }
.mazmorras-fondo, .mazmorras-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mazmorras::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,8,15,.65), rgba(7,8,15,.92)); }
.mazmorras-contenido { padding: clamp(24px, 4vw, 44px); }
.mazmorras-contenido .subtitulo { margin-top: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1em; }
.chips li { padding: .45em .95em; border-radius: 999px; font-size: .9rem; background: rgba(13,16,32,.75); border: 1px solid rgba(125,176,194,.35); color: var(--hielo-100); }

.aviso { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radio); margin: 0 auto 36px; max-width: 900px;
  background: rgba(242,182,84,.07); border: 1px solid rgba(242,182,84,.35); }
.aviso .icono { color: var(--aviso); margin-top: 2px; }
.aviso p { margin: 0 0 .4em; } .aviso p:last-child { margin: 0; }
.aviso-local { background: rgba(79,136,160,.1); border-color: rgba(125,176,194,.4); }
.aviso-local .icono { color: var(--hielo-300); }
.aviso-sancion { background: rgba(255,107,122,.06); border-color: rgba(255,107,122,.35); margin-top: 36px; }
.aviso-sancion .icono { color: var(--error); }

.instancias { display: grid; gap: 28px; }
.instancia { display: grid; border-radius: var(--radio-grande); overflow: hidden; background: var(--noche-2); border: 1px solid var(--borde); position: relative;
  transition: border-color .35s, box-shadow .35s; }
.instancia:hover, .instancia:target { border-color: color-mix(in srgb, var(--acento) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--acento) 30%, transparent), 0 24px 60px rgba(0,0,0,.45); }
.instancia::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acento); box-shadow: 0 0 14px var(--acento); z-index: 1; }
@media (min-width: 900px) { .instancia { grid-template-columns: minmax(0, 42%) 1fr; } .instancia:nth-child(even) { grid-template-columns: 1fr minmax(0, 42%); }
  .instancia:nth-child(even) .instancia-img { order: 2; } }
.instancia-img { position: relative; min-height: 240px; }
.instancia-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.instancia-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,8,15,.7)); }
.instancia-origen { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 600 .72rem/1 var(--f-titulo); letter-spacing: .2em; text-transform: uppercase;
  color: #fff; padding: .55em .9em; border-radius: 999px; background: rgba(7,8,15,.7); border: 1px solid var(--acento); }
.instancia-cuerpo { padding: clamp(22px, 3.5vw, 36px); }
.instancia-cuerpo header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.instancia-cuerpo h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; flex-basis: 100%; }
.instancia-cuerpo header .insignia { margin-top: 8px; }
.instancia-tipo { margin: 0; font: 600 .74rem/1 var(--f-titulo); letter-spacing: .2em; text-transform: uppercase; color: var(--acento); }
.instancia-dif { display: flex; gap: 10px; align-items: center; margin: 16px 0 18px; color: var(--texto-suave); font-size: .93rem; }
.instancia-dif .icono { color: var(--acento); width: 20px; height: 20px; }
.instancia-jefes-t span { color: var(--texto-suave); }
.instancia-jefes { list-style: none; counter-reset: j; display: grid; gap: 2px; margin-bottom: 1em; }
.instancia-jefes li { counter-increment: j; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(38,44,74,.9); }
.instancia-jefes li:last-child { border-bottom: 0; }
.instancia-jefes li::before { content: counter(j); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font: 700 .75rem/1 var(--f-titulo); color: var(--abismo); background: var(--acento); }
.jefe-nombre { font-weight: 600; color: #fff; }
.jefe-nota { grid-column: 2; color: var(--texto-suave); font-size: .9rem; }

.franja-heraldos .franja-velo { background: var(--velo-lado), linear-gradient(180deg, #07080F 0%, transparent 18%, transparent 82%, #07080F 100%); }

.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px 0 32px; }
.filtro { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: .5em 1.1em; border-radius: 999px; cursor: pointer;
  background: var(--noche-2); color: var(--texto); border: 1px solid var(--borde); font: 600 .85rem/1 var(--f-texto); transition: border-color .25s, background-color .25s, color .25s; }
.filtro img { width: 20px; height: auto; }
.filtro:hover { border-color: var(--oro-700); }
.filtro[aria-pressed="true"] { background: linear-gradient(145deg, rgba(58,31,122,.6), rgba(28,20,70,.6)); border-color: var(--vacio-500); color: #fff; }
.razas-grupos { display: grid; gap: 36px; }
.razas-grupo h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.contador { -webkit-text-fill-color: initial; color: var(--abismo); background: var(--oro-500); font: 700 .75rem/1 var(--f-texto); padding: .35em .6em; border-radius: 999px; }
.razas { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.raza { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px 14px; text-align: center; border-radius: var(--radio);
  background: var(--noche-2); border: 1px solid var(--borde); transition: border-color .3s, transform .3s, opacity .3s, box-shadow .3s; }
.raza:hover { transform: translateY(-3px); border-color: rgba(201,165,90,.55); box-shadow: var(--sombra-brillo); }
.raza-alianza { --color-bando: #4a7bd8; } .raza-horda { --color-bando: #c8323c; } .raza-ambos { --color-bando: var(--oro-500); }
.raza-retratos { display: flex; }
.raza-retratos img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--color-bando); box-shadow: 0 0 12px color-mix(in srgb, var(--color-bando) 45%, transparent); background: var(--noche); }
.raza-retratos .raza-f { margin-left: -14px; }
.raza-nombre { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.raza-bando { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--texto-suave); }
.raza-faccion { width: 16px; height: auto; }
.raza.oculta { display: none; }

.lista-forja { list-style: none; display: grid; gap: 12px; margin-bottom: 8px; }
.lista-forja li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radio); background: var(--noche-2); border: 1px solid var(--borde); }
.lista-forja .icono { color: var(--oro-500); margin-top: 2px; }

/* ------------------------------------------------------------------ progresion */
.resumen-fases { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 36px; }
.resumen-fases a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px; border-radius: var(--radio); text-decoration: none; color: var(--texto);
  background: var(--noche-2); border: 1px solid var(--borde); border-top: 2px solid currentColor; transition: background-color .25s, transform .25s; }
.resumen-fases li { color: var(--hielo-300); }
.resumen-fases li.estado-disponible { color: var(--exito); } .resumen-fases li.estado-en_desarrollo { color: var(--vacio-300); }
.resumen-fases a:hover { background: var(--noche-3); transform: translateY(-3px); }
.resumen-num { font: 700 1.5rem/1 var(--f-titulo); color: var(--oro-300); }
.resumen-nombre { font-weight: 600; font-size: .9rem; color: var(--texto); }
.resumen-dur { font-size: .78rem; color: var(--texto-suave); }
.notas { display: grid; gap: 8px; margin-bottom: 48px; }
.notas .nota { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.notas .icono { color: var(--hielo-300); width: 20px; height: 20px; margin-top: 2px; }
.fases { list-style: none; position: relative; display: grid; gap: 28px; }
.fases::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--exito), var(--hielo-300) 20%, var(--vacio-500) 70%, var(--oro-500)); opacity: .6; }
.fase { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.fase-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font: 700 1.1rem/1 var(--f-titulo); color: var(--oro-300); background: var(--noche); border: 2px solid var(--oro-700); box-shadow: 0 0 0 6px var(--abismo), 0 0 22px rgba(106,63,214,.45); }
.fase-disponible .fase-num { border-color: var(--exito); color: var(--exito); }
.fase-tarjeta { min-width: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--radio-grande); background: var(--noche-2); border: 1px solid var(--borde); transition: border-color .3s, box-shadow .3s; }
.fase-tarjeta:hover { border-color: rgba(201,165,90,.5); box-shadow: var(--sombra-brillo); }
.fase-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 18px; }
.fase-cab .antetitulo { flex-basis: 100%; margin: 0; }
.fase-cab h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.fase-datos { display: grid; gap: 10px 28px; margin: 0 0 20px; }
@media (min-width: 760px) { .fase-datos { grid-template-columns: 1fr 1fr; } .fase-datos > div:first-child { grid-column: 1 / -1; } }
.fase-datos dt { font: 600 .72rem/1.4 var(--f-titulo); letter-spacing: .14em; text-transform: uppercase; color: var(--oro-500); }
.fase-datos dd { margin: .2em 0 0; color: var(--texto); }
.fase-rec-t { font-size: .95rem; margin-bottom: .7em; }
.fase-rec { list-style: none; display: grid; gap: 8px; }
.fase-rec li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 9px 12px; border-radius: 8px; background: rgba(7,8,15,.4); border: 1px solid rgba(38,44,74,.8); }
.fase-rec li .icono { width: 18px; height: 18px; color: var(--texto-suave); }
.fase-rec li.existe .icono { color: var(--oro-300); }
.fase-rec li span:first-of-type { flex: 1; min-width: 160px; }
@media (max-width: 520px) { .fase { grid-template-columns: 1fr; } .fases::before { display: none; } .fase-num { width: 44px; height: 44px; font-size: .95rem; margin-bottom: -40px; margin-left: 12px; z-index: 2; }
  .fase-tarjeta { padding-top: 34px; } }

/* ------------------------------------------------------------------ cuenta */
.seccion-registro { padding-top: clamp(32px, 5vw, 64px); }
.registro { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .registro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; } }
.registro-panel { position: relative; padding: clamp(22px, 4vw, 44px); border-radius: var(--radio-grande); background: linear-gradient(170deg, rgba(29,35,64,.95), rgba(13,16,32,.97));
  border: 1px solid var(--borde); box-shadow: var(--sombra); }
.registro-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grieta);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none; }
.form-titulo { margin-bottom: .3em; }
.form-entradilla { color: var(--texto-suave); margin-bottom: 1.6em; }
.campo { margin-bottom: 20px; }
.campo label { display: block; font-weight: 600; margin-bottom: 8px; }
.campo-entrada { position: relative; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="password"] {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radio); border: 1px solid var(--borde); background: var(--noche-3);
  color: var(--texto); font: 500 1rem/1.3 var(--f-texto); transition: border-color .25s, box-shadow .25s, background-color .25s; }
.campo input::placeholder { color: var(--texto-tenue); }
.campo input:hover { border-color: #39406a; }
.campo input:focus { outline: none; border-color: var(--vacio-500); box-shadow: 0 0 0 3px rgba(156,123,255,.25); background: #20274a; }
.campo input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255,107,122,.15); }
.campo.valido input { border-color: rgba(95,211,160,.6); }
.campo-entrada input[type="password"], .campo-entrada input[data-visible] { padding-right: 56px; }
.ver-contrasena { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--texto-suave); cursor: pointer;
  display: grid; place-items: center; }
.ver-contrasena:hover { color: var(--oro-300); }
.ver-contrasena[aria-pressed="true"] { color: var(--vacio-300); }
.ayuda { margin: 8px 0 0; font-size: .85rem; color: var(--texto-suave); }
.error-campo { margin: 6px 0 0; font-size: .88rem; font-weight: 600; color: var(--error); }
.error-campo:empty { display: none; }
.medidor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: -8px 0 6px; }
.medidor span { height: 5px; border-radius: 4px; background: var(--borde); transition: background-color .3s, box-shadow .3s; }
.medidor[data-nivel="1"] span:nth-child(-n+1) { background: var(--error); }
.medidor[data-nivel="2"] span:nth-child(-n+2) { background: var(--aviso); }
.medidor[data-nivel="3"] span:nth-child(-n+3) { background: var(--hielo-300); }
.medidor[data-nivel="4"] span { background: var(--exito); box-shadow: 0 0 8px rgba(95,211,160,.5); }
.medidor-texto { min-height: 1.3em; margin: 0 0 18px; font-size: .82rem; color: var(--texto-suave); }
.campo-casilla { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin-top: 8px; }
.campo-casilla input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--oro-500); cursor: pointer; }
.campo-casilla label { font-weight: 500; margin: 0; cursor: pointer; }
.campo-casilla .error-campo { grid-column: 2; }
.campo-trampa { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alerta { padding: 14px 18px; border-radius: var(--radio); margin-bottom: 22px; background: rgba(255,107,122,.08); border: 1px solid rgba(255,107,122,.45); color: #ffd3d8; font-weight: 500; }
.alerta-visible { display: block; margin: 16px 0 0; }
.form-progreso { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-size: .9rem; color: var(--hielo-100); }
.exito-cuenta { text-align: center; padding: 8px 0; }
.exito-cuenta:focus { outline: none; }
.exito-emblema { width: 110px; height: auto; margin: 0 auto 16px; filter: drop-shadow(0 0 26px rgba(144,79,243,.8)); }
.exito-cuenta .realmlist { justify-content: center; margin: 18px 0; }
.exito-siguiente { color: var(--texto-suave); }
.registro-lateral { display: grid; gap: 18px; }
.lateral-img { border-radius: var(--radio-grande); overflow: hidden; border: 1px solid var(--borde); aspect-ratio: 3 / 2; }
.lateral-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.lateral-bloque { padding: 22px 24px; border-radius: var(--radio-grande); background: var(--noche-2); border: 1px solid var(--borde); }
.lateral-bloque h2 { font-size: 1.15rem; margin: .5em 0 .6em; }
.lateral-bloque .icono-grande { color: var(--exito); }
.lateral-bloque p { color: var(--texto-suave); font-size: .95rem; }
.mini-pasos { padding-left: 1.3em; color: var(--texto-suave); display: grid; gap: 6px; margin-bottom: 1em; }
.mini-pasos li::marker { color: var(--oro-500); font-weight: 700; }

/* ------------------------------------------------------------------ empezar */
.pasos { list-style: none; display: grid; gap: 22px; position: relative; }
.paso { display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.paso-num { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; transform: rotate(45deg);
  background: linear-gradient(145deg, rgba(58,31,122,.7), rgba(28,20,70,.7)); border: 1px solid var(--oro-500); box-shadow: 0 0 22px rgba(106,63,214,.45); margin-top: 8px; }
.paso-num > span { transform: rotate(-45deg); font: 700 1.5rem/1 var(--f-titulo); color: var(--oro-300); text-shadow: 0 0 12px rgba(144,79,243,.8); }
.paso-cuerpo { padding: 22px 24px; border-radius: var(--radio-grande); background: var(--noche-2); border: 1px solid var(--borde); min-width: 0; }
.paso-cuerpo h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.paso-cuerpo .botones { margin-top: 1em; }
.codigo-copiable { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.codigo-copiable code { font-size: 1rem; padding: .6em .9em; }
.bloque-discord h2 { font-size: 1.3rem; }
@media (max-width: 520px) { .paso { grid-template-columns: 1fr; gap: 0; } .paso-num { width: 48px; height: 48px; border-radius: 14px; margin: 0 0 -24px 18px; z-index: 1; position: relative; } .paso-cuerpo { padding-top: 34px; } }

/* ------------------------------------------------------------------ preguntas y normas */
.preguntas { display: grid; gap: 12px; margin-bottom: 36px; }
.pregunta { border-radius: var(--radio); background: var(--noche-2); border: 1px solid var(--borde); transition: border-color .3s, box-shadow .3s; }
.pregunta[open] { border-color: rgba(156,123,255,.5); box-shadow: 0 0 0 1px rgba(156,123,255,.15), 0 14px 36px rgba(0,0,0,.35); }
.pregunta summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 1.02rem; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary:hover { color: var(--oro-300); }
.pregunta-signo { position: relative; flex: none; width: 18px; height: 18px; margin-left: auto; }
.pregunta-signo::before, .pregunta-signo::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--oro-500); border-radius: 2px; transition: transform .3s; }
.pregunta-signo::after { transform: rotate(90deg); }
.pregunta[open] .pregunta-signo::after { transform: rotate(0); }
.respuesta { padding: 0 20px 16px; color: var(--texto-suave); }
.normas { list-style: none; display: grid; gap: 16px; }
.norma { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 22px 24px; border-radius: var(--radio-grande); background: var(--noche-2); border: 1px solid var(--borde); }
.norma-num { font: 700 1.6rem/1 var(--f-titulo); color: var(--oro-300); text-align: center; padding-top: 4px; filter: drop-shadow(0 0 10px rgba(144,79,243,.6)); }
.norma h2 { font-size: 1.2rem; margin-bottom: .4em; }
.norma p { margin: 0; color: var(--texto-suave); }
@media (max-width: 480px) { .norma { grid-template-columns: 1fr; gap: 6px; } .norma-num { text-align: left; } }

/* ------------------------------------------------------------------ pie */
.pie { position: relative; margin-top: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, rgba(13,16,32,.2), var(--noche) 30%); }
.pie .grieta { margin-top: 0; }
.pie-rejilla { display: grid; gap: 36px; padding-block: 48px 32px; }
@media (min-width: 860px) { .pie-rejilla { grid-template-columns: 1fr 1.4fr; } }
.pie-marca { display: grid; justify-items: start; gap: 12px; }
.pie-emblema { width: 72px; height: auto; filter: drop-shadow(0 0 14px rgba(144,79,243,.6)); }
.pie-texto { width: 220px; height: auto; }
.pie-lema { color: var(--texto-suave); font: italic 500 1.15rem/1.4 var(--f-lore); margin: 0; }
.pie-estado { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; color: var(--texto-suave); }
.pie-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.pie-titulo { font: 600 .76rem/1 var(--f-titulo); letter-spacing: .2em; text-transform: uppercase; -webkit-text-fill-color: currentColor; color: var(--oro-500); background: none; margin-bottom: 1em; }
.pie-columna ul { list-style: none; display: grid; gap: 4px; }
.pie-columna a { display: inline-block; padding: .3em 0; color: var(--texto-suave); text-decoration: none; }
.pie-columna a:hover { color: var(--oro-300); }
.pie-legal { padding-block: 20px 32px; border-top: 1px solid var(--borde); }
.pie-legal p { margin: 0; font-size: .82rem; color: var(--texto-suave); }

/* ------------------------------------------------------------------ movimiento (solo si el usuario no lo ha reducido) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .revelar { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .revelar.visible { opacity: 1; transform: none; }
  .js .destacados .revelar:nth-child(3n+2), .js .puertas .revelar:nth-child(3n+2), .js .bandas .revelar:nth-child(3n+2) { transition-delay: .08s; }
  .js .destacados .revelar:nth-child(3n), .js .puertas .revelar:nth-child(3n), .js .bandas .revelar:nth-child(3n) { transition-delay: .16s; }

  .hero-fondo img { animation: acercar 22s ease-out both; }
  .hero-grieta path { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: trazar 2.6s .4s cubic-bezier(.6,.1,.2,1) forwards; }
  .hero-grieta { animation: latido-grieta 5s 3s ease-in-out infinite; }
  .hero-logo { animation: aparecer-logo 1.6s .1s cubic-bezier(.2,.7,.2,1) both, brillo-logo 6s 2s ease-in-out infinite; }
  .hero-ante, .hero-titulo, .hero-sub, .hero .botones, .hero-nota { animation: subir 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-ante { animation-delay: .5s; } .hero-titulo { animation-delay: .7s; } .hero-sub { animation-delay: .9s; }
  .hero .botones { animation-delay: 1.1s; } .hero-nota { animation-delay: 1.25s; }
  .js .carga-relleno { width: 0; }
  .js .carga.cargando .carga-relleno { animation: llenar 2.8s .3s cubic-bezier(.4,.05,.2,1) forwards; }
  .js .carga.cargada .carga-relleno { width: 100%; }
  .carga-relleno::before { content: ""; position: absolute; right: -2px; top: -6px; width: 14px; height: 26px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,241,201,.95), rgba(156,123,255,.5) 50%, transparent 70%); }
  .carga.cargada .carga-relleno::before { animation: desvanecer .8s forwards; }
  .carga-remate { animation: girar-remate 9s linear infinite; }
  .punto.en-linea { animation: pulso 2.2s ease-out infinite; }

  .sello-anillo-1 { animation: girar 60s linear infinite; }
  .sello-anillo-2 { animation: respirar 6s ease-in-out infinite; }
  .sello-anillo-3 { animation: girar 30s linear infinite reverse; }
  .sello-emblema { animation: flotar 7s ease-in-out infinite; }
  .grieta-sello img { animation: brillo-logo 5s ease-in-out infinite; }
  .cosmos-estrellas, .cabecera-cosmos::before { animation: titilar 7s ease-in-out infinite alternate; }
  .final-emblema { animation: flotar 7s ease-in-out infinite; }
}
@keyframes acercar { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes latido-grieta { 0%, 100% { opacity: .75; } 50% { opacity: .45; } }
@keyframes aparecer-logo { from { opacity: 0; transform: scale(.88); filter: blur(10px) drop-shadow(0 0 30px rgba(144,79,243,0)); } to { opacity: 1; transform: none; } }
@keyframes brillo-logo { 0%, 100% { filter: drop-shadow(0 0 26px rgba(144,79,243,.5)) drop-shadow(0 6px 18px rgba(0,0,0,.8)); } 50% { filter: drop-shadow(0 0 42px rgba(156,123,255,.85)) drop-shadow(0 6px 18px rgba(0,0,0,.8)); } }
@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes llenar { 0% { width: 0; } 35% { width: 46%; } 60% { width: 64%; } 100% { width: 100%; } }
@keyframes desvanecer { to { opacity: 0; } }
@keyframes girar-remate { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(95,211,160,.6); } 70% { box-shadow: 0 0 0 10px rgba(95,211,160,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,160,0); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes respirar { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.04); opacity: .6; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes titilar { from { opacity: .45; } to { opacity: .95; } }

@media print {
  .cabecera, .hero-particulas, .carga, .pie .grieta, .subnav { display: none !important; }
  body { background: #fff; color: #000; }
}
