/* =================== TOKENS / BASE =================== */
:root {
	--ddchi-web-brand: #fff;
	--ddchi-web-brand-2: #b51e2e;
	--ddchi-web-ink: #101827;
	--ddchi-web-muted: #6b7280;
	--ddchi-web-bg: #fafafa;
	--ddchi-web-card: #ffffff;
	--ddchi-web-border: #e5e7eb;
	--ddchi-web-radius: 16px;
	--ddchi-web-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
	--ddchi-web-container: 1200px;
	--colorweb1: #7a2e22; /* café rojizo (Calendario)   */
	--colorweb2: #f07c1a; /* naranja intenso (Cuerpos)  */
	--colorweb3: #f39c1a; /* naranja claro (Grupos)     */
	--colorweb4: #b7192e; /* rojo vino (Perfil)         */

	/* NUEVO: gap global del carrusel para cálculos exactos */
	--ddchi-gap: 18px;
}

html,
body {
	margin: 0;
	background: var(--ddchi-web-bg);
	color: var(--ddchi-web-ink);
	font:
		16px/1.55 system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Ubuntu,
		'Helvetica Neue',
		Arial;
}
a {
	color: inherit;
	text-decoration: none;
}
.ddchi-web_app {
	max-width: var(--ddchi-web-container);
	margin: auto;
	padding: 0 20px;
}

/* =================== NAVBAR =================== */
.ddchi-web_header-wrap {
	background: #fff;
	color: #000;
	position: sticky;
	top: 0;
	z-index: 1000;
}
.ddchi-web_header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 10px 0;
}
.ddchi-web_brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ddchi-web_logo {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(
		135deg,
		var(--ddchi-web-brand),
		var(--ddchi-web-brand-2)
	);
	display: grid;
	place-items: center;
	font-weight: 800;
}
.ddchi-web_title {
	margin: 0;
	font-weight: 800;
}

.ddchi-web_ham {
	display: none;
	background: #fff;
	color: #111;
	border: 0;
	border-radius: 10px;
	padding: 5px 12px;
	margin-left: auto;
	margin-right: 25px;
}

.ddchi-web_nav {
	display: flex;
	gap: 18px;
	align-items: center;
	margin: 0;
	padding: 0;
}
.ddchi-web_nav > li {
	list-style: none;
	position: relative;
}
.ddchi-web_nav > li > button,
.ddchi-web_nav > li > a {
	background: transparent;
	border: 0;
	color: #000;
	font-weight: 700;
	padding: 8px 10px;
	border-radius: 10px;
	cursor: pointer;
}
.ddchi-web_nav > li > button:hover,
.ddchi-web_nav > li > a:hover {
	background: #e1e1e1;
}

/* dropdown DESKTOP: por defecto oculto, sólo por clase .ddchi-web_open (no por :hover) */
#ddchi-web_nav.ddchi-web_nav li > .ddchi-web_dropdown {
	display: none !important;
}
#ddchi-web_nav.ddchi-web_nav li.ddchi-web_open > .ddchi-web_dropdown {
	display: block !important;
}
#ddchi-web_nav.ddchi-web_nav li.ddchi-web_open:hover > .ddchi-web_dropdown {
	display: block !important;
}

.ddchi-web_dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--ddchi-web-brand);
	color: #000;
	border-radius: 12px;
	min-width: 240px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--ddchi-web-shadow);
	padding: 8px;
	z-index: 1001;
}
.ddchi-web_dropdown a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	color: #000;
}
.ddchi-web_dropdown a:hover {
	background: rgba(206, 206, 206, 0.52);
}

/* =================== HERO / CARDS (visual) =================== */
.ddchi-web_hero {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 20px;
	margin: 22px 0;
}
.ddchi-web_lead {
	position: relative;
	border-radius: var(--ddchi-web-radius);
	overflow: hidden;
	box-shadow: var(--ddchi-web-shadow);
	background: #000;
}
.ddchi-web_lead img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 16/9;
	opacity: 0.92;
}
.ddchi-web_lead .ddchi-web_overlay {
	position: absolute;
	inset: auto 0 0 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 0,
		rgba(0, 0, 0, 0.75) 60%
	);
	color: #fff;
	padding: 24px;
}
.ddchi-web_eyebrow {
	display: inline-block;
	background: var(--ddchi-web-brand);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	border-radius: 999px;
	padding: 4px 10px;
	margin-bottom: 6px;
}
.ddchi-web_lead h1 {
	margin: 0.25rem 0 0;
	font-size: 1.8rem;
}
.ddchi-web_lead p {
	color: #f3f3f3;
	margin: 0.2rem 0 0;
}
.ddchi-web_cta {
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: #111;
	font-weight: 800;
	padding: 10px 14px;
	border-radius: 12px;
}

