/* ============ Lionheart - plantilla MyAAC ============ */
:root {
	--bg: #0e0c09;
	--bg-2: #16120d;
	--panel: #1b1610;
	--panel-2: #231c13;
	--line: #3a2e1c;
	--gold: #d9a843;
	--gold-2: #f3d27a;
	--text: #e8dcc0;
	--muted: #a39478;
	--red: #c0503a;
	--green: #5fbf6a;
	--radius: 10px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	background: var(--bg) radial-gradient(ellipse at top, #241a0d 0%, var(--bg) 60%) no-repeat;
	color: var(--text);
	font: 15px/1.6 Inter, system-ui, sans-serif;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); text-decoration: underline; }

h1, h2, h3, .lh-brand { font-family: Cinzel, Georgia, serif; letter-spacing: .5px; }

.lh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Botones ---------- */
.lh-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
	background: linear-gradient(180deg, var(--gold-2), var(--gold));
	color: #1a1208 !important;
	font-weight: 600;
	border: 1px solid #b8862c;
	white-space: nowrap;
	text-decoration: none !important;
	transition: filter .15s, transform .15s;
}
.lh-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lh-btn-ghost { background: transparent; color: var(--gold) !important; border-color: var(--gold); }
.lh-btn-lg { padding: 12px 24px; font-size: 16px; }
.lh-btn-block { display: block; text-align: center; }

/* ---------- Cabecera ---------- */
.lh-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(14, 12, 9, .92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}
.lh-header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.lh-brand { display: flex; align-items: center; gap: 10px; color: var(--gold-2) !important; font-size: 22px; font-weight: 800; text-decoration: none !important; }
.lh-nav { display: flex; gap: 4px; flex: 1; }
.lh-nav-item { position: relative; }
.lh-nav-btn {
	background: none; border: 0; color: var(--text); cursor: pointer;
	font: 500 15px Inter, sans-serif; padding: 20px 12px;
}
.lh-nav-btn:hover, .lh-nav-item:hover .lh-nav-btn { color: var(--gold-2); }
.lh-dropdown {
	display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.lh-nav-item:hover .lh-dropdown, .lh-nav-item.open .lh-dropdown { display: block; }
.lh-dropdown a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); }
.lh-dropdown a:hover { background: var(--panel-2); color: var(--gold-2); text-decoration: none; }
.lh-account { display: flex; gap: 8px; }
.lh-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.lh-burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--gold); }

/* ---------- Hero ---------- */
.lh-hero {
	border-bottom: 1px solid var(--line);
	background:
		linear-gradient(180deg, rgba(14,12,9,0) 0%, var(--bg) 100%),
		radial-gradient(circle at 50% 30%, rgba(217,168,67,.18), transparent 55%);
}
.lh-hero-inner { text-align: center; padding: 56px 16px 48px; }
.lh-hero-crest { width: 96px; height: 96px; filter: drop-shadow(0 0 18px rgba(217,168,67,.45)); }
.lh-hero h1 { font-size: clamp(36px, 7vw, 64px); margin: 12px 0 8px; color: var(--gold-2); text-shadow: 0 2px 20px rgba(217,168,67,.35); }
.lh-tagline { max-width: 560px; margin: 0 auto 24px; color: var(--muted); font-size: 17px; }
.lh-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Layout ---------- */
.lh-main { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.lh-content, .lh-side { min-width: 0; }
.lh-crumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.lh-crumb span { margin: 0 4px; }
.lh-panel {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 20px; overflow-x: auto;
}

/* ---------- Barra lateral ---------- */
.lh-side { display: flex; flex-direction: column; gap: 16px; }
.lh-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.lh-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--gold-2); }
.lh-card-cta { background: linear-gradient(160deg, #2b1f0e, var(--panel)); }
.lh-status { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 10px; }
.lh-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.lh-on { color: var(--green); }
.lh-off { color: var(--red); }
.lh-stats { list-style: none; margin: 0 0 10px; padding: 0; }
.lh-stats li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.lh-stats span, .lh-muted { color: var(--muted); }
.lh-link { font-size: 13px; }
.lh-top { list-style: none; margin: 0 0 10px; padding: 0; }
.lh-top li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.lh-top small { margin-left: auto; color: var(--muted); }
.lh-rank { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--gold); font-size: 12px; font-weight: 600; }

/* ---------- Noticias ---------- */
.lh-news { margin-bottom: 24px; }
.lh-news-head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.lh-news-head h2 { margin: 0; font-size: 22px; color: var(--gold-2); }
.lh-news-meta { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }

/* ---------- Contenido heredado de MyAAC (tablas, formularios) ---------- */
.lh-panel table { border-collapse: collapse; max-width: 100%; }
.lh-panel td, .lh-panel th { color: var(--text); border-color: var(--line) !important; padding: 6px 8px; }
.lh-panel .white, .lh-panel tr[bgcolor] td.white, .lh-panel .white b { color: var(--gold-2) !important; }
.lh-panel input[type=text], .lh-panel input[type=password], .lh-panel input[type=email],
.lh-panel input[type=number], .lh-panel select, .lh-panel textarea {
	background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
	border-radius: 6px; padding: 8px 10px; font: inherit; max-width: 100%;
}
.lh-panel input:focus, .lh-panel select:focus, .lh-panel textarea:focus { outline: none; border-color: var(--gold); }
.lh-panel input[type=submit], .lh-panel button, .lh-panel .BigButton, .lh-panel .btn {
	background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1208;
	border: 1px solid #b8862c; border-radius: 8px; padding: 8px 16px; font-weight: 600; cursor: pointer;
}
.lh-panel hr { border: 0; border-top: 1px solid var(--line); }
.lh-panel img { max-width: 100%; height: auto; }

/* ---------- Pie ---------- */
.lh-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 20px 0; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
	.lh-main { grid-template-columns: 1fr; }
	.lh-burger { display: block; }
	.lh-nav, .lh-account { display: none; }
	.lh-header-inner { flex-wrap: wrap; height: auto; min-height: 64px; }
	.lh-nav-open .lh-nav { display: flex; flex-direction: column; width: 100%; padding-bottom: 8px; }
	.lh-nav-open .lh-account { display: flex; width: 100%; padding-bottom: 12px; }
	.lh-nav-btn { padding: 12px 4px; width: 100%; text-align: left; }
	.lh-dropdown { position: static; box-shadow: none; }
	.lh-nav-item:hover .lh-dropdown { display: none; }
	.lh-nav-item.open .lh-dropdown { display: block; }
}
