/*
 * Duque's Real Stories — estilos propios del plugin.
 * Identidad del tema DUQUE'S 2050: fondo claro cálido (#f5f3ef), texto azul
 * medianoche (#142338 / #102744), acentos dorados (#805c28 / #e7c88d) y
 * tarjetas blancas, en línea con la sección demo de la V1.2 (.rs-*).
 * Sin frameworks; todo va prefijado con .dqrs- para no chocar con el tema.
 */

/* ---------- Utilidades ---------- */
.dqrs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.dqrs-kicker {
	color: #805c28;
	font-size: 12px;
	letter-spacing: .12em;
	font-weight: 700;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.dqrs-boton {
	display: inline-block;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	border: 0;
	border-radius: 12px;
	padding: 13px 22px;
	background: #102744;
	color: #fff;
	text-decoration: none;
}

.dqrs-boton:hover,
.dqrs-boton:focus-visible {
	background: #17354b;
	outline: 3px solid #e7c88d;
	outline-offset: 2px;
}

/* ---------- Sección pública «Historias reales» ---------- */
.dqrs-section {
	background: #f5f3ef;
	color: #142338;
	padding: 60px 20px;
	scroll-margin-top: 80px;
}

.dqrs-section * {
	box-sizing: border-box;
}

.dqrs-wrap {
	max-width: 1080px;
	margin: auto;
}

.dqrs-section h2 {
	font-size: clamp(28px, 4vw, 42px);
	color: #142338;
	margin: 12px 0;
}

.dqrs-sub {
	color: #455569;
	margin: 0 0 8px;
}

.dqrs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	margin-top: 22px;
}

.dqrs-card {
	background: #fff;
	border: 1px solid #d5d9df;
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 8px 24px rgba(23, 40, 61, .05);
}

.dqrs-historia-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.dqrs-avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #102744;
	color: #e7c88d;
	font-weight: 700;
	overflow: hidden;
}

.dqrs-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dqrs-historia-meta {
	display: grid;
	gap: 2px;
}

.dqrs-nombre {
	color: #142338;
}

.dqrs-estrellas {
	color: #b98a1e;
	font-size: 15px;
	letter-spacing: 2px;
}

.dqrs-texto {
	color: #33475e;
	line-height: 1.6;
}

.dqrs-texto p {
	margin: 0 0 10px;
}

.dqrs-servicio {
	margin-top: 12px;
	font-size: 13px;
	color: #805c28;
	font-weight: 650;
}

/* ---------- Página del formulario ---------- */
.dqrs-form-main {
	background: #f5f3ef;
	color: #142338;
	padding: 48px 20px 64px;
}

.dqrs-form-main * {
	box-sizing: border-box;
}

.dqrs-form-main .dqrs-card {
	max-width: 720px;
	margin: auto;
}

.dqrs-form-main h1 {
	font-size: clamp(26px, 3.5vw, 36px);
	color: #142338;
	margin: 8px 0 12px;
}

.dqrs-form-main p {
	color: #455569;
	line-height: 1.6;
}

.dqrs-aviso {
	background: #fdf6e0;
	border: 1px solid #e7c88d;
	border-radius: 12px;
	padding: 12px 16px;
	color: #5c4718 !important;
}

.dqrs-errores {
	background: #fdeeee;
	border: 1px solid #d99;
	border-radius: 12px;
	padding: 12px 18px;
	margin: 16px 0;
	color: #7a1f1f;
}

.dqrs-errores ul {
	margin: 6px 0 6px 18px;
	padding: 0;
}

.dqrs-form label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
	color: #142338;
}

.dqrs-campo {
	margin: 18px 0;
}

.dqrs-form fieldset.dqrs-campo {
	border: 0;
	padding: 0;
}

.dqrs-form legend {
	font-weight: 600;
	color: #142338;
	margin-bottom: 6px;
	padding: 0;
}

.dqrs-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dqrs-form select,
.dqrs-form textarea {
	width: 100%;
	font: inherit;
	border: 1px solid #8997a5;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
	color: #142338;
}

.dqrs-form input[type="file"] {
	font: inherit;
	color: #142338;
}

.dqrs-form small {
	display: block;
	margin-top: 5px;
	color: #68798c;
	font-weight: 400;
}

.dqrs-check {
	margin: 14px 0;
}