.ddchi-web_highlights {
	display: grid;
	grid-template-rows: repeat(3, 1fr);
	gap: 20px;
}
.ddchi-web_card {
	/* fondo por defecto para otras tarjetas */
	background: #7d0d18fa;
	color: #fff;
	border: 1px solid var(--ddchi-web-border);
	border-radius: var(--ddchi-web-radius);
	box-shadow: var(--ddchi-web-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.ddchi-web_card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	object-position: center top;
	transition: 0.3s;
}
.ddchi-web_card:hover img {
	scale: 1.2;
}
.ddchi-web_card .ddchi-web_card-body {
	padding: 14px;
}
.ddchi-web_card h3 {
	margin: 0 0 6px;
	font-size: 1rem;
	min-height: 66px;
}
.ddchi-web_card p {
	margin: 0;
	color: var(--ddchi-web-muted);
	font-size: 0.95rem;
}

/* =================== SECTION WRAPPER =================== */
.ddchi-web_section {
	margin: 26px 0;
	background: var(--ddchi-web-card);
	border: 1px solid var(--ddchi-web-border);
	border-radius: var(--ddchi-web-radius);
	box-shadow: var(--ddchi-web-shadow);
}
.ddchi-web_section header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--ddchi-web-border);
}
.ddchi-web_badge {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--ddchi-web-brand);
	color: #fff;
	font-weight: 800;
	min-width: 28px;
	min-height: 28px;
}

