/* ==========================================================================
   ResetEnLinea Experience — estilos
   Paleta: papel técnico + señal de conexión.
   -  --reu-ink      : #12213B  (texto principal / superficies oscuras)
   -  --reu-teal      : #1B7F79  (acento tecnológico, íconos, foco)
   -  --reu-amber     : #F2994A  (advertencias suaves / detalle cálido)
   -  --reu-paper     : #F7F5F0  (fondo, evoca el papel de la impresora)
   -  --reu-slate     : #5B6472  (texto secundario)
   -  --reu-green     : #2FAE66  (botones de acción — exigido por brief)
   -  --reu-green-dk  : #22935480 -> ver var abajo (hover)
   ========================================================================== */

.reu-wizard {
	--reu-ink: #12213b;
	--reu-teal: #1b7f79;
	--reu-amber: #f2994a;
	--reu-paper: #f7f5f0;
	--reu-slate: #5b6472;
	--reu-green: #2fae66;
	--reu-green-dark: #23935a;
	--reu-red: #e5342e;
	--reu-red-dark: #c62b26;
	--reu-white: #ffffff;
	--reu-border: #e4e0d6;

	--reu-font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
	--reu-font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

	--reu-radius: 14px;
	--reu-shadow: 0 12px 30px rgba(18, 33, 59, 0.08);

	max-width: 880px;
	margin: 0 auto;
	padding: 0 20px;
	font-family: var(--reu-font-body);
	color: var(--reu-ink);
	background: var(--reu-paper);
	box-sizing: border-box;
}

.reu-wizard *,
.reu-wizard *::before,
.reu-wizard *::after {
	box-sizing: inherit;
}

.reu-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Tipografía ---------- */

.reu-wizard h2,
.reu-wizard h3,
.reu-wizard h4 {
	font-family: var(--reu-font-display);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 12px;
	color: var(--reu-ink);
}

.reu-eyebrow {
	display: inline-block;
	font-family: var(--reu-font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--reu-teal);
	background: rgba(27, 127, 121, 0.09);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}

/* ---------- Hero ---------- */

.reu-hero {
	padding: 56px 0 40px;
}

.reu-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}

.reu-hero__title {
	font-size: clamp(28px, 4vw, 40px);
}

.reu-hero__subtitle {
	font-size: 17px;
	color: var(--reu-slate);
	margin: 0 0 28px;
	max-width: 46ch;
}

.reu-hero__reassure {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	color: var(--reu-slate);
}

.reu-hero__reassure li {
	padding-left: 22px;
	position: relative;
}

.reu-hero__reassure li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--reu-teal);
	font-weight: 700;
}

.reu-hero__signature {
	display: flex;
	justify-content: center;
}

.reu-signature-svg {
	width: 100%;
	max-width: 360px;
	height: auto;
}

.reu-signature-svg .reu-s-body { fill: var(--reu-ink); }
.reu-signature-svg .reu-s-body-light { fill: var(--reu-teal); }
.reu-signature-svg .reu-s-slot { fill: var(--reu-paper); }
.reu-signature-svg .reu-s-dot { fill: var(--reu-amber); }
.reu-signature-svg .reu-s-server-slot { fill: #223b63; }
.reu-signature-svg .reu-s-server-light {
	fill: var(--reu-green);
	animation: reu-server-blink 1.8s ease-in-out infinite;
}

.reu-signature-svg .reu-s-server-light:nth-of-type(2) { animation-delay: 0.3s; }
.reu-signature-svg .reu-s-server-light:nth-of-type(3) { animation-delay: 0.6s; }
.reu-signature-svg .reu-s-server-light:nth-of-type(4) { animation-delay: 0.9s; }

@keyframes reu-server-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.reu-signature-svg .reu-s-server-light {
		animation: none;
	}
}

.reu-hero__signature-caption {
	margin: 18px 0 0;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: var(--reu-slate);
	background: var(--reu-white);
	border: 1px solid var(--reu-border);
	border-radius: 999px;
	padding: 10px 18px;
	box-shadow: var(--reu-shadow);
}

.reu-hero__signature-caption strong {
	color: var(--reu-ink);
}

.reu-signature-cable {
	fill: none;
	stroke: var(--reu-teal);
	stroke-width: 3;
	stroke-dasharray: 6 6;
	opacity: 0.6;
}

.reu-signature-pulse {
	fill: var(--reu-amber);
}

@media (prefers-reduced-motion: reduce) {
	.reu-signature-pulse animateMotion {
		display: none;
	}
}

/* ---------- Botones ----------
   Código de color fijo en todo el asistente:
   - ROJO   -> acción de descarga (arranca el proceso)
   - VERDE  -> WhatsApp (contacto humano / paso final)
   - NARANJA -> confirmaciones intermedias que deben resaltar
   Se usa !important + selector calificado con .reu-wizard para blindar
   estos colores contra estilos globales del tema de WordPress. */

.reu-wizard .reu-btn {
	font-family: var(--reu-font-display);
	font-weight: 600;
	font-size: 16px;
	border: none;
	border-radius: 999px;
	padding: 16px 30px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	text-decoration: none !important;
}

