/**
 * GEOCIKLO — Smart Quote Workspace (Gate 03D) — /cotizar/.
 *
 * Fully scoped visual system. Every declaration lives under `.gc-qw`; the sheet
 * never opens a global `:root` and never styles a class outside its own namespace.
 * Typography comes from the shared design system (geociklo-typography.css), which
 * the markup opts into with `.gc-title-hero`, `.gc-body-large`, `.gc-title-card`,
 * `.gc-body`, `.gc-body-small`, `.gc-eyebrow`, `.gc-btn-primary` and
 * `.gc-btn-secondary` — this file deliberately does not redefine any of them.
 */

/* ==========================================================================
   1. Scope tokens
   ========================================================================== */

.gc-qw {
	--gc-qw-ink: #073f4d;
	--gc-qw-ink-soft: #435b62;
	--gc-qw-ink-muted: #657879;
	--gc-qw-ink-faint: #94a3a5;
	--gc-qw-accent: #3fae6a;
	--gc-qw-accent-soft: rgba(63, 174, 106, 0.12);
	--gc-qw-accent-line: rgba(63, 174, 106, 0.32);
	--gc-qw-primary: #035877;
	--gc-qw-surface: #f7faf8;
	--gc-qw-card: #ffffff;
	--gc-qw-line: rgba(7, 63, 77, 0.1);
	--gc-qw-line-soft: rgba(7, 63, 77, 0.05);
	--gc-qw-shadow: 0 16px 40px -10px rgba(3, 88, 119, 0.1), 0 4px 16px -2px rgba(3, 88, 119, 0.04);
	--gc-qw-shadow-sm: 0 2px 8px rgba(3, 88, 119, 0.04);
	--gc-qw-radius: 18px;
	--gc-qw-radius-sm: 10px;
	--gc-qw-radius-full: 9999px;
	--gc-qw-glass-bg: rgba(255, 255, 255, 0.58);
	--gc-qw-glass-blur: 18px;
	--gc-qw-glass-border: rgba(255, 255, 255, 0.6);
	--gc-qw-ease: cubic-bezier(0.16, 1, 0.3, 1);

	position: relative;
	isolation: isolate;
	overflow-x: clip;
	padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 7vw, 96px);
	background: linear-gradient(180deg, var(--gc-qw-surface) 0%, #ffffff 62%);
	color: var(--gc-qw-ink-muted);
}

.gc-qw *,
.gc-qw *::before,
.gc-qw *::after {
	box-sizing: border-box;
}

.gc-qw__shell {
	position: relative;
	z-index: 1;
	width: min(100%, 1240px);
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px);
}

/* Decorative contour field */
.gc-qw__field {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	opacity: 0.5;
}

.gc-qw__field path {
	fill: none;
	stroke: var(--gc-qw-accent-line);
	stroke-width: 1.2;
	stroke-dasharray: 6 8;
}

/* ==========================================================================
   2. Topbar
   ========================================================================== */

.gc-qw__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: clamp(24px, 4vw, 44px);
}

.gc-qw__topbar-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.gc-qw__logo-badge {
	display: inline-flex;
	flex: 0 0 auto;
}

.gc-qw__ref {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 13px;
	border: 1px solid var(--gc-qw-line);
	border-radius: var(--gc-qw-radius-full);
	background: var(--gc-qw-card);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--gc-qw-primary);
	white-space: nowrap;
}

.gc-qw__ref-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gc-qw-accent);
}

.gc-qw__topbar-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.gc-qw__newquote {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border: 1px solid var(--gc-qw-line);
	border-radius: var(--gc-qw-radius-full);
	background: transparent;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gc-qw-ink);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gc-qw__newquote:hover,
.gc-qw__newquote:focus-visible {
	background: var(--gc-qw-card);
	border-color: var(--gc-qw-accent);
}

.gc-qw__status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px;
	border: 1px solid var(--gc-qw-line);
	border-radius: var(--gc-qw-radius-full);
	background: var(--gc-qw-card);
	box-shadow: var(--gc-qw-shadow-sm);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--gc-qw-ink);
}

.gc-qw__status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gc-qw-accent);
}

