/* Digesto HCD Saladillo — paginas publicas del plugin.
   Todo va bajo .hcd para no pisar el tema. Fuente empaquetada (OFL), sin CDN. */

@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fuentes/hanken-grotesk-latin.woff2") format("woff2");
}

.hcd {
	--hcd-bg: #F7F8FA;
	--hcd-surface: #FFFFFF;
	--hcd-sunk: #F1F4F7;
	--hcd-ink: #141D26;
	--hcd-ink2: #55626E;
	--hcd-ink3: #6B7885;
	--hcd-line: #E1E6EB;
	--hcd-brand: #0372A8;
	--hcd-brand-on: #FFFFFF;
	--hcd-soft: #EAF4FA;
	--hcd-soft-line: #CFE4F0;
	--hcd-vig-bg: #E4F4EA; --hcd-vig-ink: #1B6E3C;
	--hcd-mod-bg: #FCF2DF; --hcd-mod-ink: #8A5B08;
	--hcd-der-bg: #FAE7E7; --hcd-der-ink: #9A2B2B;
	--hcd-rec-bg: #F1ECFB; --hcd-rec-ink: #5B3FA8;
	--hcd-r: 14px;

	background: var(--hcd-bg);
	color: var(--hcd-ink);
	font-family: "Hanken Grotesk", Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	padding: 28px 0 64px;
	-webkit-font-smoothing: antialiased;
}
.hcd *, .hcd *::before, .hcd *::after { box-sizing: border-box; }
.hcd a { color: var(--hcd-brand); }
.hcd a:focus-visible, .hcd button:focus-visible { outline: 3px solid var(--hcd-brand); outline-offset: 2px; border-radius: 6px; }

.hcd-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.hcd-migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--hcd-ink3); margin-bottom: 18px; }
.hcd-migas a { text-decoration: none; font-weight: 600; }

.hcd-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hcd-ink3); margin: 0 0 6px; }
.hcd .hcd-h1 { font-family: inherit; font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--hcd-ink); }
.hcd-etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.hcd-asunto { font-size: 20px; line-height: 1.45; color: var(--hcd-ink2); margin: 14px 0 0; max-width: 62ch; }

.hcd-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 3px 9px; white-space: nowrap; }
.hcd-b-vig { background: var(--hcd-vig-bg); color: var(--hcd-vig-ink); }
.hcd-b-mod { background: var(--hcd-mod-bg); color: var(--hcd-mod-ink); }
.hcd-b-der { background: var(--hcd-der-bg); color: var(--hcd-der-ink); }
.hcd-b-rec { background: var(--hcd-rec-bg); color: var(--hcd-rec-ink); }

.hcd-aviso { border-radius: 12px; padding: 14px 18px; margin: 22px 0 0; font-size: 16px; border: 1px solid transparent; }
.hcd-aviso-der { background: var(--hcd-der-bg); color: var(--hcd-der-ink); border-color: #F0C9C9; }
.hcd-aviso-mod { background: var(--hcd-mod-bg); color: var(--hcd-mod-ink); border-color: #F2DDB3; }
.hcd-aviso-borrador { background: var(--hcd-sunk); color: var(--hcd-ink2); border-color: var(--hcd-line); margin: 0 0 18px; }
.hcd-aviso a { color: inherit; font-weight: 700; }

.hcd-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.hcd .hcd-boton { font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hcd-line); background: var(--hcd-surface); color: var(--hcd-ink); border-radius: 10px; padding: 9px 16px; text-decoration: none; cursor: pointer; line-height: 1.3; }
.hcd .hcd-boton:hover { border-color: var(--hcd-brand); color: var(--hcd-brand); }
.hcd .hcd-boton-p { background: var(--hcd-brand); border-color: var(--hcd-brand); color: var(--hcd-brand-on); }
.hcd .hcd-boton-p:hover { background: #025F8C; color: var(--hcd-brand-on); }

.hcd-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 24px 0 0; padding: 20px 22px; background: var(--hcd-surface); border: 1px solid var(--hcd-line); border-radius: var(--hcd-r); }
.hcd-dato { margin: 0; min-width: 0; }
.hcd-dato dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hcd-ink3); }
.hcd-dato dd { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; }

.hcd .hcd-h4 { font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hcd-ink3); margin: 28px 0 10px; }
.hcd-rels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hcd .hcd-rel { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; border: 1px solid var(--hcd-line); background: var(--hcd-surface); border-radius: 10px; padding: 11px 14px; text-decoration: none; color: var(--hcd-ink); }
.hcd a.hcd-rel:hover { border-color: var(--hcd-brand); }
.hcd-rel-t { font-weight: 700; white-space: nowrap; }
.hcd-rel-a { color: var(--hcd-ink2); font-size: 15px; flex: 1 1 260px; min-width: 0; }
.hcd-rel-sin { opacity: .75; }

