/* ==========================================================================
   MDH · Página "Testimonios" (nos-recomiendan/)
   Depende de las variables de mdh-theme.css.
   ========================================================================== */

/* La página ocupa todo el ancho: quitamos el contenedor del tema */
body.page-id-1575 #main > .inner-wrap { max-width: none; width: 100%; margin: 0; padding: 0; }
body.page-id-1575 #main { padding-top: 0; }
body.page-id-1575 #primary { width: 100%; float: none; }
.mdh-t .entry-content, .mdh-t { margin: 0; padding: 0; }
.mdh-t .entry-meta-bar { display: none; }

.mdh-t-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.mdh-t-eyebrow {
	font-family: var(--mdh-font-label) !important;
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: 14px;
	color: var(--mdh-cyan);
	margin: 0 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.mdh-t-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.mdh-t-eyebrow--dark { color: var(--mdh-blue); }

/* ---------- Botones ---------- */
.mdh-t-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: var(--mdh-font-head);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.mdh-t-btn:hover { transform: translateY(-2px); }
.mdh-t-btn--primary { background: #fff; color: var(--mdh-navy) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.mdh-t-btn--primary:hover { background: var(--mdh-cyan); color: #fff !important; }
.mdh-t-btn--accent { background: var(--mdh-orange); color: #fff !important; box-shadow: 0 8px 24px rgba(239, 159, 39, .4); }
.mdh-t-btn--accent:hover { background: var(--mdh-orange-dark); }
.mdh-t-btn--ghost { color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .45); }
.mdh-t-btn--ghost:hover { border-color: var(--mdh-cyan); background: rgba(55, 192, 232, .12); }

/* ---------- Hero ---------- */
.mdh-t-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: 88px 0 96px;
	background: var(--mdh-grid-dark);
	background-size: var(--mdh-grid-dark-size);
}
/* Gráfica ascendente decorativa, como la del logo */
.mdh-t-hero::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -10px;
	width: 520px;
	height: 260px;
	opacity: .35;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 260'%3E%3Cpolyline points='0,240 110,215 200,150 300,125 420,50 520,10' fill='none' stroke='%237be0c4' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cg fill='%237be0c4'%3E%3Ccircle cx='110' cy='215' r='8'/%3E%3Ccircle cx='200' cy='150' r='8'/%3E%3Ccircle cx='300' cy='125' r='8'/%3E%3Ccircle cx='420' cy='50' r='10'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom / contain;
}
.mdh-t-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 56px;
	align-items: center;
}
.mdh-t-hero__title {
	color: #fff !important;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.08;
	font-weight: 800;
	margin: 0 0 20px;
	padding: 0;
}
.mdh-t-hero__title span {
	background: linear-gradient(90deg, var(--mdh-cyan), var(--mdh-mint));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.mdh-t-hero__lead { font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .82); max-width: 540px; margin: 0 0 32px; }

.mdh-t .mdh-t-stats {
	list-style: none;
	margin: 0 0 36px !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.mdh-t-stats li {
	list-style: none;
	margin: 0;
	flex: 1 1 140px;
	padding: 16px 18px;
	border-radius: var(--mdh-radius);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.mdh-t-stats strong {
	display: block;
	font-family: var(--mdh-font-head);
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}
.mdh-t-stats strong em { font-style: normal; }
.mdh-t-stats li:nth-child(3) strong { color: var(--mdh-orange); }
.mdh-t-stats span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); line-height: 1.35; }
.mdh-t-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Carrusel de frases */
.mdh-t-rotator {
	position: relative;
	margin: 0;
	padding: 44px 40px 32px;
	border-radius: 22px;
	background: rgba(255, 255, 255, .96);
	color: var(--mdh-navy-ink);
	box-shadow: 0 30px 60px rgba(4, 22, 42, .45);
}
.mdh-t-rotator::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 23px;
	padding: 2px;
	background: linear-gradient(135deg, var(--mdh-cyan), var(--mdh-mint), var(--mdh-orange));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.mdh-t-rotator__mark { position: absolute; top: -22px; left: 36px; width: 56px; height: 44px; fill: var(--mdh-orange); filter: drop-shadow(0 6px 12px rgba(239, 159, 39, .4)); }
