/**
 * Cierre con llamada a la acción.
 *
 * Diseño de la captura de Revby: fondo #FAFAF7 y tarjeta blanca (borde #DFE6EB
 * y radio de 12 px, como la de capacidades) con todo centrado. Lleva una
 * etiqueta #F4F9F8 con un icono de radio, un título Raleway 800 #183132, un
 * párrafo Segoe UI #282827 y el botón Revby grande.
 */

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

.rvb-cierre .rvb-cierre__card {
	position: relative;
	box-sizing: border-box;
	max-width: 1320px;
	margin: 0 auto;
	padding: 39px clamp(20px, 4vw, 48px);
	border: 1px solid #dfe6eb;
	border-radius: 12px;
	background: #fff;
	text-align: center;
}

/* Por encima del resplandor que sigue al ratón */
.rvb-cierre .rvb-cierre__card > * {
	position: relative;
}

/* ---------- Etiqueta ---------- */

.rvb-cierre .rvb-cierre__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 32px;
	margin: 0;
	padding: 6px 13px;
	border-radius: 999px;
	background: #f4f9f8;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	color: #183132;
}

/* Icono de radio: anillo con un punto en el centro */
.rvb-cierre .rvb-cierre__radio {
	position: relative;
	flex: none;
	box-sizing: border-box;
	width: 11px;
	height: 11px;
	border: 1.25px solid rgb(24 49 50 / 0.5);
	border-radius: 50%;
}

.rvb-cierre .rvb-cierre__radio::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	margin: -2.5px 0 0 -2.5px;
	border-radius: 50%;
	background: #183132;
}

/* ---------- Título, párrafo y botón ---------- */

.rvb-cierre .rvb-cierre__title {
	max-width: 19em;
	margin: 23px auto 0;
	padding: 0;
	font-family: 'Raleway', 'Segoe UI', sans-serif;
	font-size: clamp(2rem, 3.55vw, 3.1875rem);
	font-weight: 800;
	font-style: normal;
	line-height: 1.14;
	letter-spacing: 0;
	text-transform: none;
	color: #183132;
}

/* Máscara de cada palabra (deja sitio a las letras que bajan, como la "q") */
.rvb-cierre .rvb-cierre__w {
	display: inline-block;
	overflow: hidden;
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
	vertical-align: top;
}

.rvb-cierre .rvb-cierre__wi {
	display: inline-block;
}

.rvb-cierre .rvb-cierre__text {
	max-width: 44rem;
	margin: 26px auto 0;
	padding: 0;
	font-size: clamp(1rem, 1.26vw, 1.125rem);
	line-height: 1.6;
	color: #282827;
}

.rvb-cierre .rvb-cierre__accion {
	margin-top: clamp(28px, 3vw, 42px);
}

/* Brillo que cruza el botón una vez, detrás del texto y del círculo */
.rvb-cierre .rvb-cierre__btn {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.rvb-cierre .rvb-cierre__btn::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.85), transparent);
	transform: translateX(-120%) skewX(-18deg);
	pointer-events: none;
}

.rvb-cierre .rvb-cierre__btn.is-brillo::after {
	animation: rvb-cierre-brillo 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rvb-cierre-brillo {
	to { transform: translateX(330%) skewX(-18deg); }
}

@media (max-width: 600px) {
	.rvb-cierre .rvb-cierre__card {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	/* La etiqueta no cabe en una línea: el icono va junto a la primera palabra
	   y las dos líneas quedan centradas. */
	.rvb-cierre .rvb-cierre__eyebrow {
		display: inline-block;
		padding: 8px 18px;
		text-align: center;
	}

	.rvb-cierre .rvb-cierre__radio {
		display: inline-block;
		margin-right: 10px;
		vertical-align: -1px;
	}

	.rvb-cierre .rvb-cierre__title {
		margin-top: 20px;
	}

	.rvb-cierre .rvb-cierre__text {
		margin-top: 18px;
	}
}

/* ---------- Con animación ---------- */

/* El punto de la etiqueta late (como el de la ficha del programa) */
html.rvb-motion .rvb-cierre .rvb-cierre__radio::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	margin: -2.5px 0 0 -2.5px;
	border-radius: 50%;
	background: #1fc170;
	animation: rvb-cierre-latido 2.2s ease-out infinite;
}

@keyframes rvb-cierre-latido {
	0% { transform: scale(1); opacity: 0.6; }
	70%, 100% { transform: scale(3.4); opacity: 0; }
}

/* Resplandor menta que sigue al ratón dentro de la tarjeta */
@media (hover: hover) and (pointer: fine) {
	html.rvb-motion .rvb-cierre.is-js .rvb-cierre__card::before {
		content: '';
		position: absolute;
		inset: 0;
		border-radius: inherit;
		background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgb(167 243 204 / 0.3), transparent 70%);
		opacity: 0;
		transition: opacity 0.5s ease;
		pointer-events: none;
	}

	html.rvb-motion .rvb-cierre.is-js .rvb-cierre__card:hover::before {
		opacity: 1;
	}
}
