/* Moralo Vehículos - formulario privado */
.moralo-form-wrap {
	max-width: 1120px;
	margin: 24px auto;
	padding: 0 16px 24px;
	color: #142033;
	font-family: inherit;
}

.moralo-form-wrap *,
.moralo-form-wrap *::before,
.moralo-form-wrap *::after {
	box-sizing: border-box;
}

.moralo-form-title {
	margin: 0 0 18px;
	padding: 24px 24px;
	border-radius: 16px;
	background: linear-gradient(135deg, #0b5ea8, #1683d8);
	color: #fff;
	box-shadow: 0 16px 36px rgba(11, 94, 168, 0.20);
}

.moralo-form-kicker {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.moralo-form-title h1 {
	margin: 0 0 8px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.05;
	color: #fff !important;
	font-style: normal !important;
	font-weight: 900 !important;
}

.moralo-form-title p {
	max-width: 820px;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
}

.moralo-vehicle-form {
	display: grid;
	gap: 18px;
}

.moralo-form-section {
	padding: 20px;
	background: #fff;
	border: 1px solid #d9e2ec;
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(20, 32, 51, 0.06);
}

.moralo-form-section h2 {
	margin: 0 0 8px;
	font-size: 21px;
	line-height: 1.2;
	letter-spacing: 0;
	color: #142033 !important;
	font-style: normal !important;
	font-weight: 900 !important;
}

.moralo-section-help {
	margin: 0 0 16px;
	color: #667085;
	font-size: 14px;
}

.moralo-admin-grid,
.moralo-form-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.moralo-admin-field,
.moralo-field {
	display: grid !important;
	gap: 7px;
	margin: 0 !important;
	align-content: start;
	color: #142033 !important;
}

.moralo-field-full {
	grid-column: 1 / -1;
}

.moralo-field span,
.moralo-field > .moralo-label-text,
.moralo-admin-field label {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	clip: auto !important;
	clip-path: none !important;
	overflow: visible !important;
	margin: 0 0 6px !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	line-height: 1.25 !important;
	color: #142033 !important;
	text-indent: 0 !important;
	text-transform: none !important;
	font-style: normal !important;
}

.moralo-required {
	color: #c0392b !important;
	font-weight: 900;
}

.moralo-vehicle-form input[type="text"],
.moralo-vehicle-form input[type="url"],
.moralo-vehicle-form input[type="number"],
.moralo-vehicle-form input[type="file"],
.moralo-vehicle-form select,
.moralo-vehicle-form textarea,
.moralo-admin-field input,
.moralo-admin-field select,
.moralo-admin-field textarea {
	box-sizing: border-box;
	width: 100% !important;
	min-height: 46px;
	padding: 10px 12px !important;
	border: 1px solid #cfd9e5 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #142033 !important;
	font-size: 15px !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	outline: none;
}

.moralo-vehicle-form textarea,
.moralo-admin-field textarea {
	min-height: 118px;
	resize: vertical;
}

.moralo-vehicle-form input:focus,
.moralo-vehicle-form select:focus,
.moralo-vehicle-form textarea:focus {
	border-color: #0b5ea8 !important;
	box-shadow: 0 0 0 3px rgba(11, 94, 168, 0.12) !important;
}

.moralo-input-suffix {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	gap: 0 !important;
}

.moralo-input-suffix input {
	border-radius: 10px 0 0 10px !important;
}

.moralo-input-suffix strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	padding: 0 12px;
	border: 1px solid #cfd9e5;
	border-left: 0;
	border-radius: 0 10px 10px 0;
	background: #f4f8fb;
	color: #0b5ea8;
	font-size: 14px;
	font-weight: 950;
}

.moralo-help {
	margin: 4px 0 0;
	font-size: 13px;
	color: #667085;
}

.moralo-check {
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #cfd9e5;
	border-radius: 10px;
	background: #f8fafc;
	font-weight: 800;
	color: #142033 !important;
}

.moralo-check input {
	width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	padding: 0 !important;
}

.moralo-notice {
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: 10px;
	border: 1px solid #d9e2ec;
	background: #f8fafc;
	color: #142033;
}

.moralo-notice-success {
	border-color: #b7ebc6;
	background: #effaf2;
}

.moralo-notice-error,
.moralo-notice-restricted {
	border-color: #ffc8c8;
	background: #fff4f4;
}

.moralo-current-gallery {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.moralo-current-gallery label {
	display: grid;
	gap: 6px;
	padding: 8px;
	border: 1px solid #d9e2ec;
	border-radius: 10px;
	background: #fff;
}

.moralo-current-gallery img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.moralo-form-actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	position: sticky;
	bottom: 0;
	z-index: 10;
	padding: 12px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #d9e2ec;
	border-radius: 16px;
	backdrop-filter: blur(6px);
}

.moralo-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px !important;
	border: 1px solid #0b5ea8 !important;
	border-radius: 10px !important;
	background: #0b5ea8 !important;
	color: #fff !important;
	font-weight: 900 !important;
	text-decoration: none !important;
	cursor: pointer;
}

