.hx-formcard {
	padding: clamp(22px, 4vw, 40px);
	background: var(--hx-white);
	border-radius: 22px;
	color: var(--hx-ink);
}

.hx-formcard h2,
.hx-formcard h3 {
	margin-bottom: 6px;
	font-size: 1.5rem;
}

.hx-formcard > p {
	margin-bottom: 20px;
	color: var(--hx-grey);
}

.hx-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.hx-form[hidden] {
	display: none;
}

.hx-form__full {
	grid-column: 1 / -1;
}

.hx-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hx-field label {
	font-size: 0.85rem;
	font-weight: 500;
}

.hx-field input,
.hx-field select,
.hx-field textarea {
	width: 100%;
	padding: 13px 16px;
	background: var(--hx-white);
	border: 1px solid var(--hx-line);
	border-radius: 14px;
	color: var(--hx-ink);
}

.hx-field textarea {
	min-height: 130px;
	resize: vertical;
}

.hx-field input:focus,
.hx-field select:focus,
.hx-field textarea:focus {
	border-color: var(--hx-plum);
	outline: none;
}

.hx-product .hx-field input:focus,
.hx-product .hx-field select:focus,
.hx-product .hx-field textarea:focus {
	border-color: var(--hx-green-700);
}

.hx-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--hx-grey);
	font-size: 0.88rem;
}

.hx-check input {
	margin-top: 4px;
}

.hx-check a {
	color: var(--hx-plum);
}

.hx-product .hx-check a {
	color: var(--hx-green-700);
}

.hx-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hx-form__notice {
	margin-bottom: 16px;
	padding: 14px 16px;
	background: var(--hx-muted);
	border-radius: 14px;
	color: var(--hx-plum);
	font-size: 0.92rem;
}

.hx-form__notice.is-error {
	background: #fbe9e8;
	color: var(--hx-danger);
}

.hx-form > .hx-form__notice {
	grid-column: 1 / -1;
}

