/**
 * CTA Design 2 — Consolidados
 */

.hexfly-d2-cta {
	--hexfly-d2-ink: #1f2937;
	--hexfly-d2-hero-bg: #003e9c;
	--hexfly-d2-accent: #0057d9;
	--hexfly-d2-accent-hover: #003e9c;
	--hexfly-d2-secondary-rgb: 77, 163, 255;
	--hexfly-d2-sans: 'DM Sans', system-ui, sans-serif;
	--hexfly-d2-display: 'Outfit', system-ui, sans-serif;
	--hexfly-d2-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	padding: 3.5rem 0 4.5rem;
	background: var(--hexfly-d2-hero-bg);
	color: #f8fafc;
	font-family: var(--hexfly-d2-sans);
	line-height: 1.6;
}

.hexfly-d2-cta .hexfly-d2-container {
	width: min(1160px, 92vw);
	margin-inline: auto;
}

.hexfly-d2-cta__inner {
	display: grid;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 768px) {
	.hexfly-d2-cta__inner {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}

.hexfly-d2-cta__title {
	margin: 0 0 0.65rem;
	font-family: var(--hexfly-d2-display);
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.hexfly-d2-cta__lead {
	margin: 0;
	max-width: 40ch;
	color: rgba(248, 250, 252, 0.7);
}

.hexfly-d2-cta__form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hexfly-d2-cta__label {
	font-size: 0.8rem;
	font-weight: 500;
	color: rgba(248, 250, 252, 0.8);
}

.hexfly-d2-cta__input {
	padding: 0.75rem 0.85rem;
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--hexfly-d2-ink);
	background: #fff;
	border: 1px solid transparent;
	border-radius: 8px;
	outline: none;
	transition: box-shadow 0.2s var(--hexfly-d2-ease-out);
}

.hexfly-d2-cta__input::placeholder {
	color: #94a3b8;
}

.hexfly-d2-cta__input:focus-visible {
	box-shadow: 0 0 0 3px rgba(var(--hexfly-d2-secondary-rgb), 0.45);
}

.hexfly-d2-cta__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.15rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	background: var(--hexfly-d2-accent);
	color: #fff;
	transition:
		background 0.2s var(--hexfly-d2-ease-out),
		transform 0.15s var(--hexfly-d2-ease-out);
}

.hexfly-d2-cta__submit:hover {
	background: var(--hexfly-d2-accent-hover);
}

.hexfly-d2-cta__submit:active {
	transform: scale(0.98);
}

.hexfly-d2-cta__message {
	display: none;
	margin: 0;
	padding: 0.75rem 0.85rem;
	font-size: 0.85rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12);
	color: #f8fafc;
}

.hexfly-d2-cta__message.is-visible {
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.hexfly-d2-cta *,
	.hexfly-d2-cta *::before,
	.hexfly-d2-cta *::after {
		transition-duration: 0.01ms !important;
	}
}
