/* ==========================================================================
   ODYSSEY UI · kit común del ecosistema Odyssey
   Adaptación de la plantilla CherryCraft (style.css, comprada por el dueño).
   Se conserva su estructura, componentes y ritmo; cambian tokens, tipografía,
   radios y efectos según web/PLANTILLA.md, web/DISENO.md y AGENTS.md:
   - base negra en todas las marcas; cada marca tiene su paleta (bloque 1),
     que es la ÚNICA gran diferencia entre webs;
   - sin neón, sin brillos de color, sin palabras resaltadas en titulares;
   - sin partículas ni nada que caiga.
   Guía de uso: assets/COMPONENTES.md
   ========================================================================== */

/* ==========================================================================
   1. PALETAS POR MARCA  (aprobadas por el dueño el 3-oct-2026). TODOS los colores de marca viven aquí.
      Cada marca: tema oscuro en body[data-brand=…] y tema claro en
      html[data-theme="light"] body[data-brand=…].
      Contraste WCAG del texto de los botones (on-primary sobre primary):
        odyssey 18.8 / 16.9 · rpg 10.0 / 10.0 · pipenixx 4.5 / 6.2
        cobble 10.1 / 9.6 · paella 15.6 / 15.6   (oscuro / claro)

      Tokens de cada bloque
        --bg --bg-soft --surface --surface-solid --surface-2 --surface-hover --header
        --text --text-soft --muted
        --primary --primary-hover --on-primary   botones principales
        --primary-ink                            enlaces y texto de acento
        --secondary                              color secundario de la marca
        --brand  --brand-ink                     SOLO detalles: líneas de 1 px,
                                                 iconos, etiquetas (ink = legible como texto)
        --focus                                  anillo de foco
        --art-shade  --on-art                    sombra y texto sobre el arte del hero
   ========================================================================== */

/* ODYSSEY (por defecto): negro puro, monocromo; el violeta solo en el foco */
:where(body),
body[data-brand="odyssey"] {
  --bg: #000000;
  --bg-soft: #0A0A0B;
  --surface: rgba(17, 17, 19, .92);
  --surface-solid: #111113;
  --surface-2: #232327;
  --surface-hover: #18181B;
  --header: rgba(0, 0, 0, .82);
  --text: #F2F2F2;
  --text-soft: #A6A8AE;
  --muted: #7E8087;
  --primary: #F2F2F2;
  --primary-hover: #D9DBDF;
  --on-primary: #000000;
  --primary-ink: #F2F2F2;
  --secondary: #C9CDD4;
  --brand: #C9CDD4;
  --brand-ink: #C9CDD4;
  --focus: #8B5CF6;
  --art-shade: #000000;
  --on-art: #F2F2F2;
}

:where(html[data-theme="light"]) :where(body),
html[data-theme="light"] body[data-brand="odyssey"] {
  --bg: #F5F5F6;
  --bg-soft: #ECECEE;
  --surface: rgba(255, 255, 255, .94);
  --surface-solid: #FFFFFF;
  --surface-2: #DEDFE3;
  --surface-hover: #FAFAFA;
  --header: rgba(245, 245, 246, .88);
  --text: #0B0B0F;
  --text-soft: #45474E;
  --muted: #63656C;
  --primary: #111113;
  --primary-hover: #2B2B30;
  --on-primary: #F2F2F2;
  --primary-ink: #111113;
  --secondary: #5B5F68;
  --brand: #5B5F68;
  --brand-ink: #4A4D55;
  --focus: #6D28D9;
}

/* RPG ODYSSEY: negro tostado, texto pergamino, celeste (Rimuru) y café en detalles */
body[data-brand="rpg"] {
  --bg: #0E0907;
  --bg-soft: #130D0A;
  --surface: rgba(28, 19, 16, .92);
  --surface-solid: #1C1310;
  --surface-2: #33241D;
  --surface-hover: #231812;
  --header: rgba(14, 9, 7, .84);
  --text: #EFE6DA;
  --text-soft: #BFB2A3;
  --muted: #8F8174;
  --primary: #6CCFF0;
  --primary-hover: #8ADAF4;
  --on-primary: #0A1A22;
  --primary-ink: #6CCFF0;
  --secondary: #B07A52;
  --brand: #B07A52;
  --brand-ink: #C9976F;
  --focus: #6CCFF0;
  --art-shade: #0E0907;
  --on-art: #EFE6DA;
}

html[data-theme="light"] body[data-brand="rpg"] {
  --bg: #F4EDE3;
  --bg-soft: #EBE2D5;
  --surface: rgba(255, 251, 245, .94);
  --surface-solid: #FFFBF5;
  --surface-2: #E3D6C5;
  --surface-hover: #FFFDF9;
  --header: rgba(244, 237, 227, .88);
  --text: #2A1A14;
  --text-soft: #5A463C;
  --muted: #766358;
  --primary: #6CCFF0;
  --primary-hover: #55C2E8;
  --on-primary: #0A1A22;
  --primary-ink: #0B6A8C;
  --secondary: #7A4A2C;
  --brand: #B07A52;
  --brand-ink: #7A4A2C;
  --focus: #0B6A8C;
}

/* COBBLE ODYSSEY: negro azul marino, dorado y azul */
body[data-brand="cobble"] {
  --bg: #070B14;
  --bg-soft: #0A1020;
  --surface: rgba(15, 24, 48, .92);
  --surface-solid: #0F1830;
  --surface-2: #1D2A4A;
  --surface-hover: #13203D;
  --header: rgba(7, 11, 20, .84);
  --text: #EEF1F7;
  --text-soft: #A9B3C7;
  --muted: #7C88A0;
  --primary: #E8B44A;
  --primary-hover: #F0C467;
  --on-primary: #0B0F1A;
  --primary-ink: #E8B44A;
  --secondary: #3E7BFA;
  --brand: #3E7BFA;
  --brand-ink: #6F9BFF;
  --focus: #E8B44A;
  --art-shade: #070B14;
  --on-art: #EEF1F7;
}