/* =================== ÁREA DE ATENCIÓN =================== */
.ddchi-web_atencion {
	padding: 16px 18px;
}
.ddchi-web_accordion {
	margin: 0;
}
.ddchi-web_accordion .panel {
	border-color: var(--ddchi-web-border);
	border-radius: 12px;
	box-shadow: none;
	overflow: hidden;
}
.ddchi-web_accordion .panel + .panel {
	margin-top: 12px;
}
.ddchi-web_accordion .panel-heading {
	background: #f9fafb;
	padding: 0;
}
.ddchi-web_accordion .panel-title > a {
	display: block;
	padding: 12px 14px;
	font-weight: 700;
	color: var(--ddchi-web-ink);
}
.ddchi-web_accordion .panel-title > a:hover,
.ddchi-web_accordion .panel-title > a:focus {
	text-decoration: none;
	background: #f3f4f6;
}
.ddchi-web_accordion .panel-body {
	padding: 12px 14px;
}
.ddchi-web_accordion .panel-body a {
	color: #7a2e22;
	font-weight: 600;
}
.ddchi-web_accordion .panel-body a:hover {
	text-decoration: underline;
}
.ddchi-web_inlineContent {
	color: var(--ddchi-web-ink);
}
.ddchi-web_inlineState {
	margin: 0;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid var(--ddchi-web-border);
	border-radius: 10px;
	color: var(--ddchi-web-muted);
}
.ddchi-web_inlineState--error {
	background: #fff1f2;
	border-color: #fecdd3;
	color: #9f1239;
}
#atencion .ddchi-web_inlineContent .conv_header h1 {
	margin: 0;
	font-size: clamp(1.15rem, 2.2vw, 1.6rem);
	font-weight: 800;
}
#atencion .ddchi-web_inlineContent .conv_rule {
	display: block;
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: var(--ddchi-web-brand-2);
	margin: 8px 0 14px;
}
#atencion .ddchi-web_inlineContent .interest_grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(280px, 1fr));
	gap: 16px;
}
#atencion .ddchi-web_inlineContent .interest_grid--profile {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
	grid-template-areas:
		'ptc acts'
		'perfil acts'
		'obs obs';
}
#atencion .ddchi-web_inlineContent .interest_grid--ca {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
	grid-template-areas:
		'caque calgac'
		'caacts cacar'
		'camas camas';
}
#atencion .ddchi-web_inlineContent .interest--ptc {
	grid-area: ptc;
}
#atencion .ddchi-web_inlineContent .interest--perfil {
	grid-area: perfil;
}
#atencion .ddchi-web_inlineContent .interest--acts {
	grid-area: acts;
}
#atencion .ddchi-web_inlineContent .interest--obs {
	grid-area: obs;
}
#atencion .ddchi-web_inlineContent .interest--ca-que {
	grid-area: caque;
}
#atencion .ddchi-web_inlineContent .interest--ca-lgac {
	grid-area: calgac;
}
#atencion .ddchi-web_inlineContent .interest--ca-acts {
	grid-area: caacts;
}
#atencion .ddchi-web_inlineContent .interest--ca-caracter {
	grid-area: cacar;
}
#atencion .ddchi-web_inlineContent .interest--ca-mas {
	grid-area: camas;
}
#atencion .ddchi-web_inlineContent .blk {
	background: #fff;
	border: 1px solid var(--ddchi-web-border);
	border-radius: 14px;
	padding: 14px 16px;
}
#atencion .ddchi-web_inlineContent .blk__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
#atencion .ddchi-web_inlineContent .blk__head h2 {
	margin: 0;
	font-size: clamp(1rem, 1.8vw, 1.12rem);
	font-weight: 800;
}
#atencion .ddchi-web_inlineContent .blk__badge {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 999px;
	display: inline-grid;
	place-items: center;
	background: #fff1f2;
	color: var(--ddchi-web-brand-2);
	border: 1px solid #fecdd3;
}
#atencion .ddchi-web_inlineContent .interest_body {
	color: #334155;
}
#atencion .ddchi-web_inlineContent .interest_body p {
	margin: 0 0 10px;
	text-align: justify;
}
#atencion .ddchi-web_inlineContent .interest_body ol,
#atencion .ddchi-web_inlineContent .interest_body ul {
	margin: 0 0 10px 18px;
	padding: 0;
}
#atencion .ddchi-web_inlineContent .interest_body li {
	margin-bottom: 6px;
}
#atencion .ddchi-web_inlineContent .ddchi-btn-red {
	display: inline-block;
	background: #7d0d18;
	color: #fff;
	border-radius: 10px;
	padding: 10px 14px;
	font-weight: 700;
	text-decoration: none;
}
#atencion .ddchi-web_inlineContent .ddchi-btn-red:hover,
#atencion .ddchi-web_inlineContent .ddchi-btn-red:focus {
	background: #961326;
	color: #fff;
	text-decoration: none;
}
@media (max-width: 960px) {
	#atencion .ddchi-web_inlineContent .interest_grid {
		grid-template-columns: 1fr;
	}
	#atencion .ddchi-web_inlineContent .interest_grid--profile {
		grid-template-columns: 1fr;
		grid-template-areas:
			'ptc'
			'perfil'
			'acts'
			'obs';
	}
	#atencion .ddchi-web_inlineContent .interest_grid--ca {
		grid-template-columns: 1fr;
		grid-template-areas:
			'caque'
			'calgac'
			'caacts'
			'cacar'
			'camas';
	}
}

/* =================== ESTADÍSTICA (gráfica) =================== */
.ddchi-web_stats {
	display: grid;
	gap: 12px;
	padding: 14px 16px 18px;
}
.ddchi-web_text p {
	margin: 0 0 6px 0;
	line-height: 1.5;
}
/* .ddchi-web_chartWrap {
	background: #fff;
	border: 1px dashed var(--ddchi-web-border);
	border-radius: 12px;
	padding: 10px;
}
.ddchi-web_chart {
	width: 100%;
	height: auto;
} */
/* ===== Donuts: layout ===== */
.ddchi-web_donuts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.ddchi-web_donut {
	position: relative;
	display: grid;
	place-items: center;
	padding: 16px 6px 8px;
}
.ddchi-web_donut figcaption {
	margin-top: 6px;
	font-weight: 600;
	text-align: center;
	font-size: 24px;
}