.gc-qw__status-pill[data-gc-status="REQUIRES_REVIEW"] .gc-qw__status-dot,
.gc-qw__status-pill[data-gc-status="UNDER_REVIEW"] .gc-qw__status-dot {
	background: var(--gc-qw-primary);
}

/* ==========================================================================
   3. Hero
   ========================================================================== */

.gc-qw__hero {
	max-width: 820px;
	margin: 0 auto clamp(28px, 5vw, 52px) auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gc-qw__eyebrow {
	margin-bottom: 14px;
	text-align: center;
}

.gc-qw__eyebrow-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gc-qw-accent);
}

.gc-qw__h1 {
	margin: 0 0 16px;
	text-align: center;
}

.gc-qw__lead {
	margin: 0 auto 22px auto;
	text-align: center;
}

.gc-qw__engine-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 16px;
	margin: 0 auto;
	border: 1px solid var(--gc-qw-line-soft);
	border-radius: var(--gc-qw-radius-full);
	background: var(--gc-qw-accent-soft);
}

.gc-qw__engine-meta {
	margin: 0;
	font-weight: 600;
	color: var(--gc-qw-ink-soft);
}

/* ==========================================================================
   4. Grid
   ========================================================================== */

.gc-qw__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: clamp(18px, 2.5vw, 30px);
	align-items: start;
}

.gc-qw__col {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2vw, 22px);
	min-width: 0;
}

/* ==========================================================================
   5. Panels
   ========================================================================== */

.gc-qw__panel {
	position: relative;
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid var(--gc-qw-line);
	border-radius: var(--gc-qw-radius);
	background: var(--gc-qw-glass-bg);
	backdrop-filter: blur(var(--gc-qw-glass-blur));
	-webkit-backdrop-filter: blur(var(--gc-qw-glass-blur));
	box-shadow: var(--gc-qw-shadow);
	min-width: 0;
}

.gc-qw[data-gc-glass="off"] .gc-qw__panel {
	background: var(--gc-qw-card);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.gc-qw__panel-h {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	color: var(--gc-qw-primary);
}

/* ==========================================================================
   6. Question panel
   ========================================================================== */

.gc-qw__q-step {
	margin: 0 0 10px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gc-qw-ink-faint);
}

.gc-qw__q-label {
	margin: 0 0 8px;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--gc-qw-ink);
	text-wrap: balance;
}

.gc-qw__q-help {
	margin: 0 0 20px;
	max-width: 58ch;
}

.gc-qw__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 10px;
	margin-bottom: 22px;
}

.gc-qw__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	padding: 14px 16px;
	border: 1.5px solid var(--gc-qw-line);
	border-radius: var(--gc-qw-radius-sm);
	background: var(--gc-qw-card);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gc-qw-ink);
	text-align: left;
	cursor: pointer;
	transition: border-color 180ms var(--gc-qw-ease), box-shadow 180ms var(--gc-qw-ease), transform 180ms var(--gc-qw-ease);
}

.gc-qw__option:hover {
	border-color: var(--gc-qw-accent-line);
	transform: translateY(-1px);
}

.gc-qw__option:focus-visible {
	outline: 2px solid var(--gc-qw-accent);
	outline-offset: 2px;
}

.gc-qw__option.is-selected {
	border-color: var(--gc-qw-accent);
	background: var(--gc-qw-accent-soft);
	box-shadow: 0 0 0 1px var(--gc-qw-accent) inset;
}

.gc-qw__option-t {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Quantity control */
.gc-qw__quantity {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 22px;
}

.gc-qw__number {
	width: 100%;
	max-width: 260px;
	padding: 13px 16px;
	border: 1.5px solid var(--gc-qw-line);
	border-radius: var(--gc-qw-radius-sm);
	background: var(--gc-qw-card);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: var(--gc-qw-ink);
}

.gc-qw__number:focus-visible {
	outline: 2px solid var(--gc-qw-accent);
	outline-offset: 2px;
}

.gc-qw__units {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gc-qw__unit {
	padding: 9px 15px;
	border: 1.5px solid var(--gc-qw-line);
	border-radius: var(--gc-qw-radius-full);
	background: var(--gc-qw-card);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--gc-qw-ink);
	cursor: pointer;
	transition: border-color 180ms var(--gc-qw-ease), background-color 180ms var(--gc-qw-ease);
}

.gc-qw__unit:hover {
	border-color: var(--gc-qw-accent-line);
}

.gc-qw__unit:focus-visible {
	outline: 2px solid var(--gc-qw-accent);
	outline-offset: 2px;
}

.gc-qw__unit.is-selected {
	border-color: var(--gc-qw-accent);
	background: var(--gc-qw-accent-soft);
}

/* ==========================================================================
   7. Buttons & actions
   ========================================================================== */

.gc-qw__qactions,
.gc-qw__ready-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gc-qw__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 24px;
	border: none;
	border-radius: var(--gc-qw-radius-full);
	font-family: inherit;
	cursor: pointer;
	transition: transform 180ms var(--gc-qw-ease), box-shadow 180ms var(--gc-qw-ease), opacity 180ms var(--gc-qw-ease);
}