html[data-theme="light"] body[data-brand="cobble"] {
  --bg: #F3F5FA;
  --bg-soft: #E7EBF3;
  --surface: rgba(255, 255, 255, .94);
  --surface-solid: #FFFFFF;
  --surface-2: #D8DFEC;
  --surface-hover: #F8FAFD;
  --header: rgba(243, 245, 250, .88);
  --text: #0B1222;
  --text-soft: #414B60;
  --muted: #5E687D;
  --primary: #E8B44A;
  --primary-hover: #DCA431;
  --on-primary: #1A1408;
  --primary-ink: #2A5FD6;
  --secondary: #2A5FD6;
  --brand: #3E7BFA;
  --brand-ink: #2A5FD6;
  --focus: #2A5FD6;
}

/* PipenixX: negro azulado, azul y un toque naranja */
body[data-brand="pipenixx"] {
  --bg: #05070D;
  --bg-soft: #080B14;
  --surface: rgba(14, 20, 34, .92);
  --surface-solid: #0E1422;
  --surface-2: #1C2638;
  --surface-hover: #121A2B;
  --header: rgba(5, 7, 13, .84);
  --text: #EEF1F7;
  --text-soft: #A7B0C2;
  --muted: #7A859A;
  --primary: #2F6BFF;
  --primary-hover: #2558DB;
  --on-primary: #FFFFFF;
  --primary-ink: #7FA3FF;
  --secondary: #FF8A3D;
  --brand: #FF8A3D;
  --brand-ink: #FF8A3D;
  --focus: #7FA3FF;
  --art-shade: #05070D;
  --on-art: #EEF1F7;
}

html[data-theme="light"] body[data-brand="pipenixx"] {
  --bg: #F3F5FA;
  --bg-soft: #E8ECF4;
  --surface: rgba(255, 255, 255, .94);
  --surface-solid: #FFFFFF;
  --surface-2: #D9DFEA;
  --surface-hover: #F8FAFD;
  --header: rgba(243, 245, 250, .88);
  --text: #0B1020;
  --text-soft: #434B5E;
  --muted: #5F687C;
  --primary: #2457D6;
  --primary-hover: #1C47B5;
  --on-primary: #FFFFFF;
  --primary-ink: #2457D6;
  --secondary: #B4510D;
  --brand: #FF8A3D;
  --brand-ink: #B4510D;
  --focus: #2457D6;
}

/* Vanilla Odyssey (data-brand="paella"; nombre provisional, siempre desde los datos):
   hueso CLARO por defecto (<html data-default-theme="light">), sobrio:
   botones carbón, grafito como secundario y cereza apagada solo en detalles finos.
   El oscuro es el inverso. */
body[data-brand="paella"], body[data-brand="vanilla"] {
  --bg: #121110;
  --bg-soft: #171614;
  --surface: rgba(28, 27, 25, .92);
  --surface-solid: #1C1B19;
  --surface-2: #2E2D2A;
  --surface-hover: #232220;
  --header: rgba(18, 17, 16, .84);
  --text: #EEEAE2;
  --text-soft: #B5B0A7;
  --muted: #8C877E;
  --primary: #EEEAE2;
  --primary-hover: #DCD7CD;
  --on-primary: #121212;
  --primary-ink: #EEEAE2;
  --secondary: #B5B0A7;
  --brand: #A8455A;
  --brand-ink: #D47F92;
  --focus: #D47F92;
  --art-shade: #121110;
  --on-art: #EEEAE2;
}

html[data-theme="light"] body[data-brand="paella"], html[data-theme="light"] body[data-brand="vanilla"] {
  --bg: #EEEAE2;
  --bg-soft: #E5E0D6;
  --surface: rgba(250, 248, 244, .95);
  --surface-solid: #FAF8F4;
  --surface-2: #DCD6CB;
  --surface-hover: #FCFBF8;
  --header: rgba(238, 234, 226, .88);
  --text: #121212;
  --text-soft: #3F3B35;
  --muted: #5A554D;
  --primary: #121212;
  --primary-hover: #2A2A2A;
  --on-primary: #EEEAE2;
  --primary-ink: #121212;
  --secondary: #3A3A3A;
  --brand: #A8455A;
  --brand-ink: #A8455A;
  --focus: #A8455A;
  --border: rgba(18, 18, 18, .12);
  --border-strong: rgba(18, 18, 18, .24);
}

/* Derivados (se calculan en body para usar la paleta de la marca) */
body {
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --brand-soft: color-mix(in srgb, var(--brand) 14%, transparent);
  --brand-line: color-mix(in srgb, var(--brand) 60%, transparent);
}

/* ==========================================================================
   2. TOKENS COMUNES (no son de marca)
   ========================================================================== */
:root {
  --font-main: "Barlow", system-ui, sans-serif;
  --font-title: "Cinzel", "Perpetua Titling MT", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ok: #3FB97A;
  --ok-soft: rgba(63, 185, 122, .12);
  --warn: #E3A33B;
  --warn-soft: rgba(227, 163, 59, .12);

  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);
  --shadow: 0 20px 50px rgba(0, 0, 0, .38);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, .22);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --netbar-height: 32px;
  --header-height: 72px;
  --header-total: calc(var(--netbar-height) + var(--header-height));
  --container: 1220px;
  --ease-curve: cubic-bezier(.2, .7, .2, 1);
  --ease: 180ms var(--ease-curve);
}