.hcd-texto { margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid var(--hcd-line); font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.hcd-texto p { margin: 0 0 .9em; }
.hcd-nota { font-size: 14px; color: var(--hcd-ink3); margin: 28px 0 0; }

@media (max-width: 640px) {
	.hcd { font-size: 16px; padding-top: 18px; }
	.hcd-wrap { padding: 0 16px; }
	.hcd-datos { grid-template-columns: 1fr; padding: 16px; }
	.hcd-asunto { font-size: 18px; }
	.hcd .hcd-boton { flex: 1 1 auto; justify-content: center; }
	.hcd-rel-t { white-space: normal; }
}

@media print {
	.hcd-acciones, .hcd-migas { display: none; }
	.hcd { background: #fff; padding: 0; }
}

/* ------------------------------------------------------------- buscador */
.hcd-wrap-ancho { max-width: 1200px; }
.hcd-b-cab { padding: 8px 0 22px; border-bottom: 1px solid var(--hcd-line); margin-bottom: 24px; }
.hcd-b-form { margin-top: 18px; }
.hcd-b-caja {
	display: flex; gap: 8px; max-width: 760px; background: var(--hcd-surface);
	border: 2px solid var(--hcd-brand); border-radius: 12px; padding: 6px 6px 6px 16px;
}
.hcd-b-caja:focus-within { box-shadow: 0 0 0 4px var(--hcd-soft-line); }
.hcd .hcd-b-campo { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; font: inherit; font-size: 17px; color: var(--hcd-ink); padding: 10px 2px; }
.hcd .hcd-b-campo:focus { outline: none; }
.hcd .hcd-b-ir { flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; background: var(--hcd-brand); color: var(--hcd-brand-on); border-radius: 8px; padding: 10px 20px; }
.hcd .hcd-b-ir:hover { filter: brightness(.92); }
.hcd-b-entendi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; }
.hcd-b-entendi-t { color: var(--hcd-ink3); font-weight: 700; }
.hcd .hcd-b-chip { display: inline-flex; gap: 4px; align-items: baseline; background: var(--hcd-soft); border: 1px solid var(--hcd-soft-line); color: var(--hcd-ink); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.hcd a.hcd-b-chip:hover { border-color: var(--hcd-brand); }
.hcd-b-chip-k { color: var(--hcd-ink3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hcd-b-chip-txt { background: var(--hcd-surface); border-color: var(--hcd-line); }
.hcd-b-sug { font-size: 14px; color: var(--hcd-ink2); margin: 12px 0 0; }
.hcd-b-sug a { margin-left: 8px; font-weight: 600; }

.hcd-b-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.hcd-b-filtros details { background: var(--hcd-surface); border: 1px solid var(--hcd-line); border-radius: var(--hcd-r); padding: 6px 18px 18px; position: sticky; top: 90px; }
.hcd-b-filtros summary { list-style: none; cursor: default; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--hcd-ink3); padding: 12px 0 0; }
.hcd-b-filtros summary::-webkit-details-marker { display: none; }
.hcd .hcd-f-t { font-family: inherit; font-size: 14px; font-weight: 800; color: var(--hcd-ink); margin: 18px 0 6px; }
.hcd-f { list-style: none; margin: 0; padding: 0; }
.hcd .hcd-f-op { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; margin: 0 -8px; border-radius: 6px; color: var(--hcd-ink2); text-decoration: none; font-size: 15px; line-height: 1.35; }
.hcd .hcd-f-op:hover { background: var(--hcd-sunk); color: var(--hcd-ink); }
.hcd .hcd-f-on { background: var(--hcd-soft); color: var(--hcd-brand); font-weight: 700; }
.hcd-f-n { color: var(--hcd-ink3); font-size: 13px; font-variant-numeric: tabular-nums; }
.hcd-f-nota { font-size: 12px; color: var(--hcd-ink3); margin: 6px 0 0; line-height: 1.45; }

.hcd-b-res-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.hcd-b-total { margin: 0; font-size: 16px; color: var(--hcd-ink2); }
.hcd-b-total strong { color: var(--hcd-ink); font-size: 20px; }
.hcd-b-tenue { color: var(--hcd-ink3); font-size: 14px; }
.hcd-b-orden { display: flex; gap: 4px; font-size: 14px; }
.hcd .hcd-b-orden a { padding: 4px 10px; border-radius: 6px; text-decoration: none; color: var(--hcd-ink2); }
.hcd .hcd-b-orden a.hcd-on { background: var(--hcd-ink); color: #fff; }
.hcd-b-lista { list-style: none; margin: 0; padding: 0; }
.hcd-b-item { padding: 18px 0; border-bottom: 1px solid var(--hcd-line); }
.hcd .hcd-b-item-a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.hcd-b-item-n { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--hcd-brand); }
.hcd-b-item-t { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--hcd-ink); }
.hcd .hcd-b-item-a:hover .hcd-b-item-t { color: var(--hcd-brand); text-decoration: underline; text-underline-offset: 3px; }
.hcd-b-item-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; color: var(--hcd-ink3); }
.hcd-b-frag { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--hcd-ink2); }
.hcd-b-frag mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 2px; }
.hcd-b-vacio { background: var(--hcd-surface); border: 1px dashed var(--hcd-line); border-radius: var(--hcd-r); padding: 22px; margin-top: 12px; }
.hcd .hcd-b-vacio-t { font-family: inherit; font-size: 19px; font-weight: 700; margin: 0 0 6px; color: var(--hcd-ink); }
.hcd-b-pags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; font-size: 15px; }
.hcd .hcd-b-pags a, .hcd-b-pags .hcd-on { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--hcd-line); background: var(--hcd-surface); text-decoration: none; }
.hcd-b-pags .hcd-on { background: var(--hcd-brand); border-color: var(--hcd-brand); color: #fff; font-weight: 700; }

@media (max-width: 900px) {
	.hcd-b-grid { grid-template-columns: 1fr; gap: 18px; }
	.hcd-b-filtros details { position: static; }
	.hcd-b-filtros summary { cursor: pointer; padding: 12px 0 6px; }
	.hcd-b-filtros summary::after { content: " ▾"; }
	.hcd-b-filtros details[open] summary::after { content: " ▴"; }
}
@media (max-width: 600px) {
	.hcd-b-caja { flex-wrap: wrap; padding: 6px; }
	.hcd .hcd-b-campo { flex-basis: 100%; padding: 10px 8px; }
	.hcd .hcd-b-ir { flex: 1; }
	.hcd-b-item-t { font-size: 17px; }
}
.hcd-b-filtros details:not([open]) { padding-bottom: 8px; }

/* ------------------------------------------ sesiones, proyectos, concejales */
.hcd-b-ses { background: var(--hcd-soft); color: var(--hcd-brand); }
.hcd-b-est { background: var(--hcd-sunk); color: var(--hcd-ink2); }
.hcd-l-intro { font-size: 17px; color: var(--hcd-ink2); max-width: 70ch; margin: 10px 0 0; }
.hcd .hcd-l-anio { font-family: inherit; font-size: 22px; font-weight: 800; color: var(--hcd-ink); margin: 26px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--hcd-ink); }
.hcd-b-res > .hcd-l-anio:first-of-type { margin-top: 8px; }
.hcd-f-anios { columns: 2; column-gap: 14px; }
.hcd-f-anios li { break-inside: avoid; }