/* SVG dimensiona por viewBox */
.ddchi-web_donut .ddchi-web_chart {
	width: 100%;
	height: auto;
	/* max-width: 520px; */
	min-width: 560px;
	min-height: 650px;
	display: block;
}
#ddchi-web_stats .ddchi-web_chart {
	overflow: visible;
}

/* Icono centrado (NO se deforma) */
.ddchi-web_donutIcon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	line-height: 1;
	color: #9aa0a6; /* gris suave; cámbialo si quieres */
	pointer-events: none; /* no interfiere con el tooltip ni hover */
	display: block;
}

/* Etiquetas (solo top-7). Vertical para ahorrar espacio */
.ddchi-web_sliceLabel {
	font:
		700 14px/1.1 system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Arial;
	fill: #111827;
	writing-mode: vertical-rl; /* vertical */
	glyph-orientation-vertical: 0;
	paint-order: stroke;
	stroke: #fff;
	stroke-width: 4px; /* halo blanco para legibilidad */
}

/* Líneas guía */
.ddchi-web_leader {
	stroke: #c7cdd6;
	stroke-width: 1.2;
}

/* Hover: desaturar el resto, mantener color en el activo */
.ddchi-web_donut.hovering g.slice {
	filter: grayscale(1) brightness(1.2);
	transition: filter 0.15s ease;
}
.ddchi-web_donut.hovering g.slice.is-hot {
	filter: none;
}

/* Tooltip */
.ddchi-web_tooltip {
	pointer-events: none;
	background: rgba(17, 24, 39, 0.92);
	color: #fff;
	padding: 8px 10px;
	border-radius: 8px;
	font:
		600 12.5px/1.25 system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Arial;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	transform-origin: bottom left; /* sensación de 'nace' desde esquina inf-izq */
	transition: opacity 0.25s ease; /* fade suave */
	opacity: 1;
}
.ddchi-web_tooltip::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -6px;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #111827;
}
.ddchi-web_tooltip.is-fading {
	opacity: 0;
}
/* Rótulos verticales del donut */
.ddchi-donut-label {
	font:
		700 12px/1.1 system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Arial;
	fill: #0f172a; /* ink */
	pointer-events: none; /* el tooltip ya se maneja en los slices */
}
.ddchi-donut-label--hidden {
	display: none;
}

/* (opcional) si quieres hacerlos un poco más grandes en desktop */
@media (min-width: 1024px) {
	.ddchi-donut-label {
		font-size: 14px;
	}
}