html[data-theme="light"] {
  --ok: #1F8A55;
  --ok-soft: rgba(31, 138, 85, .1);
  --warn: #764402;
  --warn-soft: rgba(118, 68, 2, .1);

  --border: rgba(20, 20, 24, .1);
  --border-strong: rgba(20, 20, 24, .22);
  --shadow: 0 20px 50px rgba(20, 20, 24, .12);
  --shadow-soft: 0 8px 24px rgba(20, 20, 24, .07);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--ease), color var(--ease);
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

/* Oculto del todo hasta que se llega con el teclado (Tab). Con solo moverlo hacia arriba
   asomaba en el iPad (Safari) y parecía un botón roto. */
.skip-link:not(:focus-visible) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 105px 0;
}

.section-small {
  padding: 72px 0;
}

/* Etiqueta sobre un título de sección: línea fina de marca + texto */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-title {
  max-width: 760px;
  font-family: var(--font-title);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .02em;
}

.section-copy {
  max-width: 65ch;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 44px;
}

.section-heading > p {
  max-width: 65ch;
  color: var(--text-soft);
  line-height: 1.8;
}

/* Prosa: texto de lectura con ancho cómodo */
.prose {
  max-width: 65ch;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.prose p + p {
  margin-top: 1em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Enlace de texto con subrayado animado */
.text-link {
  color: var(--primary-ink);
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  background-size: 100% 1px;
}
/* Compensación de desplazamiento para evitar que la cabecera fija tape títulos y anclas */
:target,
[id],
.store-category,
.section-title,
section[id],
article[id] {
  scroll-margin-top: calc(var(--header-total) + 24px);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-total);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

/* Barra de la red: la MISMA en todas las webs del ecosistema.
   Fina, sobria, siempre visible encima de la cabecera. */
.network-bar {
  height: var(--netbar-height);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  max-width: 100vw;
}

.network-bar-inner {
  width: min(calc(100% - 40px), var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.network-bar-inner::-webkit-scrollbar {
  display: none;
}

.network-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--muted);
  letter-spacing: .6px;
  text-transform: uppercase;
  transition: color var(--ease);
}

.network-label img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.network-label:hover {
  color: var(--text);
}

.network-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}

.network-links a {
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}

.network-links a:hover {
  color: var(--text);
  background: var(--primary-soft);
}

/* Sitio actual: subrayado fino de su color de marca */
.network-links a[aria-current] {
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--brand);
  border-radius: 0;
}

.site-header.scrolled,
body.menu-open .site-header {
  background: var(--header);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container));
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Marca: icono del dueño (no una letra) */
.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--art-shade);
  transition: transform var(--ease), border-color var(--ease);
}

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

.brand:hover .brand-mark {
  transform: translateY(-1px);
  border-color: var(--brand-line);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-copy strong {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
  transition: color var(--ease), background var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width var(--ease);
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--primary-soft);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  width: 22px;
}

/* Enlace de tienda: se ve como los demás enlaces (Inicio, Wiki, Discord)
   y se resalta solo al pasar el ratón o cuando estás en la página Tienda (.active / aria-current="page") */
.nav-store {
  margin-left: 0;
  padding: 10px 13px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
}

.nav-store::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width var(--ease);
}

.nav-store:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-hover, var(--brand-line));
}

.nav-store:hover::after {
  width: 22px;
}

.nav-store.active,
.nav-store[aria-current="page"] {
  color: var(--text);
  background: var(--primary-soft);
  border-color: var(--brand);
  font-weight: 600;
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 25%, transparent);
}

.nav-store.active::after,
.nav-store[aria-current="page"]::after {
  width: 22px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Selector de idioma: ES · EN (EN oculto hasta que existan las páginas) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.lang-switch a {
  padding: 6px 7px;
  border-radius: 4px;
  color: var(--muted);
  transition: color var(--ease);
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current] {
  color: var(--text);
}

.lang-switch a + a:not([hidden])::before {
  content: "·";
  margin-right: 7px;
  margin-left: -7px;
  color: var(--muted);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--ease), background var(--ease);
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.theme-icon {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: opacity var(--ease), transform var(--ease);
}

.theme-sun {
  opacity: 0;
  transform: translateY(14px);
}

.theme-moon {
  opacity: 1;
}

html[data-theme="light"] .theme-sun {
  opacity: 1;
  transform: none;
}

html[data-theme="light"] .theme-moon {
  opacity: 0;
  transform: translateY(-14px);
}

.menu-button {
  display: none;
  padding: 10px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 3px 0;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-button.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Botones ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--text-soft);
  background: var(--surface-hover);
}

.button-outline {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--brand);
  background: var(--surface-hover);
  color: var(--text);
}

/* Discord: superficie neutra, borde fino; nada de azul brillante */
.button-discord {
  border-color: var(--border-strong);
  background: var(--surface-solid);
  color: var(--text);
}

.button-discord:hover {
  border-color: #5865F2;
  background: var(--surface-hover);
}

.button-small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

/* ---------- Hero de la portada ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-total) + 72px) 0 88px;
}

.hero-background,
.page-hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Velo y tinta del arte: oscuro en el tema oscuro, se aclara en el claro */
.hero,
.page-hero {
  --veil: var(--art-shade);
  --ink: var(--on-art);
  --ink-soft: color-mix(in srgb, var(--on-art) 80%, transparent);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .page-hero {
  --veil: var(--bg);
  --ink: var(--text);
  --ink-soft: var(--text-soft);
}

/* El texto va a la DERECHA (reglas de marca): el velo es más denso a la derecha.
   La banda superior deja legible la cabecera transparente. */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--veil) 70%, transparent), transparent 26%),
    linear-gradient(270deg, color-mix(in srgb, var(--veil) 96%, transparent) 0%, color-mix(in srgb, var(--veil) 84%, transparent) 42%, color-mix(in srgb, var(--veil) 40%, transparent) 100%),
    linear-gradient(to bottom, transparent 62%, var(--bg));
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "card copy";
  align-items: center;
  gap: 72px;
}