.mdh-t-rotator__slides { display: grid; }
.mdh-t-rotator__slide {
	grid-area: 1 / 1;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: none;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .6s ease, transform .6s ease;
	visibility: hidden;
}
.mdh-t-rotator__slide.is-active { opacity: 1; transform: none; visibility: visible; }
.mdh-t-rotator__slide p {
	font-family: var(--mdh-font-head) !important;
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 600;
	line-height: 1.4;
	color: var(--mdh-navy);
	margin: 0 0 22px;
}
.mdh-t-rotator__slide footer { display: flex; flex-direction: column; gap: 2px; }
.mdh-t-rotator__slide footer strong { font-family: var(--mdh-font-head); color: var(--mdh-navy-ink); }
.mdh-t-rotator__slide footer span { font-family: var(--mdh-font-label); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--mdh-slate); }

.mdh-t-rotator__dots { display: flex; gap: 8px; margin-top: 26px; }
.mdh-t .mdh-t-rotator__dots button {
	width: 10px; height: 10px; padding: 0;
	border-radius: 999px !important;
	background: var(--mdh-border) !important;
	box-shadow: none !important;
	transform: none !important;
	filter: none !important;
	transition: width .3s ease, background .3s ease;
	cursor: pointer;
}
.mdh-t .mdh-t-rotator__dots button[aria-current="true"] { width: 30px; background: var(--mdh-cyan) !important; }

/* ---------- Secciones ---------- */
.mdh-t-section { padding: 96px 0; }
.mdh-t-section--alt { background: var(--mdh-surface); background-image: var(--mdh-grid-light); background-size: 40px 40px; }
.mdh-t-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.mdh-t-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; padding: 0; line-height: 1.2; }
.mdh-t-head p:not(.mdh-t-eyebrow) { color: var(--mdh-muted); font-size: 17px; margin: 0; }

/* Cita desplegable */
.mdh-t-quote { position: relative; }
.mdh-t-quote p { margin: 0 0 12px; line-height: 1.75; }
.mdh-t-quote.is-clamped {
	max-height: 11.5em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 55%, transparent);
	mask-image: linear-gradient(#000 55%, transparent);
}
.mdh-t .mdh-t-more {
	all: unset;
	cursor: pointer;
	margin: 6px 0 22px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--mdh-font-head);
	font-weight: 700;
	font-size: 14px;
	color: var(--mdh-blue);
}
.mdh-t .mdh-t-more:hover { color: var(--mdh-cyan); }
.mdh-t .mdh-t-more:focus-visible { outline: 2px solid var(--mdh-cyan); outline-offset: 3px; border-radius: 4px; }
.mdh-t-more::after { content: "↓"; transition: transform .2s ease; }
.mdh-t-more[aria-expanded="true"]::after { transform: rotate(180deg); }

