/* ENA Opiniones en la portada — [ena_opiniones_home] */
.ena-oh {
	--ena-oh-accent: #83a729;
	--ena-oh-accent-dark: #5f7d1a;
	--ena-oh-star: #f9b233;
	--ena-oh-star-off: #dcdcd4;
	--ena-oh-text: #292823;
	--ena-oh-muted: #6b6a62;
	--ena-oh-card: #ffffff;
	--ena-oh-border: #e6e6df;

	box-sizing: border-box;
	width: 100%;
	color: var(--ena-oh-text);
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}
.ena-oh *, .ena-oh *::before, .ena-oh *::after { box-sizing: border-box; }

/* Recuadro con desplazamiento vertical y barra visible a la derecha (alto="0" lo desactiva). */
.ena-oh--scroll {
	overflow-y: auto;
	overscroll-behavior: auto;
	padding: 20px 14px 20px 20px;
	border: 1px solid var(--ena-oh-border);
	border-radius: 14px;
	background: #fafbf6;
	scrollbar-gutter: stable;
	scrollbar-width: auto;
	scrollbar-color: var(--ena-oh-accent) #e9eddf;
}
.ena-oh--scroll::-webkit-scrollbar { width: 12px; }
.ena-oh--scroll::-webkit-scrollbar-track { background: #e9eddf; border-radius: 99px; }
.ena-oh--scroll::-webkit-scrollbar-thumb { background: var(--ena-oh-accent); border-radius: 99px; border: 2px solid #e9eddf; }
.ena-oh--scroll::-webkit-scrollbar-thumb:hover { background: var(--ena-oh-accent-dark); }

.ena-oh__total { margin: 0 0 20px; font-size: .9em; color: var(--ena-oh-muted); }

.ena-oh__course { margin: 0 0 36px; }
.ena-oh__course:last-child { margin-bottom: 8px; }

.ena-oh__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	margin: 0 0 12px;
}
.ena-oh__title {
	flex: 1 1 100%;
	margin: 0;
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	color: var(--ena-oh-text);
}
.ena-oh__title a { color: inherit; text-decoration: none; }
.ena-oh__title a:hover, .ena-oh__title a:focus-visible { color: var(--ena-oh-accent-dark); text-decoration: underline; }

.ena-oh__summary {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: .92em;
	color: var(--ena-oh-muted);
}
.ena-oh__summary strong { color: var(--ena-oh-text); }

.ena-oh__nav { display: flex; gap: 6px; margin-left: auto; }
.ena-oh__nav[hidden] { display: none; }
.ena-oh button.ena-oh__btn {
	width: 36px;
	min-width: 0;
	box-shadow: none;
	text-transform: none;
	height: 36px;
	padding: 0;
	border: 1px solid var(--ena-oh-border);
	border-radius: 50%;
	background: #fff;
	color: var(--ena-oh-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, border-color .15s, opacity .15s;
}
.ena-oh button.ena-oh__btn:hover:not([disabled]), .ena-oh button.ena-oh__btn:focus-visible { border-color: var(--ena-oh-accent); background: var(--ena-oh-accent); color: #fff; }
.ena-oh button.ena-oh__btn[disabled] { background: #fff; border-color: var(--ena-oh-border); color: var(--ena-oh-text); opacity: .35; cursor: default; }

/* Estrellas: base gris y relleno dorado recortado según el puntaje. */
.ena-oh__stars {
	position: relative;
	display: inline-block;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
	color: var(--ena-oh-star-off);
}
.ena-oh__stars::before { content: "★★★★★"; }
.ena-oh__stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--ena-oh-star);
}
.ena-oh__stars-fill::before { content: "★★★★★"; }

/* Fila de tarjetas con desplazamiento horizontal. */
.ena-oh__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 4px 2px 14px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.ena-oh__track:focus-visible { outline: 2px solid var(--ena-oh-accent); outline-offset: 2px; border-radius: 12px; }

.ena-oh__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 min(320px, 85%);
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--ena-oh-border);
	border-radius: 12px;
	background: var(--ena-oh-card);
	box-shadow: 0 1px 3px rgba(41, 40, 35, .06);
	scroll-snap-align: start;
}
.ena-oh__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
	font-size: .95em;
}
.ena-oh__text p { margin: 0 0 .6em; }
.ena-oh__text p:last-child { margin-bottom: 0; }
.ena-oh__card.is-open .ena-oh__text { display: block; -webkit-line-clamp: unset; overflow: visible; }

.ena-oh button.ena-oh__more {
	min-width: 0;
	height: auto;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.4;
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ena-oh-accent-dark);
	font-size: .88em;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.ena-oh__more[hidden] { display: none; }

.ena-oh__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--ena-oh-border);
	font-size: .85em;
	color: var(--ena-oh-muted);
}
.ena-oh__meta strong { color: var(--ena-oh-text); }
.ena-oh__badge {
	padding: 1px 8px;
	border-radius: 99px;
	background: #eef4df;
	color: var(--ena-oh-accent-dark);
	font-size: .9em;
	font-weight: 600;
}
.ena-oh__meta time { margin-left: auto; }

.ena-oh__card--all {
	align-items: center;
	justify-content: center;
	flex-basis: min(220px, 60%);
	background: #f6f8ef;
}
.ena-oh__card--all a { color: var(--ena-oh-accent-dark); font-weight: 600; text-decoration: none; }

.ena-oh__link {
	display: inline-block;
	margin-top: 2px;
	color: var(--ena-oh-accent-dark);
	font-size: .9em;
	font-weight: 600;
	text-decoration: none;
}
.ena-oh__link:hover, .ena-oh__link:focus-visible { text-decoration: underline; }

@media (min-width: 768px) {
	.ena-oh__title { flex: 0 1 auto; }
	.ena-oh__summary { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.ena-oh__track { scroll-behavior: auto; }
}

/* diseno="fila": una sola fila con todas las opiniones. */
.ena-oh--fila .ena-oh__head { margin-bottom: 14px; }
.ena-oh--fila .ena-oh__total { margin: 0; }
.ena-oh__card-course {
	font-size: .82em;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ena-oh-accent-dark);
	text-decoration: none;
}
.ena-oh__card-course:hover, .ena-oh__card-course:focus-visible { text-decoration: underline; }
