/* ==========================================================
   QWOOD — CONTACT FORM  ·  [qwood_contact_form]
   Editorial-tight: full-bleed white shell escaping the theme's
   content-max-width (fixes the "barras bajas" around the logo
   that the Storefront entry-content renders), compact gaps,
   forced white on WA CTA, subtle green accent line under the
   hero heading so the landing doesn't look like a naked form.
   SSOT: verde #1bcf17, Montserrat 800+, sin gradientes.
   ========================================================== */

/* Breakout from the theme's .content-area / .site-main padding so the
   page reads as a real landing instead of a narrow form boxed between
   bars. The inner wrapper keeps the readable max-width. */
.qw-contact-shell {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
	padding: clamp(1.75rem, 3.5vw, 3rem) 1rem clamp(2.25rem, 5vw, 4rem);
	background: #ffffff;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #0f172a;
	box-sizing: border-box;
	overflow: hidden; /* guard the breakout against horizontal scroll */
}

.qw-contact-inner {
	max-width: 740px;
	margin: 0 auto;
}

/* Hero block — tight spacing + a 2px verde underline that works as a
   brand anchor without adding a heavy container. */
.qw-contact-header {
	text-align: center;
	margin: 0 0 1.6rem;
	padding-bottom: 1.2rem;
	position: relative;
}
.qw-contact-header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 64px;
	height: 3px;
	background: #1bcf17;
	border-radius: 2px;
}

.qw-contact-kicker {
	display: inline-block;
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #1bcf17;
	margin-bottom: 0.45rem;
}

.qw-contact-heading {
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	font-weight: 900;
	line-height: 1.08;
	margin: 0 0 0.5rem;
	letter-spacing: -0.015em;
	color: #0f172a;
}

.qw-contact-lead {
	font-size: 0.98rem;
	color: #475569;
	line-height: 1.55;
	margin: 0;
	max-width: 52ch;
	margin-left: auto;
	margin-right: auto;
}

/* Quick links row: WA + mail. Same anchor-level specificity trick as the
   nudge WA button — the `a.qw-contact-quick__wa` selector and the
   `!important` flag ensure the text is visibly white even when the
   Storefront theme applies a darker link color via `.qw-btn` / `a`. */
.qw-contact-quick {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.7rem;
	margin: 0 0 1.5rem;
}

.qw-contact-quick__wa,
.qw-contact-quick__mail,
a.qw-contact-quick__wa,
a.qw-contact-quick__mail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border-radius: 12px;
	font-weight: 800;
	font-size: 0.92rem;
	text-decoration: none;
	border: 2px solid #1bcf17;
	line-height: 1.2;
	box-shadow: none;
}

.qw-contact-quick__wa,
a.qw-contact-quick__wa,
a.qw-contact-quick__wa:visited {
	background: #1bcf17;
	color: #ffffff !important;
}
.qw-contact-quick__wa:hover,
.qw-contact-quick__wa:focus-visible,
a.qw-contact-quick__wa:hover,
a.qw-contact-quick__wa:focus-visible {
	background: #1bcf17;
	border-color: #1bcf17;
	color: #ffffff !important;
	outline: none;
}
.qw-contact-quick__wa svg,
a.qw-contact-quick__wa svg {
	fill: #ffffff;
	color: #ffffff;
	flex: 0 0 auto;
}

.qw-contact-quick__mail,
a.qw-contact-quick__mail,
a.qw-contact-quick__mail:visited {
	background: #ffffff;
	color: #1bcf17 !important;
}
.qw-contact-quick__mail:hover,
.qw-contact-quick__mail:focus-visible,
a.qw-contact-quick__mail:hover,
a.qw-contact-quick__mail:focus-visible {
	background: rgba(27, 207, 23, 0.06);
	color: #1bcf17 !important;
	outline: none;
}
.qw-contact-quick__mail svg,
a.qw-contact-quick__mail svg {
	flex: 0 0 auto;
}

/* Form — sitting on a soft green-tinted panel so it reads as its own
   surface without needing heavy borders. */
.qw-contact-form {
	background: #ffffff;
	border: none;
	box-shadow: 0 6px 20px rgba(15,23,42,.08);
	border-radius: 16px;
	padding: clamp(1rem, 2.2vw, 1.5rem);
	position: relative;
}

.qw-contact-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.qw-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.qw-contact-form__field--wide {
	margin-bottom: 0.75rem;
}

.qw-contact-form__label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #334155;
}

.qw-contact-form input[type="text"],
.qw-contact-form input[type="email"],
.qw-contact-form input[type="tel"],
.qw-contact-form select,
.qw-contact-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	font-family: inherit;
	font-size: 0.95rem;
	color: #0f172a;
	line-height: 1.4;
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	box-sizing: border-box;
}

.qw-contact-form textarea {
	min-height: 118px;
	resize: vertical;
}

