/* ==========================================================================
   Elderborn — plantilla MyAAC medieval, modular y adaptable
   Paneles de pergamino sobre marco de madera/piedra, fondo: Thomas Cole (CC0)
   ========================================================================== */

:root {
	--wood: #160f09;
	--wood-2: #23170d;
	--wood-3: #33220f;
	--gold: #c9a24a;
	--gold-2: #e9cd7c;
	--gold-dark: #8a6a2c;
	--parch: #f4e8c8;
	--parch-2: #e8d6a8;
	--parch-edge: #c9ae74;
	--ink: #2e1d0e;
	--ink-soft: #5c4128;
	--blood: #8c2a1c;
	--moss: #3f6b2e;
	--light: #f2e8d2;
	--radius: 6px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .45);
	--font-title: "Cinzel", "Trajan Pro", Georgia, serif;
	--font-logo: "Cinzel Decorative", "Cinzel", Georgia, serif;
	--font-body: "EB Garamond", Garamond, Georgia, serif;
	--header-h: 64px;
	--side-w: 330px;
	--max-w: 1480px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--wood);
	display: flex;
	flex-direction: column;
}

/* Fondo fijo (elemento propio: background-attachment:fixed falla en iOS) */
.eb-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(14, 9, 5, .55) 0%, rgba(14, 9, 5, .35) 35%, rgba(14, 9, 5, .82) 100%),
		url("images/bg-1920.jpg") center 30% / cover no-repeat,
		var(--wood);
}
@media (max-width: 900px) {
	.eb-bg {
		background:
			linear-gradient(180deg, rgba(14, 9, 5, .6) 0%, rgba(14, 9, 5, .45) 40%, rgba(14, 9, 5, .88) 100%),
			url("images/bg-1280.jpg") 35% 30% / cover no-repeat,
			var(--wood);
	}
}