.hero-copy-col {
  grid-area: copy;
  color: var(--ink);
}

.hero-grid > .server-card {
  grid-area: card;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
}

/* Subrayado fino de marca bajo el título del hero */
.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 22px;
  background: var(--brand);
}

.hero-copy {
  max-width: 560px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero .button-secondary {
  border-color: color-mix(in srgb, var(--ink) 26%, transparent);
  background: color-mix(in srgb, var(--veil) 55%, transparent);
  color: var(--ink);
}

.hero .button-secondary:hover {
  border-color: color-mix(in srgb, var(--ink) 55%, transparent);
  background: color-mix(in srgb, var(--veil) 80%, transparent);
}

/* Botón de copiar IP */
.ip-button {
  min-width: 250px;
  justify-content: flex-start;
  text-align: left;
}

.ip-button .button-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .14);
}

.ip-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.ip-copy small {
  margin-bottom: 4px;
  opacity: .8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.ip-copy strong {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
}

/* IP aún no publicada: el botón no copia, informa */
.ip-button.is-pending {
  border-color: color-mix(in srgb, var(--ink, var(--text)) 26%, transparent);
  background: color-mix(in srgb, var(--veil, var(--surface-solid)) 55%, transparent);
  color: var(--ink, var(--text));
}

.ip-button.is-pending:hover {
  background: color-mix(in srgb, var(--veil, var(--surface-solid)) 80%, transparent);
}

.ip-button.is-pending .button-icon {
  background: color-mix(in srgb, var(--ink, var(--text)) 10%, transparent);
}

.join-address .ip-button.is-pending,
.join-address [data-copy-ip].is-pending {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.copy-toast {
  height: 0;
  overflow: hidden;
  margin-top: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--ease);
}

.copy-toast.show {
  height: auto;
  min-height: 22px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}

/* Tarjeta de estado del servidor */
.server-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--ease), border-color var(--ease);
}

.server-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.server-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 6px 16px;
}

.server-card-head small,
.info-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.server-card-head h2 {
  margin-top: 2px;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Insignia de estado: color semántico plano, sin brillo.
   odyssey-ui.js pone data-state="ok|warn|off" según el texto. */
.online-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: var(--surface-solid);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}

[data-state="ok"] {
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  background: var(--ok-soft);
  color: var(--ok);
}

[data-state="warn"] {
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: var(--warn-soft);
  color: var(--warn);
}

.status-pill {
  margin-bottom: 22px;
}

.server-preview,
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.server-preview {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--art-shade);
}

.server-preview img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Icono del servidor dentro de la vista previa (en vez de una foto) */
.server-preview.is-logo img {
  width: min(62%, 240px);
  height: auto;
  object-fit: contain;
}

.server-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.info-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: border-color var(--ease);
}

.info-item:hover {
  border-color: var(--border-strong);
}

.info-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--brand-ink);
}

.info-icon .icon {
  width: 18px;
  height: 18px;
}

.info-item div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.info-item strong {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---------- Franja de datos (ficha técnica real) ---------- */
.stats-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

.stats-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}

.stat-card {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 0;
  transition: background var(--ease);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card:hover {
  background: var(--surface-hover);
}

.stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--brand-ink);
}

.stat-card div {
  min-width: 0;
}

.stat-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* ---------- Tarjetas ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.content-card,
.product-card,
.rule-card,
.step-card,
.mode-card,
.list-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.content-card:hover,
.product-card:hover,
.rule-card:hover,
.step-card:hover,
.mode-card:hover,
.list-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

a.content-card {
  display: block;
}

.content-card {
  padding: 28px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  color: var(--brand-ink);
}

.card-icon .icon {
  width: 22px;
  height: 22px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.content-card h3,
.rule-card h3,
.step-card h3,
.mode-card h3,
.list-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.content-card p,
.rule-card p,
.step-card p,
.mode-card p,
.list-card p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.content-card p + p {
  margin-top: 10px;
}

/* Fila de datos en mono dentro de una tarjeta (versiones, mods...) */
.card-meta {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Tarjeta con lista de etiquetas (jefes por mod, mods por categoría) */
.list-card {
  padding: 26px;
}

.list-card .card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  list-style: none;
}

.tag-list li {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

/* Bloque dividido imagen / texto */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature-split.is-reversed {
  grid-template-columns: .95fr 1.05fr;
}

.feature-split.is-reversed .media-frame {
  order: 2;
}

.feature-split .media-frame {
  min-height: 440px;
}

.feature-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
}

.feature-split-copy h2 {
  margin-bottom: 16px;
  font-family: var(--font-title);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .02em;
}

.feature-split-copy p {
  max-width: 60ch;
  color: var(--text-soft);
  line-height: 1.8;
}

.feature-split-copy p + p {
  margin-top: 12px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  list-style: none;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.check-item strong {
  color: var(--text);
  font-weight: 600;
}

.check-item > span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--brand-ink);
}

.check-item > span:first-child .icon {
  width: 16px;
  height: 16px;
}

/* Lista de datos: etiqueta mono + valor (mods por categoría, requisitos) */
.data-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.data-row dt {
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding-top: 3px;
}

