/* Historial de Noticias */
.hn-wrap, .hn-front, #hn_widget { --hn-acc: #c8102e; --hn-bar: #2b6cb0; --hn-soft: #eef3f8; --hn-txt: #1d2327; --hn-mut: #6b7280; }
.hn-h1 { display: flex; align-items: center; gap: 8px; }
.hn-h1 .dashicons { font-size: 28px; width: 28px; height: 28px; color: var(--hn-acc); }

.hn-filtros { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 12px 14px; margin: 14px 0; }
.hn-filtros label { display: flex; flex-direction: column; font-size: 12px; color: var(--hn-mut); gap: 3px; }
.hn-filtros select, .hn-filtros input[type=date] { min-width: 130px; }
.hn-atajos { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; font-size: 12px; }
.hn-atajos a { text-decoration: none; padding: 3px 8px; border-radius: 99px; background: var(--hn-soft); }

.hn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 10px 0 6px; }
.hn-kpi { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.hn-kpi span { font-size: 12px; color: var(--hn-mut); text-transform: uppercase; letter-spacing: .03em; }
.hn-kpi strong { font-size: 28px; line-height: 1.15; color: var(--hn-txt); font-variant-numeric: tabular-nums; }
.hn-kpi small { font-size: 12px; color: var(--hn-mut); }
.hn-kpis-w { grid-template-columns: repeat(3, 1fr); }
.hn-kpis-w .hn-kpi strong { font-size: 22px; }

.hn-up { color: #15803d; font-weight: 600; }
.hn-down { color: #b91c1c; font-weight: 600; }
.hn-flat { color: var(--hn-mut); }

.hn-rango { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0; }
.hn-card { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 14px 16px; margin: 0 0 14px; overflow-x: auto; }
.hn-card h2 { margin: 0 0 10px; font-size: 15px; }
.hn-card h2 small { font-weight: 400; color: var(--hn-mut); }
.hn-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
.hn-grid2 .hn-card { margin: 0 0 14px; }

.hn-chart { width: 100%; height: 220px; display: block; }
#hn_widget .hn-chart, .hn-front .hn-chart { height: 170px; }
.hn-grid { stroke: #eceff3; stroke-width: 1; }
.hn-ax { font-size: 10px; fill: var(--hn-mut); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.hn-bar { fill: var(--hn-bar); opacity: .85; transition: opacity .15s; }
.hn-bar:hover { opacity: 1; }
.hn-bar-hl { fill: var(--hn-acc); }
.hn-avg { stroke: #f59e0b; stroke-dasharray: 4 3; stroke-width: 1.5; }
.hn-avg-t { fill: #b45309; }

.hn-cal { width: 100%; max-width: 760px; display: block; }
.hn-l0 { fill: #ebedf0; background: #ebedf0; }
.hn-l1 { fill: #c6dbef; background: #c6dbef; }
.hn-l2 { fill: #6baed6; background: #6baed6; }
.hn-l3 { fill: #2171b5; background: #2171b5; }
.hn-l4 { fill: #08306b; background: #08306b; }
.hn-leyenda { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--hn-mut); justify-content: flex-end; margin-top: 6px; }
.hn-leyenda i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }

.hn-dh { border-collapse: separate; border-spacing: 2px; font-size: 10px; width: 100%; }
.hn-dh th { color: var(--hn-mut); font-weight: 400; padding: 0 2px; text-align: center; }
.hn-dh tbody th { text-align: right; padding-right: 4px; }
.hn-dh td { height: 18px; min-width: 12px; border-radius: 2px; }

.hn-rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.hn-rank li { display: grid; grid-template-columns: 170px 1fr 56px; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid #f3f4f6; }
.hn-rank-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-rank-bar { background: var(--hn-soft); height: 10px; border-radius: 5px; overflow: hidden; }
.hn-rank-bar i { display: block; height: 100%; background: var(--hn-bar); border-radius: 5px; }
.hn-rank b { text-align: right; font-variant-numeric: tabular-nums; }

.hn-tabla td, .hn-tabla th { vertical-align: middle; }
.hn-tabla .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hn-anio th { background: #1d2327; color: #fff; font-size: 13px; padding: 8px 10px !important; }
.hn-mes td:first-child { font-weight: 600; }
.hn-actual td { background: #fff7f8; }
.hn-sem td { background: #f8fafc; font-size: 12px; }
.hn-sem td:first-child { padding-left: 38px; color: #374151; }
.hn-tg { border: 0; background: none; cursor: pointer; font-size: 13px; width: 20px; padding: 0; transition: transform .15s; }
.hn-tg[aria-expanded=true] { transform: rotate(90deg); }
.hn-mini { display: block; width: 160px; height: 8px; background: var(--hn-soft); border-radius: 4px; overflow: hidden; }
.hn-mini i { display: block; height: 100%; background: var(--hn-bar); }
.hn-mini-s i { background: #94a3b8; }
.hn-pie, .hn-vacio { color: var(--hn-mut); font-size: 12px; }

/* Front */
.hn-front { margin: 1.5em 0; }
.hn-front-t { margin-bottom: .3em; }
.hn-front-res { color: #555; margin: 0 0 1em; }
.hn-f-mes { border: 1px solid #e5e7eb; border-radius: 8px; margin: 0 0 10px; background: #fff; }
.hn-f-mes > summary { padding: 12px 14px; font-weight: 700; font-size: 1.05em; }
.hn-f-mes summary, .hn-f-sem summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.hn-f-mes summary::-webkit-details-marker, .hn-f-sem summary::-webkit-details-marker { display: none; }
.hn-f-mes > summary::before, .hn-f-sem > summary::before { content: "▸"; margin-right: 8px; transition: transform .15s; display: inline-block; }
.hn-f-mes[open] > summary::before, .hn-f-sem[open] > summary::before { transform: rotate(90deg); }
.hn-f-mes > summary span:first-child, .hn-f-sem > summary span:first-child { flex: 1; }
.hn-f-sem { border-top: 1px solid #f1f1f1; }
.hn-f-sem > summary { padding: 9px 14px 9px 28px; font-size: .95em; }
.hn-badge { background: #c8102e; color: #fff; border-radius: 99px; padding: 2px 10px; font-size: .8em; font-weight: 600; }
.hn-badge-s { background: #e5e7eb; color: #111; }
.hn-f-notas { margin: 0; padding: 4px 14px 12px 52px; list-style: none; }
.hn-f-notas li { padding: 4px 0; border-bottom: 1px dashed #eee; }
.hn-f-notas time { color: #888; font-size: .85em; margin-right: 6px; font-variant-numeric: tabular-nums; }
.hn-mas { color: #888; font-style: italic; }
.hn-f-link { margin: 0; padding: 8px 14px 12px; font-size: .9em; }

@media (max-width: 782px) {
	.hn-grid2 { grid-template-columns: 1fr; }
	.hn-rank li { grid-template-columns: 110px 1fr 44px; }
	.hn-mini { width: 80px; }
	.hn-atajos { margin-left: 0; }
}
