/* Modo test y noticias escritas a mano en varios idiomas (plantilla Eclipse).
 *
 * Idiomas: traductor.js pone <html data-lengua="es|en|pt"> antes de pintar nada (sin idioma
 * elegido, "en"). Lo marcado con data-solo="xx" solo se ve en ese idioma; lleva translate="no"
 * para que Google no lo vuelva a traducir. Asi una noticia o una imagen puede venir hecha a
 * mano en los tres idiomas y cambiar con la bandera.
 *
 * Discord: template.php pone .ec-con-discord en <html> si hay enlace (config.php, discord_url).
 * Sin enlace, lo que lleva data-con-discord no se pinta; los a[data-discord] reciben el enlace.
 */

html:not([data-lengua="es"]) [data-solo="es"],
html:not([data-lengua="en"]) [data-solo="en"],
html:not([data-lengua="pt"]) [data-solo="pt"],
html:not(.ec-con-discord) [data-con-discord] { display: none !important; }

/* ---- B: barra fina del modo test, arriba de todas las paginas ------------------------ */
.mt-barra { position: relative; z-index: 51; background: linear-gradient(90deg, #052e1a, #0f5132 30%, #14532d 70%, #052e1a);
	border-bottom: 1px solid rgba(74, 222, 128, .45); font: 700 12.5px/1.2 Inter, sans-serif; color: #dcfce7; }
.mt-barra-in { max-width: 80rem; margin: 0 auto; min-height: 36px; padding: 7px 16px; display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap; text-align: center; }
.mt-pil { flex: none; padding: 2px 9px; border-radius: 999px; background: #22c55e; color: #052e16; font: 900 10.5px Inter, sans-serif; letter-spacing: .12em; }
.mt-barra b { color: #fde68a; }
.mt-barra a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mt-barra a:hover { color: #fde68a; }
.mt-sep { color: rgba(220, 252, 231, .45); }
@media (max-width: 640px) {
	.mt-barra .mt-extra { display: none; }
}

/* ---- A: franja del modo test bajo el panel de la portada ----------------------------- */
.mt-franja { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 18px; overflow: hidden;
	background: linear-gradient(110deg, rgba(34, 197, 94, .2), rgba(3, 7, 18, .95) 45%, rgba(88, 28, 135, .35)); border: 1px solid rgba(74, 222, 128, .5);
	box-shadow: 0 0 34px -10px rgba(34, 197, 94, .6); }
.mt-franja::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 12px, transparent 12px 24px); }
.mt-npc { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(circle, rgba(74, 222, 128, .35), rgba(2, 6, 23, .9) 70%); border: 2px solid rgba(74, 222, 128, .7); }
.mt-npc img { width: 92px; height: 92px; margin: -8px 0 0 -10px; image-rendering: pixelated; }
.mt-npc i { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: #22c55e; color: #052e16; font: 900 10px Inter, sans-serif; font-style: normal; letter-spacing: .1em; }
.mt-franja h3 { font: 900 21px/1.15 Cinzel, serif; color: #fff; letter-spacing: .02em; }
.mt-franja h3 em { font-style: normal; color: #4ade80; }
.mt-franja p { font: 500 13px/1.5 Inter, sans-serif; color: #cbd5e1; margin-top: 4px; }
.mt-franja p b { color: #fde68a; }
.mt-chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mt-chip { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 10px; background: rgba(2, 6, 23, .75); border: 1px solid rgba(148, 163, 184, .25); font: 800 12px Inter, sans-serif; color: #f1f5f9; white-space: nowrap; }
.mt-chip img { width: 26px; height: 26px; image-rendering: pixelated; }
.mt-chip .mt-n { font: 900 14px Cinzel, serif; color: #fbbf24; padding-left: 4px; }
.mt-botones { position: relative; display: grid; gap: 8px; }
.mt-btn { display: block; text-align: center; padding: 11px 16px; border-radius: 12px; font: 800 13px Inter, sans-serif; text-decoration: none; white-space: nowrap; transition: transform .15s, filter .15s; }
.mt-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mt-btn-oro { background: linear-gradient(90deg, #f59e0b, #fbbf24); color: #1c1206; box-shadow: 0 8px 22px -8px rgba(245, 158, 11, .6); }
.mt-btn-dc { background: #5865f2; color: #fff; }
@media (max-width: 760px) {
	.mt-franja { grid-template-columns: 84px minmax(0, 1fr); padding: 14px; gap: 12px 14px; }
	.mt-npc { width: 80px; height: 80px; }
	.mt-npc img { width: 72px; height: 72px; }
	.mt-franja h3 { font-size: 18px; }
	/* flex y no rejilla: el boton de Discord oculto (sin enlace) no debe dejar hueco */
	.mt-botones { grid-column: 1 / -1; display: flex; }
	.mt-botones .mt-btn { flex: 1; }
}

/* ---- Pagina de una noticia --------------------------------------------------------- */
.ec-noticia-cab { margin-bottom: 16px; }
.ec-noticia-titulo { font: 800 clamp(22px, 3.2vw, 30px)/1.2 Cinzel, serif; color: #fff; }
.ec-noticia-meta { margin-top: 6px; font: 600 12px Inter, sans-serif; color: #94a3b8; }
.ec-noticia-cuerpo { font: 500 14px/1.65 Inter, sans-serif; color: #cbd5e1; }
.ec-noticia-com { display: inline-block; margin-top: 16px; color: #fbbf24; font-weight: 700; }

/* ---- Noticia de bienvenida (cuerpo en la base de datos, clases bv-*) ---------------- */
.bv-banner { display: block; width: 100%; height: auto; border-radius: 14px; margin: 0 0 22px; border: 1px solid rgba(232, 185, 74, .45); box-shadow: 0 10px 40px -10px rgba(245, 158, 11, .35); }
.bv-intro { font: 500 15px/1.7 Inter, sans-serif; color: #e2e8f0; }
.bv-intro strong { color: #fbbf24; }
.bv h2 { display: flex; align-items: center; gap: 10px; font: 800 19px/1.25 Cinzel, serif; color: #fff; margin: 30px 0 14px; }
.bv h2 i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); font-style: normal; font-size: 17px; }
.bv h2 svg { width: 18px; height: 18px; color: #fbbf24; }
.bv-texto { font: 500 14px/1.65 Inter, sans-serif; color: #cbd5e1; margin-top: 12px; }
.bv-texto b { color: #fff; }
.bv code { font: 700 13px 'JetBrains Mono', monospace; color: #fde68a; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .3); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.bv img.px, .bv .px { image-rendering: pixelated; }

.bv-tester { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; border-radius: 16px;
	background: linear-gradient(135deg, rgba(34, 197, 94, .14), rgba(15, 23, 42, .7) 55%); border: 1px solid rgba(74, 222, 128, .45); box-shadow: 0 0 30px -8px rgba(34, 197, 94, .4); }
.bv-npc { text-align: center; }
.bv-npc span { width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(circle, rgba(74, 222, 128, .3), rgba(2, 6, 23, .9) 70%); border: 2px solid rgba(74, 222, 128, .6); }
.bv-npc img { width: 120px; height: 120px; margin: -10px 0 0 -14px; image-rendering: pixelated; }
.bv-npc b { display: block; margin-top: 8px; font: 900 18px Cinzel, serif; color: #bbf7d0; }
.bv-npc small { font: 600 11px Inter, sans-serif; color: #94a3b8; }
.bv-premios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bv-premio { text-align: center; padding: 12px 8px; border-radius: 12px; background: rgba(2, 6, 23, .7); border: 1px solid rgba(148, 163, 184, .2); font: 700 12px/1.3 Inter, sans-serif; color: #e2e8f0; }
.bv-premio > span { height: 40px; display: grid; place-items: center; font: 900 25px Cinzel, serif; color: #fbbf24; text-shadow: 0 0 12px rgba(245, 158, 11, .5); }
.bv-premio img { width: 40px; height: 40px; image-rendering: pixelated; }
.bv-premio small { display: block; font: 500 11px Inter, sans-serif; color: #94a3b8; }
.bv-pasos { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.bv-paso { flex: 1 1 150px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(2, 6, 23, .6); border: 1px dashed rgba(74, 222, 128, .4); font: 600 13px Inter, sans-serif; color: #e2e8f0; }
.bv-paso > span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #052e16; font: 900 12px Inter, sans-serif; }

.bv-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bv-cosa { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: rgba(2, 6, 23, .55); border: 1px solid rgba(51, 65, 85, .8); }
.bv-cosa img { width: 36px; height: 36px; flex: none; image-rendering: pixelated; }
.bv-cosa b { display: block; font: 800 14px Inter, sans-serif; color: #fff; }
.bv-cosa p { font: 500 12px/1.45 Inter, sans-serif; color: #94a3b8; margin-top: 2px; }

.bv-ayuda { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.bv-via { padding: 16px; border-radius: 14px; background: rgba(239, 68, 68, .08); border: 1px solid rgba(248, 113, 113, .35); }
.bv-via b { display: block; font: 800 14px Inter, sans-serif; color: #fecaca; margin-bottom: 6px; }
.bv-via p { font: 500 13px/1.6 Inter, sans-serif; color: #cbd5e1; }

.bv-discord { display: flex; align-items: center; gap: 20px; margin-top: 30px; padding: 22px 24px; border-radius: 18px; position: relative; overflow: hidden;
	background: linear-gradient(120deg, #5865f2, #3c45a5); box-shadow: 0 14px 40px -12px rgba(88, 101, 242, .7); }
.bv-discord::after { content: ""; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.bv-discord svg { width: 60px; height: 60px; flex: none; color: #fff; }
.bv-discord h3 { font: 900 21px Cinzel, serif; color: #fff; }
.bv-discord p { font: 500 14px/1.5 Inter, sans-serif; color: #e0e7ff; margin-top: 4px; }
.bv-discord a { margin-left: auto; flex: none; position: relative; z-index: 1; padding: 13px 22px; border-radius: 12px; background: #fff; color: #3c45a5; font: 900 14px Inter, sans-serif; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }

.bv-cierre { margin-top: 26px; padding: 18px 20px; border-radius: 14px; text-align: center; background: linear-gradient(90deg, rgba(245, 158, 11, .06), rgba(245, 158, 11, .16), rgba(245, 158, 11, .06)); border: 1px solid rgba(245, 158, 11, .35); }
.bv-cierre b { font: 900 18px Cinzel, serif; color: #fde68a; letter-spacing: .06em; }
.bv-cierre p { font: 500 13px Inter, sans-serif; color: #cbd5e1; margin-top: 4px; }

@media (max-width: 760px) {
	.bv-tester { grid-template-columns: minmax(0, 1fr); }
	.bv-premios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-rejilla { grid-template-columns: minmax(0, 1fr); }
	.bv-discord { flex-wrap: wrap; }
	.bv-discord a { margin-left: 0; }
}