.data-row dd {
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.data-row dd small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

/* Tarjeta de créditos (NightfallCraft en RPG) */
.credit-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 44px 48px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.credit-card h2 {
  font-family: var(--font-title);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
}

.credit-card p {
  max-width: 65ch;
  margin-top: 14px;
  color: var(--text-soft);
  line-height: 1.8;
}

.credit-card p strong {
  color: var(--text);
  font-weight: 600;
}

.credit-card .button-row {
  margin-top: 0;
}

/* Nota corta en línea (aviso honesto, pendiente) */
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 15px;
}

.note .icon {
  margin-top: 2px;
  color: var(--brand-ink);
}

.note strong {
  color: var(--text);
}

/* ---------- Hero de página interior ---------- */
.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header-total) + 84px) 0 72px;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--veil) 72%, transparent) 55%, color-mix(in srgb, var(--veil) 50%, transparent)),
    linear-gradient(270deg, color-mix(in srgb, var(--veil) 92%, transparent), transparent 72%);
}

/* Texto a la derecha, como en los banners de la red */
.page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-hero-content > * {
  max-width: 640px;
  margin-left: auto;
  width: 100%;
}


.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--ink);
}

.page-hero p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}


/* ---------- Galería ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  padding: 9px 15px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--ease);
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--border-strong);
  background: var(--primary-soft);
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 245px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  transition: transform var(--ease), border-color var(--ease), opacity var(--ease);
}

.gallery-item.large {
  grid-column: span 8;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item:hover {
  z-index: 2;
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-curve);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--art-shade) 80%, transparent), transparent 60%);
}

.gallery-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--on-art);
}

.gallery-caption strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.gallery-caption small {
  opacity: .75;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Estado vacío honesto (sin cuadros falsos) */
.empty-state {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 760px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-state img {
  width: 112px;
  height: 140px;
  object-fit: contain;
}

.empty-state h2 {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.empty-state p {
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.7;
}

.empty-state .button-row {
  margin-top: 20px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(8, 8, 11, .92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .12);
}

/* ---------- Página de servidor: modos ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mode-image {
  height: 190px;
  overflow: hidden;
  background: var(--surface-2);
}

.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms var(--ease-curve);
}

.mode-card:hover .mode-image img {
  transform: scale(1.03);
}

.mode-copy {
  padding: 24px;
}

/* ---------- Cómo jugar ---------- */
/* Pestañas (Java/Bedrock en Paella; Completo/Lite en COBBLE) */
.platform-switch {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.platform-button {
  padding: 10px 18px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  transition: all var(--ease);
}

.platform-button:hover {
  color: var(--text);
}

.platform-button.active {
  background: var(--primary-soft);
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--brand);
}

.platform-panel {
  display: none;
}

.platform-panel.active {
  display: block;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  list-style: none;
}

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

.step-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-weight: 600;
}

.step-card .button {
  margin-top: 18px;
}

.join-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.join-address strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
}

.join-address small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* ---------- Discord ---------- */
.discord-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr .85fr;
  align-items: center;
  gap: 50px;
  padding: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

/* Rejilla tenue de bloques, como la plantilla, pero neutra */
.discord-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .6;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}

.discord-copy,
.discord-visual {
  position: relative;
  z-index: 2;
}

.discord-copy h2 {
  font-family: var(--font-title);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
}

.discord-copy p {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--text-soft);
  line-height: 1.8;
}

.discord-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.discord-stat {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.discord-stat .icon {
  margin-bottom: auto;
  color: var(--brand-ink);
}

.discord-stat strong {
  font-size: 18px;
  font-weight: 600;
}

.discord-stat small {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rule-card {
  padding: 26px;
}

/* ---------- Tienda (solo COBBLE → Tebex; sin carrito) ---------- */
.store-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding: 18px 21px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.store-notice p {
  color: var(--text-soft);
  font-size: 15px;
}

.store-notice strong {
  color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface-2);
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--art-shade) 80%, transparent);
  color: var(--on-art);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .7px;
  text-transform: uppercase;
}

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

.product-copy h3 {
  font-size: 22px;
  font-weight: 600;
}

.product-copy p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

.price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
}

/* Tienda en vivo (Headless API de Tebex, assets/tienda.js; reutilizable por sitio con data-tienda) */
.store-shell {
  display: grid;
  gap: 22px;
}

.store-user {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.store-user-form {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.store-user-form label {
  font-weight: 600;
}

.store-user-form small {
  color: var(--text-soft);
  font-size: 14px;
}

.store-user-row {
  display: flex;
  gap: 10px;
}

.store-user-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
}

.store-user-row input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.store-user-saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-soft);
}

.store-user-saved strong {
  color: var(--text);
  font-family: var(--font-mono);
}

.store-status {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--text-soft);
}

.store-status[data-kind="ok"] {
  border-color: var(--ok);
  background: var(--ok-soft);
  color: var(--text);
}

.store-status[data-kind="warn"] {
  border-color: var(--warn);
  background: var(--warn-soft);
  color: var(--text);
}

.store-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 21px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.store-checkout p {
  font-weight: 600;
}

.store-checkout .button-row {
  margin-top: 0;
}

.store-category + .store-category {
  margin-top: 48px;
}

.store-category-head {
  margin-bottom: 26px;
}

.store-category-head .section-title {
  text-wrap: balance;
}

.store-category-copy {
  max-width: 65ch;
  margin: -6px 0 22px;
}

