/* Widgets de Elementor del digesto (portada y páginas armadas en Elementor).
   Colores por defecto = paleta global del tema (Kadence --global-palette*),
   con respaldo fijo si el tema no la define. Cada widget los pisa desde su
   pestaña Estilo (variables --hcd-w-*). */

.hcd-w {
	--hcd-w-acento: var(--global-palette1, #0372A8);
	--hcd-w-acento-2: var(--global-palette2, #025A85);
	--hcd-w-tinta: var(--global-palette3, #141D26);
	--hcd-w-tenue: var(--global-palette5, #5A6773);
	--hcd-w-linea: var(--global-palette7, #E3E8ED);
	--hcd-w-suave: var(--global-palette8, #F3F8FC);
	--hcd-w-fondo: var(--global-palette9, #FFFFFF);
	--hcd-w-radio: 12px;
	color: var(--hcd-w-tinta);
	box-sizing: border-box;
}
.hcd-w *, .hcd-w *::before, .hcd-w *::after { box-sizing: border-box; }
.hcd-w a:focus-visible, .hcd-w button:focus-visible, .hcd-w input:focus-visible, .hcd-w select:focus-visible {
	outline: 3px solid var(--hcd-w-acento); outline-offset: 2px;
}
.hcd-w-vacio { padding: 18px; border: 1px dashed var(--hcd-w-linea); border-radius: var(--hcd-w-radio); color: var(--hcd-w-tenue); font-size: 15px; }

/* ---------------------------------------------------------------- buscador */
.hcd-w-buscar { width: 100%; max-width: 720px; margin: 0 auto; }
.hcd-alinear-flex-start .hcd-w-buscar { margin-left: 0; }
.hcd-w-caja {
	display: flex; align-items: center; gap: 10px;
	background: var(--hcd-w-fondo);
	border: 2px solid var(--hcd-w-acento); border-radius: var(--hcd-w-radio);
	padding: 8px 8px 8px 16px;
	box-shadow: 0 6px 22px color-mix(in srgb, var(--hcd-w-acento) 14%, transparent);
}
.hcd-w-lupa { flex: none; color: var(--hcd-w-tenue); }
.hcd-w .hcd-w-campo {
	flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none;
	font: inherit; font-size: 17px; color: var(--hcd-w-tinta); padding: 10px 4px;
}
.hcd-w .hcd-w-campo:focus { outline: none; }
.hcd-w-caja:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hcd-w-acento) 22%, transparent); }
.hcd-w .hcd-w-tipo {
	flex: none; width: auto; border: 0; border-left: 1px solid var(--hcd-w-linea); border-radius: 0;
	background-color: transparent; font: inherit; font-size: 15px; color: var(--hcd-w-tenue); padding: 8px 28px 8px 12px;
}
.hcd-w .hcd-w-ir {
	flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px;
	background: var(--hcd-w-acento); color: #fff; border-radius: calc(var(--hcd-w-radio) - 4px); padding: 12px 22px;
}
.hcd-w .hcd-w-ir:hover { background: var(--hcd-w-acento-2); }
.hcd-w-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 14px; }
.hcd-alinear-flex-start .hcd-w-chips { justify-content: flex-start; }
.hcd-w-chips-t { color: var(--hcd-w-tenue); }
.hcd-w-chips a {
	color: var(--hcd-w-acento); text-decoration: none; background: var(--hcd-w-fondo);
	border: 1px solid color-mix(in srgb, var(--hcd-w-acento) 25%, transparent); border-radius: 999px; padding: 5px 12px;
}
.hcd-w-chips a:hover { background: color-mix(in srgb, var(--hcd-w-acento) 8%, var(--hcd-w-fondo)); }
@media (max-width: 600px) {
	.hcd-w-caja { flex-wrap: wrap; padding: 8px; }
	.hcd-w-lupa { display: none; }
	.hcd-w .hcd-w-campo { flex-basis: 100%; padding: 10px 8px; }
	.hcd-w .hcd-w-tipo { flex: 1; border-left: 0; border-top: 1px solid var(--hcd-w-linea); }
	.hcd-w .hcd-w-ir { flex: 1; }
}

/* ---------------------------------------------------------------- tarjetas */
.hcd-w-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hcd-w-tile {
	display: flex; flex-direction: column; height: 100%; padding: 20px 22px; text-decoration: none;
	background: var(--hcd-w-fondo); border: 1px solid var(--hcd-w-linea); border-radius: var(--hcd-w-radio);
	transition: border-color .15s ease, transform .15s ease;
}
.hcd-w-tile:hover { border-color: var(--hcd-w-acento); transform: translateY(-2px); }
.hcd-w-tile-n { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--hcd-w-acento); font-variant-numeric: tabular-nums; }
.hcd-w-tile-k { font-size: 16px; font-weight: 700; color: var(--hcd-w-tinta); margin-top: 6px; }
.hcd-w-tile-d { font-size: 13px; color: var(--hcd-w-tenue); }

/* ------------------------------------------------------------ últimas normas */
.hcd-w-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hcd-w .hcd-w-sec-t { font-size: 22px; font-weight: 700; margin: 0; color: var(--hcd-w-tinta); }
.hcd-w-sec-a { font-size: 14px; font-weight: 600; color: var(--hcd-w-acento); text-decoration: none; white-space: nowrap; }
.hcd-w-sec-a:hover { text-decoration: underline; }
.hcd-w-filas { list-style: none; margin: 0; padding: 0; }
.hcd-w-filas li { border-bottom: 1px solid var(--hcd-w-linea); }
.hcd-w-filas li:last-child { border-bottom: 0; }
.hcd-w-fila { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 0; text-decoration: none; color: inherit; }
.hcd-w-fila:hover .hcd-w-fila-tt { color: var(--hcd-w-acento); }
.hcd-w-num {
	align-self: start; font-size: 13px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums;
	color: var(--hcd-w-acento); background: color-mix(in srgb, var(--hcd-w-acento) 8%, var(--hcd-w-fondo));
	border-radius: 6px; padding: 4px 8px; text-align: center;
}
.hcd-w-fila-c { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hcd-w-fila-tt { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--hcd-w-tinta); }
.hcd-w-fila-mt { font-size: 13px; color: var(--hcd-w-tenue); }
.hcd-w-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 5px; padding: 2px 7px; margin-right: 4px; }
.hcd-w-b-vig { background: #E4F4EA; color: #1B6E3C; }
.hcd-w-b-mod { background: #FCF2DF; color: #8A5B08; }
.hcd-w-b-der { background: #FAE7E7; color: #9A2B2B; }
@media (max-width: 600px) {
	.hcd-w-fila { grid-template-columns: 1fr; gap: 6px; }
	.hcd-w-num { justify-self: start; }
}

/* ---------------------------------------------------------------- sesiones */
.hcd-w-card { background: var(--hcd-w-fondo); border: 1px solid var(--hcd-w-linea); border-radius: var(--hcd-w-radio); padding: 22px; }
.hcd-w .hcd-w-card-t { font-size: 17px; font-weight: 700; margin: 0 0 12px; color: var(--hcd-w-tinta); }
.hcd-w-sesion-u { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; }
.hcd-w-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hcd-w-tenue); }
.hcd-w-sesion-u a { font-size: 17px; font-weight: 700; color: var(--hcd-w-tinta); text-decoration: none; }
.hcd-w-sesion-u a:hover { color: var(--hcd-w-acento); }
.hcd-w-tenue { font-size: 14px; color: var(--hcd-w-tenue); }
.hcd-w-vivo { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--hcd-w-tenue); margin: 0 0 16px; }
.hcd-w-vivo i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 4px rgba(34, 163, 90, .16); transform: translateY(-1px); }
.hcd-w-boton {
	display: inline-block; font-weight: 700; font-size: 15px; text-decoration: none;
	background: var(--hcd-w-acento); color: #fff; border-radius: calc(var(--hcd-w-radio) - 4px); padding: 10px 16px; margin: 0 14px 6px 0;
}
.hcd-w-boton:hover { background: var(--hcd-w-acento-2); color: #fff; }

/* -------------------------------------------------------- composición del Concejo */
.hcd-w-concejo-g { margin-top: 34px; }
.hcd-w-concejo-g:first-of-type { margin-top: 18px; }
.hcd-w-concejo .hcd-w-sec-t { padding-bottom: 8px; border-bottom: 2px solid var(--hcd-w-tinta); margin-bottom: 16px; }
.hcd-w .hcd-w-concejo-b { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--hcd-w-tinta); }
.hcd-w-concejo-b span { font-size: 13px; font-weight: 500; color: var(--hcd-w-tenue); margin-left: 6px; }
.hcd-w-pers-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hcd-w-pers-grande { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hcd-w .hcd-w-pers { display: flex; gap: 14px; align-items: center; height: 100%; padding: 14px; background: var(--hcd-w-fondo); border: 1px solid var(--hcd-w-linea); border-radius: var(--hcd-w-radio); text-decoration: none; color: inherit; }
.hcd-w a.hcd-w-pers:hover { border-color: var(--hcd-w-acento); }
/* "img." para ganarle a ".elementor img { border-radius: 0 }" de Elementor */
.hcd-w-pers-f, .hcd-w img.hcd-w-pers-f { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--hcd-w-suave); }
.hcd-w-pers-chica .hcd-w-pers-f, .hcd-w .hcd-w-pers-chica img.hcd-w-pers-f { width: 52px; height: 52px; }
.hcd-w-pers-i { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--hcd-w-acento); }
.hcd-w-pers-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hcd-w-pers-n { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--hcd-w-tinta); }
.hcd-w a.hcd-w-pers:hover .hcd-w-pers-n { color: var(--hcd-w-acento); }
.hcd-w-pers-k { font-size: 13px; font-weight: 600; color: var(--hcd-w-acento); }
.hcd-w-comisiones { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.hcd-w-comision ul { list-style: none; margin: 0; padding: 0; }
.hcd-w-comision li { padding: 5px 0; border-bottom: 1px solid var(--hcd-w-linea); font-size: 15px; }
.hcd-w-comision li:last-child { border-bottom: 0; }
.hcd-w-comision a { color: var(--hcd-w-tinta); text-decoration: none; }
.hcd-w-comision a:hover { color: var(--hcd-w-acento); text-decoration: underline; }
.hcd-w-comision-k { display: inline-block; min-width: 82px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--hcd-w-tenue); }
.hcd-w-concejo-otros { margin-top: 30px; font-size: 15px; color: var(--hcd-w-tenue); }
.hcd-w-concejo-otros a { color: var(--hcd-w-acento); }