/* Responsive: una por fila en móvil, sin scroll horizontal */
@media (max-width: 1085px) {
	.ddchi-web_chart text {
		font-size: 14px;
	}
	.ddchi-web_donut .ddchi-web_chart {
		max-width: 560px;
		min-width: 510px;
		min-height: 690px;
	}
}
@media (max-width: 995px) {
	.ddchi-web_chart text {
		font-size: 14px;
	}
	.ddchi-web_donut .ddchi-web_chart {
		max-width: 560px;
		min-width: 450px;
		min-height: 690px;
	}
}
@media (max-width: 900px) {
	.ddchi-web_chart text {
		font-size: 14px;
	}
	.ddchi-web_donuts {
		grid-template-columns: 1fr;
	}
	.ddchi-web_donut .ddchi-web_chart {
		max-width: 560px;
		min-height: 690px;
	}
}
@media (max-width: 550px) {
	.ddchi-web_chart text {
		font-size: 14px;
	}
	.ddchi-web_donut .ddchi-web_chart {
		max-width: 560px;
		min-height: 570px;
	}
}
@media (max-width: 450px) {
	.ddchi-web_donut .ddchi-web_chart {
		max-width: 560px;
		min-height: 450px;
		min-width: 360px;
	}
}
@keyframes ddchi-slice-in {
	from {
		opacity: 0.05;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* =================== ENLACES =================== */
.ddchi-web_links {
	--medal: 180px; /* tamaño fijo del medallón */
	padding: 16px 18px;
}

.ddchi-web_linksGrid {
	display: flex;
	flex-wrap: wrap; /* hace wrap en filas */
	gap: 28px 40px;
	justify-content: space-evenly;
	align-items: center;
}

/* Contenedor del medallón (tamaño fijo) */
.ddchi-web_link {
	position: relative;
	width: var(--medal);
	height: var(--medal);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	overflow: visible;
}

/* Aro color (+10px sobre el inner) – capa 1 */
.ddchi-web_link::before,
.ddchi-web_link::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	pointer-events: none;
}
.ddchi-web_link::before {
	/* inner = var(--medal) - 32px (inset 16px a cada lado)
     +10px diámetro ⇒ var(--medal) - 22px */
	width: calc(var(--medal) - 22px);
	height: calc(var(--medal) - 22px);
	background: var(--ddchi-web-circle, #999);
	z-index: 1;
}

/* Aro blanco (+5px sobre el inner) – capa 2 */
.ddchi-web_link::after {
	/* (inner + 5) ⇒ var(--medal) - 27px */
	width: calc(var(--medal) - 27px);
	height: calc(var(--medal) - 27px);
	background: #fff;
	z-index: 2;
}

/* Círculo interior (contenido) – capa 3 */
.ddchi-web_linkIcon {
	position: absolute;
	inset: 16px; /* define diámetro del círculo interior */
	border-radius: 50%;
	background: var(--ddchi-web-circle, #999);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transform: scale(1);
	transition: transform 0.22s ease;
	z-index: 3;
}

/* Icono y título (valores base para desktop) */
.ddchi-web_linkIcon i {
	font-size: 64px; /* icono grande */
	line-height: 1;
	color: #fff;
}
.ddchi-web_linkIcon span {
	display: block;
	text-align: center;
	font-weight: 800;
	color: #fff;
	font-size: 15px; /* texto claro */
	line-height: 1.2;
	max-width: 82%;
	word-break: break-word;
}

/* Hover: “presionado” del círculo interior */
.ddchi-web_link:hover .ddchi-web_linkIcon,
.ddchi-web_link:focus-visible .ddchi-web_linkIcon {
	transform: scale(0.96);
}

/* Colores por orden (sin tocar HTML) */
.ddchi-web_linksGrid > .ddchi-web_link:nth-child(1) {
	--ddchi-web-circle: var(--colorweb1);
}
.ddchi-web_linksGrid > .ddchi-web_link:nth-child(2) {
	--ddchi-web-circle: var(--colorweb2);
}
.ddchi-web_linksGrid > .ddchi-web_link:nth-child(3) {
	--ddchi-web-circle: var(--colorweb3);
}
.ddchi-web_linksGrid > .ddchi-web_link:nth-child(4) {
	--ddchi-web-circle: var(--colorweb4);
}

/* ===== Escalado del icono/título por dispositivo (medallón sigue en 180px) ===== */
@media (max-width: 980px) {
	.ddchi-web_linkIcon i {
		font-size: 56px;
	}
	.ddchi-web_linkIcon span {
		font-size: 14px;
	}
	.ddchi-web_linksGrid {
		gap: 26px 32px;
	}
}

@media (max-width: 720px) {
	.ddchi-web_linkIcon i {
		font-size: 50px;
	}
	.ddchi-web_linkIcon span {
		font-size: 13px;
	}
}

@media (max-width: 560px) {
	/* dos columnas cómodas y centradas */
	.ddchi-web_linksGrid {
		justify-content: center;
		gap: 22px 26px;
	}
	.ddchi-web_linkIcon i {
		font-size: 44px;
	}
	.ddchi-web_linkIcon span {
		font-size: 12.5px;
	}
}

@media (max-width: 400px) {
	.ddchi-web_linkIcon i {
		font-size: 38px;
	}
	.ddchi-web_linkIcon span {
		font-size: 12px;
	}
}

/* =================== PROYECTOS =================== */
.ddchi-web_projects {
	padding: 16px 18px;
}
.ddchi-web_cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

/* --- Overrides específicos para las cards de Proyectos --- */
.ddchi-web_cards .ddchi-web_card {
	position: relative;
	background: #ffe7e9; /* no se ve: la imagen cubre todo */
	color: #fff;
	border-radius: var(--ddchi-web-radius);
	overflow: hidden;
	height: 200px; /* alto visual */
	box-shadow: var(--ddchi-web-shadow);
}
.ddchi-web_cards .ddchi-web_card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover; /* cubrir sin distorsionar */
	object-position: center top; /* anclado arriba/centrado */
	transition: 0.4s ease;
}
.ddchi-web_cards .ddchi-web_card:hover img {
	transform: scale(1.06);
}
.ddchi-web_cards .ddchi-web_card .ddchi-web_card-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(125, 13, 24, 0.88); /* rojo translúcido */
	padding: 24px 22px 22px;
	min-height: 150px;
}
.ddchi-web_cards .ddchi-web_card h3 {
	margin: 0 0 12px;
	font-size: 1rem;
	min-height: unset; /* ya no forzamos altura */
	color: #fff;
	min-height: 80px;
	text-align: left;
}
.ddchi-web_cards .ddchi-web_card .ddchi-btn {
	background: var(--ddchi-web-brand);
	color: #000;
	border-color: #fff;
}
.ddchi-web_cards .ddchi-web_card .ddchi-btn:hover {
	background: #fff;
	color: #000;
	border-color: #faf7f7;
	text-decoration: none;
}

/* =================== REPRESENTANTES (Carrusel) =================== */
.ddchi-web_reps {
	padding: 16px 18px;
}

.ddchi-web_carousel {
	position: relative;
	overflow: hidden;
}

.ddchi-web_track {
	display: grid;
	grid-auto-flow: column;

	/* 4 por vista restando 3 gaps → evita cortes */
	grid-auto-columns: calc((100% - 3 * var(--ddchi-gap)) / 4);

	gap: var(--ddchi-gap);

	/* Scroll nativo + snap */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	transition: none;
	scrollbar-width: none; /* Firefox */
}
.ddchi-web_track::-webkit-scrollbar {
	display: none;
} /* WebKit */

.ddchi-web_rep {
	background: #fff;
	border: 1px solid var(--ddchi-web-border);
	border-radius: 16px;
	padding: 0 0 16px 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	scroll-snap-align: start;
	transition: transform 200ms ease;
	will-change: transform;

	/* evita ensanche por contenido largo */
	min-width: 0;
}

/* sin animación de zoom */
.ddchi-web_carousel.dir-next .ddchi-web_rep.is-active,
.ddchi-web_carousel.dir-prev .ddchi-web_rep.is-active {
	animation: none !important;
}

.ddchi-web_rep img {
	width: 100%;
	height: auto;
	max-width: 280px;
	aspect-ratio: 1/1;
	object-fit: cover;
	margin-bottom: 10px;
}

.ddchi-web_rep h4 {
	margin: 0.2rem 0 0.1rem;
	font-size: 1rem;
}
.ddchi-web_rep small {
	color: var(--ddchi-web-muted);
	font-size: 75%;
}
.ddchi-web_rep .ddchi-web_chip {
	margin-top: 8px;
	display: inline-block;
	background: #7d0d18fa;
	border: 1px solid var(--ddchi-web-border);
	padding: 6px 10px;
	font-size: 0.8rem;
	color: #fff;
	width: 100%;
}

.ddchi-web_ctrl {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #7d0d18fa;
	border: none;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	cursor: pointer;
	z-index: 2;
	color: #fff;
	box-shadow:
		0 4px 6px rgba(0, 0, 0, 0.4),
		0 8px 16px rgba(0, 0, 0, 0.8);
	transition: transform 0.2s ease;
}
.ddchi-web_ctrl:active {
	transform: translateY(-50%) scale(0.7);
}
.ddchi-web_prev {
	left: 6px;
}
.ddchi-web_next {
	right: 6px;
}
.ddchi-web_ctrl[disabled] {
	opacity: 0.4;
	pointer-events: none;
}

/* Indicadores carrusel representantes */
.ddchi-web_indicators {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 12px 0 4px;
}
.ddchi-web_dots {
	display: flex;
	gap: 10px;
}
.ddchi-web_dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #d1d5db; /* gris */
	cursor: pointer;
	border: none;
}
.ddchi-web_dot.is-active {
	background: var(--ddchi-web-brand-2); /* rojo activo */
}
.ddchi-web_counter {
	display: none; /* visible solo en móvil */
	font-size: 12px;
	color: var(--ddchi-web-muted);
	padding: 2px 8px;
	border: 1px solid var(--ddchi-web-border);
	border-radius: 999px;
	background: #fff;
}