/* Persona */
.mdh-t-person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.mdh-t-person strong { display: block; font-family: var(--mdh-font-head); color: var(--mdh-navy); font-size: 16px; }
.mdh-t-person span { display: block; font-size: 13px; color: var(--mdh-muted); line-height: 1.4; }
.mdh-t-avatar {
	flex: 0 0 64px;
	width: 64px !important;
	height: 64px !important;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--mdh-cyan), 0 6px 16px rgba(12, 68, 124, .2);
}
.mdh-t-avatar--initials {
	display: grid !important;
	place-items: center;
	font-family: var(--mdh-font-head);
	font-weight: 800;
	font-size: 20px !important;
	color: #fff !important;
	background: linear-gradient(135deg, var(--mdh-orange), #f5b95c);
}

/* Testimonio destacado */
.mdh-t-feature {
	--mdh-fade: #0c447c;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 40px;
	padding: 44px;
	margin-bottom: 32px;
	border-radius: 22px;
	color: rgba(255, 255, 255, .88);
	background: var(--mdh-grid-dark);
	background-size: var(--mdh-grid-dark-size);
	box-shadow: 0 24px 50px rgba(12, 68, 124, .25);
}
.mdh-t-feature__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 10px;
	padding: 24px 12px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .06);
	font-family: var(--mdh-font-label);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 13px;
	line-height: 1.5;
}
.mdh-t-feature__rank {
	font-family: var(--mdh-font-head);
	font-weight: 800;
	font-size: 56px;
	letter-spacing: -.02em;
	line-height: 1;
	color: var(--mdh-orange);
}
.mdh-t-feature .mdh-t-quote p { color: rgba(255, 255, 255, .9); font-size: 16.5px; }
.mdh-t-feature .mdh-t-person strong { color: #fff; }
.mdh-t-feature .mdh-t-person span { color: rgba(255, 255, 255, .7); }
.mdh-t .mdh-t-feature .mdh-t-more { color: var(--mdh-cyan); }
.mdh-t .mdh-t-feature .mdh-t-more:hover { color: #fff; }
.mdh-t-feature__body { display: flex; flex-direction: column; }

/* Tarjetas */
.mdh-t-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.mdh-t-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 34px 32px 30px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--mdh-border);
	box-shadow: var(--mdh-shadow);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mdh-t-card::before {
	content: "“";
	position: absolute;
	top: 6px;
	right: 26px;
	font-family: Georgia, serif;
	font-size: 110px;
	line-height: 1;
	color: rgba(55, 192, 232, .18);
	pointer-events: none;
}
.mdh-t-card:hover { transform: translateY(-6px); box-shadow: var(--mdh-shadow-hover); border-color: rgba(55, 192, 232, .5); }
.mdh-t-card .mdh-t-quote p { color: var(--mdh-text); font-size: 15.5px; }
.mdh-t-pill {
	align-self: flex-start;
	margin-bottom: 18px;
	padding: 5px 14px;
	border-radius: 999px;
	font-family: var(--mdh-font-label);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: 12px;
	color: var(--mdh-navy);
	background: linear-gradient(135deg, rgba(55, 192, 232, .16), rgba(123, 224, 196, .22));
}

/* ---------- Vídeos ---------- */
.mdh-t-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.mdh-t .mdh-t-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px !important;
	border: 1.5px solid var(--mdh-border) !important;
	background: #fff !important;
	color: var(--mdh-navy) !important;
	font-family: var(--mdh-font-head) !important;
	font-weight: 600;
	font-size: 14px;
	box-shadow: none !important;
	transform: none !important;
	filter: none !important;
	cursor: pointer;
	transition: all .2s ease;
}
.mdh-t .mdh-t-chip span {
	min-width: 24px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 12px;
	background: var(--mdh-surface);
	color: var(--mdh-slate);
}
.mdh-t .mdh-t-chip:hover { border-color: var(--mdh-cyan) !important; }
.mdh-t .mdh-t-chip.is-active {
	background: var(--mdh-navy) !important;
	border-color: var(--mdh-navy) !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(12, 68, 124, .25) !important;
}
.mdh-t .mdh-t-chip.is-active span { background: var(--mdh-cyan); color: #fff; }

.mdh-t-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mdh-t .mdh-t-video {
	all: unset;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--mdh-border);
	box-shadow: var(--mdh-shadow);
	transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.mdh-t .mdh-t-video:hover { transform: translateY(-6px); box-shadow: var(--mdh-shadow-hover); }
.mdh-t .mdh-t-video:focus-visible { outline: 3px solid var(--mdh-cyan); outline-offset: 3px; }
.mdh-t .mdh-t-video[hidden] { display: none; }

.mdh-t-video__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--mdh-blue), var(--mdh-navy-deep));
}
.mdh-t-video__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.mdh-t-video[data-vertical] .mdh-t-video__thumb img { object-position: center 30%; }
.mdh-t-video:hover .mdh-t-video__thumb img { transform: scale(1.06); }
.mdh-t-video__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(10, 44, 82, .55));
}
.mdh-t-play {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 8px 24px rgba(4, 22, 42, .35);
	transition: transform .25s ease, background .25s ease;
}
.mdh-t-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -10px 0 0 -6px;
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent var(--mdh-navy);
}
.mdh-t-play::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .6);
	animation: mdh-t-pulse 2.2s ease-out infinite;
}
.mdh-t-video:hover .mdh-t-play { transform: scale(1.1); background: var(--mdh-orange); }
.mdh-t-video:hover .mdh-t-play::before { border-left-color: #fff; }
@keyframes mdh-t-pulse {
	0% { transform: scale(1); opacity: .9; }
	100% { transform: scale(1.45); opacity: 0; }
}
.mdh-t-tag {
	position: absolute;
	z-index: 1;
	top: 12px;
	right: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	font-family: var(--mdh-font-label);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 11px;
	color: #fff;
	background: var(--mdh-orange);
}
.mdh-t-video__meta { display: block; padding: 18px 20px 20px; }
.mdh-t-video__meta strong { display: block; font-family: var(--mdh-font-head); font-size: 17px; color: var(--mdh-navy); margin-bottom: 4px; }
.mdh-t-video__meta span { display: block; font-family: var(--mdh-font-body); font-size: 14px; line-height: 1.45; color: var(--mdh-muted); }

/* Modal */
.mdh-t-modal {
	width: min(960px, 92vw);
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
.mdh-t-modal.is-vertical { width: min(420px, 92vw); }
.mdh-t-modal::backdrop { background: rgba(4, 22, 42, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mdh-t-modal[open] { animation: mdh-t-zoom .3s ease; }
@keyframes mdh-t-zoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.mdh-t-modal__box { position: relative; }
.mdh-t-modal__frame {
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.mdh-t-modal.is-vertical .mdh-t-modal__frame { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; }
.mdh-t-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mdh-t .mdh-t-modal__close {
	position: absolute;
	top: -52px;
	right: 0;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .12) !important;
	border: 1px solid rgba(255, 255, 255, .3) !important;
	color: #fff !important;
	font-size: 26px;
	line-height: 1;
	box-shadow: none !important;
	cursor: pointer;
}
.mdh-t .mdh-t-modal__close:hover { background: var(--mdh-orange) !important; transform: rotate(90deg) !important; }
.mdh-t-modal__yt {
	display: inline-block;
	margin-top: 14px;
	color: rgba(255, 255, 255, .8) !important;
	font-family: var(--mdh-font-head);
	font-weight: 600;
	font-size: 14px;
}
.mdh-t-modal__yt:hover { color: var(--mdh-cyan) !important; }

/* ---------- CTA final ---------- */
.mdh-t-cta {
	position: relative;
	text-align: center;
	padding: 100px 0;
	color: #fff;
	background: var(--mdh-grid-dark);
	background-size: var(--mdh-grid-dark-size);
}
.mdh-t-cta h2 { color: #fff !important; font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 0 0 16px; padding: 0; }
.mdh-t-cta p:not(.mdh-t-eyebrow) { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 620px; margin: 0 auto 34px; }
.mdh-t-cta .mdh-t-hero__actions { justify-content: center; }

/* ---------- Anular el estilo global de <button> de mdh-theme.css ---------- */
.mdh-t .mdh-t-video,
.mdh-t .mdh-t-more {
	color: inherit !important;
	font-family: inherit !important;
	letter-spacing: normal;
	filter: none !important;
}
.mdh-t .mdh-t-video {
	background: #fff !important;
	border: 1px solid var(--mdh-border) !important;
	border-radius: 18px !important;
	text-align: left;
	font-weight: 400;
}
.mdh-t .mdh-t-more {
	background: none !important;
	border: 0 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	transform: none !important;
	color: var(--mdh-blue) !important;
	font-family: var(--mdh-font-head) !important;
}
.mdh-t .mdh-t-more:hover { color: var(--mdh-cyan) !important; }
.mdh-t .mdh-t-feature .mdh-t-more { color: var(--mdh-cyan) !important; }
.mdh-t .mdh-t-feature .mdh-t-more:hover { color: #fff !important; }
.mdh-t-rotator__slide p { font-style: normal; }

/* ---------- Animación de entrada ---------- */
.mdh-t-js [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--mdh-delay, 0s);
}
.mdh-t-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.mdh-t-js [data-reveal] { opacity: 1; transform: none; }
	.mdh-t-play::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.mdh-t-hero__grid { grid-template-columns: 1fr; gap: 64px; }
	.mdh-t-videos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.mdh-t-hero { padding: 64px 0 72px; }
	.mdh-t-section { padding: 64px 0; }
	.mdh-t-cards, .mdh-t-videos { grid-template-columns: 1fr; }
	.mdh-t-feature { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
	.mdh-t-feature__badge { flex-direction: row; justify-content: flex-start; text-align: left; padding: 16px 20px; }
	.mdh-t-feature__rank { font-size: 42px; }
	.mdh-t-card { padding: 28px 22px 24px; }
	.mdh-t-rotator { padding: 40px 24px 26px; }
	.mdh-t-wrap { padding: 0 16px; }
}
