/* Testimonials archive redesign (task 201026). */

.lhh-tcard,
.lhh-tmodal {
	--lhh-purple: #4f185a;
	--lhh-purple-2: #822b92;
	--lhh-purple-soft: #f5eef7;
	--lhh-ink: #332637;
	--lhh-muted: #7b687f;
	--lhh-pink: #e23369;
	--lhh-play: #ff174f;
	--lhh-serif: "Noto Serif JP", Georgia, serif;
	--lhh-sans: "Noto Sans JP", "Noto Sans", Arial, sans-serif;
	--lhh-media-h: 168px;
}

/* Equal-height cards inside the JetEngine grid. */
.jet-listing-grid__item:has(.lhh-tcard) > .jet-engine-listing-overlay-wrap,
.jet-listing-grid__item:has(.lhh-tcard) > div,
.jet-listing-grid__item:has(.lhh-tcard) .elementor-widget-shortcode,
.jet-listing-grid__item:has(.lhh-tcard) .elementor-shortcode {
	height: 100%;
}
.jet-listing-grid__item:has(.lhh-tcard) .e-con,
.jet-listing-grid__item:has(.lhh-tcard) .e-con-inner {
	height: 100%;
	padding: 0;
}

/* ---------- Card ---------- */

.lhh-tcard {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 14px 16px 16px;
	background: #fff;
	border: 1px solid #f0edf1;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(38, 22, 43, .08);
	color: var(--lhh-ink);
	font-family: var(--lhh-sans);
	transition: transform .2s, box-shadow .2s;
}
.lhh-tcard:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(51, 38, 55, .12);
}
.lhh-tcard *,
.lhh-tmodal * {
	box-sizing: border-box;
}

.lhh-tcard__fecha {
	margin-bottom: 8px;
	color: var(--lhh-pink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

/* Every variant reserves the same media height, so titles line up across a row. */
.lhh-tcard__media {
	position: relative;
	height: var(--lhh-media-h);
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: 8px;
}

.lhh-tcard__media--video {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #2e1338;
	cursor: pointer;
}
.lhh-tcard .lhh-tcard__media--video img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}
.lhh-tcard__media--video:hover img {
	transform: scale(1.03);
}
.lhh-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 52px;
	height: 38px;
	border-radius: 10px;
	background: var(--lhh-play);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	transform: translate(-50%, -50%);
}
.lhh-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-50%, -50%);
}

.lhh-tcard__media--imagen {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 14px;
	align-items: start;
	overflow: visible;
}
.lhh-tcard img.lhh-tcard__foto {
	width: 96px;
	height: var(--lhh-media-h);
	object-fit: cover;
	border-radius: 8px;
}
.lhh-tcard__quote p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #4e3d69;
	font-family: var(--lhh-serif);
	font-size: 15px;
	font-style: italic;
	line-height: 1.35;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
}

.lhh-quote-mark {
	display: block;
	height: 30px;
	color: var(--lhh-purple);
	font-family: var(--lhh-serif);
	font-size: 52px;
	font-weight: 700;
	line-height: .9;
}

/* Text testimonials: centred, as in the mockup. */
.lhh-tcard__media--texto {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	text-align: center;
}
.lhh-tcard__media--texto p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--lhh-purple);
	font-family: var(--lhh-serif);
	font-size: 20px;
	line-height: 1.3;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}
.lhh-tcard__media--texto.is-sin-cita p {
	font-size: 17px;
	-webkit-line-clamp: 5;
}
.lhh-tcard--texto .lhh-tcard__titulo,
.lhh-tcard--texto .lhh-tcard__meta {
	text-align: center;
}

