/**
 * Cita que se revela con el scroll.
 *
 * Diseño de la captura de Revby: fondo blanco, etiqueta #183132, título
 * #3B614E, barra #6EE7B1 y cita de #9F9F9F a oscuro.
 */

.rvb-cita.rvb-cita {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 40px);
	overflow: visible;
	background: var(--rvb-cita-bg, #fff);
	color: #282827;
	font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.rvb-cita .rvb-cita__wrap {
	max-width: 1180px;
	margin: 0 auto;
}

.rvb-cita .rvb-cita__eyebrow {
	margin: 0 0 clamp(14px, 1.8vw, 22px);
	padding: 0;
	font-family: 'Raleway', 'Segoe UI', sans-serif;
	font-size: clamp(0.9375rem, 1.2vw, 1rem);
	font-weight: 500;
	line-height: 1.4;
	color: #183132;
}

.rvb-cita .rvb-cita__title {
	/* ~51 caracteres por línea, como en la captura */
	max-width: 25.5em;
	margin: 0;
	padding: 0;
	font-family: 'Raleway', 'Segoe UI', sans-serif;
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 700;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-transform: none;
	color: #3b614e;
}

/* ---------- Cita ---------- */

.rvb-cita .rvb-cita__figura {
	position: relative;
	margin: clamp(32px, 4.4vw, 56px) 0 0;
	padding: 0 0 0 clamp(28px, 3.6vw, 42px);
}

/* Sin título (p. ej. testimonio): la cita va más cerca de la etiqueta */
.rvb-cita .rvb-cita__eyebrow + .rvb-cita__figura {
	margin-top: clamp(16px, 2vw, 26px);
}

.rvb-cita .rvb-cita__barra {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 8px;
	border-radius: 2px;
	background: var(--rvb-cita-barra, #6ee7b1);
	transform-origin: top;
}

.rvb-cita .rvb-cita__texto {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
}

.rvb-cita .rvb-cita__texto::before,
.rvb-cita .rvb-cita__texto::after {
	content: none;
}

.rvb-cita .rvb-cita__texto p {
	/* Medido sobre las dos capturas (Insight y testimonio): entre 30.24em y 30.71em
	   las líneas se parten igual que en el diseño. */
	max-width: 30.5em;
	margin: 0;
	padding: 0;
	font-family: 'Raleway', 'Segoe UI', sans-serif;
	font-size: clamp(1.25rem, 2.1vw, 1.75rem);
	font-weight: 500;
	font-style: normal;
	line-height: 1.45;
	letter-spacing: -0.005em;
	color: var(--rvb-cita-on, #111);
}

/* Cita grande (testimonio): con el mismo ancho en em, las líneas se parten
   igual pero llenan más el espacio (~1098 px de 1138 a 36 px). */
.rvb-cita.rvb-cita--grande .rvb-cita__texto p {
	font-size: clamp(1.375rem, 2.8vw, 2.25rem);
}

/*
 * Cada palabra: degradado mitad oscuro / mitad gris al 200 %, recortado al
 * texto. En 0 % se ve oscura (estado final, también sin animación); con
 * animación empieza en 100 % (gris) y view.js la lleva a 0 %.
 */
.rvb-cita .rvb-cita__w {
	display: inline-block;
	color: transparent;
	background-image: linear-gradient(to right, var(--rvb-cita-on, #111) 50%, var(--rvb-cita-off, #9f9f9f) 50%);
	background-size: 200% 100%;
	background-position: 0% 0;
	-webkit-background-clip: text;
	background-clip: text;
}

html.rvb-motion .rvb-cita .rvb-cita__w {
	background-position: 100% 0;
}

.rvb-cita .rvb-cita__autor {
	margin: clamp(16px, 2vw, 24px) 0 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #183132;
}

/* Editor: la cita se ve ya revelada */
.editor-styles-wrapper .rvb-cita .rvb-cita__w {
	background-position: 0% 0;
}