/* ---------------------------------------------------------------- noticias (0.7.0) */
.hcd-w-noticias { --hcd-w-marca: #F5C400; }
.hcd-w-not-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hcd-w-not-izq { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hcd-w .hcd-w-not-t {
	margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--hcd-w-tinta);
	position: relative; padding-bottom: 12px;
}
.hcd-w-not-t::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--hcd-w-marca); }
.hcd-w-not-b { color: var(--hcd-w-tenue); font-size: 15px; padding-left: 20px; border-left: 1px solid var(--hcd-w-linea); }
.hcd-w-not-a, .hcd-w-card-a { color: var(--hcd-w-acento); font-weight: 700; text-decoration: none; font-size: 15px; }
.hcd-w-not-a:hover, .hcd-w-card-a:hover { text-decoration: underline; }
.hcd-w-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hcd-w-card {
	display: flex; flex-direction: column; background: var(--hcd-w-fondo);
	border: 1px solid color-mix(in srgb, var(--hcd-w-acento) 18%, var(--hcd-w-linea)); border-radius: var(--hcd-w-radio);
	padding: 8px; transition: box-shadow .2s, transform .2s;
}
.hcd-w-card:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--hcd-w-acento) 14%, transparent); transform: translateY(-2px); }
.hcd-w-card-img { display: block; aspect-ratio: 16 / 9; border-radius: calc(var(--hcd-w-radio) - 4px); overflow: hidden; background: var(--hcd-w-suave); }
.hcd-w-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hcd-w-card-sin { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
	background: linear-gradient(160deg, color-mix(in srgb, var(--hcd-w-acento) 10%, #fff), var(--hcd-w-suave)); }
.hcd-w .hcd-w-card-sin img { width: 46%; height: auto; object-fit: contain; opacity: .9; }
.hcd-w-card-c { display: flex; flex-direction: column; flex: 1; padding: 16px 14px 12px; }
.hcd-w-card-cat { margin: 0 0 6px; color: var(--hcd-w-acento); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hcd-w .hcd-w-card-t { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.hcd-w-card-t a { color: var(--hcd-w-tinta); text-decoration: none; }
.hcd-w-card-t a:hover { color: var(--hcd-w-acento); }
.hcd-w-card-x { margin: 0 0 14px; color: var(--hcd-w-tenue); font-size: 15px; line-height: 1.5; }
.hcd-w-card-a { margin-top: auto; }
@media (max-width: 960px) { .hcd-w-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.hcd-w-cards { grid-template-columns: 1fr; }
	.hcd-w .hcd-w-not-t { font-size: 26px; }
	.hcd-w-not-b { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .hcd-w-card { transition: none; } .hcd-w-card:hover { transform: none; } }

/* Botones por tipo del hero (botón nativo de Elementor con la clase hcd-tipo-btn): ícono en azul, texto en tinta. */
.hcd-tipo-btn .elementor-button-icon { color: var(--global-palette1, #0372A8); }
.hcd-tipo-btn .elementor-button-icon svg { fill: currentColor; width: 1.15em; height: 1.15em; }
.hcd-tipo-btn .elementor-button-icon i { font-size: 1.15em; }
.hcd-tipo-btn .elementor-button-content-wrapper { justify-content: center; align-items: center; }
.hcd-tipo-btn .elementor-button { box-shadow: 0 2px 8px rgba(3, 114, 168, .06); }
@media (max-width: 767px) { .hcd-tipo-btn { margin-bottom: 10px; } }