/* ROJO — descarga */
.reu-wizard .reu-btn--red {
	background: var(--reu-red) !important;
	color: var(--reu-white) !important;
	box-shadow: 0 10px 24px rgba(229, 52, 46, 0.34);
}

.reu-wizard .reu-btn--red:hover {
	background: var(--reu-red-dark) !important;
	transform: translateY(-1px);
}

.reu-wizard .reu-btn--red.reu-btn--pulse {
	animation: reu-pulse-red 2s infinite;
}

@keyframes reu-pulse-red {
	0% { box-shadow: 0 0 0 0 rgba(229, 52, 46, 0.45); }
	70% { box-shadow: 0 0 0 14px rgba(229, 52, 46, 0); }
	100% { box-shadow: 0 0 0 0 rgba(229, 52, 46, 0); }
}

/* VERDE — WhatsApp / paso final */
.reu-wizard .reu-btn--primary {
	background: var(--reu-green) !important;
	color: var(--reu-white) !important;
	box-shadow: 0 10px 24px rgba(47, 174, 102, 0.32);
}

.reu-wizard .reu-btn--primary:hover {
	background: var(--reu-green-dark) !important;
	transform: translateY(-1px);
}

.reu-wizard .reu-btn--lg {
	padding: 18px 36px;
	font-size: 17px;
}

/* NARANJA — confirmaciones intermedias */
.reu-wizard .reu-btn--orange {
	background: var(--reu-amber) !important;
	color: var(--reu-white) !important;
	box-shadow: 0 10px 24px rgba(242, 153, 74, 0.34);
}

.reu-wizard .reu-btn--orange:hover {
	background: #e08636 !important;
	transform: translateY(-1px);
	color: var(--reu-white) !important;
}

.reu-wizard .reu-btn--orange.reu-btn--pulse {
	animation: reu-pulse-orange 2s infinite;
}

