/* RagnaWorld: fantasía oscura y oro */
@font-face { font-family: "Cinzel"; src: url("fuentes/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("fuentes/CinzelDecorative-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --noche: #07060b;
  --tinta: #0d0b13;
  --tinta-2: #14111d;
  --borde: rgba(217, 168, 78, .22);
  --oro: #d9a84e;
  --oro-claro: #f6dea1;
  --texto: #ece5d6;
  --suave: #a79e8f;
  --tenue: #6f6758;
  --verde: #5fd38b;
  --rojo: #e0645a;
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ancho: 1200px;
  --radio: 14px;
  --sombra: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --oro-grad: linear-gradient(180deg, #fff3cf 0%, #f2cf7c 38%, #c48a2e 62%, #f6dc96 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--texto);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--oro-claro); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: .02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--oro); color: #1a1206; }

.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--oro); color: #111; padding: 8px 14px; border-radius: 8px; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.boton {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.boton-oro {
  color: #2a1a05;
  background: linear-gradient(180deg, #ffe9b0, #e7b85b 45%, #b9822b);
  box-shadow: 0 0 0 1px rgba(255, 235, 180, .55) inset, 0 10px 30px -8px rgba(217, 168, 78, .7), 0 0 50px -10px rgba(217, 168, 78, .6);
}
.boton-oro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s ease;
}
.boton-oro:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 235, 180, .7) inset, 0 16px 40px -8px rgba(217, 168, 78, .85), 0 0 70px -6px rgba(217, 168, 78, .7); }
.boton-oro:hover::after { transform: translateX(120%); }
.boton-cristal {
  color: var(--oro-claro);
  background: rgba(20, 16, 28, .45);
  box-shadow: 0 0 0 1px rgba(246, 222, 161, .45) inset;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.boton-cristal:hover { background: rgba(246, 222, 161, .12); transform: translateY(-2px); }
.boton-grande { padding: 18px 34px; font-size: 16px; }
.boton-peq { padding: 9px 18px; font-size: 12.5px; }
.boton-ancho { width: 100%; }
.boton:disabled { opacity: .6; cursor: progress; }

/* ---------- Barra ---------- */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(16px, 4vw, 48px);
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.barra.solida {
  padding-block: 10px;
  background: rgba(9, 8, 14, .82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--borde), 0 20px 40px -30px #000;
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.marca img { width: 34px; height: 34px; border-radius: 8px; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { position: relative; color: var(--texto); text-decoration: none; font-family: var(--serif); font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .82; padding: 6px 0; transition: opacity .2s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--oro); transform: scaleX(0); transition: transform .3s ease; }
.menu a:hover { opacity: 1; }
.menu a:hover::after, .menu a.actual::after { transform: scaleX(1); }
.menu a.actual { opacity: 1; color: var(--oro-claro); }
.hamburguesa { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.hamburguesa span { display: block; height: 2px; background: var(--oro-claro); margin: 5px 0; transition: transform .3s, opacity .3s; }
.hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Selector de idioma ---------- */
.idioma { position: relative; }
.menu + .idioma { margin-left: 4px; }
.idioma-boton { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(246, 222, 161, .28) inset; color: var(--oro-claro); font: 700 12.5px var(--sans); letter-spacing: .08em; transition: background .2s; }
.idioma-boton:hover, .idioma-boton[aria-expanded="true"] { background: rgba(246, 222, 161, .14); }
.idioma-boton svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.idioma-lista { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 190px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: rgba(14, 12, 20, .97); box-shadow: 0 0 0 1px var(--borde), var(--sombra); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.idioma-lista li { padding: 9px 14px; border-radius: 9px; cursor: pointer; font-family: var(--sans); font-size: 15px; color: var(--texto); }
.idioma-lista li:hover, .idioma-lista li:focus-visible { background: rgba(246, 222, 161, .1); outline: none; }
.idioma-lista li[aria-selected="true"] { color: var(--oro-claro); }
.idioma-lista li[aria-selected="true"]::after { content: "✦"; float: right; color: var(--oro); font-size: 11px; line-height: 23px; }

/* Escrituras sin mayúsculas ni espaciado de letras (chino, coreano, tailandés) */
:lang(zh-CN) .menu a, :lang(zh-TW) .menu a, :lang(ko) .menu a, :lang(th) .menu a,
:lang(zh-CN) .lema, :lang(zh-TW) .lema, :lang(ko) .lema, :lang(th) .lema,
:lang(zh-CN) .sobretitulo, :lang(zh-TW) .sobretitulo, :lang(ko) .sobretitulo, :lang(th) .sobretitulo,
:lang(zh-CN) .antetitulo, :lang(zh-TW) .antetitulo, :lang(ko) .antetitulo, :lang(th) .antetitulo,
:lang(zh-CN) .cinta span, :lang(zh-TW) .cinta span, :lang(ko) .cinta span, :lang(th) .cinta span,
:lang(zh-CN) .cifra span, :lang(zh-TW) .cifra span, :lang(ko) .cifra span, :lang(th) .cifra span,
:lang(zh-CN) .boton, :lang(zh-TW) .boton, :lang(ko) .boton, :lang(th) .boton { letter-spacing: .04em; }
:lang(th) h2, :lang(th) h3, :lang(th) .lema { line-height: 1.45; }

/* ---------- Portada ---------- */
.portada { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.portada-escenas { position: absolute; inset: 0; z-index: -3; }
.portada-escenas img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity 2.2s ease;
}
.portada-escenas img.activa { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.chispas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.portada-velo {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(7, 6, 11, .15), rgba(7, 6, 11, .78) 75%),
    linear-gradient(180deg, rgba(7, 6, 11, .75) 0%, rgba(7, 6, 11, .1) 25%, rgba(7, 6, 11, .2) 60%, var(--noche) 100%);
}
.portada-contenido { text-align: center; padding: 120px 20px 140px; width: 100%; max-width: 1200px; will-change: transform; }
.sobretitulo { display: inline-flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: 13px; letter-spacing: .38em; text-transform: uppercase; color: var(--oro-claro); opacity: 0; animation: aparecer 1.2s .2s ease forwards; }
.sobretitulo .linea { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--oro)); }
.sobretitulo .linea:last-child { transform: scaleX(-1); }
.titulo {
  position: relative;
  font-family: var(--deco); font-size: clamp(46px, 13vw, 150px); line-height: 1.1; letter-spacing: .01em; white-space: nowrap;
  margin: 18px 0 10px;
  background: var(--oro-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(60, 35, 5, .9)) drop-shadow(0 18px 40px rgba(0, 0, 0, .9));
  opacity: 0; animation: aparecer-titulo 1.6s .35s cubic-bezier(.2, .7, .2, 1) forwards;
}
.titulo::after {
  content: attr(data-texto); position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%);
  background-size: 250% 100%; background-position: 150% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: destello 6s 2.2s ease-in-out infinite;
}
@keyframes destello { 0%, 70% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
@keyframes aparecer-titulo { from { opacity: 0; transform: translateY(30px) scale(.96); letter-spacing: .12em; } to { opacity: 1; transform: none; letter-spacing: .01em; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lema { font-family: var(--serif); font-size: clamp(17px, 2.6vw, 28px); letter-spacing: .22em; text-transform: uppercase; color: var(--texto); text-shadow: 0 2px 20px #000; opacity: 0; animation: aparecer 1.2s .9s ease forwards; }
.estado {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 8px 18px; border-radius: 999px; font-size: 14.5px;
  background: rgba(10, 9, 15, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; animation: aparecer 1s 1.2s ease forwards;
}
.punto { width: 10px; height: 10px; border-radius: 50%; background: var(--tenue); }
.estado.en-linea .punto { background: var(--verde); box-shadow: 0 0 0 0 rgba(95, 211, 139, .7); animation: pulso 2s infinite; }
.estado.apagado .punto { background: var(--rojo); }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 139, .7); } 70% { box-shadow: 0 0 0 10px rgba(95, 211, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 139, 0); } }
.portada .acciones { opacity: 0; animation: aparecer 1s 1.4s ease forwards; }
.acciones { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 30px; }
.nota { margin-top: 18px; font-size: 13.5px; color: var(--suave); text-shadow: 0 1px 8px #000; opacity: 0; animation: aparecer 1s 1.6s ease forwards; }
.portada-pie { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.escena-puntos { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.escena-puntos li { width: 28px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.escena-puntos li.activa::before { content: ""; display: block; height: 100%; background: var(--oro); animation: progreso 7s linear forwards; }
@keyframes progreso { from { width: 0; } to { width: 100%; } }
.bajar { width: 26px; height: 42px; border-radius: 14px; box-shadow: 0 0 0 1.5px rgba(246, 222, 161, .6) inset; display: grid; justify-items: center; padding-top: 8px; }
.bajar span { width: 3px; height: 8px; border-radius: 2px; background: var(--oro-claro); animation: rueda 1.8s infinite; }
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Cifras ---------- */
.cifras {
  position: relative; z-index: 2;
  max-width: var(--ancho); margin: -40px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.cifra {
  text-align: center; padding: 26px 10px;
  background: linear-gradient(180deg, rgba(25, 21, 33, .94), rgba(13, 11, 19, .94));
  border-block: 1px solid var(--borde);
}
.cifra:first-child { border-left: 1px solid var(--borde); border-radius: var(--radio) 0 0 var(--radio); }
.cifra:last-child { border-right: 1px solid var(--borde); border-radius: 0 var(--radio) var(--radio) 0; }
.cifra + .cifra { box-shadow: -1px 0 0 rgba(217, 168, 78, .12); }
.cifra b { display: block; font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; background: var(--oro-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.cifra span { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--suave); }

/* ---------- Cinta ---------- */
.cinta { margin-top: 70px; overflow: hidden; border-block: 1px solid var(--borde); background: linear-gradient(90deg, var(--noche), #120f19, var(--noche)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cinta-pista { display: flex; gap: 34px; align-items: center; width: max-content; padding: 16px 0; animation: cinta 40s linear infinite; }
.cinta span { font-family: var(--serif); font-size: 15px; letter-spacing: .26em; text-transform: uppercase; color: var(--oro-claro); white-space: nowrap; }
.cinta i { font-style: normal; color: var(--oro); opacity: .6; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Cabeceras de sección ---------- */
section { position: relative; }
.cabecera { text-align: center; max-width: 720px; margin: 0 auto 64px; padding: 0 20px; }
.cabecera.izquierda { text-align: left; margin: 0 0 36px; padding: 0; }
.antetitulo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 12.5px; letter-spacing: .4em; text-transform: uppercase; color: var(--oro); }
.antetitulo::before, .antetitulo::after { content: "✦"; font-size: 10px; opacity: .7; }
.cabecera h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.1; margin: 12px 0 16px; background: var(--oro-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(60, 35, 5, .6)); }
.cabecera > p:not(.antetitulo) { color: var(--suave); font-size: 18.5px; }

/* ---------- Revelado al hacer scroll ---------- */
.js .revelar { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .revelar.visible { opacity: 1; transform: none; }

/* ---------- Mundo ---------- */
.mundo { padding: 140px 20px 40px; }
.capitulo { max-width: var(--ancho); margin: 0 auto 120px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.capitulo.invertido { grid-template-columns: 1fr 1.35fr; }
.capitulo.invertido .capitulo-imagen { order: 2; }
.capitulo-imagen { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra), 0 0 0 1px var(--borde); aspect-ratio: 16 / 10; }
.capitulo-imagen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 6, 11, .5)), radial-gradient(ellipse at center, transparent 55%, rgba(7, 6, 11, .45)); pointer-events: none; }
.capitulo-imagen img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--paralaje, 0px), 0); transition: filter .5s; }
.capitulo:hover .capitulo-imagen img { filter: saturate(1.12) brightness(1.06); }
.capitulo-texto { position: relative; z-index: 0; }
.numeral { position: absolute; top: -74px; left: -10px; font-family: var(--deco); font-size: 130px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(217, 168, 78, .25); pointer-events: none; z-index: -1; }
.capitulo-texto h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; color: var(--oro-claro); }
.capitulo-texto p { color: var(--suave); font-size: 18px; }
.capitulo-texto em { color: var(--texto); font-style: normal; font-weight: 600; }

/* ---------- Armario ---------- */
.armario { padding: 140px 20px; overflow: hidden; isolation: isolate; }
.armario-fondo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 50% at 40% 58%, rgba(124, 108, 240, .3), transparent 70%), linear-gradient(180deg, var(--noche), #151027 25%, #120d22 75%, var(--noche)); }
.armario-fondo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 20%, #fff7, transparent), radial-gradient(1.2px 1.2px at 40% 80%, #fff6, transparent), radial-gradient(1px 1px at 85% 60%, #fff8, transparent), radial-gradient(1.4px 1.4px at 10% 70%, #fff5, transparent), radial-gradient(1px 1px at 55% 45%, #fff6, transparent); background-size: 340px 340px; animation: titilar 6s ease-in-out infinite alternate; }
@keyframes titilar { from { opacity: .4; } to { opacity: 1; } }
.armario-cuerpo { max-width: var(--ancho); margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; grid-template-rows: auto 1fr; gap: 24px 40px; }
.armario-pestanas { grid-column: 1 / -1; justify-self: center; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.armario-pestanas button { border: 0; background: none; cursor: pointer; padding: 10px 26px; border-radius: 999px; font-family: var(--serif); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--suave); transition: background .3s, color .3s; }
.armario-pestanas button[aria-selected="true"] { background: linear-gradient(180deg, #ffe9b0, #d9a84e); color: #2a1a05; }
.armario-escenario { position: relative; min-height: 540px; display: grid; place-items: center; }
.armario-escenario img {
  width: 100%; max-height: 640px; object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s;
}
.armario-escenario img.saliendo { opacity: 0; transform: scale(.94) translateY(10px); filter: blur(6px); }
.armario-info { position: absolute; left: 0; bottom: 4%; max-width: 380px; padding: 20px 24px; border-radius: var(--radio); background: rgba(13, 10, 24, .66); box-shadow: 0 0 0 1px rgba(246, 222, 161, .18) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .4s; }
.armario-info.saliendo { opacity: 0; }
.armario-tipo { font-family: var(--serif); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--oro); }
.armario-info h3 { font-size: 26px; color: var(--oro-claro); margin: 4px 0 8px; }
.armario-info p:last-child { color: var(--suave); font-size: 15.5px; }
.armario-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center; }
.pieza { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #1a1430; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; transition: transform .25s, box-shadow .25s; }
.pieza img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); opacity: .7; transition: opacity .25s, transform .4s; }
.pieza:hover { transform: translateY(-2px); }
.pieza:hover img { opacity: 1; transform: scale(1.55); }
.pieza[aria-selected="true"] { box-shadow: 0 0 0 2px var(--oro), 0 0 24px -4px rgba(217, 168, 78, .8); }
.pieza[aria-selected="true"] img { opacity: 1; }

/* ---------- Ventajas ---------- */
.ventajas { padding: 140px 20px; }
.ventajas-lista { list-style: none; margin: 0 auto; padding: 0; max-width: var(--ancho); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ventajas-lista li {
  position: relative; padding: 34px 30px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 23, 38, .8), rgba(13, 11, 19, .8));
  box-shadow: 0 0 0 1px var(--borde) inset;
}
.js .ventajas-lista li.revelar { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.ventajas-lista li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--x, 50%) var(--y, 0%), rgba(217, 168, 78, .16), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ventajas-lista li:hover { box-shadow: 0 0 0 1px rgba(217, 168, 78, .5) inset, 0 30px 60px -30px rgba(217, 168, 78, .4); }
.ventajas-lista li:hover::before { opacity: 1; }
.ventajas-lista svg { width: 46px; height: 46px; fill: none; stroke: var(--oro); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 18px; filter: drop-shadow(0 0 12px rgba(217, 168, 78, .45)); }
.ventajas-lista h3 { font-size: 21px; color: var(--oro-claro); margin-bottom: 8px; }
.ventajas-lista p { color: var(--suave); font-size: 16px; }

/* ---------- En vivo ---------- */
.reino { padding: 140px 20px; background: linear-gradient(180deg, var(--noche), #0f0c16 50%, var(--noche)); }
.reino-rejilla { max-width: var(--ancho); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.reino-lateral { display: grid; gap: 24px; }
.panel { border-radius: 18px; background: linear-gradient(180deg, rgba(26, 22, 35, .9), rgba(12, 10, 18, .9)); box-shadow: 0 0 0 1px var(--borde) inset, var(--sombra); overflow: hidden; }
.panel-cabeza { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid rgba(217, 168, 78, .14); }
.panel-cabeza h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; color: var(--oro-claro); }
.latido { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); animation: pulso 2s infinite; }
.pestanas { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.pestanas button { border: 0; background: none; cursor: pointer; padding: 7px 16px; border-radius: 999px; font-family: var(--serif); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); transition: background .25s, color .25s; }
.pestanas button[aria-selected="true"] { background: var(--oro); color: #241604; }
.tabla-desliza { overflow-x: auto; }
.ranking { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ranking th { text-align: left; font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--tenue); padding: 14px 18px; }
.ranking td { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .05); }
.ranking tbody tr { transition: background .2s; }
.ranking tbody tr:hover { background: rgba(217, 168, 78, .06); }
.ranking td:first-child { width: 60px; font-family: var(--serif); font-weight: 700; color: var(--suave); }
.medalla { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; color: #2a1a05; font-weight: 800; }
.top-1 .medalla { background: linear-gradient(180deg, #fff1bf, #e0a93f); box-shadow: 0 0 16px rgba(224, 169, 63, .7); }
.top-2 .medalla { background: linear-gradient(180deg, #f4f4f8, #a7acb9); }
.top-3 .medalla { background: linear-gradient(180deg, #f6cfa7, #b87741); }
.ranking td:nth-child(2) { font-weight: 600; }
.ranking td:last-child { font-variant-numeric: tabular-nums; color: var(--oro-claro); }
.clase { display: inline-flex; align-items: center; gap: 8px; color: var(--suave); }
.clase img { width: 22px; height: 22px; }
.vacio { color: var(--tenue); text-align: center; padding: 28px 18px !important; }
.ranking td.vacio { width: auto; font-family: var(--sans); font-weight: 400; color: var(--tenue); }
.conectados, .noticias { list-style: none; margin: 0; padding: 8px 0; }
.conectados li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 10px 26px; }
.conectados li img { grid-row: span 2; width: 32px; height: 32px; align-self: center; }
.conectados .nombre { font-weight: 600; }
.conectados .detalle { color: var(--suave); font-size: 14px; }
.conectados li.vacio { display: block; }
.noticias li { padding: 14px 26px; }
.noticias li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.noticias h4 { font-family: var(--serif); font-size: 16px; color: var(--oro-claro); }
.noticias time { font-size: 12.5px; color: var(--tenue); letter-spacing: .08em; }
.noticias p { color: var(--suave); font-size: 15px; margin-top: 4px; }

/* ---------- Vota ---------- */
.votar { padding: 140px 20px; overflow: hidden; isolation: isolate; }
.votar-fondo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 60% at 50% 55%, rgba(217, 168, 78, .16), transparent 70%), linear-gradient(180deg, var(--noche), #120d08 50%, var(--noche)); }
.votar-lista { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.voto {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 38px 26px 30px; border-radius: 18px; text-decoration: none; color: var(--texto);
  background: linear-gradient(180deg, rgba(36, 28, 18, .9), rgba(14, 11, 9, .9));
  box-shadow: 0 0 0 1px rgba(217, 168, 78, .4) inset, var(--sombra);
  transition: transform .3s ease, box-shadow .3s ease;
}
a.voto:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(246, 222, 161, .8) inset, 0 30px 60px -25px rgba(217, 168, 78, .55); }
.voto-num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-family: var(--deco); font-size: 24px; color: #2a1a05; background: linear-gradient(180deg, #ffe9b0, #c89236); box-shadow: 0 0 26px -4px rgba(217, 168, 78, .8); }
.voto h3 { font-size: 21px; color: var(--oro-claro); }
.voto p { color: var(--suave); font-size: 15px; }
.voto-boton-web { max-width: 100%; height: auto; max-height: 60px; border-radius: 6px; }
.voto-pronto { background: linear-gradient(180deg, rgba(24, 20, 30, .7), rgba(12, 10, 16, .7)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.voto-pronto .voto-num { background: rgba(255, 255, 255, .08); color: var(--tenue); box-shadow: none; }
.voto-pronto h3 { color: var(--suave); }

/* ---------- Galería ---------- */
.galeria { padding: 140px 20px; }
.galeria-rejilla { max-width: var(--ancho); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.foto { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--tinta-2); box-shadow: 0 0 0 1px var(--borde) inset; }
.foto.ancha { grid-column: span 2; }
.foto.alta { grid-row: span 2; }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.9) brightness(.9); }
.foto::after { content: attr(data-pie); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; text-align: left; font-family: var(--serif); font-size: 14px; letter-spacing: .06em; color: var(--oro-claro); background: linear-gradient(transparent, rgba(7, 6, 11, .9)); opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.foto:hover img, .foto:focus-visible img { transform: scale(1.07); filter: saturate(1.1) brightness(1.05); }
.foto:hover::after, .foto:focus-visible::after { opacity: 1; transform: none; }
.visor { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 94vh; color: var(--texto); overflow: visible; }
.visor::backdrop { background: rgba(4, 3, 7, .92); backdrop-filter: blur(6px); }
.visor img { max-width: 100%; max-height: 84vh; border-radius: 12px; box-shadow: 0 0 0 1px var(--borde), var(--sombra); margin: 0 auto; }
.visor p { text-align: center; margin-top: 14px; font-family: var(--serif); letter-spacing: .08em; color: var(--oro-claro); }
.visor-cerrar { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .1); font-size: 26px; line-height: 1; color: var(--texto); }
.visor-cerrar:hover { background: var(--oro); color: #241604; }

/* ---------- Únete ---------- */
.unete { padding: 140px 20px; max-width: calc(var(--ancho) + 40px); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.unete-imagen { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--sombra), 0 0 0 1px var(--borde); }
.unete-imagen img { width: 100%; height: 100%; object-fit: cover; }
.unete-imagen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 6, 11, .7)); }
.pasos { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.pasos li { display: flex; gap: 18px; align-items: flex-start; }
.pasos b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--serif); font-size: 18px; color: #2a1a05; background: linear-gradient(180deg, #ffe9b0, #c89236); box-shadow: 0 0 20px -4px rgba(217, 168, 78, .7); }
.pasos h3 { font-size: 18px; color: var(--oro-claro); }
.pasos p { color: var(--suave); font-size: 15.5px; }
.registro { padding: 30px; border-radius: 18px; background: linear-gradient(180deg, rgba(28, 23, 38, .92), rgba(13, 11, 19, .92)); box-shadow: 0 0 0 1px rgba(217, 168, 78, .35) inset, var(--sombra); display: grid; gap: 16px; }
.registro h3 { font-size: 22px; color: var(--oro-claro); }
.registro label { display: grid; gap: 6px; font-size: 14px; letter-spacing: .04em; color: var(--suave); }
.registro input { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(5, 4, 9, .65); color: var(--texto); font: 16px var(--sans); transition: border-color .2s, box-shadow .2s; }
.registro input:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(217, 168, 78, .18); }
.registro small { color: var(--tenue); font-size: 13px; }
.registro small b { color: var(--suave); }
.registro-claves { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mensaje { min-height: 1.4em; font-size: 15px; text-align: center; }
.mensaje.ok { color: var(--verde); }
.mensaje.error { color: var(--rojo); }

/* ---------- Preguntas ---------- */
.preguntas { padding: 120px 20px; }
.acordeon { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.acordeon details { border-radius: 14px; background: rgba(22, 18, 30, .8); box-shadow: 0 0 0 1px var(--borde) inset; transition: background .3s; }
.acordeon details[open] { background: rgba(30, 24, 40, .9); }
.acordeon summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--texto); }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--oro); transition: transform .3s; }
.acordeon details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acordeon details p { padding: 0 24px 22px; color: var(--suave); }
.acordeon code { background: rgba(217, 168, 78, .15); color: var(--oro-claro); padding: 1px 6px; border-radius: 5px; }

/* ---------- Final ---------- */
.final { padding: 180px 20px; text-align: center; overflow: hidden; isolation: isolate; }
.final-fondo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--noche), rgba(7, 6, 11, .55) 30%, rgba(7, 6, 11, .6) 70%, var(--noche)), url("imagenes/bardo.webp") center 30% / cover; }
.final h2 { font-size: clamp(34px, 6vw, 76px); line-height: 1.12; color: var(--texto); text-shadow: 0 4px 30px #000; }
.final h2 .final-2 { background: var(--oro-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final .acciones { margin-top: 40px; }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--borde); background: #050409; padding: 64px 20px 28px; }
.pie-columnas { max-width: var(--ancho); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.pie p { color: var(--tenue); font-size: 14.5px; margin-top: 12px; }
.pie h4 { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--oro); }
.pie a { color: var(--suave); text-decoration: none; line-height: 2; }
.pie a:hover { color: var(--oro-claro); }
.pie-final { text-align: center; margin-top: 48px !important; font-size: 13px !important; }

/* ---------- Adaptable ---------- */
.menu a { white-space: nowrap; }
@media (max-width: 1280px) {
  .menu { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; gap: 6px; padding: 96px 32px 32px; background: rgba(9, 8, 14, .97); box-shadow: -30px 0 60px rgba(0, 0, 0, .6); transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); visibility: hidden; }
  .menu.abierto { transform: none; visibility: visible; }
  .menu a { font-size: 16px; padding: 12px 0; }
  .hamburguesa { display: block; z-index: 2; }
  .idioma { margin-left: auto; }
}
@media (max-width: 1080px) {
  .armario-cuerpo { grid-template-columns: 1fr; }
  .armario-lista { grid-template-columns: repeat(6, 1fr); }
  .reino-rejilla { grid-template-columns: 1fr; }
  .ventajas-lista { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .barra { gap: 12px; }
  .marca span { display: none; }
  .sobretitulo { font-size: 11px; letter-spacing: .26em; gap: 10px; }
  .sobretitulo .linea { width: 28px; }
  .cifras { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .cifra { border: 1px solid var(--borde) !important; border-radius: 0 !important; box-shadow: none !important; }
  .cifra:nth-child(1) { border-radius: var(--radio) 0 0 0 !important; }
  .cifra:nth-child(2) { border-radius: 0 var(--radio) 0 0 !important; }
  .cifra:nth-child(3) { border-radius: 0 0 0 var(--radio) !important; }
  .cifra:nth-child(4) { border-radius: 0 0 var(--radio) 0 !important; }
  .mundo, .armario, .ventajas, .reino, .votar, .galeria, .unete { padding-block: 90px; }
  .capitulo, .capitulo.invertido { grid-template-columns: 1fr; gap: 28px; margin-bottom: 80px; }
  .capitulo.invertido .capitulo-imagen { order: 0; }
  .numeral { font-size: 90px; top: -44px; }
  .armario-escenario { min-height: 0; }
  .armario-info { position: static; max-width: none; margin-top: -10px; }
  .armario-lista { grid-template-columns: repeat(4, 1fr); }
  .ventajas-lista { grid-template-columns: 1fr; }
  .panel-cabeza { padding: 18px; }
  .galeria-rejilla { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .unete { grid-template-columns: 1fr; gap: 36px; }
  .unete-imagen { display: none; }
  .registro { padding: 22px; }
  .registro-claves { grid-template-columns: 1fr; }
  .ranking th:nth-child(3), .ranking td:nth-child(3) { display: none; }
  .ranking td, .ranking th { padding-inline: 12px; }
  .pie-columnas { grid-template-columns: 1fr; }
  .boton-grande { padding: 16px 26px; font-size: 14px; }
  .acciones .boton { width: 100%; max-width: 340px; }
  .final { padding-block: 120px; }
}

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