/* En móvil (≤560px) mostramos fracción y ocultamos dots */
@media (max-width: 560px) {
	.ddchi-web_dots {
		display: none;
	}
	.ddchi-web_counter {
		display: inline-block;
	}
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px) {
	.ddchi-web_hero {
		grid-template-columns: 1fr;
	}
	.ddchi-web_highlights {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: none;
	}

	/* 3 por vista (restando 2 gaps) */
	.ddchi-web_track {
		grid-auto-columns: calc((100% - 2 * var(--ddchi-gap)) / 3);
	}

	/* Proyectos: ajustar altura un poco menor */
	.ddchi-web_cards .ddchi-web_card {
		height: 200px;
	}
}
@media (max-width: 820px) {
	/* NAV móvil */
	.ddchi-web_brand {
		display: none;
	}
	#ddchi-web_ham.ddchi-web_ham {
		display: inline-block;
	}
	#ddchi-web_nav.ddchi-web_nav {
		display: none;
		width: 85%;
		margin: 8px auto 0;
		background: #f2f2f2;
		flex-direction: column;
		gap: 0;
		border-radius: 14px;
		overflow: hidden;
	}
	#ddchi-web_nav.ddchi-web_nav.ddchi-web_open {
		display: flex;
	}
	#ddchi-web_nav.ddchi-web_nav > li {
		list-style: none;
		width: 100%;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}
	#ddchi-web_nav.ddchi-web_nav > li > button,
	#ddchi-web_nav.ddchi-web_nav > li > a {
		width: 100%;
		text-align: left;
		border-radius: 0;
		padding: 12px 16px;
		color: #000;
		background: transparent;
		border: 0;
		font-weight: 700;
	}
	#ddchi-web_nav.ddchi-web_nav .ddchi-web_dropdown {
		position: static;
		display: none;
		padding: 0;
		background: rgba(0, 0, 0, 0.06);
		border: 0;
		box-shadow: none;
	}
	#ddchi-web_nav.ddchi-web_nav li.ddchi-web_open > .ddchi-web_dropdown {
		display: block !important;
	}
	#ddchi-web_nav.ddchi-web_nav .ddchi-web_dropdown a {
		display: block;
		padding: 10px 16px;
		color: #000;
		text-decoration: none;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

	/* piezas */
	.ddchi-web_linksGrid {
		grid-template-columns: repeat(2, 1fr);
	}
	.ddchi-web_cards {
		grid-template-columns: 1fr 1fr;
	}

	/* 2 por vista (restando 1 gap) */
	.ddchi-web_track {
		grid-auto-columns: calc((100% - 1 * var(--ddchi-gap)) / 2);
	}

	/* Proyectos: altura */
	.ddchi-web_cards .ddchi-web_card {
		height: 200px;
	}
}
@media (max-width: 560px) {
	.ddchi-web_cards {
		grid-template-columns: 1fr;
	}

	/* 1 por vista */
	.ddchi-web_track {
		grid-auto-columns: 100%;
	}

	.ddchi-web_chart text {
		font-size: 14px;
	}

	/* Proyectos: altura */
	.ddchi-web_cards .ddchi-web_card {
		height: 200px;
	}
}

