/* ==========================================================
   QWOOD — Contact nudges (anti-abandonment CTAs)
   Rendered in footer (global), cart, checkout, and 404/search.
   Editorial-tight aesthetic: left-accent stripe, compact padding,
   forced white on WA CTA (overrides Storefront theme).
   SSOT: verde #1bcf17, sin gradientes, sin transforms, Montserrat 800+.
   ========================================================== */

.qw-nudge {
	display: block;
	margin: 1rem auto;
	max-width: 520px;
	padding: 0.85rem 1rem 0.85rem 1.1rem;
	background: #ffffff;
	border: none;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #0f172a;
}

.qw-nudge--footer {
	margin: 1.5rem auto 2.2rem;
}

.qw-nudge--cart,
.qw-nudge--checkout {
	margin: 0.9rem 0;
	max-width: none;
}

.qw-nudge--four-oh-four {
	background: #ffffff;
	max-width: 640px;
}

/* ── Popup flotante (scope: 6 páginas legales sin otra conversión) ───
   Posicionado abajo-IZQUIERDA, APILADO sobre el WA fab global (que ya
   vive en left:18 bottom:18 width:48). El popup se sitúa encima del fab
   con un gap de 16px, quedando alineados verticalmente en la esquina
   inferior izquierda sin competir espacialmente. Cierre con X
   dismissible (sessionStorage) + delay de aparición (~1.8s) en JS. */
.qw-nudge--popup {
	position: fixed;
	left: 18px;                /* align con WA fab */
	bottom: 82px;              /* 18 fab-offset + 48 fab-height + 16 gap */
	right: auto;
	z-index: 9997;             /* debajo del WA fab (999998) y del CMP (10000+) */
	margin: 0;
	max-width: 340px;
	padding: 0.95rem 2.1rem 0.95rem 1.05rem; /* reserva a la derecha para la X */
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
	transform: translateY(16px);
	opacity: 0;
	transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;
	pointer-events: none;
}
.qw-nudge--popup.is-hidden {
	display: none;
}
.qw-nudge--popup.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
.qw-nudge__close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: rgba(15, 23, 42, 0.55);
	cursor: pointer;
	padding: 0;
	transition: background .15s ease, color .15s ease;
}
.qw-nudge__close:hover,
.qw-nudge__close:focus-visible {
	background: rgba(15, 23, 42, 0.06);
	color: #0f172a;
	outline: none;
}
/* Tablet/medium (≤860px): el WA fab pasa a 44×44 con left:14 bottom:14.
   Popup se apila encima con 14+44+14 = 72px bottom offset. */
@media (min-width: 521px) and (max-width: 860px) {
	.qw-nudge--popup {
		left: 14px;
		bottom: 72px;
		max-width: 320px;
	}
}
/* Móvil (≤520px): popup full-width con gutters pequeños, apilado encima
   del WA fab (44×44 left:14 bottom:14). La altura dinámica del popup
   puede superar los ~160px en textos legales, por lo que no conviene
   ocupar la parte inferior de la viewport — se deja al WA fab ese
   espacio y el popup queda visible justo encima. */
@media (max-width: 520px) {
	.qw-nudge--popup {
		left: 12px;
		right: 12px;
		bottom: 72px;
		max-width: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.qw-nudge--popup { transition: none; }
}

.qw-nudge__title {
	margin: 0 0 0.2rem;
	font-size: 0.98rem;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: #0f172a;
}

.qw-nudge__desc {
	margin: 0 0 0.65rem;
	font-size: 0.84rem;
	color: #475569;
	line-height: 1.45;
}

.qw-nudge__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Shared button base — the `a.qw-nudge__wa` anchor-level selector bumps
   specificity past the `.qw-btn` / theme defaults that otherwise force
   a dark color and made the WA button text appear black. */
.qw-nudge__wa,
.qw-nudge__form,
a.qw-nudge__wa,
a.qw-nudge__form {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 9px 18px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.85rem;
	text-decoration: none;
	line-height: 1;
	border: 1.5px solid #1bcf17;
	box-shadow: none;
}

.qw-nudge__wa,
a.qw-nudge__wa,
a.qw-nudge__wa:visited {
	background: #1bcf17;
	color: #ffffff !important; /* beat theme `.qw-btn` + Storefront link color */
}
.qw-nudge__wa:hover,
.qw-nudge__wa:focus-visible,
a.qw-nudge__wa:hover,
a.qw-nudge__wa:focus-visible {
	background: #1bcf17;
	border-color: #1bcf17;
	color: #ffffff !important;
	outline: none;
}
.qw-nudge__wa svg,
a.qw-nudge__wa svg {
	flex: 0 0 auto;
	fill: #ffffff;
	color: #ffffff;
}

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

@media (max-width: 520px) {
	.qw-nudge {
		padding: 0.8rem 0.9rem 0.8rem 1rem;
	}
	.qw-nudge__actions { flex-direction: column; }
	.qw-nudge__wa,
	.qw-nudge__form { width: 100%; }
}

/* ============================================================
   INLINE ADVISORY BLOCK — 3 info landings + blog
   Sustituye a la antigua sección #qw-advisory del home. Bloque
   de cierre de scroll, ancho y sobrio, con 2 CTAs (WA + form).
   SSOT: verde #1bcf17, blanco, sin gradientes, sin transforms.
   ============================================================ */
.qw-advisory-block {
	margin: 3rem auto 2.5rem;
	padding: 0 16px;
}
.qw-advisory-block__inner {
	max-width: 640px;
	margin: 0 auto;
	padding: 2rem 1.75rem;
	background: #ffffff;
	border: none;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
	text-align: center;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #0f172a;
}
.qw-advisory-block__kicker {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1bcf17;
	margin-bottom: 0.6rem;
}
.qw-advisory-block__title {
	margin: 0 0 0.55rem;
	font-size: 1.55rem;
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: #0f172a;
}
.qw-advisory-block__desc {
	margin: 0 0 1.5rem;
	font-size: 0.96rem;
	line-height: 1.55;
	color: rgba(15, 23, 42, 0.72);
}
.qw-advisory-block__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: center;
}
.qw-advisory-block__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.4rem;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 900;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.qw-advisory-block__btn--wa {
	background: #1bcf17;
	color: #ffffff !important;
}
.qw-advisory-block__btn--wa:hover,
.qw-advisory-block__btn--wa:focus-visible {
	background: #1bcf17;
	color: #ffffff !important;
	outline: none;
}
.qw-advisory-block__btn--form {
	background: #ffffff;
	color: #0f172a !important;
	border: none;
	box-shadow: 0 4px 12px rgba(15,23,42,.08);
}
.qw-advisory-block__btn--form:hover,
.qw-advisory-block__btn--form:focus-visible {
	border-color: #1bcf17;
	color: #1bcf17 !important;
	outline: none;
}
@media (max-width: 520px) {
	.qw-advisory-block__inner {
		padding: 1.5rem 1.2rem;
	}
	.qw-advisory-block__title {
		font-size: 1.3rem;
	}
}
