/* ==========================================================================
   Atenas - portada nueva (pagina larga): fondo fijo con el arte, cabecera de 800 px, secciones con filete dorado.
   Hoja independiente del tema antiguo (atenas.css); sin estilos en linea (CSP estricta). Pensada primero para movil.
   ========================================================================== */
@font-face { font-family: Cinzel; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/cinzel.woff2) format('woff2'); }

:root {
	--bg: #0b0e10; --bg1: #131416; --bg2: #101113; --panel: rgba(25, 25, 28, .98);
	--line: #ccb590; --silver: #a0a0a8; --silver2: #c8c8d0; --gold: #d4af7d; --gold2: #e6bd4c; --cream: #f8e6c8; --fg: #e0e0e0;
	--display: Cinzel, "Trajan Pro", Georgia, "Times New Roman", serif;
	--body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
	color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: hidden; }
body.portada { background: var(--bg); color: var(--fg); font: 15px/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: #fff; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { color: var(--silver2); text-transform: uppercase; letter-spacing: 1px; font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 700; }
h2 { color: var(--silver2); text-transform: uppercase; letter-spacing: 2px; font-size: 1.25rem; font-weight: 700; }
h3 { color: var(--gold); font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.container { max-width: 1140px; margin: 0 auto; padding-inline: 16px; }
.vacio { color: var(--silver); font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sep { height: 36px; }
.eyebrow { display: block; font-family: var(--display); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* ---------- Fondo fijo (equivale al video de la referencia) ---------- */
#fondo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0e0d0b; }
#fondo .arte { position: absolute; left: 0; right: 0; top: -2.5%; bottom: -2.5%; background: url(../img/portada/hero-bg.webp) center top / cover no-repeat; animation: respira 40s ease-in-out infinite alternate; }
#fondo .niebla { position: absolute; left: -20%; right: -20%; top: -20%; height: 60%; mix-blend-mode: screen; animation: deriva 28s ease-in-out infinite alternate;
	background: radial-gradient(40% 50% at 30% 50%, rgba(120, 150, 110, .10), transparent 70%), radial-gradient(35% 45% at 72% 45%, rgba(212, 175, 125, .09), transparent 70%); }
#fondo .rayos { position: absolute; inset: 0; mix-blend-mode: screen; animation: rayos 22s ease-in-out infinite alternate;
	background: conic-gradient(from 180deg at 50% -10%, transparent 0 40%, rgba(230, 189, 76, .09) 44%, transparent 48%, rgba(230, 189, 76, .06) 52%, transparent 56%, rgba(230, 189, 76, .09) 60%, transparent 64%);
	-webkit-mask-image: linear-gradient(#000 20%, transparent 55%); mask-image: linear-gradient(#000 20%, transparent 55%); }
#fondo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes respira { from { transform: translateY(0); } to { transform: translateY(-2%); } }
@keyframes deriva { from { transform: translate(-3%, 0) rotate(0); } to { transform: translate(3%, 2%) rotate(2deg); } }
@keyframes rayos { from { opacity: .55; transform: rotate(-2deg); } to { opacity: 1; transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { #fondo * { animation: none !important; } #fondo canvas { display: none; } }
header.cabecera, main, footer { position: relative; z-index: 1; }

/* ---------- Cabecera: barra de menu + heroe ---------- */
header.cabecera { min-height: 800px; }
header.cabecera > .container { max-width: 1320px; }
.barra { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding-block: 14px; }
.menu { display: flex; gap: 6px 16px; flex-wrap: wrap; flex: 1 1 320px; min-width: 0; justify-content: center; }
.menu a { font-family: var(--display); font-weight: 700; font-size: 12px; color: #f1ead9; text-transform: uppercase; letter-spacing: .4px; display: inline-flex; align-items: center; gap: 5px; transition: transform .2s, color .2s; white-space: nowrap; }
.menu a:hover { transform: scale(1.08); color: #fff; }
.menu svg, .idioma svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.idioma { position: relative; font-family: var(--display); font-weight: 700; font-size: 12px; color: #f1ead9; text-transform: uppercase; }
.idioma summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 4px; background: rgba(0, 0, 0, .35); }
.idioma summary::after { content: "\25BE"; font-size: 10px; opacity: .8; }
.idioma summary::-webkit-details-marker { display: none; }
.idioma ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px 0; list-style: none; min-width: 170px; background: rgba(14, 14, 16, .97); border: 1px solid rgba(204, 181, 144, .4); border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.idioma li a { display: block; padding: 7px 14px; font-size: 12px; text-transform: none; font-family: var(--body); font-weight: 400; color: var(--fg); }
.idioma li a b { font-family: var(--display); color: var(--gold); margin-right: 6px; }
.idioma li a:hover, .idioma li a.current { background: rgba(212, 175, 125, .12); color: #fff; }
.acceso { display: flex; gap: 10px; align-items: center; }
.acceso form { margin: 0; }
.acceso .btn-black, .acceso .btn-white { width: 140px; }
/* Hasta 1100 px no cabe todo en una fila: el menu pasa a su propia fila centrada, debajo del idioma y los botones */
@media (max-width: 1100px) {
	.barra { justify-content: center; }
	.menu { order: 3; flex-basis: 100%; }
}

/* Botones pildora (154x48) de la referencia, hechos con CSS */
.btn-black, .btn-white, .btn-white2 { display: inline-block; width: 154px; height: 48px; line-height: 46px; text-align: center; font: 600 12px/46px var(--body); border-radius: 24px / 30px; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.btn-black { color: #fff; background: radial-gradient(120% 140% at 50% 0%, #3a3a3f 0%, #1c1c20 45%, #0f0f12 100%); border: 1px solid #3b3b41; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px rgba(0, 0, 0, .55); }
.btn-white, .btn-white2 { color: #000; background: radial-gradient(120% 140% at 50% 0%, #fff 0%, #ececef 55%, #d6d6dc 100%); border: 1px solid #c9c9cf; box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(0, 0, 0, .45); }
.btn-black:hover, .btn-white:hover, .btn-white2:hover { transform: translateY(-1px); filter: brightness(1.08); }

.heroe { display: grid; justify-items: center; gap: 14px; padding-top: 34px; text-align: center; }
/* En pantallas anchas el personaje grande ocupa la derecha del arte: el logo y los botones se desplazan un poco a la izquierda */
@media (min-width: 1100px) { .heroe { margin-right: 38%; } }
.heroe .logo { width: min(420px, 78vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); }
.fase { display: flex; align-items: center; gap: 14px; margin-top: -6px; font-family: var(--display); font-weight: 700; font-size: clamp(.78rem, 1.6vw, 1.05rem); letter-spacing: .3em; text-transform: uppercase; color: #f0cf6a; text-shadow: 0 0 18px rgba(230, 189, 76, .45), 0 2px 4px #000; white-space: nowrap; }
.fase::before, .fase::after { content: ""; height: 1px; width: clamp(24px, 8vw, 110px); background: linear-gradient(90deg, transparent, var(--gold2)); }
.fase::after { background: linear-gradient(90deg, var(--gold2), transparent); }
.fase i { font-style: normal; font-size: .6em; color: var(--gold2); margin: 0 .4em; position: relative; top: -.1em; }
.p2w { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid var(--gold2); border-radius: 999px; background: rgba(10, 10, 12, .72); font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); box-shadow: 0 0 0 3px rgba(230, 189, 76, .12), 0 6px 18px rgba(0, 0, 0, .6); }
.p2w svg { width: 16px; height: 16px; fill: var(--gold2); }
.fila { display: flex; align-items: flex-start; justify-content: center; gap: 18px 22px; flex-wrap: wrap; margin-top: 6px; }
.accion { display: grid; justify-items: center; gap: 6px; }
.accion small { font-size: .74rem; letter-spacing: .04em; color: var(--cream); text-shadow: 0 1px 3px #000; max-width: 180px; line-height: 1.3; }
.online-players { width: 107px; height: 106px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; font-family: var(--display); color: #fff; font-size: 28px; line-height: 20px; text-shadow: #0b0e10 0 0 4px; background: url(../img/portada/emblema.webp) center / 90px no-repeat; }
.online-players::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(11, 14, 16, .85) 0%, rgba(11, 14, 16, .55) 60%, transparent 72%); }
.online-players > div { position: relative; width: 100%; margin-top: 16px; }
.online-players span { display: block; margin-top: 4px; font: 10px/12px var(--body); text-transform: uppercase; letter-spacing: .5px; color: var(--cream); }

/* ---------- Secciones ---------- */
main > section { border-top: 5px solid var(--line); }
main > section.sin-filete { border-top: 0; }
.bg1 { background: linear-gradient(180deg, #151618, #111214 60%, #0f1012); padding-block: 48px; }
.bg2 { background: linear-gradient(180deg, #121316, #0e0f11); padding-block: 56px 52px; }
.bg3 { background: #d8d8de url(../img/portada/misty.webp) center / cover no-repeat; border-bottom: 5px solid var(--line); padding-block: 36px; }
.bg5 { background: #d8d8de url(../img/portada/misty.webp) center / cover no-repeat; padding-block: 56px; }

/* Noticias */
.news-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 12px; border: 1px solid rgba(160, 160, 170, .1); background: linear-gradient(145deg, rgba(35, 35, 40, .95), rgba(25, 25, 28, .98)); box-shadow: 0 15px 40px rgba(0, 0, 0, .4); }
.news-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, #a0a0a8, #d4af7d, #a0a0a8, transparent); }
.video-wrap { display: block; min-height: 100%; background: #000; }
.video-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-list { padding: 1.5rem; color: #fff; min-width: 0; }
.news-list h3 { color: var(--gold); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.1rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(212, 175, 125, .2); }
.news-list article { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: .7rem 1rem; margin-bottom: .5rem; border-radius: 8px; border-left: 2px solid transparent; background: rgba(255, 255, 255, .015); transition: background .3s, border-color .3s; }
.news-list article > div { min-width: 0; }
.news-list article:hover { background: rgba(212, 175, 125, .05); border-left-color: var(--gold); }
.news-list time { display: block; font-size: 12px; color: #8e8e96; }
.news-list .read-more { color: var(--silver); font-size: .8rem; white-space: nowrap; flex: none; }
.news-list .read-more:hover { color: var(--gold); }
.news-list .centro { text-align: center; margin-top: 1rem; }
.btn-squared { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 24px; border: 1px solid rgba(160, 160, 170, .5); border-radius: 2px; color: var(--silver); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; transition: all .3s; }
.btn-squared:hover { background: rgba(160, 160, 170, .1); border-color: var(--silver2); color: var(--silver2); }

/* Actualizaciones en directo: linea de tiempo que se dibuja al bajar (portada.js pone --progreso y .visible) */
.directo { position: relative; overflow: hidden; background: radial-gradient(60% 50% at 50% 0%, rgba(212, 175, 125, .09), transparent 70%), linear-gradient(180deg, #121316, #0e0f11); }
.directo [hidden] { display: none !important; }
.directo-cab { text-align: center; max-width: 760px; margin: 0 auto; }
.directo-cab h1 { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; }
.directo-cab p { margin-top: 10px; color: var(--fg); font-size: .95rem; }
.directo-cab p b { display: block; margin-top: 4px; color: var(--gold); font-weight: 600; font-size: .85rem; }
.en-vivo { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border: 1px solid rgba(229, 72, 77, .55); border-radius: 999px; background: rgba(229, 72, 77, .1); font: 700 .68rem/1 var(--body); letter-spacing: .16em; color: #ffb3b5; }
.en-vivo i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .7); animation: latido-rojo 1.6s ease-out infinite; }
@keyframes latido-rojo { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .7); } 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

.en-marcha { max-width: 900px; margin: 28px auto 0; padding: 16px 18px; border: 1px dashed rgba(212, 175, 125, .35); border-radius: 12px; background: rgba(0, 0, 0, .28); }
.en-marcha h3 { margin-bottom: 10px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); }
.en-marcha-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.obra { position: relative; overflow: hidden; padding: 10px 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.obra b { display: block; color: #fff; font-size: .9rem; font-weight: 600; }
.obra p { margin-top: 2px; color: var(--silver); font-size: .82rem; }
.obra-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(212, 175, 125, .12); }
.obra-barra::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; background: linear-gradient(90deg, transparent, var(--gold2), transparent); animation: obra 2.4s ease-in-out infinite; }
@keyframes obra { from { left: -35%; } to { left: 100%; } }

.linea { position: relative; list-style: none; margin: 34px auto 0; padding: 0; max-width: 1000px; }
.linea::before, .linea::after { content: ""; position: absolute; top: 6px; bottom: 0; left: calc(50% - 1px); width: 2px; border-radius: 2px; }
.linea::before { background: rgba(212, 175, 125, .14); }
.linea::after { background: linear-gradient(180deg, var(--gold2), var(--gold) 70%, rgba(212, 175, 125, .2)); box-shadow: 0 0 10px rgba(230, 189, 76, .45); transform-origin: top; transform: scaleY(var(--progreso, 1)); }
.hito { position: relative; width: 50%; padding: 0 40px 26px 0; }
.hito:nth-child(even) { margin-left: 50%; padding: 0 0 26px 40px; }
.hito + .hito { margin-top: -44px; } /* cada lado sube un poco: la linea queda mas compacta sin que se toquen las cajas */
.punto { position: absolute; z-index: 1; top: 16px; right: -8px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold); background: #141518; transition: background .4s, box-shadow .4s; }
.hito:nth-child(even) .punto { right: auto; left: -8px; }
.hito.visible .punto { background: radial-gradient(circle, var(--gold) 0 3px, #141518 4px); }
.hito.reciente .punto { background: var(--gold2); border-color: #fff3c9; box-shadow: 0 0 12px rgba(230, 189, 76, .9); }
.hito.reciente .punto::before, .hito.reciente .punto::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold2); animation: late 2.2s ease-out infinite; }
.hito.reciente .punto::after { animation-delay: 1.1s; }
@keyframes late { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.hito-caja { position: relative; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(160, 160, 170, .12); background: linear-gradient(145deg, rgba(35, 35, 40, .95), rgba(25, 25, 28, .98)); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); transition: transform .3s, border-color .3s, box-shadow .3s; }
.hito-caja::before { content: ""; position: absolute; top: 18px; right: -7px; width: 12px; height: 12px; transform: rotate(45deg); background: #222226; border-top: 1px solid rgba(160, 160, 170, .12); border-right: 1px solid rgba(160, 160, 170, .12); }
.hito:nth-child(even) .hito-caja::before { right: auto; left: -7px; transform: rotate(-135deg); }
.hito-caja:hover { transform: translateY(-3px); border-color: rgba(212, 175, 125, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.hito.reciente .hito-caja { border-color: rgba(230, 189, 76, .5); box-shadow: 0 0 0 1px rgba(230, 189, 76, .15), 0 12px 34px rgba(230, 189, 76, .12); }
.hito-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 6px; }
.hito-meta time { font: 700 .74rem var(--display); letter-spacing: .06em; color: var(--silver); }
.hito-meta .tipo { padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(212, 175, 125, .45); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.tipo-sistema .tipo { border-color: rgba(120, 170, 255, .5); color: #a9c8ff; }
.tipo-mejora .tipo { border-color: rgba(200, 200, 208, .45); color: var(--silver2); }
.tipo-arreglo .tipo { border-color: rgba(154, 211, 154, .5); color: #9ad39a; }
.tipo-contenido .tipo { border-color: rgba(205, 150, 230, .5); color: #dcb3f0; }
.nuevo { padding: 2px 9px; border-radius: 999px; font: 800 .64rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #1b1407; background: linear-gradient(100deg, #b8902c 0%, #f0cf6a 40%, #fff3c9 50%, #f0cf6a 60%, #b8902c 100%); background-size: 250% 100%; box-shadow: 0 0 12px rgba(230, 189, 76, .55); animation: brillo 2.6s linear infinite; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hito-caja h3 { font-size: 1rem; color: var(--cream); }
.hito-caja p { margin-top: 5px; color: var(--fg); font-size: .88rem; }
.directo .centro { text-align: center; margin-top: 6px; }
.ver-todas { cursor: pointer; background: transparent; font-family: var(--body); }
/* Entrada suave al bajar (solo con JavaScript y si el usuario no pide menos movimiento) */
.anima .hito { opacity: 0; transform: translateX(-34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anima .hito:nth-child(even) { transform: translateX(34px); }
.anima .hito.visible, .anima .hito.visible:nth-child(even) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.directo *, .directo *::before, .directo *::after { animation: none !important; transition: none !important; }
}

/* Presentacion, descubre, pasos, recuadros y preguntas */
.intro p { max-width: 72ch; margin-top: 12px; font-size: 1rem; color: #fff; }
.intro .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn-azul, .btn-borde { display: inline-block; padding: 7px 16px; border-radius: 4px; font-size: .88rem; }
.btn-azul { background: #0d6efd; border: 1px solid #0d6efd; color: #fff; }
.btn-borde { background: transparent; border: 1px solid #cfcfd4; color: #fff; }
.btn-azul:hover { filter: brightness(1.1); } .btn-borde:hover { background: rgba(255, 255, 255, .08); }
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 24px; }
.overview p { color: var(--fg); font-size: .92rem; margin-top: 6px; }
.steps { list-style: none; counter-reset: paso; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.steps li { counter-increment: paso; position: relative; padding-left: 2.1em; }
.steps li::before { content: counter(paso) "."; position: absolute; left: .5em; color: var(--gold); font-weight: 700; }
.steps b { color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 20px; }
.tile { display: block; padding: 14px 16px; border: 1px solid rgba(204, 181, 144, .45); border-radius: 3px; background: rgba(0, 0, 0, .38); color: var(--gold); font-size: .92rem; transition: all .3s; }
.tile:hover { border-color: var(--gold); background: rgba(212, 175, 125, .06); }
.tile small { display: block; margin-top: 3px; color: var(--silver); font-size: .78rem; }
.faq { display: grid; gap: 18px; margin-top: 20px; max-width: 92ch; }
.faq h3 { margin-bottom: 4px; font-size: .95rem; scroll-margin-top: 20px; }
.faq p { color: var(--fg); font-size: .92rem; }
.faq > div { scroll-margin-top: 24px; }

/* Guias (fondo claro) */
.bg3 h2 { color: #5e5a4e; text-shadow: 0 1px 0 #fff; }
.bg3 ul { margin: 10px 0 0; padding-left: 1.2em; color: #2b2b2b; font-size: .92rem; }
.bg3 li a { color: #2b2b2b; text-decoration: underline; }

/* Rankings */
.ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 760px; margin: 0 auto; }
.ranking-box { min-width: 0; padding: 22px 18px; border-radius: 12px; background: rgba(14, 14, 16, .92); color: #fff; text-align: center; box-shadow: 0 15px 40px rgba(0, 0, 0, .45); }
.ranking-box h3 { padding: 6px 0 12px; font-size: 17px; color: var(--cream); }
.ranking-box table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 30px; }
.ranking-box th { padding: 4px 6px; font: 600 12px/22px var(--display); text-transform: uppercase; letter-spacing: .5px; color: #ffeab4; text-shadow: -2px 0 0 rgb(99, 80, 54); border-bottom: 1px solid #e4dbae; background: linear-gradient(0deg, #817346 0, #665937 100%); }
.ranking-box td { padding: 3px; color: #dedede; overflow-wrap: anywhere; }
.ranking-box td img { vertical-align: middle; border-radius: 2px; }
.ranking-box tbody tr:nth-child(1) { background: rgba(230, 209, 130, .22); }
.ranking-box tbody tr:nth-child(2) { background: rgba(192, 192, 192, .22); }
.ranking-box tbody tr:nth-child(3) { background: rgba(100, 62, 53, .22); }
.medal { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .4); }
.medal.m1 { background: radial-gradient(circle at 35% 30%, #fff2a8, #d4a63a 60%, #8a6a17); }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #fff, #bfc3cc 60%, #6e737c); }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #f3c9a0, #b06e3c 60%, #5e3617); }
.ranking-box .btn-squared { margin-top: 14px; }

/* Estadisticas y eventos */
.stats { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.3rem; }
.stat-bg { position: relative; overflow: hidden; display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .9rem 1.1rem; border: 1px solid rgba(160, 160, 170, .1); border-radius: 10px; background: linear-gradient(145deg, rgba(40, 40, 45, .6), rgba(30, 30, 35, .7)); color: rgba(255, 255, 255, .78); font-family: var(--display); font-size: 12px; transition: transform .3s, border-color .3s; }
.stat-bg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gold), var(--silver)); opacity: 0; transition: opacity .3s; }
.stat-bg:hover { transform: translateX(5px); border-color: rgba(212, 175, 125, .2); }
.stat-bg:hover::before { opacity: 1; }
.stat-bg .ico { flex: none; width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold); opacity: .85; border-radius: 1px; }
.stat-bg .ico-beta { background: var(--gold2); box-shadow: 0 0 8px rgba(230, 189, 76, .6); }
.stat-bg .ico-hora { border-radius: 50%; transform: none; background: var(--silver); }
.stat-bg b { margin-left: auto; padding-left: .5rem; color: var(--gold); font: 700 1rem Georgia, serif; letter-spacing: .5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.events { min-width: 0; padding: 16px; border-radius: 12px; border: 1px solid rgba(160, 160, 170, .12); background: linear-gradient(135deg, rgba(30, 30, 50, .98), rgba(20, 20, 35, .98)); }
.events h3 { margin-bottom: 12px; font-size: .95rem; color: var(--silver2); }
.ev { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; margin-bottom: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .05); background: rgba(0, 0, 0, .35); }
.ev .ico-ev { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; font: 700 9px var(--display); color: #fff; background: radial-gradient(circle at 30% 30%, #4b7d55, #1b2e20); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ev b { display: block; font-weight: 600; font-size: .9rem; color: #fff; }
.ev small, .ev .bono { color: #9ad39a; font-size: .8rem; }
.ev .bono { white-space: nowrap; }

/* Pie */
.pie-claro { display: flex; align-items: center; min-height: 200px; padding-block: 28px; border-top: 5px solid var(--line); border-bottom: 5px solid var(--line); background: #d8d8de url(../img/portada/misty.webp) center / cover no-repeat; }
.pie-claro .container { display: flex; justify-content: space-between; align-items: center; gap: 20px 24px; flex-wrap: wrap; }
.pie-claro img { width: 240px; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.pie-claro nav { display: flex; gap: 8px 28px; flex-wrap: wrap; font: 700 13px var(--display); }
.pie-claro nav a { color: #2b2b2b; }
.pie-claro nav a:hover { color: #000; }
.pie-negro { display: flex; align-items: center; min-height: 72px; padding-block: 14px; background: #0b0e10; color: #bebebe; font: .78rem var(--display); }
.pie-negro .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	header.cabecera { min-height: 0; padding-bottom: 40px; }
	.news-box { grid-template-columns: 1fr; }
	.video-wrap { aspect-ratio: 1198 / 640; min-height: 0; }
	.stats { grid-template-columns: 1fr; }
	/* Linea de tiempo a la izquierda, todas las entradas en una columna */
	.linea::before, .linea::after { left: 15px; }
	.hito, .hito:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 18px 42px; }
	.hito + .hito { margin-top: 0; }
	.punto, .hito:nth-child(even) .punto { left: 8px; right: auto; }
	.hito-caja::before, .hito:nth-child(even) .hito-caja::before { left: -7px; right: auto; transform: rotate(-135deg); }
	.anima .hito, .anima .hito:nth-child(even) { transform: translateY(26px); }
	.anima .hito.visible, .anima .hito.visible:nth-child(even) { transform: none; }
}
/* ---------- Movil ---------- */
@media (max-width: 700px) {
	body.portada { font-size: 14px; }
	#fondo .arte { background-size: 190% auto; background-position: 50% 0; animation: none; }
	#fondo .niebla, #fondo .rayos { display: none; }
	.barra { padding-block: 10px; gap: 10px 12px; }
	.menu { gap: 6px 14px; }
	.menu a { font-size: 11px; gap: 4px; }
	.menu svg { width: 13px; height: 13px; }
	.idioma { order: 1; }
	.acceso { order: 2; gap: 8px; }
	.acceso .btn-black, .acceso .btn-white { width: 128px; height: 40px; line-height: 38px; font-size: 11px; }
	.heroe { padding-top: 18px; gap: 12px; }
	.heroe .logo { width: min(300px, 76vw); }
	.fase { letter-spacing: .2em; gap: 10px; }
	.p2w { font-size: .72rem; padding: 5px 12px; }
	.fila { flex-direction: column; align-items: center; gap: 14px; }
	.fila .online-players { order: -1; }
	.accion .btn-black, .accion .btn-white2 { width: min(260px, 80vw); }
	.bg1, .bg2, .bg5 { padding-block: 36px; }
	.overview, .ranks { grid-template-columns: 1fr; }
	.stat-grid { grid-template-columns: 1fr; }
	.ranking-box { padding: 16px 10px; }
	.ranking-box table { font-size: 11px; line-height: 26px; }
	.ranking-box th { font-size: 10px; letter-spacing: 0; padding: 4px 3px; }
	.news-list { padding: 1rem; }
	.news-list article { padding: .6rem .7rem; }
	.ev { grid-template-columns: 38px 1fr; }
	.ev .bono { grid-column: 2; }
	.pie-claro img { width: 200px; }
	.pie-claro .container, .pie-negro .container { justify-content: center; text-align: center; }
}
@media (max-width: 400px) {
	.acceso .btn-black, .acceso .btn-white { width: 118px; }
	.fase { font-size: .7rem; letter-spacing: .14em; }
}

/* Boton del panel Olimpo (solo administradores): dorado para distinguirlo */
.acceso .btn-black.olimpo { background: linear-gradient(180deg, #f0cf6a, #b8902c); border-color: #f3d77e; color: #1b1407; font-weight: 700; }
@media (max-width: 700px) { .acceso { flex-wrap: wrap; justify-content: center; } }

/* ---------- Beta: boton unico "Reserva tu plaza gratis", rotulo con la fecha y recompensa de fundador ---------- */
.btn-reserva { width: auto; min-width: 240px; padding: 0 26px; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.heroe .btn-reserva { height: 54px; line-height: 52px; font-size: 15px; box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(230, 189, 76, .35), 0 8px 22px rgba(0, 0, 0, .55); }
.acceso .btn-reserva { width: auto; min-width: 0; padding: 0 18px; }
.accion small { max-width: 260px; }
.descarga-discreta { margin-top: -2px; font-size: .74rem; color: rgba(248, 230, 200, .62); text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 1px 3px #000; }
.descarga-discreta:hover { color: var(--cream); }
.franja-fundador { padding-block: 26px; }
.fundador { display: flex; align-items: center; gap: 16px 22px; padding: 18px 22px; border: 1px solid rgba(230, 189, 76, .55); border-radius: 12px;
	background: linear-gradient(135deg, rgba(58, 46, 20, .55), rgba(18, 16, 12, .92) 60%); box-shadow: 0 0 0 3px rgba(230, 189, 76, .08), 0 12px 30px rgba(0, 0, 0, .45); }
.fundador-sello { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold2); background: radial-gradient(circle at 35% 30%, #4a3a16, #15120b 70%); }
.fundador-sello svg { width: 28px; height: 28px; fill: #f0cf6a; filter: drop-shadow(0 0 6px rgba(240, 207, 106, .5)); }
.fundador-texto { flex: 1 1 auto; min-width: 0; }
.fundador .fundador-titulo { margin: 0 0 4px; padding: 0; border: 0; font: 700 1.05rem var(--display); color: #f0cf6a; text-transform: uppercase; letter-spacing: .12em; }
.fundador p { margin: 0; color: #fff; font-size: 1rem; line-height: 1.45; }
.fundador small { display: block; margin-top: 4px; color: var(--cream); opacity: .8; font-size: .82rem; }
.fundador .btn-reserva { flex: none; }
@media (max-width: 700px) {
	.fase { flex-direction: column; gap: 2px; white-space: normal; text-align: center; } /* dos lineas: "Beta: fecha" y "Plazas de fundador" */
	.fase::before, .fase::after, .fase i { display: none; }
	.heroe .btn-reserva { width: min(300px, 86vw); }
	.acceso .btn-reserva { width: auto; padding: 0 14px; }
	.fundador { flex-direction: column; text-align: center; padding: 16px; }
	.fundador .btn-reserva { width: 100%; }
}