.hx-form__subtitle {
	grid-column: 1 / -1;
	margin: 6px 0 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.hx-form__hint {
	margin: 0;
	color: var(--hx-grey);
	font-size: 0.85rem;
}

.hx-form__legal {
	grid-column: 1 / -1;
	color: var(--hx-grey);
	font-size: 0.78rem;
	line-height: 1.55;
}

.hx-form__legal p {
	margin: 0 0 10px;
}

.hx-form__legal p:last-child {
	margin-bottom: 0;
}

.hx-field__error {
	color: var(--hx-danger);
	font-size: 0.82rem;
	line-height: 1.4;
}

.hx-field input[readonly] {
	background: var(--hx-muted);
	color: var(--hx-grey);
}

.hx-formcard--narrow {
	max-width: 780px;
	margin: 0 auto;
}

.hx-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.hx-info-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hx-formcard--light {
	border: 1px solid var(--hx-line);
}

@media (max-width: 860px) {
	.hx-contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.hx-form {
		grid-template-columns: 1fr;
	}

	.hx-form .hx-btn {
		width: 100%;
	}
}

/* -------------------------------------------------------------------------
   Design refresh: forms
   ------------------------------------------------------------------------- */

.hx-formcard {
	padding: clamp(24px, 4vw, 40px);
	background: var(--hx-earth);
	border-radius: var(--hx-r-xl);
	color: var(--hx-ink);
}

.hx-formcard h2,
.hx-formcard h3 {
	margin-bottom: 8px;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
}

.hx-formcard > p {
	margin-bottom: 24px;
	color: var(--hx-ink);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.hx-form {
	gap: 18px 16px;
}

.hx-field {
	gap: 6px;
}

.hx-field label {
	color: var(--hx-ink);
	font-size: 0.875rem;
	font-weight: 500;
}

.hx-field input,
.hx-field select,
.hx-field textarea {
	min-height: 44px;
	padding: 10px 12px;
	background: var(--hx-white);
	border: 1px solid var(--hx-stone);
	border-radius: 10px;
	color: var(--hx-ink);
	font-size: 0.9375rem;
}

.hx-field textarea {
	min-height: 120px;
}

.hx-field input:focus,
.hx-field select:focus,
.hx-field textarea:focus {
	border-color: var(--hx-plum);
	box-shadow: 0 0 0 3px rgba(50, 20, 50, 0.08);
}

.hx-check {
	color: var(--hx-ink);
	font-size: 0.875rem;
	line-height: 1.5;
}

.hx-check a {
	color: var(--hx-ink);
}

.hx-form__legal {
	color: var(--hx-ink-soft);
	font-size: 0.75rem;
}

.hx-form__hint {
	color: var(--hx-ink-soft);
	font-size: 0.8125rem;
}

.hx-form__notice {
	border-radius: 10px;
}

.hx-formcard--light {
	border: 1px solid var(--hx-stone);
	background: var(--hx-white);
}

/* Contact and demo split hero */
.hx-contact-band {
	padding-block: calc(var(--hx-navh) + 72px) 64px;
	background-color: var(--hx-plum);
	background-image: url("../images/cruces.png");
	background-repeat: no-repeat;
	background-position: right top;
	background-size: auto 880px;
	border-radius: 0 0 var(--hx-r-hero) var(--hx-r-hero);
	color: var(--hx-white);
}

.hx-contact-band .hx-wrap {
	width: min(100% - 2rem, 1140px);
}

.hx-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
	gap: 48px;
	align-items: start;
	max-width: 1140px;
	margin-inline: auto;
}

.hx-contact-intro h1 {
	margin: 0 0 20px;
	color: var(--hx-white);
	font-size: clamp(2.375rem, 5.4vw, 4rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.hx-contact-intro > p {
	max-width: 520px;
	margin: 0 0 32px;
	color: #f2eaf1;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.hx-contact-intro .hx-info {
	background: transparent;
	color: var(--hx-white);
}

.hx-contact-intro .hx-info small,
.hx-contact-intro .hx-info a,
.hx-contact-intro .hx-info b,
.hx-contact-intro .hx-info span {
	color: var(--hx-white);
}

.hx-contact-emails {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-contact-emails li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.hx-contact-emails__icon {
	flex: none;
	margin-top: 2px;
	color: var(--hx-white);
}

.hx-contact-emails__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.hx-contact-emails strong {
	display: block;
	margin-bottom: 2px;
	font-size: 1rem;
	font-weight: 600;
}

.hx-contact-emails a {
	color: var(--hx-white);
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 2px;
	word-break: break-word;
}

.hx-contact-form {
	position: relative;
	z-index: 2;
	margin-bottom: -300px;
	background: var(--hx-earth);
	border-color: var(--hx-earth);
}

.hx-contact-form .hx-field label {
	white-space: nowrap;
}

.hx-contact-form .hx-field input,
.hx-contact-form .hx-field select {
	border-radius: 999px;
	padding-inline: 18px;
}

.hx-contact-form .hx-field textarea {
	min-height: 100px;
	border-radius: 18px;
}

.hx-contact-after {
	padding-block: 64px 104px;
}

.hx-contact-offices .hx-contact-after-grid {
	display: block;
}

.hx-contact-offices .hx-offices {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 24px;
	margin-top: 0;
}

.hx-contact-offices .hx-office {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.hx-contact-offices .hx-office h3 {
	margin-bottom: 8px;
	font-size: 1.0625rem;
	font-weight: 700;
}

.hx-contact-offices .hx-office address {
	margin: 0 0 12px;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.hx-contact-offices .hx-office address a {
	color: var(--hx-ink);
	text-decoration: none;
}

.hx-contact-offices .hx-office__map {
	color: var(--hx-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hx-contact-after-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	gap: 0 72px;
	max-width: 1100px;
	margin-inline: auto;
}

.hx-contact-after-grid > * {
	grid-column: 1;
}

.hx-contact-after h2 {
	margin: 0 0 28px;
	font-size: clamp(1.75rem, 3.6vw, 2.5rem);
	font-weight: 500;
	line-height: 1.15;
}

.hx-demo-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	font-size: 1.0625rem;
	line-height: 1.5;
	list-style: none;
}

.hx-demo-list li {
	display: flex;
	gap: 12px;
}

.hx-demo-list li::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: 9px;
	border-radius: 50%;
	background: var(--hx-plum);
}

@media (max-width: 1120px) {
	.hx-contact-grid,
	.hx-contact-after-grid {
		grid-template-columns: 1fr;
	}

	.hx-contact-form {
		margin-bottom: 0;
	}

	.hx-contact-after {
		padding-top: 56px;
	}
}

@media (max-width: 560px) {
	.hx-contact-form {
		padding: 20px;
	}

	.hx-contact-offices .hx-offices {
		grid-template-columns: 1fr;
	}
}

.hx-contact-intro :focus-visible {
	outline-color: var(--hx-lime);
}
