/* Reseñas — estilo editorial en color de marca. Tema hijo de Flatsome. */

:root {
	--dp-marca: #a62053;
	--dp-crema: #faf6ee;
	--dp-tinta: #1a1612;
	--dp-suave: #7a7469;
}

/* --- Valoración media bajo el título del producto --- */
.dp-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 14px;
}
.dp-stars { display: block; flex: none; }
.dp-rating-num {
	font-size: 16px;
	font-weight: 600;
	color: var(--dp-tinta);
	line-height: 1;
}
.dp-rating-link {
	font-size: 13px;
	color: var(--dp-suave);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.dp-rating-link:hover { color: var(--dp-marca); }

/* --- Sección de reseñas --- */
#reviews {
	background: var(--dp-crema);
	border-radius: 14px;
	padding: 56px 28px;
	margin-top: 24px;
}
#reviews .woocommerce-Reviews-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 5vw, 38px);
	font-weight: 400;
	color: var(--dp-tinta);
	text-align: center;
	margin: 0 0 34px;
}
#reviews .woocommerce-Reviews-title::before {
	content: "Quienes ya compraron";
	display: block;
	font-family: inherit;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dp-marca);
	margin-bottom: 12px;
}
#reviews .commentlist { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }

/* --- Tarjeta de reseña --- */
.dp-review { list-style: none; margin: 0 0 16px; }
.dp-review-card {
	background: #fff;
	border: 1px solid rgba(166, 32, 83, 0.20);
	border-radius: 12px;
	padding: 24px 26px;
	box-shadow: 0 4px 24px rgba(26, 22, 18, 0.05);
}
.dp-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dp-review-avatar {
	width: 38px; height: 38px;
	flex: none;
	border-radius: 50%;
	background: #f9e7ef;
	color: #a62053;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 600;
}
.dp-review-who { display: flex; flex-direction: column; min-width: 0; }
.dp-review-author { font-size: 15px; font-weight: 600; color: var(--dp-tinta); }
.dp-review-verified { font-size: 12px; color: #2e7d52; }
.dp-review-verified::before { content: "✓ "; }
.dp-review-stars { margin-left: auto; color: var(--dp-marca); font-size: 15px; letter-spacing: 2px; white-space: nowrap; }
.dp-review-body p { font-size: 15px; line-height: 1.7; color: #4a453d; margin: 0 0 8px; }
.dp-review-date { font-size: 12px; color: var(--dp-suave); }

/* --- Formulario --- */
#reviews #review_form_wrapper { max-width: 640px; margin: 28px auto 0; }
#reviews #respond {
	background: #fff;
	border: 1px solid rgba(166, 32, 83, 0.20);
	border-radius: 12px;
	padding: 24px 26px;
}
#reviews .comment-reply-title { font-size: 17px; color: var(--dp-tinta); }
#reviews .must-log-in { font-size: 15px; color: var(--dp-suave); margin: 0; }
#reviews .must-log-in a { color: var(--dp-marca); text-decoration: underline; }
#reviews .woocommerce-noreviews { text-align: center; color: var(--dp-suave); }

/* --- Estrellas en cuadrículas y portada --- */
.star-rating span::before,
.star-rating::before,
.woocommerce .star-rating span::before { color: var(--dp-marca); }

@media only screen and (max-width: 48em) {
	#reviews { padding: 40px 16px; border-radius: 10px; }
	.dp-review-card { padding: 20px 18px; }
	.dp-review-stars { margin-left: 0; width: 100%; }
	.dp-review-head { flex-wrap: wrap; }
}

/* --- Resumen de valoraciones dentro de la sección --- */
.dp-res-titulo { display: block; }
.dp-res-resumen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 30px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(166, 32, 83, 0.15);
}
.dp-res-izq { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.dp-res-nota { font-size: 44px; line-height: 1; color: var(--dp-tinta); }
.dp-res-total {
	font-family: inherit;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--dp-suave);
}
.dp-res-barras { display: flex; flex-direction: column; gap: 7px; min-width: 230px; }
.dp-res-fila { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--dp-suave); }
.dp-res-et { width: 12px; text-align: right; }
.dp-res-et::after { content: "★"; color: var(--dp-marca); margin-left: 3px; }
.dp-res-track { flex: 1; height: 7px; background: #ece7de; border-radius: 4px; overflow: hidden; }
.dp-res-fill { display: block; height: 100%; background: var(--dp-marca); border-radius: 4px; }
.dp-res-n { width: 24px; text-align: left; }

@media only screen and (max-width: 48em) {
	.dp-res-resumen { gap: 20px; }
	.dp-res-nota { font-size: 36px; }
	.dp-res-barras { min-width: 200px; width: 100%; }
}

/* --- Prueba social mientras el producto no tiene reseñas --- */
.dp-ventas {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 14px;
	padding: 5px 12px;
	background: #f9e7ef;
	border-radius: 20px;
	font-size: 13px;
	color: #a62053;
}
.dp-ventas-icono { font-size: 12px; line-height: 1; }