.qw-contact-form input:focus,
.qw-contact-form select:focus,
.qw-contact-form textarea:focus {
	border-color: #1bcf17;
	outline: 2px solid rgba(27, 207, 23, 0.25);
	outline-offset: 0;
}

.qw-contact-form__consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	margin: 0.3rem 0 0.9rem;
	font-size: 0.83rem;
	color: #475569;
	line-height: 1.5;
}
.qw-contact-form__consent input[type="checkbox"] {
	margin-top: 3px;
	accent-color: #1bcf17;
	flex: 0 0 auto;
}
/* Global: forzar sin subrayado en TODOS los enlaces del shell de contacto.
   Storefront / Woo pueden reinyectar subrayados en `.entry-content a` u otros
   wrappers → aquí el overrride cubre el caso general. Los únicos casos con
   afordancia textual son el link a política de privacidad (ver abajo). */
.qw-contact-shell a,
.qw-contact-shell a:link,
.qw-contact-shell a:visited,
.qw-contact-shell a:hover,
.qw-contact-shell a:focus,
.qw-contact-shell a:active {
	text-decoration: none;
}

/* Privacy-policy link dentro del consentimiento: sin underline, se diferencia
   con color verde + peso. User request 2026-04-20 — la barra baja resultaba
   "engorrosa" visualmente. */
.qw-contact-form__consent a {
	color: #1bcf17;
	text-decoration: none;
	font-weight: 800;
	border-bottom: 1px solid rgba(27, 207, 23, 0.25);
	transition: border-color 0.15s ease;
}
.qw-contact-form__consent a:hover,
.qw-contact-form__consent a:focus-visible {
	border-bottom-color: #1bcf17;
	outline: none;
}

.qw-contact-form__actions {
	display: flex;
	justify-content: flex-end;
}

.qw-contact-form__submit,
button.qw-contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.75rem;
	background: #1bcf17;
	color: #ffffff !important;
	border: 2px solid #1bcf17;
	border-radius: 999px;
	font-weight: 900;
	font-size: 0.95rem;
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
	box-shadow: none;
}
.qw-contact-form__submit:hover,
.qw-contact-form__submit:focus-visible,
button.qw-contact-form__submit:hover,
button.qw-contact-form__submit:focus-visible {
	background: #1bcf17;
	border-color: #1bcf17;
	color: #ffffff !important;
	outline: none;
}
.qw-contact-form__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.qw-contact-form__status {
	margin-top: 0.8rem;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.4;
	display: none;
}
.qw-contact-form__status.is-ok {
	background: rgba(27, 207, 23, 0.1);
	color: #1bcf17;
	display: block;
}
.qw-contact-form__status.is-err {
	background: rgba(220, 38, 38, 0.08);
	color: #b91c1c;
	display: block;
}

@media (max-width: 640px) {
	.qw-contact-quick { grid-template-columns: 1fr; }
	.qw-contact-form__row { grid-template-columns: 1fr; }
	.qw-contact-form__actions { justify-content: stretch; }
	.qw-contact-form__submit { width: 100%; }
}

/* ==========================================================
   CONTACT DIVIDER — entre "contacto directo" y formulario
   User request 2026-04-20: el salto entre los botones rápidos
   (WA/email) y el form de abajo era confuso ("no sabes a qué
   estás enviando el mensaje"). Este separador hace explícita
   la relación "opción A o rellena formulario abajo".
   ========================================================== */
.qw-contact-divider {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 1.6rem auto 1.4rem;
	max-width: 520px;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	color: rgba(15, 23, 42, 0.55);
}
.qw-contact-divider__line {
	flex: 1 1 auto;
	height: 1px;
	background: rgba(15, 23, 42, 0.12);
}
.qw-contact-divider__text {
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: lowercase;
}

/* SLA badge — response time (validated vs marketing-skills:signup-flow-cro 2026-05-04) */
.qw-contact-sla {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 6px 14px;
	background: rgba(27, 207, 23, 0.08);
	border: 1px solid rgba(27, 207, 23, 0.3);
	border-radius: 999px;
	color: #1bcf17;
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
}
.qw-contact-sla svg { flex: 0 0 auto; }

/* Alt-channels grid — below the form */
.qw-contact-alt {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.qw-contact-alt__title {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-weight: 800;
	font-size: 1.2rem;
	color: #0f172a;
	margin: 0 0 16px;
	text-align: center;
}
.qw-contact-alt__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}
.qw-contact-alt__card {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1.5px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.1s ease;
}
.qw-contact-alt__card:hover {
	border-color: #1bcf17;
	text-decoration: none;
	color: inherit;
}
.qw-contact-alt__card svg {
	flex: 0 0 auto;
	color: #1bcf17;
	margin-top: 2px;
}
.qw-contact-alt__card strong {
	display: block;
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 2px;
}
.qw-contact-alt__card span {
	display: block;
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(15, 23, 42, 0.6);
	line-height: 1.35;
}