.product-desc {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.product-desc > * + * {
  margin-top: 8px;
}

.product-desc ul,
.product-desc ol {
  padding-left: 20px;
  margin: 10px 0 0;
}

.product-desc li + li {
  margin-top: 6px;
}

.product-desc ul { list-style: square; }
.product-desc ol { list-style: decimal; }

.product-desc h4,
.product-desc strong {
  color: var(--text);
  font-weight: 600;
}

.product-desc summary {
  cursor: pointer;
  color: var(--primary-ink);
  font-weight: 600;
}

.store-legal {
  max-width: 75ch;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.store-legal p + p {
  margin-top: 6px;
}

.store-legal strong {
  color: var(--text);
}

/* ---------- CTA y pie ---------- */
.cta-card {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--on-art);
}

.cta-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--art-shade) 96%, transparent), color-mix(in srgb, var(--art-shade) 86%, transparent) 55%, color-mix(in srgb, var(--art-shade) 45%, transparent));
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.cta-content h2 {
  font-family: var(--font-title);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
}

.cta-content p {
  max-width: 52ch;
  margin-top: 16px;
  color: color-mix(in srgb, var(--on-art) 80%, transparent);
  line-height: 1.8;
}

.cta-card .button-secondary,
.cta-card .button-discord {
  border-color: rgba(255, 255, 255, .24);
  background: color-mix(in srgb, var(--art-shade) 55%, transparent);
  color: var(--on-art);
}

.cta-card .button-secondary:hover,
.cta-card .button-discord:hover {
  border-color: rgba(255, 255, 255, .5);
  background: color-mix(in srgb, var(--art-shade) 75%, transparent);
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  padding-top: 62px;
  padding-bottom: 50px;
}

.footer-brand {
  max-width: 440px;
}

.footer-brand p {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column h3 {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--text-soft);
  font-size: 15px;
  transition: color var(--ease), transform var(--ease);
}

.footer-column a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.footer-bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--text);
}

.prose a,
.footer-brand p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Imagen que no carga: superficie neutra con patrón de bloques */
.media-frame.image-missing,
.server-preview.image-missing,
.mode-image.image-missing,
.product-image.image-missing,
.gallery-item.image-missing {
  background:
    repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 1px 14px),
    var(--surface-solid);
}

/* ---------- Animación (DISENO.md §4) ----------
   Un momento orquestado al cargar (solo CSS) y revelación al hacer scroll
   (odyssey-ui.js añade .rv solo a lo que está fuera de pantalla). */
@media (prefers-reduced-motion: no-preference) {
  .hero-background {
    animation: hero-zoom 1.2s var(--ease-curve) both;
  }

  .hero-copy-col > *,
  .page-hero-content > * {
    animation: hero-rise 600ms var(--ease-curve) both;
  }

  .hero-copy-col > :nth-child(2),
  .page-hero-content > :nth-child(2) { animation-delay: 100ms; }
  .hero-copy-col > :nth-child(3),
  .page-hero-content > :nth-child(3) { animation-delay: 200ms; }
  .hero-copy-col > :nth-child(n+4),
  .page-hero-content > :nth-child(n+4) { animation-delay: 300ms; }

  .hero-grid > .server-card {
    animation: hero-rise 700ms 250ms var(--ease-curve) both;
  }

  .rv {
    opacity: 0;
    translate: 0 10px;
  }

  .rv.rv-in {
    opacity: 1;
    translate: 0 0;
    transition: opacity 500ms var(--ease-curve), translate 500ms var(--ease-curve);
    transition-delay: var(--rv-d, 0ms);
  }
}

@keyframes hero-zoom {
  from { scale: 1.06; }
  to { scale: 1; }
}