.gc-qw__btn:focus-visible {
	outline: 2px solid var(--gc-qw-accent);
	outline-offset: 3px;
}

.gc-qw__btn--primary {
	background: var(--gc-qw-accent);
	color: #ffffff;
	box-shadow: 0 8px 20px -4px rgba(3, 88, 119, 0.25);
}

.gc-qw__btn--primary:hover:not(:disabled) {
	transform: translateY(-1px);
}

.gc-qw__btn--primary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

.gc-qw__btn--ghost {
	background: transparent;
	border: 1.5px solid var(--gc-qw-line);
	color: var(--gc-qw-ink);
}

.gc-qw__btn--ghost:hover {
	border-color: var(--gc-qw-accent-line);
}

/* Busy indicator */
.gc-qw__thinking {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gc-qw-ink-faint);
}

.gc-qw__thinking i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gc-qw-accent);
	animation: gc-qw-pulse 1.2s infinite ease-in-out;
}

.gc-qw__thinking i:nth-child(2) {
	animation-delay: 0.18s;
}

.gc-qw__thinking i:nth-child(3) {
	animation-delay: 0.36s;
}

@keyframes gc-qw-pulse {
	0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
	40% { opacity: 1; transform: scale(1); }
}

.gc-qw__notice {
	margin: 16px 0 0;
	padding: 12px 15px;
	border: 1px solid var(--gc-qw-line);
	border-left: 3px solid var(--gc-qw-primary);
	border-radius: var(--gc-qw-radius-sm);
	background: var(--gc-qw-card);
	font-size: 0.875rem;
	color: var(--gc-qw-ink-soft);
}

/* ==========================================================================
   8. Context panel
   ========================================================================== */

.gc-qw__ctxcount {
	margin: 0 0 6px;
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--gc-qw-ink);
}

.gc-qw__ctxsource {
	margin: 0 0 16px;
}

.gc-qw__facts {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gc-qw__fact {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px solid var(--gc-qw-line-soft);
}

.gc-qw__fact:last-child {
	border-bottom: none;
}

.gc-qw__fact--pending {
	opacity: 0.66;
}

.gc-qw__fact-k {
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gc-qw-ink-faint);
}

.gc-qw__fact-v {
	min-width: 0;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: right;
	color: var(--gc-qw-ink);
	overflow-wrap: anywhere;
}

.gc-qw__empty {
	margin: 0;
}

/* ==========================================================================
   9. Readiness panel
   ========================================================================== */

.gc-qw__readiness-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.gc-qw__readiness-l {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gc-qw-ink-faint);
}

.gc-qw__readiness-v {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	color: var(--gc-qw-primary);
	font-variant-numeric: tabular-nums;
}

.gc-qw__rail {
	display: block;
	width: 100%;
	height: 6px;
	border-radius: var(--gc-qw-radius-full);
	background: rgba(7, 63, 77, 0.08);
	overflow: hidden;
}

.gc-qw__fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: var(--gc-qw-radius-full);
	background: var(--gc-qw-accent);
	transition: width 420ms var(--gc-qw-ease);
}

.gc-qw__readiness-detail {
	margin: 12px 0 4px;
	font-weight: 600;
	color: var(--gc-qw-ink-soft);
}

.gc-qw__readiness-note {
	margin: 0;
}

.gc-qw__missing {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--gc-qw-line-soft);
}

