/* Cotizador de fletes — estilos aislados bajo .fc-app */

.fc-app {
	--fc-ink: #101820;
	--fc-soft: #5a6873;
	--fc-paper: #f1f3f2;
	--fc-line: #d3d9dc;
	--fc-amber: #f2a900;
	--fc-wa: #25d366;
	--fc-ok: #1c7a52;
	--fc-error: #b3261e;
	--fc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: 18px;
	align-items: start;

	max-width: 980px;
	margin-inline: auto;

	color: var(--fc-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

.fc-app *,
.fc-app *::before,
.fc-app *::after {
	box-sizing: border-box;
}

/* ---------- Formulario ---------- */

.fc-form {
	background: #fff;
	border: 1px solid var(--fc-line);
	border-radius: 4px;
	padding: 20px;
}

.fc-head {
	margin-bottom: 16px;
}

.fc-title {
	margin: 0 0 2px;
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.fc-intro {
	margin: 0;
	font-size: 13.5px;
	color: var(--fc-soft);
}

.fc-field {
	position: relative;
	margin-bottom: 12px;
}

.fc-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.fc-label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	font-size: 12.5px;
	font-weight: 600;
}

.fc-opt {
	font-weight: 400;
	font-size: 11px;
	color: var(--fc-soft);
}

.fc-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	border: 1.5px solid var(--fc-ink);
	font-family: var(--fc-mono);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.fc-tag--b {
	background: var(--fc-ink);
	color: var(--fc-amber);
}

.fc-app input[type="text"],
.fc-app input[type="tel"],
.fc-app textarea {
	width: 100%;
	padding: 9px 11px;
	background: var(--fc-paper);
	border: 1px solid var(--fc-line);
	border-radius: 3px;
	color: var(--fc-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.35;
}

.fc-app textarea {
	resize: vertical;
	min-height: 58px;
}

.fc-app input:focus,
.fc-app textarea:focus {
	outline: 2px solid var(--fc-ink);
	outline-offset: 1px;
	background: #fff;
}

.fc-app ::placeholder {
	color: #94a0a8;
}

.fc-hint {
	display: block;
	min-height: 15px;
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--fc-soft);
}

.fc-hint--ok {
	color: var(--fc-ok);
}

/* ---------- Sugerencias ---------- */

.fc-ac-box {
	position: relative;
}

.fc-suggest {
	position: absolute;
	z-index: 900;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 210px;
	overflow-y: auto;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--fc-ink);
	border-radius: 3px;
	box-shadow: 0 6px 20px rgba(16, 24, 32, 0.16);
}

.fc-suggest-item {
	padding: 8px 11px;
	font-size: 13px;
	line-height: 1.3;
	cursor: pointer;
	border-bottom: 1px solid var(--fc-paper);
}

.fc-suggest-item:last-child {
	border-bottom: 0;
}

.fc-suggest-item:hover,
.fc-suggest-item.is-active {
	background: var(--fc-ink);
	color: #fff;
}

/* ---------- Etiquetas rápidas ---------- */

.fc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 6px;
}

.fc-chip {
	padding: 4px 9px;
	background: transparent;
	border: 1px solid var(--fc-line);
	border-radius: 999px;
	color: var(--fc-soft);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.fc-chip:hover {
	border-color: var(--fc-ink);
	color: var(--fc-ink);
}

.fc-chip.is-added {
	background: var(--fc-ink);
	border-color: var(--fc-ink);
	color: var(--fc-amber);
}

/* ---------- Envío ---------- */

.fc-send {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	margin-top: 4px;
	padding: 13px 18px;
	background: var(--fc-wa);
	border: 0;
	border-radius: 3px;
	color: #06301a;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
}

.fc-send:hover {
	filter: brightness(0.94);
}

.fc-send:active {
	transform: translateY(1px);
}

.fc-send:focus-visible {
	outline: 2px solid var(--fc-ink);
	outline-offset: 2px;
}

.fc-send[disabled] {
	opacity: 0.65;
	cursor: progress;
}

.fc-wa {
	flex: none;
}

.fc-legal {
	margin: 7px 0 0;
	font-size: 11.5px;
	color: var(--fc-soft);
	text-align: center;
}

.fc-alert {
	margin-top: 10px;
	padding: 9px 12px;
	border-left: 3px solid var(--fc-error);
	background: var(--fc-paper);
	font-size: 13px;
}

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

/* ---------- Mapa ---------- */

.fc-side {
	position: sticky;
	top: 16px;
}

.fc-map-wrap {
	position: relative;
	border: 1px solid var(--fc-line);
	border-radius: 4px;
	overflow: hidden;
	background: var(--fc-paper);
}

.fc-map {
	height: 340px;
	width: 100%;
	z-index: 0;
}

.fc-map-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(241, 243, 242, 0.94);
	color: var(--fc-soft);
	font-size: 13px;
	z-index: 400;
	pointer-events: none;
}

.fc-pin-body {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	border: 2px solid #101820;
	background: #fff;
	box-shadow: 0 2px 5px rgba(16, 24, 32, 0.35);
}

.fc-pin-body i {
	display: block;
	transform: rotate(45deg);
	line-height: 24px;
	text-align: center;
	font-family: ui-monospace, Menlo, monospace;
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	color: #101820;
}

.fc-pin--destino .fc-pin-body {
	background: #101820;
}

.fc-pin--destino .fc-pin-body i {
	color: #f2a900;
}

/* ---------- Barra de distancia ---------- */

.fc-bar {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 10px;
	padding: 11px 14px;
	background: var(--fc-ink);
	border-radius: 4px;
	color: #fff;
}

.fc-stat {
	display: flex;
	align-items: baseline;
	gap: 4px;
	flex: none;
}

.fc-stat b {
	font-family: var(--fc-mono);
	font-size: 26px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--fc-amber);
	font-variant-numeric: tabular-nums;
}

.fc-stat span {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.fc-bar-note {
	margin: 0 0 0 auto;
	font-size: 11px;
	line-height: 1.3;
	text-align: right;
	color: rgba(255, 255, 255, 0.6);
}

/* ---------- Adaptable ---------- */

@media (max-width: 860px) {
	.fc-app {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.fc-side {
		position: static;
		order: -1;
	}

	.fc-form {
		padding: 16px;
	}

	.fc-map {
		height: 240px;
	}
}

@media (max-width: 460px) {
	.fc-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.fc-bar-note {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fc-app * {
		transition: none !important;
	}
}
