/* =========================================================
   Xtellaris Lead World — xt-lead-world.css
   Layout: izquierda (titular + CTA) | derecha (formulario)
   ========================================================= */

.xt-lw,
.xt-lw * {
	box-sizing: border-box;
}

/* ── Variables ──────────────────────────────────────────── */
.xt-lw {
	--xt-lw-primary:      #1e8eff;
	--xt-lw-accent:       #00fd93;
	--xt-lw-bg:           #f5f6f7;
	--xt-lw-text:         #0a0a0a;
	--xt-lw-muted:        rgba(10, 10, 10, 0.62);
	--xt-lw-card-bg:      #ffffff;
	--xt-lw-card-border:  rgba(30, 142, 255, 0.14);
	--xt-lw-field-bg:     #f8f9fa;
	--xt-lw-field-border: #e2e5ea;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.xt-lw {
	position: relative;
	display: flex;
	align-items: center;
	background-color: var(--xt-lw-bg);
	color: var(--xt-lw-text);
	overflow: hidden;
	padding: 64px 0;
	border-radius: 24px;
}

/* ── Fondo ───────────────────────────────────────────────── */
.xt-lw__bg {
	position: absolute;
	inset: 0;
	opacity: 0.08;
	pointer-events: none;
}

.xt-lw__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Mesh Effect ─────────────────────────────────────────── */
.xt-lw--mesh::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: 
		radial-gradient(at 0% 0%, rgba(30, 142, 255, 0.15) 0, transparent 50%), 
		radial-gradient(at 50% 0%, rgba(0, 253, 147, 0.1) 0, transparent 50%), 
		radial-gradient(at 100% 0%, rgba(30, 142, 255, 0.15) 0, transparent 50%);
	opacity: 0.6;
	pointer-events: none;
}

.xt-lw__bg-mesh {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(30, 142, 255, 0.05) 1px, transparent 1px),
					  linear-gradient(90deg, rgba(30, 142, 255, 0.05) 1px, transparent 1px);
	background-size: 40px 40px;
	perspective: 1000px;
	transform-origin: center;
	animation: mesh-drift 20s linear infinite;
	opacity: 0.4;
}

@keyframes mesh-drift {
	0% { transform: translateY(0); }
	100% { transform: translateY(40px); }
}

/* ── Fade Animations ─────────────────────────────────────── */
.xt-lw--has-fade .xt-lw--fade-target {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
				transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.xt-lw--has-fade .xt-lw--fade-target.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.xt-lw--fade-delay {
	transition-delay: 0.2s !important;
}

/* ── Container / Grid ────────────────────────────────────── */
.xt-lw__container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	position: relative;
	z-index: 1;
}

.xt-lw__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

/* ── Columna izquierda ───────────────────────────────────── */
.xt-lw__left {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Badge */
.xt-lw__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(30, 142, 255, 0.08);
	border: 1px solid rgba(30, 142, 255, 0.18);
	max-width: fit-content;
}

.xt-lw__badge-dot {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--xt-lw-primary);
	box-shadow: 0 0 0 4px rgba(30, 142, 255, 0.14);
}

.xt-lw__badge-text {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--xt-lw-primary);
}

/* Titular */
.xt-lw__title {
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	line-height: 1;
	letter-spacing: -0.03em;
	font-weight: 900;
	color: var(--xt-lw-text);
}

.xt-lw__gradient {
	background: linear-gradient(135deg, var(--xt-lw-primary) 0%, var(--xt-lw-accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Descripción */
.xt-lw__desc {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	max-width: 52ch;
	color: var(--xt-lw-muted);
}

/* Acciones */
.xt-lw__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: 4px;
}

/* CTA button */
.xt-lw__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 999px;
	text-decoration: none;
	background: rgba(0, 253, 147, 0.15);
	border: 1.5px solid rgba(0, 253, 147, 0.28);
	color: #005b31;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.xt-lw__cta:hover {
	background-color: rgba(0, 253, 147, 0.26);
	transform: translateY(-2px);
	box-shadow: 0 0 0 6px rgba(0, 253, 147, 0.1);
}

.xt-lw__cta-arrow {
	font-size: 18px;
	line-height: 1;
}

/* Info box */
.xt-lw__info {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(30, 142, 255, 0.12);
}

.xt-lw__info-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.42);
}

.xt-lw__info-value {
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0.05em;
	color: var(--xt-lw-text);
}

/* ── Columna derecha: tarjeta formulario ─────────────────── */
.xt-lw__right {
	width: 100%;
}

.xt-lw__form-card {
	background-color: var(--xt-lw-card-bg);
	border: 1px solid var(--xt-lw-card-border);
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.xt-lw__form-title {
	margin: 0 0 6px 0;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--xt-lw-text);
}

.xt-lw__form-subtitle {
	margin: 0 0 22px 0;
	font-size: 14px;
	color: var(--xt-lw-muted);
}

/* Mensaje éxito */
.xt-lw__success {
	padding: 14px 18px;
	border-radius: 12px;
	background: rgba(0, 253, 147, 0.12);
	border: 1px solid rgba(0, 253, 147, 0.28);
	color: #005b31;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 16px;
}

/* Form layout */
.xt-lw__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Fields */
.xt-lw__field-wrap {
	position: relative;
}

.xt-lw__field {
	width: 100%;
	padding: 13px 16px;
	background-color: var(--xt-lw-field-bg);
	border: 1.5px solid var(--xt-lw-field-border);
	border-radius: 10px;
	font-size: 14px;
	color: var(--xt-lw-text);
	line-height: 1.4;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.xt-lw__field::placeholder {
	color: rgba(10, 10, 10, 0.35);
}

.xt-lw__field:focus {
	border-color: var(--xt-lw-primary);
	box-shadow: 0 0 0 3px rgba(30, 142, 255, 0.1);
}

/* Select arrow */
.xt-lw__field-wrap select.xt-lw__field {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

/* Submit */
.xt-lw__submit {
	width: 100%;
	padding: 15px 24px;
	margin-top: 4px;
	background-color: var(--xt-lw-primary);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.xt-lw__submit:hover {
	background-color: #0a7ae8;
	transform: translateY(-1px);
}

/* Acceptance check */
.xt-lw__acceptance {
	margin-top: 4px;
	margin-bottom: 8px;
}

.xt-lw__acceptance-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.xt-lw__checkbox {
	margin: 0;
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: var(--xt-lw-primary);
	cursor: pointer;
}

.xt-lw__acceptance-text {
	font-size: 13px;
	line-height: 1.5;
	color: var(--xt-lw-muted);
}

.xt-lw__acceptance-text a {
	color: var(--xt-lw-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.xt-lw__acceptance-text a:hover {
	opacity: 0.8;
}

/* ── Bases legales ───────────────────────────────────────── */
.xt-lw__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--xt-lw-card-border);
}

.xt-lw__legal-link {
	font-size: 11px;
	line-height: 1.4;
	color: var(--xt-lw-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: transparent;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.xt-lw__legal-link:hover {
	color: var(--xt-lw-primary);
	text-decoration-color: var(--xt-lw-primary);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 900px) {
	.xt-lw__grid {
		grid-template-columns: 1.25fr 1fr;
		gap: 56px;
	}
}

@media (max-width: 480px) {
	.xt-lw {
		border-radius: 16px;
		padding: 48px 0;
	}

	.xt-lw__container {
		padding: 0 20px;
	}

	.xt-lw__form-card {
		padding: 24px 20px;
	}
}