.moralo-button-light {
	background: #fff !important;
	color: #0b5ea8 !important;
}

.moralo-file-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.moralo-upload-card {
	padding: 14px;
	border: 1px solid #d9e2ec;
	border-radius: 12px;
	background: #f8fafc;
}

@media (max-width: 900px) {
	.moralo-admin-grid,
	.moralo-form-grid,
	.moralo-file-grid,
	.moralo-current-gallery {
		grid-template-columns: 1fr;
	}

	.moralo-form-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.moralo-form-wrap {
		padding: 0 10px 24px;
		margin: 12px auto;
	}
}

@media (max-width: 560px) {
	.moralo-form-section {
		padding: 15px;
	}

	.moralo-form-actions {
		grid-template-columns: 1fr;
	}
}

/* Importador Excel/CSV */
.moralo-import-wrap .moralo-import-card,
.moralo-import-wrap .moralo-import-help {
	background: #fff;
	border: 1px solid #d7e3f2;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(15, 43, 86, .06);
	margin-top: 18px;
	max-width: 980px;
	padding: 20px 24px;
}
.moralo-import-wrap code {
	background: #eef6ff;
	border-radius: 6px;
	color: #0b5ea8;
	padding: 2px 6px;
}
.moralo-import-wrap details {
	margin-top: 10px;
}
.moralo-import-wrap details ul {
	max-height: 280px;
	overflow: auto;
}

/* Moralo Vehículos 2.0.27 - edición propia desde el listado */
.moralo-admin-edit-page {
	max-width: none;
}
.moralo-admin-edit-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 14px 0 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #d9e2ec;
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(20, 32, 51, 0.06);
}
.moralo-admin-edit-page .moralo-form-wrap {
	margin-top: 16px;
}


/* Moralo Vehículos 2.0.28 - gestión de fotos en edición */
.moralo-current-gallery-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 14px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}

.moralo-current-gallery-head strong {
	font-size: 16px;
	font-weight: 950;
	color: #142033;
}

.moralo-current-gallery-head span {
	font-size: 13px;
	font-weight: 700;
	color: #667085;
}

.moralo-current-gallery {
	grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
	gap: 12px;
}

.moralo-current-gallery-item {
	display: grid;
	gap: 8px;
	padding: 9px;
	border: 1px solid #d9e2ec;
	border-radius: 14px;
	background: #fff;
	transition: border-color .16s ease, background .16s ease, opacity .16s ease;
}

.moralo-current-gallery-item.is-main {
	border-color: #6998AD;
	box-shadow: 0 0 0 2px rgba(105, 152, 173, .12);
}

.moralo-current-gallery-item.is-marked-delete {
	border-color: #f1b8b8;
	background: #fff6f6;
	opacity: .72;
}

.moralo-current-gallery-image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 10px;
	background: #eef3f7;
}

.moralo-current-gallery-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.moralo-current-gallery-image span {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 4px 7px;
	border-radius: 999px;
	background: #6998AD;
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

.moralo-gallery-choice {
	display: flex !important;
	align-items: center;
	gap: 7px;
	margin: 0 !important;
	padding: 7px 8px;
	border-radius: 9px;
	background: #f7fafc;
	font-size: 12px !important;
	font-weight: 850 !important;
	line-height: 1.2 !important;
	color: #142033 !important;
}

.moralo-gallery-choice input {
	width: 16px !important;
	height: 16px !important;
	min-height: 16px !important;
	margin: 0 !important;
}

.moralo-gallery-delete-choice {
	background: #fff4f4;
	color: #9d1d1d !important;
}


/* 2.0.30 - eliminación directa de fotos */
.moralo-gallery-delete-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 8px 10px;
	border: 1px solid #c0392b;
	border-radius: 8px;
	background: #fff4f4;
	color: #9f1f1f;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.15;
	cursor: pointer;
}
.moralo-gallery-delete-now:hover {
	background: #c0392b;
	color: #fff;
}
.moralo-gallery-delete-now:disabled {
	opacity: .65;
	cursor: wait;
}
.moralo-current-gallery-item.is-deleting-now {
	opacity: .45;
	pointer-events: none;
}
.moralo-current-gallery-empty {
	padding: 12px 14px;
	border: 1px dashed #cfd9e5;
	border-radius: 10px;
	background: #f8fafc;
}