.hcd-mini { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hcd-line); }
.hcd-mini li { border-bottom: 1px solid var(--hcd-line); }
.hcd .hcd-mini a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; text-decoration: none; color: inherit; }
.hcd-mini-n { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--hcd-brand); }
.hcd-mini-t { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--hcd-ink); }
.hcd .hcd-mini a:hover .hcd-mini-t { color: var(--hcd-brand); text-decoration: underline; text-underline-offset: 3px; }
.hcd-mini-m { font-size: 13px; color: var(--hcd-ink3); }

.hcd-desplegable { background: var(--hcd-surface); border: 1px solid var(--hcd-line); border-radius: var(--hcd-r); margin: 18px 0 0; }
.hcd-desplegable summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--hcd-ink); }
.hcd-desplegable .hcd-texto { padding: 0 18px 8px; border-top: 1px solid var(--hcd-line); margin: 0; }

.hcd-pasos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; counter-reset: paso; }
.hcd-pasos li { display: flex; flex-direction: column; background: var(--hcd-surface); border: 1px solid var(--hcd-line); border-radius: 10px; padding: 8px 14px; font-size: 14px; position: relative; }
.hcd-pasos li + li::before { content: "→"; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); color: var(--hcd-ink3); }
.hcd-pasos li + li { margin-left: 10px; }
.hcd-pasos span { color: var(--hcd-ink3); font-size: 13px; }

.hcd-personas { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hcd .hcd-persona { display: flex; gap: 14px; align-items: center; height: 100%; padding: 14px; background: var(--hcd-surface); border: 1px solid var(--hcd-line); border-radius: var(--hcd-r); text-decoration: none; color: inherit; transition: border-color .15s ease; }
.hcd .hcd-persona:hover { border-color: var(--hcd-brand); }
.hcd-persona-foto { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--hcd-sunk); }
.hcd-persona-ini { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--hcd-brand); background: var(--hcd-soft); }
.hcd-persona-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hcd-persona-n { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--hcd-ink); }
.hcd .hcd-persona:hover .hcd-persona-n { color: var(--hcd-brand); }
.hcd-persona-m { font-size: 13px; color: var(--hcd-ink3); }
.hcd-cab-persona { display: flex; gap: 22px; align-items: center; }
.hcd-persona-grande { flex: none; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; font-size: 40px; }
@media (max-width: 600px) {
	.hcd-cab-persona { flex-direction: column; align-items: flex-start; gap: 14px; }
	.hcd-persona-grande { width: 104px; height: 104px; font-size: 32px; }
	.hcd-pasos li + li { margin-left: 0; }
	.hcd-pasos li + li::before { display: none; }
}

/* ---------------------------------------------- casos a revisar (solo quien carga) */
.hcd-b-revisar { background: #FFF1B8; color: #7A5A00; border: 1px dashed #D9B200; cursor: help; }
.hcd-aviso-revisar { background: #FFFBE6; color: #5C4500; border: 1px dashed #D9B200; font-size: 15px; }
.hcd-aviso-revisar ul { margin: 6px 0 8px 18px; padding: 0; }