@keyframes hero-rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav {
    position: fixed;
    top: calc(var(--header-total) + 8px);
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: max-height 380ms var(--ease-curve), padding 380ms var(--ease-curve), opacity var(--ease), transform var(--ease), visibility var(--ease);
  }

  .site-nav.open {
    max-height: 560px;
    padding: 12px;
    border-color: var(--border);
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 13px 16px;
  }

  .nav-link::after {
    display: none;
  }


  .menu-button {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "card";
    gap: 52px;
  }

  .hero-shade {
    background:
      linear-gradient(color-mix(in srgb, var(--veil) 76%, transparent), color-mix(in srgb, var(--veil) 90%, transparent) 60%, var(--bg));
  }

  .hero-copy {
    max-width: 640px;
  }

  .server-card {
    max-width: 640px;
  }

  .card-grid,
  .card-grid.cols-4,
  .mode-grid,
  .rules-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    grid-column: span 6;
  }

  .gallery-item.large {
    grid-column: span 12;
  }

  .discord-panel {
    grid-template-columns: 1fr;
  }

  .credit-card {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .header-inner {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    gap: 12px;
  }

  .section {
    padding: 72px 0;
  }

  .section-small {
    padding: 52px 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    display: none;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .lang-switch {
    height: 40px;
  }

  .site-nav {
    left: 16px;
    right: 16px;
  }

  .network-bar-inner {
    width: min(calc(100% - 32px), var(--container));
    gap: 10px;
  }

  .network-label span {
    display: none;
  }

  .network-links {
    margin-left: 0;
  }

  .network-links a {
    padding: 4px 6px;
  }

  .hero {
    padding-top: calc(var(--header-total) + 48px);
    padding-bottom: 64px;
  }

  .hero-copy,
  .page-hero p,
  .prose {
    font-size: 16px;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .ip-button {
    min-width: 0;
  }

  .server-preview {
    min-height: 220px;
  }

  .server-info-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .stat-card {
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
    padding: 13px 16px;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .stat-card strong {
    font-size: 15px;
    white-space: normal;
    word-break: break-word;
  }

  .stat-card small {
    font-size: 11px;
    white-space: normal;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .card-grid,
  .card-grid.cols-2,
  .card-grid.cols-4,
  .mode-grid,
  .rules-grid,
  .product-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .content-card,
  .list-card,
  .step-card {
    padding: 24px;
  }

  .feature-split,
  .feature-split.is-reversed {
    grid-template-columns: 1fr;
  }

  .feature-split.is-reversed .media-frame {
    order: 0;
  }

  .feature-split .media-frame {
    min-height: 240px;
  }

  .feature-split-copy {
    padding: 30px 24px;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .credit-card {
    padding: 30px 24px;
  }

  .page-hero {
    min-height: 380px;
    padding-bottom: 52px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item,
  .gallery-item.large {
    grid-column: auto;
  }

  .gallery-item.tall {
    grid-row: auto;
  }

  .empty-state {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 24px;
  }

  .empty-state img {
    width: 96px;
    height: 96px;
  }

  .join-address {
    align-items: stretch;
    flex-direction: column;
  }

  .discord-panel {
    padding: 34px 24px;
  }

  .discord-visual {
    grid-template-columns: 1fr;
  }

  .discord-stat {
    min-height: 0;
  }

  .discord-stat .icon {
    margin-bottom: 8px;
  }

  .store-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-card {
    min-height: 0;
    align-items: flex-start;
    padding: 40px 24px;
  }

  .cta-shade {
    background: linear-gradient(color-mix(in srgb, var(--art-shade) 90%, transparent), color-mix(in srgb, var(--art-shade) 82%, transparent));
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 50px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    width: calc(100% - 20px);
    gap: 6px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .brand-mark img {
    width: 32px;
    height: 32px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 14px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .lang-switch {
    height: 32px;
    padding: 2px;
    font-size: 0.72rem;
  }

  .lang-switch a {
    padding: 0 6px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .icon-button .icon {
    width: 18px;
    height: 18px;
  }

  .network-bar-inner {
    width: calc(100% - 20px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .network-bar-inner::-webkit-scrollbar {
    display: none;
  }

  .network-links {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .server-card {
    padding: 10px;
  }

  .server-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    width: calc(100% - 14px);
    gap: 4px;
  }

  .brand {
    gap: 6px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .header-actions {
    gap: 4px;
  }

  .lang-switch a {
    padding: 0 4px;
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Barra de red: ODYSSEY es la casa (padre); los servidores van agrupados aparte */
.network-home { color: var(--text); font-weight: 600; }
.network-home[aria-current] { box-shadow: inset 0 -1px 0 var(--brand); }
.network-sep { margin-left: auto; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.network-sep + .network-links { margin-left: 0; }
@media (max-width: 560px) { .network-sep { display: none; } .network-parent span { display: none; } .network-links { margin-left: auto; } }

/* Barra superior de los servidores: "Un servidor de ODYSSEY" (sello de la casa, como "una empresa de…").
   El hub ODYSSEY no la lleva: él ES la red. */
.network-parent { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--muted); font-family: var(--font-body); font-size: 13px; }
.network-parent img { width: 22px; height: 22px; border-radius: 4px; }
.network-parent strong { color: var(--text); font-family: var(--font-title); letter-spacing: .08em; font-size: 13px; }
.network-parent:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* El hub no lleva barra de red */
body[data-brand="odyssey"] { --netbar-height: 0px; --header-total: var(--header-height); }


/* ==========================================================================
   Vanilla Odyssey (data-brand="paella"): la plantilla CherryCraft casi tal cual.
   - Hero como el original: texto a la IZQUIERDA y tarjeta de estado a la derecha.
   - Hero de página interior alineado a la izquierda, como el original.
   - Sin arte todavía: tratamiento honesto en los huecos de imagen.
     .hero.is-plain / .page-hero.is-plain   fondo del tema + cuadrícula de bloques tenue
     .media-frame.is-logo / .mode-image.is-logo / .cta-card.is-logo
                                            panel tinta con cuadrícula y el icono enmarcado
   Cuando llegue el arte: quita is-plain / is-logo y pon la <img> de fondo.
   ========================================================================== */
@media (min-width: 1101px) {
  body[data-brand="paella"] .hero-grid,   body[data-brand="vanilla"] .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    grid-template-areas: "copy card";
  }

  body[data-brand="paella"] .hero-shade,   body[data-brand="vanilla"] .hero-shade {
    background:
      linear-gradient(to bottom, color-mix(in srgb, var(--veil) 70%, transparent), transparent 26%),
      linear-gradient(90deg, color-mix(in srgb, var(--veil) 96%, transparent) 0%, color-mix(in srgb, var(--veil) 84%, transparent) 46%, color-mix(in srgb, var(--veil) 40%, transparent) 100%),
      linear-gradient(to bottom, transparent 62%, var(--bg));
  }
}

body[data-brand="paella"] .page-hero-content > *, body[data-brand="vanilla"] .page-hero-content > * {
  max-width: 720px;
  margin-left: 0;
}

/* Fondo sin arte: cuadrícula de bloques de 32 px, del color del texto al 7 % */
.hero.is-plain,
.page-hero.is-plain {
  --grid-line: color-mix(in srgb, var(--text) 7%, transparent);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
}

/* Panel tinta con el icono de la network enmarcado (sirve en los dos temas) */
.media-frame.is-logo,
.mode-image.is-logo,
.product-image.is-logo,
.cta-card.is-logo {
  --grid-line: color-mix(in srgb, var(--on-art) 7%, transparent);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--art-shade);
}

.media-frame.is-logo,
.mode-image.is-logo,
.product-image.is-logo {
  display: grid;
  place-items: center;
}

.media-frame.is-logo img,
.mode-image.is-logo img,
.product-image.is-logo img,
.cta-card.is-logo .cta-logo {
  width: min(46%, 220px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--on-art) 18%, transparent);
  border-radius: var(--radius-md);
  outline: 1px solid var(--brand-line);
  outline-offset: 10px;
}

.mode-image.is-logo img,
.product-image.is-logo img {
  width: 96px;
  outline-offset: 6px;
}

.mode-card:hover .mode-image.is-logo img {
  transform: none;
}

/* CTA sin arte: el icono va a la derecha, el texto a la izquierda como en el original */
.cta-card.is-logo {
  justify-content: space-between;
  gap: 48px;
  border-color: color-mix(in srgb, var(--on-art) 12%, transparent);
}

.cta-card.is-logo .cta-logo {
  position: relative;
  z-index: 2;
  width: 200px;
  flex-shrink: 0;
}

.cta-card.is-logo .cta-shade {
  background: linear-gradient(90deg, var(--art-shade) 30%, transparent);
}

@media (max-width: 760px) {
  .cta-card.is-logo .cta-logo {
    display: none;
  }

  .media-frame.is-logo {
    min-height: 260px;
  }
}

/* ==========================================================================
   Cabecera con key art (portadas). AGENTS.md, sección "Arte".
   El arte ya lleva el nombre de la marca, centrado: se muestra entero (3:1),
   sin recorte, sin velo y sin nada encima ni justo debajo del nombre.
   El <h1> queda oculto con .sr-only. El resto del hero va en un bloque debajo.
   <section class="hero has-keyart">
     <div class="keyart"><img src="…-1200.webp" srcset="…-1200.webp 1200w, ….webp 2172w"
          sizes="100vw" width="2172" height="724" alt="MARCA" fetchpriority="high"></div>
     <div class="container hero-grid">…</div>
   </section>
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

section.has-keyart {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 clamp(56px, 8vw, 96px);
  background: var(--bg);
  --veil: var(--bg);
  --ink: var(--text);
  --ink-soft: var(--text-soft);
}

.keyart {
  padding-top: var(--header-total);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.keyart img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
}

section.has-keyart > .container {
  margin-top: clamp(40px, 6vw, 72px);
}

/* ---------- Wiki: objetos del juego con su textura real ----------
   .item-grid > .item-card (img.item-sprite + div > h3 + p). Las texturas son pixel art:
   se escalan sin suavizar. .team-card lleva el escudo del equipo. */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.item-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.item-card h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.item-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.item-sprite {
  flex: none;
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  object-fit: contain;
}

.item-grid.is-compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  display: block;
}

/* ---------- Wiki de servidor: portada por categorías y un artículo por tema ----------
   Portada: .wiki-category (h2 + .card-grid de pocas tarjetas que llevan a su artículo).
   Artículo: .wiki-layout = aside.wiki-nav (índice de toda la wiki) + article.wiki-article
   (párrafos cortos, h2 por sección, .item-grid, .note) + .wiki-pager (anterior / siguiente). */
.wiki-category + .wiki-category {
  margin-top: 56px;
}

.wiki-category > h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-block: calc(var(--header-total) + 40px) 72px;
}

.wiki-layout .wiki-nav {
  order: -1;
}

.wiki-nav {
  position: sticky;
  top: calc(var(--header-total) + 24px);
  font-size: 14px;
}

.wiki-nav h2 {
  margin: 18px 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wiki-nav h2:first-child {
  margin-top: 0;
}

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

.wiki-nav a {
  display: block;
  padding: 5px 10px;
  border-left: 2px solid transparent;
  color: var(--text-soft);
  text-decoration: none;
}

.wiki-nav a:hover {
  color: var(--text);
}

.wiki-nav a[aria-current="page"] {
  border-left-color: var(--brand);
  color: var(--text);
  font-weight: 600;
}

.wiki-article {
  max-width: 760px;
}

.wiki-article .breadcrumb {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.wiki-article .breadcrumb a {
  color: var(--text-soft);
}

.wiki-article h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 42px);
}

.wiki-article .lead {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--text-soft);
}

.wiki-article h2 {
  margin: 40px 0 10px;
  font-size: 22px;
}

.wiki-article p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.wiki-article .note {
  margin: 24px 0;
}

.wiki-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.wiki-pager a {
  display: block;
  max-width: 48%;
  text-decoration: none;
  color: var(--text);
}

.wiki-pager small {
  display: block;
  color: var(--muted);
}

.wiki-pager .next {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 900px) {
  .wiki-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wiki-layout .wiki-nav {
    position: static;
    order: 2;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
}


/* Estilos para Páginas Legales */
.legal-banner {
  background: rgba(227, 163, 59, 0.12);
  border: 1px solid var(--warn, #e3a33b);
  border-radius: var(--radius-sm, 6px);
  padding: 14px 18px;
  margin-bottom: 32px;
  color: var(--text, #edeef2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.legal-banner strong {
  color: var(--warn, #e3a33b);
}
.legal-meta {
  color: var(--text-soft, var(--muted, #a3a6b0));
  font-size: 14px;
  margin-bottom: 24px;
}
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content section {
  margin-bottom: 32px;
}
.legal-content h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text, #edeef2);
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  padding-bottom: 8px;
}
.legal-content h3 {
  font-size: 17px;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text, #edeef2);
}
.legal-content p, .legal-content li {
  color: var(--text-soft, #c0c3ce);
  line-height: 1.7;
  font-size: 15px;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin: 12px 0 16px;
}
.legal-content li + li {
  margin-top: 6px;
}
.legal-content code, .legal-placeholder {
  background: rgba(255, 255, 255, 0.08);
  color: #ffb86c;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
}
.legal-credit {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  font-size: 13px;
  color: var(--muted, #a3a6b0);
}