@keyframes reu-pulse-orange {
	0% { box-shadow: 0 0 0 0 rgba(242, 153, 74, 0.45); }
	70% { box-shadow: 0 0 0 14px rgba(242, 153, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(242, 153, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.reu-wizard .reu-btn--orange.reu-btn--pulse,
	.reu-wizard .reu-btn--red.reu-btn--pulse {
		animation: none;
	}
}

.reu-wizard .reu-btn--ghost {
	background: transparent !important;
	color: var(--reu-ink) !important;
	border: 1px solid var(--reu-border);
}

.reu-wizard .reu-btn--ghost:hover {
	border-color: var(--reu-teal);
	color: var(--reu-teal) !important;
}

.reu-wizard .reu-btn--pulse {
	animation: reu-pulse 2s infinite;
}

@keyframes reu-pulse {
	0% { box-shadow: 0 0 0 0 rgba(47, 174, 102, 0.45); }
	70% { box-shadow: 0 0 0 14px rgba(47, 174, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(47, 174, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.reu-wizard .reu-btn--pulse {
		animation: none;
	}
}

/* ---------- Secciones genéricas ---------- */

.reu-section {
	padding: 40px 0;
	border-top: 1px solid var(--reu-border);
}

.reu-section__title {
	font-size: 22px;
}

.reu-section__lead {
	color: var(--reu-slate);
	margin: 0 0 20px;
	max-width: 60ch;
}

/* ---------- Banner promocional (imagen 1200x630) ---------- */

.reu-banner {
	padding: 0 0 40px;
	border-top: none;
}

.reu-banner img {
	width: 100%;
	display: block;
	border-radius: var(--reu-radius);
	box-shadow: var(--reu-shadow);
	border: 1px solid var(--reu-border);
}

/* ---------- Video / Screenshot ---------- */

.reu-video__frame,
.reu-screenshot__frame {
	border-radius: var(--reu-radius);
	overflow: hidden;
	box-shadow: var(--reu-shadow);
	background: var(--reu-white);
	border: 1px solid var(--reu-border);
}

.reu-video__frame video {
	width: 100%;
	display: block;
}

.reu-screenshot__frame img {
	width: 100%;
	display: block;
}

/* ---------- Trustpilot ---------- */

.reu-trust__card {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--reu-white);
	border: 1px solid var(--reu-border);
	border-radius: var(--reu-radius);
	padding: 22px 26px;
	box-shadow: var(--reu-shadow);
	flex-wrap: wrap;
}

.reu-trust__score {
	font-family: var(--reu-font-display);
	font-size: 32px;
	font-weight: 700;
	color: var(--reu-teal);
}

.reu-trust__meta {
	flex: 1;
	min-width: 160px;
}

.reu-trust__stars {
	color: var(--reu-amber);
	letter-spacing: 2px;
	font-size: 16px;
}

.reu-trust__count {
	color: var(--reu-slate);
	font-size: 14px;
}

/* ---------- Seguridad ---------- */

.reu-security__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.reu-security__list li {
	background: var(--reu-white);
	border: 1px solid var(--reu-border);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
	color: var(--reu-ink);
	display: flex;
	align-items: center;
	gap: 10px;
}

.reu-security__icon {
	font-size: 18px;
}

/* ---------- CTA final ---------- */

.reu-cta {
	text-align: center;
	border-top: 1px solid var(--reu-border);
}

.reu-cta__note {
	margin-top: 14px;
	color: var(--reu-slate);
	font-size: 13px;
}

/* ---------- Barra de progreso persistente ---------- */

.reu-progress {
	position: sticky;
	bottom: 16px;
	margin: 24px auto 0;
	max-width: 420px;
	background: var(--reu-white);
	border: 1px solid var(--reu-border);
	border-radius: 999px;
	padding: 10px 18px;
	box-shadow: var(--reu-shadow);
	display: none;
	align-items: center;
	gap: 12px;
	z-index: 20;
}

.reu-progress.is-visible {
	display: flex;
}

.reu-progress__track {
	flex: 1;
	height: 8px;
	border-radius: 999px;
	background: var(--reu-border);
	overflow: hidden;
}

.reu-progress__fill {
	height: 100%;
	background: var(--reu-teal);
	border-radius: 999px;
	transition: width 0.5s ease;
}

.reu-progress__label {
	font-size: 12px;
	color: var(--reu-slate);
	white-space: nowrap;
}

/* ---------- Overlay + Popups ---------- */

.reu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(18, 33, 59, 0.62);
	backdrop-filter: blur(2px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 1000;
}

.reu-overlay.is-visible {
	display: flex;
}

.reu-popup__compat {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--reu-teal);
	background: rgba(27, 127, 121, 0.09);
	border-radius: 999px;
	padding: 6px 14px;
	margin: 0 0 18px;
}

.reu-overlay__dismiss {
	position: absolute;
	top: 22px;
	right: 26px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.16);
	color: var(--reu-white);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.reu-overlay__dismiss:hover {
	background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
	.reu-overlay__dismiss {
		top: 14px;
		right: 14px;
	}
}

.reu-popup {
	display: none;
	background: var(--reu-white);
	border-radius: var(--reu-radius);
	padding: 32px;
	max-width: 420px;
	width: 100%;
	text-align: center;
	box-shadow: 0 24px 60px rgba(18, 33, 59, 0.35);
}

.reu-popup.is-active {
	display: block;
	animation: reu-pop-in 0.25s ease;
}

@keyframes reu-pop-in {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.reu-popup__title {
	font-size: 22px;
}

.reu-popup__text {
	color: var(--reu-slate);
	margin: 0 0 18px;
	line-height: 1.5;
}

.reu-popup__text--muted {
	font-size: 13px;
}

.reu-popup__media img {
	width: 100%;
	border-radius: 10px;
	border: 1px solid var(--reu-border);
	margin-bottom: 18px;
	background: var(--reu-paper);
}

.reu-popup__steps {
	text-align: left;
	list-style: none;
	counter-reset: reu-step;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.reu-popup__steps li {
	position: relative;
	padding-left: 30px;
	font-size: 14px;
	color: var(--reu-ink);
	line-height: 1.4;
}

.reu-popup__steps li::before {
	counter-increment: reu-step;
	content: counter(reu-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--reu-teal);
	color: var(--reu-white);
	font-family: var(--reu-font-display);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.reu-popup__steps--highlight {
	font-weight: 700;
	color: var(--reu-ink);
	background: rgba(242, 153, 74, 0.12);
	border-radius: 8px;
	padding: 8px 10px 8px 38px !important;
	margin-left: -8px;
}

.reu-popup__steps--highlight::before {
	background: var(--reu-amber) !important;
}

.reu-popup__text--final {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--reu-border);
}

.reu-popup__fields {
	background: var(--reu-paper);
	border: 1px dashed var(--reu-border);
	border-radius: 10px;
	padding: 14px 18px;
	margin: 0 0 16px;
	text-align: left;
}

.reu-popup__field {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	font-size: 14px;
}

.reu-popup__field dt {
	color: var(--reu-slate);
}

.reu-popup__field dd {
	margin: 0;
	font-family: var(--reu-font-display);
	font-weight: 600;
	color: var(--reu-ink);
}

.reu-spinner {
	display: flex;
	justify-content: center;
	padding: 10px 0 4px;
}

.reu-spinner__circle {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid var(--reu-border);
	border-top-color: var(--reu-teal);
	animation: reu-spin 0.9s linear infinite;
}

@keyframes reu-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.reu-spinner__circle {
		animation-duration: 1.8s;
	}
}

/* Foco visible para accesibilidad de teclado */
.reu-wizard a:focus-visible,
.reu-wizard button:focus-visible {
	outline: 3px solid var(--reu-teal);
	outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
	.reu-hero__grid {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.reu-hero__signature {
		order: -1;
		max-width: 260px;
		margin: 0 auto;
	}

	.reu-security__list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.reu-hero {
		padding: 36px 0 28px;
	}

	.reu-btn {
		width: 100%;
	}

	.reu-trust__card {
		flex-direction: column;
		text-align: center;
	}

	.reu-progress {
		left: 16px;
		right: 16px;
		max-width: none;
		transform: none;
	}
}
