/**
 * Tarjetas apiladas con progreso.
 *
 * Diseño: captura de Revby (colores del Kit: #183132, #E3FCEF, #282827).
 * Efecto: nikolaradeski.com (sticky con escalón de 10 px, inclinación de ±1°
 * y, al pasar el ratón, se endereza y crece un 3 %).
 */

.rvb-stack.rvb-stack {
	--rvb-stack-top: 24px;
	--rvb-stack-paso: 10px;
	--rvb-stack-gap: 24px;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 40px);
	/* Sin overflow: anularía el sticky. */
	overflow: visible;
	background: var(--rvb-stack-bg, #fafafa);
	color: #282827;
	font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.rvb-stack .rvb-stack__lista {
	max-width: 1180px;
	margin: 0 auto;
}

.rvb-stack .rvb-stack__marca {
	height: 0;
}

/* ---------- Tarjeta ---------- */

.rvb-stack .rvb-stack__card {
	--rvb-x: 0px;
	--rvb-rot: 0deg;
	position: sticky;
	top: calc(var(--rvb-header, 0px) + var(--rvb-stack-top) + var(--i, 0) * var(--rvb-stack-paso));
	z-index: calc(var(--i, 0) + 1);
	box-sizing: border-box;
	margin: 0 0 var(--rvb-stack-gap);
	padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3.4vw, 40px) clamp(24px, 3vw, 36px);
	border: 1px solid #ebeff1;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 50px -28px rgb(24 49 50 / 0.28);
	transform: translateX(var(--rvb-x)) rotate(var(--rvb-rot));
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rvb-stack .rvb-stack__card:last-child {
	margin-bottom: 0;
}

/* Más alta que la pantalla: no se fija, para que se pueda leer entera. */
.rvb-stack .rvb-stack__card.is-libre {
	position: relative;
	top: auto;
}

/* Inclinación de la referencia, repetida cada 4 tarjetas. */
.rvb-stack--tilt .rvb-stack__card:nth-of-type(4n+1) { --rvb-x: 5px; --rvb-rot: -1deg; }
.rvb-stack--tilt .rvb-stack__card:nth-of-type(4n+2) { --rvb-x: -5px; --rvb-rot: 1deg; }
.rvb-stack--tilt .rvb-stack__card:nth-of-type(4n+3) { --rvb-x: -5px; --rvb-rot: -1deg; }
.rvb-stack--tilt .rvb-stack__card:nth-of-type(4n+4) { --rvb-x: 5px; --rvb-rot: 1deg; }

@media (hover: hover) {
	.rvb-stack--hover .rvb-stack__card:hover {
		transform: scale(1.03);
		box-shadow: 0 24px 60px -26px rgb(24 49 50 / 0.34);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rvb-stack .rvb-stack__card {
		transition: none;
	}
}

.rvb-stack .rvb-stack__card--menta {
	border-color: #ebeff1;
	background: #e3fcef;
}

.rvb-stack .rvb-stack__card--oscuro {
	border-color: #183132;
	background: #183132;
	color: #fff;
}

/* ---------- Número y barra ---------- */

.rvb-stack .rvb-stack__meta {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 30px);
	margin: 0 0 clamp(22px, 3vw, 40px);
}

.rvb-stack .rvb-stack__num {
	flex: none;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #282827;
}

.rvb-stack .rvb-stack__barra {
	position: relative;
	flex: none;
	width: min(312px, 45%);
	height: 4px;
	border-radius: 2px;
	background: #b6b6b6;
	overflow: hidden;
}

.rvb-stack .rvb-stack__relleno {
	position: absolute;
	top: 0;
	bottom: 0;
	background: #183132;
	transform-origin: left center;
}

.rvb-stack .rvb-stack__card--oscuro .rvb-stack__num {
	color: #fff;
}

.rvb-stack .rvb-stack__card--oscuro .rvb-stack__barra {
	background: #497779;
}

.rvb-stack .rvb-stack__card--oscuro .rvb-stack__relleno {
	background: linear-gradient(90deg, #1fc170, #21f185);
}

/* ---------- Textos ---------- */

.rvb-stack .rvb-stack__eyebrow {
	margin: 0 0 clamp(12px, 1.6vw, 18px);
	padding: 0;
	font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif;
	font-size: clamp(0.9375rem, 1.3vw, 1rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: #000;
}

.rvb-stack .rvb-stack__title {
	margin: 0 0 clamp(18px, 2.4vw, 28px);
	padding: 0;
	max-width: 24em;
	font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif;
	font-size: clamp(1.75rem, 3.4vw, 2.75rem);
	font-weight: 800;
	font-style: normal;
	line-height: 1.15;
	letter-spacing: -0.005em;
	text-transform: none;
	color: #183132;
	overflow-wrap: break-word;
}

.rvb-stack .rvb-stack__text {
	margin: 0 0 clamp(22px, 2.8vw, 32px);
	padding: 0;
	max-width: 44rem;
	font-size: clamp(0.9375rem, 1.2vw, 1rem);
	font-weight: 400;
	line-height: 1.7;
	color: #353534;
}

.rvb-stack .rvb-stack__card--oscuro .rvb-stack__eyebrow,
.rvb-stack .rvb-stack__card--oscuro .rvb-stack__title,
.rvb-stack .rvb-stack__card--oscuro .rvb-stack__text {
	color: #fff;
}

/* ---------- Cifra ---------- */

.rvb-stack .rvb-stack__stat {
	display: inline-flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	min-width: min(260px, 100%);
	padding: 22px 24px 20px;
	border-radius: 8px;
	background: #eef4ef;
}

.rvb-stack .rvb-stack__card--menta .rvb-stack__stat {
	background: #fff;
	box-shadow: 0 0 0 1px #e1e7e4, 0 6px 18px -10px rgb(24 49 50 / 0.25);
}

.rvb-stack .rvb-stack__card--oscuro .rvb-stack__stat {
	background: #fff;
}

.rvb-stack .rvb-stack__stat-num {
	font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif;
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	font-variant-numeric: lining-nums;
	color: #083f3f;
}

.rvb-stack .rvb-stack__card--menta .rvb-stack__stat-num,
.rvb-stack .rvb-stack__card--oscuro .rvb-stack__stat-num {
	color: #0d0d0d;
}

.rvb-stack .rvb-stack__stat-label {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #282827;
}

/* Editor: sin apilar, para poder ver y seleccionar cada tarjeta. */
.editor-styles-wrapper .rvb-stack .rvb-stack__card {
	position: relative;
	top: auto;
}
