/* =========================================================================
 * Reviews for Elementor — FORMATO ENRIQUECIDO («Opiniones de clientes»).
 * Usa el tema neutro existente (variables --cer-*) y añade las suyas --cer-rich-*.
 * Estrellas y modal se reutilizan del CSS base (wc-reviews.css).
 * ========================================================================= */

.cer-rich {
	--cer-rich-accent: #1a1a1a;
	--cer-rich-card-bg: #ffffff;
	--cer-rich-border: #ececec;
	--cer-rich-radius: 16px;
	--cer-rich-bar: var(--cer-rich-accent);
	--cer-rich-tag-bg: #f4f4f5;

	--cer-star: var(--cer-rich-accent);
	--cer-star-empty: #d8d8dc;

	color: var(--cer-text, #2b2620);
}

.cer-rich .cer-heading,
.cer-rich-title {
	margin: 0 0 22px;
	font-size: 26px;
	font-weight: 700;
	color: var(--cer-accent, #1a1a1a);
}

.cer-rich-box,
.cer-rich-card-score,
.cer-rich-card-dist,
.cer-rich-card-badges,
.cer-rich-card {
	background: var(--cer-rich-card-bg);
	border: 1px solid var(--cer-rich-border);
	border-radius: var(--cer-rich-radius);
}

/* ----------------------------- Resumen (3 cajas) ----------------------------- */

.cer-rich-summary {
	display: grid;
	grid-template-columns: 0.9fr 1.6fr 1.05fr;
	gap: 16px;
	margin: 0 0 24px;
	align-items: stretch;
}

.cer-rich-card-score {
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}

.cer-rich-avg {
	display: flex;
	align-items: baseline;
	gap: 4px;
	line-height: 1;
}

:where(.cer-rich-avg-num) { font-size: 52px; font-weight: 800; color: var(--cer-accent, #1a1a1a); }
:where(.cer-rich-avg-max) { font-size: 20px; font-weight: 600; color: #9a958c; }

.cer-rich-stars-lg { --cer-star-size: 22px; }
.cer-rich-stars-sm { --cer-star-size: 14px; }

:where(.cer-rich-based) { font-size: 13px; color: #8a857b; display: inline-flex; align-items: center; gap: 6px; }
.cer-rich-based svg { width: 15px; height: 15px; }
.cer-rich-ishield { color: #1a7f37; }

.cer-rich-card-dist { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }

.cer-rich-dist-row {
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	gap: 12px;
}

/* min-width fijo para que «1 estrella» ocupe lo mismo que «5 estrellas» y las
   estrellas queden alineadas en todas las filas. */
:where(.cer-rich-dist-label) { font-size: 13px; color: #6f6a60; white-space: nowrap; min-width: 6em; display: inline-block; }

.cer-rich-dist-bar {
	height: 8px;
	background: #eee;
	border-radius: 20px;
	overflow: hidden;
}

.cer-rich-dist-bar i {
	display: block;
	height: 100%;
	background: var(--cer-rich-bar);
	border-radius: inherit;
	transition: width .5s ease;
}

:where(.cer-rich-dist-pct) { font-size: 13px; color: #8a857b; min-width: 34px; text-align: right; }

.cer-rich-card-badges { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }

.cer-rich-badge { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: #6f6a60; line-height: 1.4; }
.cer-rich-badge b { color: var(--cer-accent, #1a1a1a); font-size: 15px; }

.cer-rich-badge-ico {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f2f0ff;
	color: #6a5cff;
}
.cer-rich-badge-ico svg { width: 20px; height: 20px; }
.cer-rich-badge-ico--b { background: #eafaf0; color: #1a7f37; }

/* ----------------------------- Controles (pestañas + filtro) ----------------------------- */

.cer-rich-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--cer-rich-border);
	margin: 0 0 20px;
}

.cer-rich-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.cer-rich-tab {
	border: 0;
	background: none;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	color: #8a857b;
	padding: 10px 4px 12px;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.cer-rich-tab:hover,
.cer-rich-tab:focus { color: var(--cer-accent, #1a1a1a); background: none; }
.cer-rich-tab.is-active { color: var(--cer-rich-accent); border-bottom-color: var(--cer-rich-accent); }

.cer-rich-filter { position: relative; margin: 0 0 8px; }

.cer-rich-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--cer-rich-border);
	background: var(--cer-rich-card-bg);
	border-radius: 10px;
	padding: 9px 14px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	color: var(--cer-accent, #1a1a1a);
}
.cer-rich-filter-btn svg { width: 16px; height: 16px; }
.cer-rich-filter-btn:hover,
.cer-rich-filter-btn:focus { background: var(--cer-rich-card-bg); border-color: #d8d8dc; }

.cer-rich-filter-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 20;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--cer-rich-border);
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
	padding: 14px;
}

.cer-rich-filter-menu[hidden] { display: none; }
.cer-rich-filter-group { display: flex; flex-direction: column; gap: 8px; padding: 0 0 12px; }
.cer-rich-filter-group + .cer-rich-filter-group { border-top: 1px solid var(--cer-rich-border); padding-top: 12px; }
.cer-rich-filter-group strong { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #9a958c; }
.cer-rich-filter-menu label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.cer-rich-filter-actions { text-align: right; }
.cer-rich-f-clear { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--cer-rich-accent); text-decoration: underline; }

/* ----------------------------- Cuerpo (lista + sidebar) ----------------------------- */

.cer-rich-main {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	align-items: start;
}

.cer-rich-list { position: relative; transition: opacity .15s; }
/* La disposición (list/grid/carousel) vive en .swiper-wrapper, la pista de las tarjetas. */
.cer-rich-list .swiper-wrapper {
	display: var(--cer-l-display, flex);
	flex-direction: var(--cer-l-dir, column);
	grid-template-columns: var(--cer-l-cols, none);
	gap: 14px;
	overflow-x: var(--cer-l-ovf, visible);
	scroll-snap-type: var(--cer-l-snap, none);
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: var(--cer-l-pb, 0);
	box-sizing: border-box;
}
.cer-rich-list .swiper-wrapper > .cer-rich-card {
	flex: var(--cer-l-cardflex, 0 1 auto);
	scroll-snap-align: var(--cer-l-cardsnap, none);
}
/* Con Swiper activo, cede el control del layout a Swiper (sin scroll propio y sin flex-basis
   propio: Swiper fija el ancho de cada diapositiva según «tarjetas por vista»). */
.cer-swiper-on .swiper-wrapper { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.cer-swiper-on .swiper-wrapper > .cer-rich-card { flex: 0 0 auto; scroll-snap-align: none; }
/* Puntos (paginación Swiper): solo cuando el carrusel está activo. */
.cer-swiper-dots { display: none; text-align: center; margin-top: 12px; }
.cer-rich-list.cer-swiper-on ~ .cer-swiper-dots { display: block; }
.cer-swiper-dots .swiper-pagination-bullet-active { background: var(--cer-accent, #1a1a1a); }
.cer-rich-list.is-loading { opacity: .5; pointer-events: none; }

:where(.cer-rich-empty) { color: #8a857b; font-size: 15px; padding: 24px 0; }

/* Tarjeta de reseña */
.cer-rich-card { padding: 20px 22px; display: flex; gap: 14px; }

.cer-rich-card-avatar {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}

.cer-rich-card-main { min-width: 0; flex: 1; }

.cer-rich-card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
:where(.cer-rich-card-title) { font-weight: 700; font-size: 15px; color: var(--cer-accent, #1a1a1a); }

.cer-rich-card-meta { font-size: 13px; color: #9a958c; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cer-rich-card-by { color: #6f6a60; }
.cer-rich-verif { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.cer-rich-verif svg { width: 15px; height: 15px; }
/* Compra verificada: insignia «mejor» (verde). */
.cer-badge-verified { color: var(--cer-badge-verified-color, #12813f); background: var(--cer-badge-verified-bg, #e7f6ec); }
/* Cuenta registrada: insignia distinta (azul). */
.cer-badge-registered { color: var(--cer-badge-registered-color, #2e6fd6); background: var(--cer-badge-registered-bg, #eaf1fd); }
.cer-rich-dot { color: #cfccc4; }

:where(.cer-rich-card-body) { font-size: 14px; line-height: 1.6; color: #5f5a50; margin: 0; overflow-wrap: anywhere; }

.cer-rich-card-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }

.cer-rich-thumb {
	border: 0;
	padding: 0;
	cursor: pointer;
	border-radius: 10px;
	overflow: hidden;
	width: 72px;
	height: 72px;
	background: #f2f0ec;
}
.cer-rich-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cer-rich-thumb:hover img { opacity: .9; }

.cer-rich-card-foot { margin: 12px 0 0; }

.cer-rich-helpful {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: none;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	color: #8a857b;
	padding: 0;
}
.cer-rich-helpful svg { width: 16px; height: 16px; }
.cer-rich-helpful:hover,
.cer-rich-helpful:focus { color: var(--cer-accent, #1a1a1a); background: none; }
.cer-rich-helpful .cer-helpful-n { font-weight: 700; color: var(--cer-accent, #1a1a1a); }

.cer-rich-more-wrap { text-align: center; margin: 20px 0 0; }
.cer-rich-more {
	border: 1px solid var(--cer-rich-border);
	background: var(--cer-rich-card-bg);
	border-radius: 10px;
	padding: 12px 26px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	color: var(--cer-accent, #1a1a1a);
}
.cer-rich-more:hover,
.cer-rich-more:focus { border-color: #cfccc4; background: var(--cer-rich-card-bg); }

/* ----------------------------- Sidebar ----------------------------- */

.cer-rich-sidebar { display: flex; flex-direction: column; gap: 16px; }
.cer-rich-box { padding: 18px 20px; }
.cer-rich-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-weight: 700; font-size: 15px; color: var(--cer-accent, #1a1a1a); }

.cer-rich-seeall:not(.cer-rich-seeall-tile) { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: #2e7cf6; }
.cer-rich-seeall:not(.cer-rich-seeall-tile):hover,
.cer-rich-seeall:not(.cer-rich-seeall-tile):focus { text-decoration: underline; background: none; }

.cer-rich-photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cer-rich-photos-grid .cer-rich-thumb { width: 100%; height: 74px; }

/* Celda «Ver todas las fotos» (formato tile): icono + texto centrados. */
.cer-rich-seeall-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 74px;
	border: 1px solid var(--cer-rich-border, #e6eefc);
	border-radius: 10px;
	background: #eef4ff;
	color: #2e7cf6;
	cursor: pointer;
	font: inherit;
	text-align: center;
	padding: 6px;
	transition: background .15s, transform .15s;
}
.cer-rich-seeall-tile:hover,
.cer-rich-seeall-tile:focus { background: #e2edff; }
.cer-rich-seeall-ico { display: inline-flex; }
.cer-rich-seeall-ico svg { width: var(--cer-seeall-ico, 26px); height: var(--cer-seeall-ico, 26px); }
.cer-rich-seeall-ico i { font-size: var(--cer-seeall-ico, 26px); line-height: 1; }
.cer-rich-seeall-txt { font-size: 12px; font-weight: 600; line-height: 1.2; }

.cer-rich-aspects-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cer-rich-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--cer-rich-tag-bg);
	border-radius: 20px;
	padding: 6px 12px;
	font-size: 13px;
	color: #5f5a50;
}
.cer-rich-tag b { color: var(--cer-accent, #1a1a1a); }

.cer-rich-ai { background: #f3f6ff; border-color: #e2e9ff; }
.cer-rich-ai-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #3b5bdb; margin: 0 0 8px; }
.cer-rich-ai-head svg { width: 18px; height: 18px; }
:where(.cer-rich-ai-text) { font-size: 14px; line-height: 1.55; color: #4b5563; margin: 0; }

.cer-rich-actions { display: flex; justify-content: var(--cer-btn-just, center); margin: 24px 0 0; }

/* ----------------------------- Lightbox de fotos ----------------------------- */

.cer-lb[hidden] { display: none; }
.cer-lb {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 56px;
}
.cer-lb-overlay { position: absolute; inset: 0; background: rgba(15, 15, 18, .86); }
.cer-lb-stage { position: relative; z-index: 1; margin: 0; max-width: 92vw; max-height: 86vh; }
.cer-lb-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; display: block; }

.cer-lb-close,
.cer-lb-prev,
.cer-lb-next {
	position: absolute;
	z-index: 2;
	border: 0;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.cer-lb-close svg, .cer-lb-prev svg, .cer-lb-next svg { width: 22px; height: 22px; }
.cer-lb-close { top: 18px; right: 18px; }
.cer-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.cer-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.cer-lb-close:hover, .cer-lb-prev:hover, .cer-lb-next:hover { background: rgba(255, 255, 255, .24); }

/* ----------------------------- Uploader del formulario ----------------------------- */

.cer-upload {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px dashed #d8d3c6;
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	color: #7a7468;
	font-size: 14px;
}
.cer-upload:hover { border-color: var(--cer-accent, #1a1a1a); color: var(--cer-accent, #1a1a1a); }
.cer-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cer-upload-ico svg { width: 22px; height: 22px; display: block; }

.cer-upload-previews { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
/* Sin overflow:hidden en el contenedor (recortaba el botón X); redondeamos la imagen. */
.cer-upload-prev { position: relative; width: 66px; height: 66px; }
.cer-upload-prev img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.cer-upload-rm {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	transition: background .15s, transform .15s;
}
.cer-upload-rm:hover,
.cer-upload-rm:focus { background: #e0245e; transform: scale(1.08); }

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 1024px) {
	.cer-rich-summary { grid-template-columns: 1fr 1fr; }
	.cer-rich-card-badges { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
	.cer-rich-badge { flex: 1 1 220px; }
	.cer-rich-main { grid-template-columns: 1fr; }
	.cer-rich-sidebar { flex-direction: row; flex-wrap: wrap; }
	.cer-rich-sidebar > * { flex: 1 1 240px; }
}

@media (max-width: 680px) {
	.cer-rich .cer-heading, .cer-rich-title { font-size: 22px; }
	.cer-rich-summary { grid-template-columns: 1fr; }
	.cer-rich-card-badges { flex-direction: column; }
	.cer-rich-controls { flex-direction: column; align-items: stretch; }
	.cer-rich-tabs { overflow-x: auto; }
	.cer-rich-filter { align-self: flex-end; }
	.cer-rich-sidebar { flex-direction: column; }
	.cer-rich-card { flex-direction: column; }
	.cer-rich-card-avatar { width: 40px; height: 40px; }
	.cer-lb { padding: 16px; }
	.cer-lb-prev { left: 6px; }
	.cer-lb-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.cer-rich-dist-bar i, .cer-rich-list { transition: none; }
}

/* =========================================================================
 * FORMATO MODULAR (repetidor de módulos)
 * ========================================================================= */

.cer-mods {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cer-mods-gap, 20px);
	align-items: stretch;
}

.cer-mod { min-width: 0; }

/* Módulos que son "caja" por defecto (la lista, encabezado, barra y botón NO). */
.cer-modular .cer-mod-score,
.cer-modular .cer-mod-histogram,
.cer-modular .cer-mod-highlights,
.cer-modular .cer-mod-recommend,
.cer-modular .cer-mod-summary,
.cer-modular .cer-mod-photos {
	background: var(--cer-rich-card-bg, #fff);
	border: 1px solid var(--cer-rich-border, #ececec);
	border-radius: var(--cer-rich-radius, 16px);
	padding: 20px 22px;
}

/* Dentro del modular, los bloques internos no repiten borde/fondo (lo lleva .cer-mod). */
.cer-modular .cer-rich-card-score,
.cer-modular .cer-rich-card-dist,
.cer-modular .cer-rich-box {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.cer-mod-heading { align-self: center; }
.cer-mod-heading .cer-heading { margin: 0; }
.cer-mod-button .cer-rich-actions { margin: 0; }

/* Visibilidad por dispositivo (repetidor). */
@media (min-width: 1025px) { .cer-hide-d { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .cer-hide-t { display: none !important; } }
@media (max-width: 767px) { .cer-hide-m { display: none !important; } }

/* Etiqueta cualitativa + encabezado de la nota. */
:where(.cer-rich-score-cap) { font-size: 13px; color: #8a857b; text-transform: none; }
:where(.cer-rich-score-label) { font-size: 18px; font-weight: 700; color: var(--cer-accent, #1a1a1a); }

/* Pestañas con número. */
.cer-rich-tab-n { color: #b6b1a6; font-weight: 600; }
.cer-rich-tab.is-active .cer-rich-tab-n { color: var(--cer-rich-accent); }

/* "¿Te fue útil? Sí/No" */
.cer-rich-foot-yn {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #8a857b;
}
.cer-rich-hcount { display: inline-flex; align-items: center; gap: 5px; }
.cer-rich-hcount svg { width: 16px; height: 16px; }
.cer-rich-hcount .cer-helpful-n { font-weight: 700; color: var(--cer-accent, #1a1a1a); }
.cer-rich-hq { color: #6f6a60; }
.cer-hvote {
	border: 1px solid var(--cer-rich-border, #e2e2e2);
	background: none;
	border-radius: 8px;
	padding: 5px 14px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	color: var(--cer-accent, #1a1a1a);
}
.cer-hvote:hover,
.cer-hvote:focus { background: #f4f4f5; }
.cer-hvote.is-on { background: var(--cer-rich-accent); color: #fff; border-color: var(--cer-rich-accent); }
.cer-rich-hdate { margin-left: auto; }

/* Lo más destacado (aspectos con %). */
.cer-rich-hl-list { display: flex; flex-direction: column; gap: 16px; }
.cer-rich-hl { display: flex; align-items: center; gap: 12px; }
.cer-rich-hl-emoji {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--cer-rich-tag-bg, #f4f4f5);
	font-size: 18px;
}
.cer-rich-hl-svg svg { width: 20px; height: 20px; color: #6a5cff; }
.cer-rich-hl-main { display: flex; flex-direction: column; min-width: 0; }
.cer-rich-hl-main b { font-size: 14px; color: var(--cer-accent, #1a1a1a); }
.cer-rich-hl-main small { font-size: 12px; color: #8a857b; }
.cer-rich-hl-summary {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--cer-rich-border, #ececec);
	font-size: 13px;
	color: #3b5bdb;
}
.cer-rich-hl-summary svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }

/* Recomiendan: anillo + avatares. */
.cer-rich-recommend { display: flex; align-items: center; gap: 18px; }
.cer-rich-ring { position: relative; width: 84px; height: 84px; flex: 0 0 auto; }
.cer-rich-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cer-rich-ring-track { fill: none; stroke: #eceaf6; stroke-width: 6; }
.cer-rich-ring-bar { fill: none; stroke: var(--cer-rich-accent); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.cer-rich-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--cer-accent, #1a1a1a); }
.cer-rich-rec-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cer-rich-rec-main b { font-size: 15px; color: var(--cer-accent, #1a1a1a); line-height: 1.35; }
.cer-rich-rec-main small { font-size: 12px; color: #8a857b; }
.cer-rich-avstack { display: flex; align-items: center; margin: 6px 0 0; }
.cer-rich-avstack .cer-rich-card-avatar { width: 30px; height: 30px; font-size: 12px; margin-left: -8px; border: 2px solid #fff; }
.cer-rich-avstack .cer-rich-card-avatar:first-child { margin-left: 0; }
.cer-rich-avmore { margin-left: -8px; width: 30px; height: 30px; border-radius: 50%; background: #6a5cff; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* Barra de confianza. */
.cer-rich-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	padding: 18px 4px;
	border-top: 1px solid var(--cer-rich-border, #ececec);
}
.cer-rich-trust-item { display: flex; align-items: center; gap: 10px; flex: 1 1 180px; }
.cer-rich-trust-ico { flex: 0 0 auto; color: var(--cer-accent, #1a1a1a); opacity: .8; }
.cer-rich-trust-ico svg, .cer-rich-trust-ico i { width: 22px; height: 22px; font-size: 22px; }
.cer-rich-trust-txt { display: flex; flex-direction: column; }
.cer-rich-trust-txt b { font-size: 13px; color: var(--cer-accent, #1a1a1a); }
.cer-rich-trust-txt small { font-size: 12px; color: #8a857b; }

/* Disposición de la lista (list / grid / carousel) por variables → la controla
   una sola opción responsive, así se puede elegir carrusel solo en móvil, etc. */
.cer-rich-list-col { position: relative; }

/* Flechas del carrusel: se muestran solo donde el modo es carrusel (--cer-l-nav). */
.cer-rich-cnav {
	display: var(--cer-l-nav, none);
	position: absolute;
	top: 42%;
	transform: translateY(-50%) scale(1);
	z-index: 3;
	width: var(--cer-cnav-size, 40px);
	height: var(--cer-cnav-size, 40px);
	border-radius: var(--cer-cnav-radius, 50%);
	border: 1px solid var(--cer-rich-border, #e2e2e2);
	background: var(--cer-cnav-bg, #fff);
	color: var(--cer-cnav-color, var(--cer-accent, #1a1a1a));
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
	transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.cer-rich-cnav svg,
.cer-rich-cnav i { width: var(--cer-cnav-isize, 20px); height: var(--cer-cnav-isize, 20px); font-size: var(--cer-cnav-isize, 20px); }
.cer-rich-cprev { left: var(--cer-cnav-off, 8px); }
.cer-rich-cnext { right: var(--cer-cnav-off, 8px); }
.cer-rich-cnav:hover,
.cer-rich-cnav:focus {
	background: var(--cer-cnav-bg-h, #f4f4f5);
	color: var(--cer-cnav-color-h, var(--cer-cnav-color, var(--cer-accent, #1a1a1a)));
	transform: translateY(-50%) scale(var(--cer-cnav-scale-h, 1));
}

@media (max-width: 767px) {
	.cer-rich-recommend { flex-direction: column; align-items: flex-start; }
	.cer-rich-trust { flex-direction: column; }
}
