/* ==========================================================================
   Página de Gracias — Rayoweb Child
   ========================================================================== */

:root {
	--rw-primary: #FF7A1A;
	--rw-primary-2: #FFB400;
	--rw-primary-dark: #E5650E;
	--rw-primary-grad: linear-gradient(135deg, #FF7A1A 0%, #FFB400 100%);
	--rw-text: #1a1a2e;
	--rw-bg-dark: #14142b;
	--rw-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rw-thankyou,
.rw-thankyou * {
	box-sizing: border-box;
}

.rw-thankyou {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	padding: 100px 0;
	background: var(--rw-bg-dark);
	color: #fff;
	overflow: hidden;
	font-family: 'Nunito Sans', sans-serif;
	text-align: center;
}

.rw-thankyou a:visited {
	color: inherit;
}

.rw-ty__bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(255, 122, 26, 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 122, 26, 0.05) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.rw-ty__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(100px);
	pointer-events: none;
}

.rw-ty__blob--1 {
	width: 380px;
	height: 380px;
	background: var(--rw-primary);
	opacity: 0.35;
	top: -120px;
	right: -60px;
}

.rw-ty__blob--2 {
	width: 320px;
	height: 320px;
	background: var(--rw-primary-2);
	opacity: 0.22;
	bottom: -120px;
	left: -40px;
}

.rw-thankyou .container {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto;
	padding: 0 20px;
}

.rw-ty__icon {
	width: 96px;
	height: 96px;
	margin: 0 auto 28px;
}

.rw-ty__icon svg {
	width: 100%;
	height: 100%;
}

/* Animación del check */
.rw-ty__check {
	stroke-dasharray: 60;
	stroke-dashoffset: 60;
	animation: rwCheck 0.6s ease forwards 0.3s;
}

@keyframes rwCheck {
	to {
		stroke-dashoffset: 0;
	}
}

.rw-ty__eyebrow {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rw-primary-2);
}

.rw-ty__title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(30px, 4.5vw, 48px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 12px 0 18px;
}

.rw-ty__text,
.rw-ty__content {
	font-size: 18px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 auto 36px;
	max-width: 580px;
}

.rw-ty__content p {
	margin: 0 0 1em;
}

.rw-ty__actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.rw-ty__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 30px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	border-radius: 8px;
	border: 2px solid transparent;
	transition: all var(--rw-transition);
}

.rw-ty__btn--primary {
	background: var(--rw-primary-grad);
	color: #fff !important;
	box-shadow: 0 12px 30px rgba(255, 122, 26, 0.4);
}

.rw-ty__btn--primary:hover {
	background: #fff;
	color: var(--rw-primary-dark) !important;
	transform: translateY(-2px);
}

.rw-ty__btn--ghost {
	background: transparent;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.4);
}

.rw-ty__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

@media (max-width: 575px) {
	.rw-thankyou {
		padding: 70px 0;
	}
	.rw-ty__actions {
		flex-direction: column;
	}
	.rw-ty__btn {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rw-ty__check {
		animation: none;
		stroke-dashoffset: 0;
	}
}