/* --- Animaciones para el carrusel (no usadas en activo) --- */
@keyframes ddchi-zoom-in {
	from {
		transform: scale(0.96);
	}
	to {
		transform: scale(1);
	}
}
@keyframes ddchi-zoom-out {
	from {
		transform: scale(1.04);
	}
	to {
		transform: scale(1);
	}
}

/* Clase ddchi-btn */
.ddchi-btn {
	display: inline-block;
	padding: 5px 20px;
	border: 2px solid #7d0d18;
	background-color: white;
	color: #7d0d18;
	text-decoration: none;
	border-radius: 25px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.ddchi-btn:hover {
	background-color: #7d0d18;
	color: white;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
	text-decoration: none;
}
.ddchi-btn:active {
	transform: scale(0.98);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
/* =================== CAROUSEL BOOTSTRAP 3.2/3.3 (caption a la izquierda) =================== */
/* ====== Carousel caption a la izquierda (Bootstrap 3.2/3.3) ====== */
.carousel .ddchimain .carousel-caption {
	left: 10%; /* “pega” a la izquierda */
	right: auto; /* evita que el valor por defecto de Bootstrap lo centre */
	bottom: 20%; /* altura visual cómoda; puedes afinar */
	max-width: 500px; /* ancho máximo solicitado */
	width: 90%; /* evita desbordes en pantallas pequeñas */
	text-align: left; /* texto alineado a la izquierda */
	padding: 15px 20px;
	/*! background: rgba(0, 0, 0, 0.35); */ /* leve fondo para legibilidad; opcional */
	border-radius: 6px;
	z-index: 15; /* sobre la imagen/controles */
}

/* Títulos dentro del caption */
.carousel .ddchimain .carousel-caption h2 {
	margin: 0 0 8px;
	line-height: 1.2;
	font-weight: 600; /* base en móviles/tablet */
	font-size: 28px; /* base (xs) */
	text-align: left;
}
.carousel .ddchimain .carousel-caption h2 small {
	color: #fff;
}

/* Texto/descripcion opcional dentro del caption */
.carousel .ddchimain .carousel-caption p {
	margin: 0;
	line-height: 1.45;
	font-size: 14px;
}

/* ====== Responsivo por breakpoints de Bootstrap 3 ====== */
/* sm ≥768px */
@media (max-width: 768px) {
	.carousel .ddchimain .carousel-caption {
		bottom: 25%;
		width: auto; /* ya podemos respetar max-width */
		max-width: 500px;
	}
	.carousel .ddchimain .carousel-caption h2 {
		font-size: 18px;
	}
	.carousel .ddchimain .carousel-caption p {
		font-size: 15px;
	}
}

/* md ≥992px */
@media (max-width: 992px) {
	.carousel .ddchimain .carousel-caption {
		bottom: 16%;
	}
	.carousel .ddchimain .carousel-caption h2 {
		font-size: 20px; /* solicitado para escritorio */
		font-weight: 700; /* bold en escritorio */
		max-width: 300px;
	}
	.carousel .ddchimain .carousel-caption p {
		font-size: 16px;
	}
}

/* lg ≥1200px (ajuste fino opcional) */
@media (min-width: 1200px) {
	.carousel .ddchimain .carousel-caption {
		bottom: 30%;
	}
}

/* ====== Mejora de legibilidad/flexibilidad en pantallas muy pequeñas ====== */
@media (max-width: 480px) {
	.carousel .ddchimain .carousel-caption {
		left: 10px;
		right: 10px; /* si el caption tuviera right:auto, esto evita salirnos del viewport */
		bottom: 10%;
		max-width: none; /* ocupa el ancho disponible con padding */
	}
}

/* Opcional: asegura que la imagen del slide ocupe todo el ancho */
.carousel .item > img,
.carousel .item > a > img {
	display: block;
	width: 100%;
	height: auto;
}

.external-link {
	display: inline-block;
	padding: 14px 28px;
	background-color: #4a6cf7;
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(74, 108, 247, 0.3);
}

.external-link:hover {
	background-color: #3a5ce5;
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(74, 108, 247, 0.4);
}
/* TEXTO Sliders internas */
.carousel-caption {
	text-align: left;
}
.carousel-caption p {
	font-size: 16px;
}
/*.carousel-caption h1{
	font-size:25px;
}*/
@media (min-width: 50px) and (max-width: 279px) {
	.hidden-xss {
		display: none !important;
	}
}
@media (min-width: 280px) {
	.titulo_carrusel-inter {
		font-size: 18px;
	}
}
@media (min-width: 768px) {
	.titulo_carrusel-inter {
		font-size: 22px;
	}
}
@media (min-width: 885px) {
	.titulo_carrusel-inter {
		font-size: 25px;
	}
}
@media (min-width: 992px) {
	.titulo_carrusel-inter {
		font-size: 36px;
	}
}
@media (min-width: 1200px) {
	.titulo_carrusel-inter {
		font-size: 36px;
	}
}
.titulo_carrusel-inter {
	text-transform: uppercase;
	text-align: left;
	text-shadow: 8px 2px 8px #000;
}
#pdfDownloadLinkContainer {
	margin: 0 25px;
}