a { color: var(--blood); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #b23a26; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; color: var(--ink); }

/* ---------- Botones ---------- */
.eb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	min-height: 42px;
	padding: .5em 1.1em;
	border: 1px solid var(--gold-dark);
	border-radius: var(--radius);
	background: linear-gradient(180deg, #4a3017, #2c1c0c);
	color: var(--gold-2);
	font-family: var(--font-title);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 220, 150, .15), 0 2px 6px rgba(0, 0, 0, .35);
	transition: transform .12s ease, filter .12s ease;
}
.eb-btn:hover { filter: brightness(1.15); color: #fff3cf; }
.eb-btn:active { transform: translateY(1px); }
.eb-btn--play {
	background: linear-gradient(180deg, #b5302a, #6e1610);
	border-color: #e2b25a;
	color: #fff2d0;
}
.eb-btn--ghost {
	background: rgba(20, 12, 6, .55);
	color: var(--gold-2);
}
.eb-btn--lg { min-height: 52px; padding: .7em 1.6em; font-size: 1rem; }
.eb-btn--block { display: flex; width: 100%; margin-top: .55rem; }

/* ---------- Cabecera ---------- */
.eb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: linear-gradient(180deg, rgba(22, 15, 9, .97), rgba(30, 20, 11, .94));
	border-bottom: 2px solid var(--gold-dark);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.eb-header__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	min-height: var(--header-h);
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 18px;
}
.eb-logo {
	display: flex;
	align-items: center;
	gap: .45em;
	color: var(--gold-2);
	text-decoration: none;
	white-space: nowrap;
}
.eb-logo:hover { color: #fff1c4; }
.eb-logo__crest { font-size: 1.5rem; filter: drop-shadow(0 0 6px rgba(233, 205, 124, .45)); }
.eb-logo__text { font-family: var(--font-logo); font-size: 1.55rem; letter-spacing: .04em; text-shadow: 0 2px 6px #000; }

.eb-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.eb-nav__group { position: relative; }
.eb-nav__cat {
	list-style: none;
	cursor: pointer;
	padding: .55em .9em;
	border-radius: var(--radius);
	color: var(--light);
	font-family: var(--font-title);
	font-size: .92rem;
	letter-spacing: .05em;
	user-select: none;
}
.eb-nav__cat::-webkit-details-marker { display: none; }
.eb-nav__cat::after { content: " \25BE"; color: var(--gold); font-size: .8em; }
.eb-nav__cat:hover, .eb-nav__group[open] > .eb-nav__cat { background: rgba(201, 162, 74, .14); color: var(--gold-2); }
.eb-nav__group.is-active > .eb-nav__cat { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); }
.eb-nav__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 230px;
	padding: 8px;
	background: var(--parch);
	border: 1px solid var(--parch-edge);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: grid;
	gap: 2px;
}
.eb-nav__menu a {
	display: block;
	padding: .45em .7em;
	border-radius: 4px;
	color: var(--ink);
	text-decoration: none;
	font-size: 1rem;
}
.eb-nav__menu a:hover { background: var(--parch-2); color: var(--blood); }
.eb-header__play { margin-left: 8px; }
.eb-nav__play-mobile { display: none; }

.eb-burger {
	display: none;
	margin-left: auto;
	width: 46px;
	height: 42px;
	padding: 10px;
	border: 1px solid var(--gold-dark);
	border-radius: var(--radius);
	background: transparent;
	cursor: pointer;
}
.eb-burger span { display: block; height: 2px; margin: 4px 0; background: var(--gold-2); transition: transform .2s, opacity .2s; }
.eb-nav-open .eb-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.eb-nav-open .eb-burger span:nth-child(2) { opacity: 0; }
.eb-nav-open .eb-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Portada ---------- */
.eb-hero { padding: clamp(48px, 9vw, 120px) 20px clamp(36px, 6vw, 80px); text-align: center; }
.eb-hero__inner { max-width: 900px; margin: 0 auto; }
.eb-hero__kicker {
	margin: 0 0 .4em;
	color: var(--gold-2);
	font-family: var(--font-title);
	letter-spacing: .3em;
	text-transform: uppercase;
	font-size: .85rem;
	text-shadow: 0 2px 6px #000;
}
.eb-hero__title {
	margin: 0;
	color: #f7e3a8;
	font-family: var(--font-logo);
	font-size: clamp(2.6rem, 8vw, 5.4rem);
	text-shadow: 0 4px 18px rgba(0, 0, 0, .85), 0 0 40px rgba(201, 162, 74, .35);
}
.eb-hero__lead {
	max-width: 640px;
	margin: .8em auto 1.6em;
	color: var(--light);
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	text-shadow: 0 2px 8px #000;
}
.eb-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.eb-status-pill {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin-top: 1.6em;
	padding: .4em 1em;
	border: 1px solid rgba(201, 162, 74, .5);
	border-radius: 999px;
	background: rgba(15, 10, 5, .7);
	color: var(--light);
	font-size: .95rem;
}
.eb-dot { width: 10px; height: 10px; border-radius: 50%; background: #9b2a1c; box-shadow: 0 0 8px #9b2a1c; }
.is-online .eb-dot { background: #6fc04f; box-shadow: 0 0 8px #6fc04f; }

/* ---------- Distribucion: contenido + modulos ---------- */
.eb-layout {
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 28px 20px 40px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--side-w);
	gap: 24px;
	align-items: start;
	flex: 1;
}
.eb-inner .eb-layout { padding-top: 32px; }
.eb-main { min-width: 0; }
.eb-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }

/* Panel de pergamino */
.eb-panel, .eb-module {
	position: relative;
	background:
		radial-gradient(ellipse at top left, rgba(255, 255, 255, .35), transparent 55%),
		radial-gradient(ellipse at bottom right, rgba(160, 120, 60, .18), transparent 60%),
		var(--parch);
	border: 1px solid var(--parch-edge);
	border-radius: var(--radius);
	box-shadow: var(--shadow), inset 0 0 0 4px rgba(244, 232, 200, .9), inset 0 0 0 5px rgba(138, 106, 44, .45);
}
.eb-panel__head { padding: 20px 28px 0; }
.eb-crumbs { font-size: .9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .4em; }
.eb-crumbs a { color: var(--ink-soft); }
.eb-panel__title {
	margin: .25em 0 0;
	padding-bottom: .45em;
	font-size: clamp(1.4rem, 3vw, 2rem);
	border-bottom: 2px solid rgba(138, 106, 44, .45);
}
.eb-panel__body { padding: 18px 28px 30px; overflow-wrap: break-word; }
.eb-content table, .eb-content td, .eb-content th { overflow-wrap: normal; word-break: normal; }

.eb-module { padding: 18px 20px 20px; }
.eb-module__title {
	margin: 0 0 .6em;
	padding-bottom: .4em;
	font-size: 1.1rem;
	letter-spacing: .04em;
	border-bottom: 1px solid rgba(138, 106, 44, .45);
}
.eb-module p { margin: 0 0 .6em; }
.eb-module__more { display: inline-block; margin-top: .7em; font-size: .95rem; }
.eb-module--play {
	background:
		linear-gradient(180deg, rgba(20, 12, 6, .82), rgba(20, 12, 6, .92)),
		url("images/bg-1280.jpg") center / cover;
	border-color: var(--gold-dark);
	box-shadow: var(--shadow), inset 0 0 0 1px rgba(233, 205, 124, .25);
	color: var(--light);
}
.eb-module--play .eb-module__title { color: var(--gold-2); border-color: rgba(233, 205, 124, .3); }
.eb-muted { color: var(--ink-soft); font-style: italic; }

.eb-stats { list-style: none; margin: 0; padding: 0; }
.eb-stats li { display: flex; justify-content: space-between; gap: 10px; padding: .3em 0; border-bottom: 1px dashed rgba(138, 106, 44, .35); }
.eb-stats li:last-child { border-bottom: 0; }
.eb-ok { color: var(--moss); }
.eb-bad { color: var(--blood); }

.eb-top { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.eb-top li { display: flex; align-items: center; gap: 10px; padding: .35em 0; border-bottom: 1px dashed rgba(138, 106, 44, .35); }
.eb-top li:last-child { border-bottom: 0; }
.eb-top a { flex: 1; color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-top a:hover { color: var(--blood); }
.eb-top__rank {
	width: 28px; height: 28px; flex: none;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--wood-3);
	color: var(--gold-2);
	font-family: var(--font-title);
	font-size: .85rem;
}
.eb-top li:first-child .eb-top__rank { background: linear-gradient(180deg, #e9cd7c, #9c7426); color: #2a1b08; }
.eb-top__lvl { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }

.eb-form label { display: block; margin-bottom: .55rem; font-size: .95rem; color: var(--ink-soft); }
.eb-form input { display: block; width: 100%; margin-top: .2rem; }
.eb-form__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: .7rem; font-size: .9rem; }

/* ---------- Pie ---------- */
.eb-footer {
	margin-top: auto;
	background: rgba(14, 9, 5, .92);
	border-top: 2px solid var(--gold-dark);
	color: #c9b894;
	font-size: .9rem;
	text-align: center;
}
.eb-footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 18px 20px 26px; }
.eb-footer a { color: var(--gold-2); }
.eb-footer p { margin: .3em 0; }
.eb-credit { opacity: .75; font-size: .85rem; }

/* ==========================================================================
   Contenido generado por MyAAC (tablas, formularios, noticias, Bootstrap)
   ========================================================================== */
.eb-content table { width: 100%; border-collapse: separate; border-spacing: 0 1px; font-size: .98rem; }
.eb-content td, .eb-content th { padding: .45em .6em; vertical-align: top; }
.eb-content table table { margin: 0; }
.eb-content tr[bgcolor="#5b3a1f"] td,
.eb-content tr[style*="5b3a1f"] td,
.eb-content .white, .eb-content td.white, .eb-content .white a {
	color: #f6e5bd;
	font-family: var(--font-title);
	letter-spacing: .03em;
}
.eb-content tr[bgcolor="#5b3a1f"] td:first-child { border-radius: 4px 0 0 4px; }
.eb-content tr[bgcolor="#5b3a1f"] td:last-child { border-radius: 0 4px 4px 0; }
.eb-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1em; }
.eb-content h1, .eb-content h2, .eb-content h3 { margin: .6em 0 .4em; }
.eb-content h2 { font-size: 1.35rem; }
.eb-content hr { border: 0; border-top: 1px solid rgba(138, 106, 44, .45); margin: 1em 0; }
.eb-content small { color: var(--ink-soft); }
.eb-content .red, .eb-content .FormFieldError { color: var(--blood); }
.eb-content .LabelV, .eb-content .LabelV150 { font-weight: 600; white-space: nowrap; width: 1%; }
.eb-content .TableContainer, .eb-content .TableContentContainer { margin-bottom: 1em; }
.eb-content .CaptionContainer, .eb-content .Text {
	font-family: var(--font-title);
	color: #f6e5bd;
	background: var(--wood-3);
	padding: .45em .8em;
	border-radius: 4px 4px 0 0;
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"],
select, textarea, .form-control {
	max-width: 100%;
	min-height: 40px;
	padding: .4em .6em;
	border: 1px solid var(--parch-edge);
	border-radius: 4px;
	background: #fffaf0;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.eb-content input[type="submit"], .eb-content button:not(.eb-btn), .eb-content .btn {
	min-height: 40px;
	padding: .45em 1em;
	border: 1px solid var(--gold-dark);
	border-radius: var(--radius);
	background: linear-gradient(180deg, #4a3017, #2c1c0c);
	color: var(--gold-2);
	font-family: var(--font-title);
	font-size: .85rem;
	letter-spacing: .05em;
	cursor: pointer;
}
.eb-content .btn-danger { background: linear-gradient(180deg, #a3302a, #5e1510); }
.eb-content .btn-success { background: linear-gradient(180deg, #4f7a33, #2b4a1a); color: #f4f0d8; }
.eb-content input[type="image"] { min-height: 0; }
.eb-content .card { background: rgba(255, 250, 235, .6); border: 1px solid var(--parch-edge); border-radius: var(--radius); margin-bottom: 1em; }
.eb-content .card-header { padding: .6em 1em; border-bottom: 1px solid var(--parch-edge); font-family: var(--font-title); }
.eb-content .card-body { padding: 1em; }
.eb-content .alert { padding: .7em 1em; border: 1px solid var(--parch-edge); border-radius: var(--radius); background: #fff6dc; }
.eb-content .row { display: flex; flex-wrap: wrap; gap: 1em; }
.eb-content .row > [class*="col-"] { flex: 1 1 260px; }

/* Noticias */
.eb-news { margin-bottom: 2em; }
.eb-news__head { display: flex; align-items: center; gap: 12px; padding-bottom: .5em; border-bottom: 1px solid rgba(138, 106, 44, .45); }
.eb-news__icon { width: 32px; height: 32px; flex: none; }
.eb-news__title { margin: 0; font-size: 1.3rem; }
.eb-news__meta { color: var(--ink-soft); font-size: .9rem; }
.eb-news__body { padding-top: .6em; }
.eb-news__more { text-align: right; }

/* ==========================================================================
   Adaptable
   ========================================================================== */
@media (max-width: 1240px) {
	:root { --side-w: 290px; }
	.eb-header__play { display: none; }
	.eb-nav__cat { padding: .55em .65em; }
}

/* Tablet: modulos en rejilla debajo del contenido */
@media (max-width: 1060px) {
	/* los modulos pasan a ser piezas de la rejilla: "Entra al reino" arriba, el resto tras el contenido */
	.eb-layout { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
	.eb-main, .eb-module--play { grid-column: 1 / -1; }
	.eb-side { display: contents; }
	.eb-module--play { order: -1; }
	.eb-inner .eb-module--play { order: 0; }
}

/* Movil: cajon de navegacion */
@media (max-width: 900px) {
	body { font-size: 17px; }
	.eb-burger { display: block; }
	.eb-nav {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 14px 18px;
		background: rgba(22, 15, 9, .98);
		border-bottom: 2px solid var(--gold-dark);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .18s, transform .18s, visibility .18s;
	}
	.eb-nav-open .eb-nav { transform: none; opacity: 1; visibility: visible; }
	.eb-nav__group { border-bottom: 1px solid rgba(201, 162, 74, .2); }
	.eb-nav__cat { padding: .85em .4em; font-size: 1rem; }
	.eb-nav__menu { position: static; min-width: 0; margin: 0 0 10px; box-shadow: none; }
	.eb-nav__menu a { padding: .65em .7em; }
	.eb-nav__play-mobile { display: flex; margin-top: 14px; }
}

@media (max-width: 600px) {
	.eb-header__inner, .eb-layout { padding-left: 12px; padding-right: 12px; }
	.eb-logo__text { font-size: 1.3rem; }
	.eb-panel__head { padding: 16px 16px 0; }
	.eb-panel__body { padding: 14px 16px 22px; }
	.eb-hero__actions .eb-btn { flex: 1 1 100%; }
	.eb-side { grid-template-columns: minmax(0, 1fr); }
	.eb-content td, .eb-content th { padding: .4em .45em; }
	.eb-content .LabelV, .eb-content .LabelV150 { white-space: normal; }
}

/* Pantallas muy anchas: aprovechar el espacio */
@media (min-width: 1700px) {
	:root { --max-w: 1640px; --side-w: 360px; }
	body { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Descargas (pagina generada por custom/deploy/publish-downloads.sh) ---------- */
.eb-dl__intro { font-size: 1.1rem; }
.eb-dl__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 1em 0; }
.eb-dl__card {
	display: flex;
	flex-direction: column;
	padding: 16px 18px;
	border: 1px solid var(--parch-edge);
	border-radius: var(--radius);
	background: rgba(255, 250, 235, .55);
}
.eb-dl__card h3 { margin: 0 0 .3em; }
.eb-dl__card p { margin: 0 0 .6em; flex: 0; }
.eb-dl__card .eb-btn { margin-top: auto; }
.eb-dl__soon { opacity: .6; cursor: default; color: var(--ink-soft) !important; border-style: dashed; background: transparent; }
.eb-dl__meta { margin-top: .5em !important; color: var(--ink-soft); font-size: .9rem; }
.eb-dl__sha { font-size: .75rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.eb-dl__note { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Paginas de informacion (servidor, comenzar) ---------- */
.eb-info__lead { font-size: 1.12rem; margin-top: 0; }
.eb-info__h { margin: 1.4em 0 .6em; font-size: 1.15rem; letter-spacing: .04em; }
.eb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.eb-tiles--wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.eb-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	padding: 16px 12px; text-align: center;
	border: 1px solid var(--parch-edge); border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 250, 235, .85), rgba(232, 214, 168, .55));
}
.eb-tile__value { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--blood); line-height: 1.1; }
.eb-tile__label { font-size: .92rem; color: var(--ink-soft); }
.eb-tile--link { text-decoration: none; transition: transform .12s, box-shadow .12s; }
.eb-tile--link:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(60, 35, 10, .25); }
.eb-tile--link .eb-tile__value { font-size: 1.25rem; }
.eb-info__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 28px; }
@media (max-width: 600px) { .eb-info__cols { grid-template-columns: minmax(0, 1fr); } }
.eb-info__table { max-width: 420px; }
.eb-dl-list { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.eb-dl-list dt, .eb-dl-list dd { padding: .35em 0; border-bottom: 1px dashed rgba(138, 106, 44, .35); margin: 0; }
.eb-dl-list dt { color: var(--ink-soft); padding-right: 14px; }
.eb-dl-list dd { font-weight: 600; text-align: right; }

.eb-steps { list-style: none; counter-reset: eb-step; padding: 0; margin: 0; display: grid; gap: 14px; }
.eb-steps li {
	counter-increment: eb-step; position: relative;
	padding: 16px 18px 16px 70px;
	border: 1px solid var(--parch-edge); border-radius: var(--radius);
	background: rgba(255, 250, 235, .55);
}
.eb-steps li::before {
	content: counter(eb-step); position: absolute; left: 16px; top: 16px;
	width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
	background: linear-gradient(180deg, #e9cd7c, #9c7426); color: #2a1b08;
	font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
}
.eb-steps h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.eb-steps p { margin: 0 0 .6em; }
.eb-steps .eb-btn { margin: 4px 6px 0 0; }

/* ---------- Franja de cifras en portada ---------- */
.eb-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 760px; margin: 1.8em auto 0; }
.eb-strip div { padding: 10px 6px; border: 1px solid rgba(201, 162, 74, .45); border-radius: var(--radius); background: rgba(15, 10, 5, .65); }
.eb-strip b { display: block; font-family: var(--font-title); font-size: 1.5rem; color: var(--gold-2); }
.eb-strip span { font-size: .85rem; color: var(--light); }
@media (max-width: 600px) {
	.eb-strip { grid-template-columns: repeat(2, 1fr); }
	.eb-steps li { padding-left: 62px; }
	.eb-dl-list { grid-template-columns: 1fr; }
	.eb-dl-list dt { border-bottom: 0; padding-bottom: 0; }
	.eb-dl-list dd { text-align: left; }
}

/* ---------- Modulo potenciados ---------- */
.eb-boost { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.eb-boost div { padding: 8px 4px; border: 1px dashed rgba(138, 106, 44, .45); border-radius: 4px; }
.eb-boost small { display: block; color: var(--ink-soft); }
.eb-boost b { font-size: .95rem; }

/* ---------- Novedades, misiones de gremio, mentores, casts ---------- */
.eb-alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid; }
.eb-alert--ok { background: rgba(63, 107, 46, .12); border-color: var(--moss); color: #234a17; }
.eb-alert--error { background: rgba(140, 42, 28, .1); border-color: var(--blood); color: var(--blood); }
.eb-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.eb-toc a { padding: 6px 12px; border: 1px solid var(--parch-edge); border-radius: 999px; background: rgba(255, 250, 235, .6); text-decoration: none; font-family: var(--font-title); font-size: .9rem; }
.eb-toc a:hover { background: var(--gold-2); }
.eb-feature { padding: 16px 18px; margin: 0 0 16px; border: 1px solid var(--parch-edge); border-radius: var(--radius); background: rgba(255, 250, 235, .55); scroll-margin-top: calc(var(--header-h) + 12px); }
.eb-feature h3 { margin: 0 0 .5em; font-size: 1.2rem; }
.eb-feature .eb-btn { margin-top: .4em; }
.eb-mission { padding: 14px 16px; margin: 0 0 14px; border: 1px solid var(--parch-edge); border-left: 4px solid var(--gold-dark); border-radius: var(--radius); background: rgba(255, 250, 235, .6); }
.eb-mission__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: baseline; }
.eb-mission__head h4 { margin: 0; font-family: var(--font-title); font-size: 1.1rem; color: var(--blood); }
.eb-mission__reward { font-size: .92rem; color: var(--moss); font-weight: 600; }
.eb-mission__tiers { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; font-size: .85rem; }
.eb-mission__tiers span { padding: 2px 8px; border-radius: 4px; background: rgba(201, 162, 74, .18); }
.eb-mission .eb-info__table, .eb-admin .eb-info__table { max-width: none; width: 100%; }
.eb-progress { position: relative; height: 18px; border-radius: 9px; background: rgba(46, 29, 14, .15); overflow: hidden; min-width: 120px; }
.eb-progress span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #9c7426, #e9cd7c); }
.eb-progress em { position: relative; display: block; text-align: center; font-style: normal; font-size: .8rem; line-height: 18px; color: var(--ink); }
.eb-admin { margin-top: 28px; padding: 16px; border: 2px dashed var(--gold-dark); border-radius: var(--radius); background: rgba(255, 250, 235, .45); }
.eb-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; align-items: end; }
.eb-form label { display: flex; flex-direction: column; gap: 3px; font-size: .9rem; color: var(--ink-soft); }
.eb-form input, .eb-form select { padding: 7px 8px; border: 1px solid var(--parch-edge); border-radius: 4px; background: #fffaf0; font: inherit; color: var(--ink); }
.eb-form fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; border: 1px solid var(--parch-edge); border-radius: var(--radius); }
.eb-form legend { font-family: var(--font-title); padding: 0 6px; }
.eb-form__preview { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--moss); }
.eb-form button { justify-self: start; }
.eb-form--inline { display: flex; margin-bottom: 12px; }
.eb-empty { padding: 22px; text-align: center; border: 1px dashed var(--parch-edge); border-radius: var(--radius); background: rgba(255, 250, 235, .5); }
.eb-casts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.eb-cast { position: relative; padding: 16px; border: 1px solid var(--parch-edge); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 250, 235, .9), rgba(232, 214, 168, .6)); }
.eb-cast h4 { margin: 18px 0 4px; font-family: var(--font-title); font-size: 1.15rem; }
.eb-cast__live { position: absolute; top: 10px; left: 12px; display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: #b3261e; }
.eb-cast__live span { width: 9px; height: 9px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: eb-pulse 1.6s infinite; }
@keyframes eb-pulse { 70% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }
.eb-cast__meta { margin: 0 0 6px; font-size: .9rem; color: var(--ink-soft); }
.eb-cast__desc { margin: 0 0 10px; font-style: italic; }
@media (max-width: 600px) {
	.eb-feature, .eb-mission, .eb-admin { padding: 12px; }
	.eb-dl-list { grid-template-columns: minmax(0, 1fr); }
	.eb-dl-list dd { text-align: left; border-bottom-style: solid; }
}

/* ---------- Idioma (bandera arriba a la derecha) ---------- */
.eb-lang {
	display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 6px 8px;
	border: 1px solid var(--gold-dark); border-radius: var(--radius); text-decoration: none;
	color: var(--gold-2); font-family: var(--font-title); font-size: .8rem; font-weight: 700; letter-spacing: .06em;
	background: rgba(0, 0, 0, .25); flex: none;
}
.eb-lang:hover { border-color: var(--gold-2); background: rgba(201, 162, 74, .15); }
.eb-lang svg { width: 26px; height: 13px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
@media (max-width: 900px) { .eb-lang { margin-left: 8px; padding: 8px; } .eb-lang span { display: none; } }

/* Contenido bilingue guardado en la BD: <span lang="es">…</span><span lang="en">…</span> */
html[lang="es"] .eb-content [lang="en"], html[lang="en"] .eb-content [lang="es"],
html[lang="es"] .eb-side [lang="en"], html[lang="en"] .eb-side [lang="es"] { display: none !important; }

/* ---------- Todo gratis (portada) ---------- */
.eb-free { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -.6em 0 1.4em; }
.eb-free span { padding: .3em .9em; border: 1px solid rgba(111, 192, 79, .55); border-radius: 999px; background: rgba(20, 40, 12, .65); color: #cfeeb8; font-family: var(--font-title); font-size: .85rem; letter-spacing: .04em; text-shadow: 0 1px 3px #000; }

/* ------------------------------------------------------------------ aviso de beta */
.eb-beta { position: relative; z-index: 4; background: linear-gradient(90deg, rgba(92, 22, 12, .92), rgba(128, 62, 14, .92), rgba(92, 22, 12, .92)); border-bottom: 1px solid rgba(233, 205, 124, .45); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); color: #f6e7c1; }
.eb-beta__inner { max-width: 1280px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; text-align: center; font-size: .92rem; line-height: 1.4; }
.eb-beta__tag { flex: none; padding: .15em .6em; border: 1px solid #e9cd7c; border-radius: 4px; background: #e9cd7c; color: #3a1608; font-family: var(--font-title); font-weight: 700; letter-spacing: .12em; font-size: .8rem; animation: eb-beta-pulse 2.4s ease-in-out infinite; }
.eb-beta__text b { color: #ffe08a; }
.eb-beta__more { flex: none; color: #ffe08a; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.eb-beta__more:hover { color: #fff; }
.eb-hero__beta { display: inline-block; margin-right: .4em; padding: .05em .6em; border: 1px solid #e9cd7c; border-radius: 4px; background: rgba(128, 40, 14, .85); color: #ffe08a; font-size: .85em; letter-spacing: .1em; vertical-align: middle; }
@keyframes eb-beta-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 205, 124, .55); } 50% { box-shadow: 0 0 0 5px rgba(233, 205, 124, 0); } }
@media (prefers-reduced-motion: reduce) { .eb-beta__tag { animation: none; } }
@media (max-width: 600px) { .eb-beta__inner { font-size: .82rem; padding: 6px 12px; gap: 6px 10px; } }
.eb-beta-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 1.2em 0 1.6em; }
.eb-beta-card { padding: 14px 18px; border: 1px solid rgba(233, 205, 124, .35); border-radius: 8px; background: rgba(0, 0, 0, .25); }
.eb-beta-card h3 { margin: 0 0 .5em; font-size: 1.08rem; }
.eb-beta-card ul { margin: 0; padding-left: 1.2em; }
.eb-beta-card li { margin: .25em 0; }
.eb-beta-card--reset { border-color: rgba(200, 80, 40, .6); background: rgba(92, 22, 12, .35); }