.dqrs-check label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 500;
	line-height: 1.5;
	cursor: pointer;
}

.dqrs-check input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	flex: none;
	accent-color: #102744;
}

.dqrs-privacidad {
	font-size: 14px;
}

/* Estrellas del formulario: radios 5→1 en el DOM + fila invertida. */
.dqrs-stars {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
}

.dqrs-stars input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.dqrs-stars label {
	font-size: 30px;
	line-height: 1;
	color: #c9cfd6;
	cursor: pointer;
	margin: 0;
	padding: 2px;
	position: relative;
}

.dqrs-stars label:hover,
.dqrs-stars label:hover ~ label,
.dqrs-stars input:checked ~ label {
	color: #b98a1e;
}

.dqrs-stars input:focus-visible + label {
	outline: 3px solid #086b67;
	outline-offset: 2px;
	border-radius: 6px;
}

/* Campo trampa antispam: fuera de pantalla, nunca visible. */
.dqrs-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dqrs-gracias h1 {
	color: #245b49;
}

.dqrs-form-main :focus-visible {
	outline: 3px solid #086b67;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.dqrs-section,
	.dqrs-form-main {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ---------- v1.2.0: slider automático «Historias reales» ----------
 * Rediseño aprobado por Adrian (2026-11-28): un testimonio a la vez,
 * desvanecido automático sin controles manuales, nombre bien visible
 * sobre fondo blanco y sello «Testimonio real» por tarjeta.
 * Estas reglas van al final a propósito: prevalecen sobre las de la
 * v1.1.0 sin tocar los estilos del formulario.
 */
.dqrs-section .dqrs-wrap {
	text-align: center;
}

.dqrs-section .dqrs-sub {
	max-width: 720px;
	margin: 0 auto 8px;
	font-size: 17px;
	line-height: 1.6;
}

.dqrs-slider {
	max-width: 780px;
	margin: 28px auto 0;
	text-align: center;
}

.dqrs-slide {
	background: #fff;
	border: 1px solid #e3ddcf;
	border-radius: 24px;
	padding: 34px 40px 30px;
	box-shadow: 0 14px 34px rgba(23, 40, 61, .09);
	margin-bottom: 18px;
}

/* Modo slider (lo enciende dqrs-slider.js agregando .dqrs-js):
   todas las diapositivas ocupan la misma celda y se desvanecen. */
.dqrs-js .dqrs-slides {
	display: grid;
}

.dqrs-js .dqrs-slide {
	grid-area: 1 / 1;
	margin-bottom: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity .8s ease;
}

.dqrs-js .dqrs-slide.dqrs-activa {
	opacity: 1;
	pointer-events: auto;
}

.dqrs-comilla {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 72px;
	line-height: .55;
	height: 34px;
	color: #b98a1e;
}

.dqrs-slide .dqrs-texto {
	font-size: clamp(18px, 2.3vw, 21px);
	line-height: 1.65;
	color: #22344a;
}

.dqrs-slide .dqrs-texto p {
	margin: 0 0 8px;
}

.dqrs-slide .dqrs-estrellas {
	display: block;
	font-size: 20px;
	letter-spacing: 5px;
	margin: 16px 0 2px;
	color: #b98a1e;
}

.dqrs-autor {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 14px;
}

.dqrs-slide .dqrs-avatar {
	width: 56px;
	height: 56px;
	font-size: 19px;
	border: 2px solid #e7c88d;
}

.dqrs-slide .dqrs-nombre {
	font-size: 20px;
	color: #102744;
}

.dqrs-pills {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 16px;
}

.dqrs-pill {
	background: #f7f2e7;
	border: 1px solid #e7c88d;
	color: #805c28;
	border-radius: 999px;
	padding: 5px 13px;
	font-size: 13px;
	font-weight: 650;
}

.dqrs-pill-sello {
	background: #102744;
	border-color: #102744;
	color: #e7c88d;
}

.dqrs-check {
	font-weight: 700;
}

.dqrs-cierre {
	margin: 28px auto 0;
	text-align: center;
	font-size: clamp(17px, 2.2vw, 20px);
	font-weight: 650;
	color: #805c28;
}

@media (max-width: 640px) {
	.dqrs-slide {
		padding: 26px 22px 24px;
	}
}