/* Title and subtitle keep a fixed number of lines so the button lines up too. */
.lhh-tcard__titulo {
	display: -webkit-box;
	min-height: calc(2 * 1.25em);
	margin: 0 0 6px;
	overflow: hidden;
	color: var(--lhh-purple);
	font-family: var(--lhh-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.lhh-tcard__titulo:empty {
	visibility: hidden;
}
.lhh-tcard__meta {
	display: -webkit-box;
	min-height: calc(2 * 1.4em);
	margin: 0 0 14px;
	overflow: hidden;
	color: var(--lhh-muted);
	font-size: 13px;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.lhh-sep {
	margin: 0 .45em;
	opacity: .7;
}

.lhh-tcard__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: auto;
	padding: 10px 12px;
	border: 1.5px solid var(--lhh-purple-2);
	border-radius: 12px;
	background: #fff;
	color: var(--lhh-purple);
	font-family: var(--lhh-sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s;
}
.lhh-tcard__cta:hover,
.lhh-tcard__cta:focus-visible {
	background: var(--lhh-purple-soft);
	color: var(--lhh-purple);
}

/* ---------- Modal ---------- */

.lhh-tmodal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: var(--lhh-sans);
}
.lhh-tmodal[hidden] {
	display: none;
}
.lhh-tmodal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 27, 32, .74);
}
.lhh-tmodal__box {
	position: relative;
	width: min(960px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 32px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
	color: var(--lhh-ink);
	outline: 0;
}
.lhh-tmodal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	padding: 4px 8px;
	border: 0;
	background: transparent;
	color: var(--lhh-purple);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.lhh-tmodal__close:hover,
.lhh-tmodal__close:focus {
	background: transparent;
	color: var(--lhh-purple-2);
}
body.lhh-tmodal-open {
	overflow: hidden;
}

.lhh-tmodal__titulo {
	margin: 18px 0 6px;
	color: var(--lhh-purple);
	font-family: var(--lhh-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}
.lhh-tmodal__nombre {
	margin: 0 0 4px;
	color: var(--lhh-purple);
	font-family: var(--lhh-serif);
	font-size: 20px;
	font-weight: 700;
}
.lhh-tmodal__cargo {
	margin: 0 0 4px;
	color: var(--lhh-muted);
	font-size: 15px;
}
.lhh-tmodal__meta {
	margin: 10px 0 0;
	color: #845889;
	font-size: 14px;
}
.lhh-tmodal__cita {
	margin: 12px 0 20px;
	padding: 0;
	border: 0;
	color: #493367;
	font-family: var(--lhh-serif);
	font-size: 24px;
	font-style: italic;
	line-height: 1.35;
}
.lhh-tmodal__cita p {
	margin: 0 0 .6em;
}
.lhh-tmodal .lhh-quote-mark {
	height: 40px;
	font-size: 72px;
}

/* Video: player on the left with its info underneath, transcript on the right. */
.lhh-tmodal__video.has-transcripcion {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 28px;
}
.lhh-tmodal__player {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	background: #2e1338;
}
.lhh-tmodal .lhh-tmodal__player img,
.lhh-tmodal__player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}
.lhh-tmodal__transcripcion {
	max-height: 440px;
	overflow: auto;
	padding-left: 24px;
	border-left: 1px solid #ece7ef;
	color: #575057;
	font-size: 14px;
	line-height: 1.6;
}
.lhh-tmodal__transcripcion h3 {
	margin: 0 0 12px;
	color: var(--lhh-purple);
	font-family: var(--lhh-serif);
	font-size: 18px;
}

.lhh-tmodal__imagen {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 32px;
	align-items: center;
}
.lhh-tmodal img.lhh-tmodal__foto {
	width: 100%;
	height: 380px;
	object-fit: cover;
	border-radius: 10px;
}

.lhh-tmodal__texto {
	max-width: 760px;
	margin: 0 auto;
	padding: 16px 32px 8px;
	text-align: center;
}
.lhh-tmodal__texto .lhh-quote-mark {
	color: #ceb6d7;
}
.lhh-tmodal__texto .lhh-tmodal__cita {
	font-style: normal;
}

@media (max-width: 820px) {
	.lhh-tmodal__video.has-transcripcion,
	.lhh-tmodal__imagen {
		grid-template-columns: 1fr;
	}
	.lhh-tmodal__transcripcion {
		max-height: none;
		padding: 16px 0 0;
		border-top: 1px solid #ece7ef;
		border-left: 0;
	}
	.lhh-tmodal img.lhh-tmodal__foto {
		height: 280px;
	}
}

@media (max-width: 560px) {
	.lhh-tmodal {
		padding: 12px;
	}
	.lhh-tmodal__box {
		max-height: calc(100vh - 24px);
		padding: 40px 18px 22px;
	}
	.lhh-tmodal__cita {
		font-size: 20px;
	}
	.lhh-tmodal__texto {
		padding: 8px 0;
	}
}

/* ---------- Filters: Tipo, Usuario, Programa and search on one row (archive template 656) ---------- */

@media (min-width: 1025px) {
	.elementor-element-17aeda1 > .e-con-inner {
		display: grid;
		grid-template-columns: 3fr 1.25fr;
		column-gap: 20px;
		align-items: center;
	}
	.elementor-element-17aeda1 > .e-con-inner > * {
		grid-column: 1 / -1;
	}
	.elementor-element-17aeda1 > .e-con-inner > .elementor-element-a060aa4 {
		grid-column: 1;
	}
	.elementor-element-17aeda1 > .e-con-inner > .elementor-element-34f8615 {
		grid-column: 2;
	}
	.elementor-element-34f8615 > .elementor-element-ed73dee {
		display: none;
	}
	.elementor-element-34f8615 > .elementor-element-37943fa {
		flex: 1 1 100%;
		width: 100%;
		max-width: none;
	}
}