.gc-qw__missing-h {
	margin: 0 0 9px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gc-qw-ink-faint);
}

.gc-qw__missing-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gc-qw__missing-item {
	padding: 5px 12px;
	border: 1px dashed var(--gc-qw-line);
	border-radius: var(--gc-qw-radius-full);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gc-qw-ink-muted);
}

/* ==========================================================================
   10. Screen 2 — ready for evaluation
   ========================================================================== */

.gc-qw__panel--ready {
	border-color: var(--gc-qw-accent-line);
}

.gc-qw__ready-t,
.gc-qw__review-t,
.gc-qw__estimate-t {
	margin: 0 0 10px;
	letter-spacing: 0.01em;
}

.gc-qw__ready-d,
.gc-qw__review-d {
	margin: 0 0 12px;
	max-width: 62ch;
}

.gc-qw__summary {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 24px;
}

.gc-qw__summary-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1 1 160px;
	min-width: 0;
	padding: 12px 15px;
	border: 1px solid var(--gc-qw-line-soft);
	border-radius: var(--gc-qw-radius-sm);
	background: var(--gc-qw-card);
}

.gc-qw__summary-k {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gc-qw-ink-faint);
}

.gc-qw__summary-v {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--gc-qw-ink);
	overflow-wrap: anywhere;
}

/* ==========================================================================
   11. Screen 3a — commercial review
   ========================================================================== */

.gc-qw__panel--review {
	border-color: rgba(3, 88, 119, 0.28);
}

.gc-qw__reasons {
	margin: 18px 0 0;
	padding: 15px 17px;
	border-radius: var(--gc-qw-radius-sm);
	background: rgba(3, 88, 119, 0.05);
}

.gc-qw__reasons-h {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gc-qw-primary);
}

.gc-qw__reasons-list {
	margin: 0;
	padding-left: 18px;
}

.gc-qw__reason {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--gc-qw-ink-soft);
}

.gc-qw__confirmed {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--gc-qw-accent-line);
	border-radius: var(--gc-qw-radius-sm);
	background: var(--gc-qw-accent-soft);
}

.gc-qw__confirmed-ico {
	flex: 0 0 auto;
	display: inline-flex;
	margin-top: 1px;
}

.gc-qw__confirmed-t {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	font-weight: 800;
	color: var(--gc-qw-ink);
}

.gc-qw__confirmed-d {
	margin: 0;
}

/* ==========================================================================
   12. Screen 3b — estimate
   ========================================================================== */

.gc-qw__table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 18px;
}

.gc-qw__table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.gc-qw__table th,
.gc-qw__table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--gc-qw-line-soft);
}

.gc-qw__table thead th {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gc-qw-ink-faint);
	white-space: nowrap;
}

.gc-qw__table tbody td {
	font-weight: 600;
	color: var(--gc-qw-ink);
}

.gc-qw__table tfoot th {
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--gc-qw-ink);
}

.gc-qw__table tfoot td {
	font-weight: 900;
	color: var(--gc-qw-primary);
}

.gc-qw__table-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.gc-qw__estimate-disclaimer {
	margin: 0;
	padding: 12px 15px;
	border-left: 3px solid var(--gc-qw-accent);
	border-radius: var(--gc-qw-radius-sm);
	background: var(--gc-qw-accent-soft);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--gc-qw-ink-soft);
}

/* ==========================================================================
   13. Utilities
   ========================================================================== */

.gc-qw__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.gc-qw__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gc-qw__col--side {
		order: -1;
	}
}

@media (max-width: 620px) {
	.gc-qw__options {
		grid-template-columns: minmax(0, 1fr);
	}

	.gc-qw__fact {
		flex-direction: column;
		align-items: flex-start;
		gap: 3px;
	}

	.gc-qw__fact-v {
		text-align: left;
	}

	.gc-qw__btn {
		width: 100%;
	}

	.gc-qw__number {
		max-width: 100%;
	}

	.gc-qw__table {
		min-width: 460px;
	}
}

/* ==========================================================================
   15. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.gc-qw *,
	.gc-qw *::before,
	.gc-qw *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.gc-qw__option:hover,
	.gc-qw__btn--primary:hover:not(:disabled) {
		transform: none;
	}
}
