/* Herramientas de 1938.com.es: mismos colores que vi-movilidad-valencia. */
.vi-tool,
.vi-tools-index {
	--vi-t-ink: #10202c;
	--vi-t-muted: #526171;
	--vi-t-line: #cfe2dc;
	--vi-t-soft: #f2faf7;
	--vi-t-brand: #005747;
	--vi-t-brand-2: #0b7664;
	--vi-t-alert: #b54708;
	--vi-t-error: #b42318;
	color: var(--vi-t-ink);
}

.vi-tool {
	background: #fff;
	border: 1px solid var(--vi-t-line);
	border-radius: 16px;
	padding: 24px;
	margin: 0 0 24px;
	box-shadow: 0 1px 3px rgba(16, 32, 44, 0.06);
}

.vi-tool-head {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 18px;
}

.vi-tool-icon {
	font-size: 28px;
	line-height: 1;
	background: var(--vi-t-soft);
	border-radius: 12px;
	padding: 10px;
}

.vi-tool-title {
	margin: 0 0 4px;
	font-size: 1.35em;
}

.vi-tool-desc {
	margin: 0;
	color: var(--vi-t-muted);
}

.vi-tool-form {
	display: grid;
	gap: 14px;
}

.vi-field {
	display: grid;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

.vi-field label,
.vi-field legend {
	font-weight: 600;
}

.vi-field input[type="email"],
.vi-field input[type="text"],
.vi-field input[type="file"],
.vi-pair-search select {
	width: 100%;
	max-width: 520px;
	padding: 10px 12px;
	border: 1px solid #b9cec7;
	border-radius: 10px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}

.vi-pair-search select {
	width: auto;
	padding: 8px 10px;
}

.vi-field input:focus-visible,
.vi-pair-search select:focus-visible,
.vi-btn:focus-visible,
.vi-chip:focus-visible {
	outline: 3px solid var(--vi-t-brand-2);
	outline-offset: 2px;
}

.vi-help {
	margin: 0;
	font-size: 0.9em;
	color: var(--vi-t-muted);
}

.vi-btn {
	display: inline-block;
	justify-self: start;
	background: var(--vi-t-brand);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 11px 20px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.vi-btn:hover {
	background: var(--vi-t-brand-2);
	color: #fff;
}

.vi-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.vi-btn-secondary {
	background: #fff;
	color: var(--vi-t-brand);
	border: 1px solid var(--vi-t-brand);
	padding: 8px 14px;
}

.vi-btn-secondary:hover {
	background: var(--vi-t-soft);
	color: var(--vi-t-brand);
}

.vi-btn-small {
	padding: 7px 12px;
	font-size: 0.9em;
}

.vi-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
}

.vi-pair-search {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 0.95em;
}

.vi-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 4px;
}

.vi-chip {
	border: 1px solid var(--vi-t-line);
	background: var(--vi-t-soft);
	color: var(--vi-t-brand);
	border-radius: 999px;
	padding: 6px 12px;
	font: inherit;
	font-size: 0.9em;
	cursor: pointer;
}

.vi-chip[aria-pressed="true"] {
	background: var(--vi-t-brand);
	border-color: var(--vi-t-brand);
	color: #fff;
}

.vi-exchanges {
	border: 0;
	padding: 0;
}

.vi-exchange-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.vi-check {
	font-weight: 400 !important;
	white-space: nowrap;
}

.vi-status {
	margin: 0;
	min-height: 1.4em;
	font-weight: 500;
}

.vi-status.is-loading {
	color: var(--vi-t-muted);
}

.vi-status.is-ok {
	color: var(--vi-t-brand);
}

.vi-status.is-error {
	color: var(--vi-t-error);
}

.vi-notice {
	background: #fff7ed;
	border-left: 4px solid var(--vi-t-alert);
	padding: 10px 14px;
	border-radius: 6px;
	margin: 0 0 12px;
}

.vi-turnstile {
	min-height: 65px;
}

.vi-table-wrap {
	overflow-x: auto;
	margin: 16px 0 8px;
	-webkit-overflow-scrolling: touch;
}

.vi-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
	font-variant-numeric: tabular-nums;
}

.vi-table th,
.vi-table td {
	padding: 9px 10px;
	border-bottom: 1px solid var(--vi-t-line);
	text-align: right;
	white-space: nowrap;
}

.vi-table th:first-child,
.vi-table td:last-child {
	text-align: left;
}

.vi-table thead th {
	background: var(--vi-t-soft);
	font-weight: 600;
}

.vi-table .is-best {
	background: #e3f5ee;
	font-weight: 700;
}

.vi-table .is-empty {
	color: var(--vi-t-muted);
	font-style: italic;
}

.vi-table .is-up {
	color: var(--vi-t-brand);
}

.vi-table .is-down,
.vi-table .is-error {
	color: var(--vi-t-error);
}

.vi-products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.vi-product {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 14px;
	align-items: center;
	border: 1px solid var(--vi-t-line);
	border-radius: 12px;
	padding: 10px 14px;
	margin: 0;
}

.vi-product.is-empty {
	display: block;
	color: var(--vi-t-muted);
}

.vi-product img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.vi-product-info {
	min-width: 0;
	grid-column: 2;
}

.vi-product-title {
	margin: 0 0 4px;
	font-weight: 600;
	line-height: 1.3;
}

.vi-product-meta,
.vi-product-ship {
	margin: 0;
	font-size: 0.85em;
	color: var(--vi-t-muted);
}

.vi-product-side {
	text-align: right;
	display: grid;
	gap: 4px;
	justify-items: end;
}

.vi-product-price {
	margin: 0;
	font-size: 1.2em;
	font-weight: 700;
	color: var(--vi-t-brand);
}

.vi-tool-origin {
	margin: 20px 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--vi-t-line);
	font-size: 0.88em;
	color: var(--vi-t-muted);
}

.vi-tool-origin a {
	color: var(--vi-t-brand);
	font-weight: 600;
}

.vi-tools-index {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
	margin: 0 0 8px;
}

.vi-tools-card {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 20px;
	border: 1px solid var(--vi-t-line);
	border-radius: 16px;
	background: #fff;
	color: var(--vi-t-ink);
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

a.vi-tools-card:hover {
	border-color: var(--vi-t-brand-2);
	box-shadow: 0 4px 14px rgba(0, 87, 71, 0.12);
	color: var(--vi-t-ink);
}

.vi-tools-card.is-soon {
	opacity: 0.6;
}

.vi-tools-card-icon {
	font-size: 28px;
}

.vi-tools-card-title {
	font-weight: 700;
	font-size: 1.1em;
}

.vi-tools-card-desc {
	color: var(--vi-t-muted);
	font-size: 0.92em;
}

.vi-tools-card-cta {
	margin-top: 6px;
	color: var(--vi-t-brand);
	font-weight: 600;
	font-size: 0.92em;
}

@media (max-width: 600px) {
	.vi-tool {
		padding: 16px;
		border-radius: 12px;
	}

	.vi-product {
		grid-template-columns: 56px 1fr;
	}

	.vi-product img {
		width: 56px;
		height: 56px;
	}

	.vi-product-side {
		grid-column: 1 / -1;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		text-align: left;
		justify-items: start;
	}

	.vi-product-side .vi-btn {
		justify-self: end;
	}
}

.vi-tool-back {
	margin: 0 0 12px;
	font-size: 0.92em;
}

.vi-tool-back a {
	color: #005747;
	font-weight: 600;
	text-decoration: none;
}

.vi-tool-back a:hover {
	text-decoration: underline;
}
