/* XIA Jobs Connect — frontend */
.xcd {
	--xcd-bg: #f6f7fb;
	--xcd-card: #fff;
	--xcd-border: #e2e6ef;
	--xcd-accent: #2563eb;
	--xcd-text: #1e293b;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: var(--xcd-text);
	line-height: 1.5;
}

.xcd-card {
	background: var(--xcd-card);
	border: 1px solid var(--xcd-border);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.xcd-title {
	margin-top: 0;
	font-size: 1.5rem;
}

.xcd-lead {
	color: #475569;
	margin-bottom: 1.25rem;
}

.xcd-form .xcd-field {
	margin-bottom: 1rem;
}

.xcd-form label,
.xcd-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.xcd-sublabel {
	font-weight: 500;
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

.xcd-form input[type="text"],
.xcd-form input[type="email"],
.xcd-form input[type="number"],
.xcd-form input.xcd-readonly {
	background: #f1f5f9;
	cursor: not-allowed;
}

.xcd-form input[type="search"],
.xcd-form textarea,
.xcd-form select {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--xcd-border);
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
}

.xcd-checkgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.xcd-check {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 400;
}

.xcd-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 640px) {
	.xcd-field-row {
		grid-template-columns: 1fr;
	}
}

.xcd-btn {
	display: inline-block;
	background: var(--xcd-accent);
	color: #fff !important;
	border: none;
	padding: 0.65rem 1.25rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.xcd-btn:hover {
	filter: brightness(1.05);
}

.xcd-btn-small {
	padding: 0.4rem 0.75rem;
	font-size: 0.9rem;
}

.xcd-form-msg {
	min-height: 1.25rem;
	font-size: 0.95rem;
}

.xcd-form-msg.xcd-ok {
	color: #15803d;
}

.xcd-form-msg.xcd-err,
.xcd-err {
	color: #b91c1c;
}

.xcd-hint {
	font-size: 0.9rem;
	color: #64748b;
}

/* IA */
.xcd-ai-results {
	margin-top: 1.5rem;
	padding: 1rem;
	background: var(--xcd-bg);
	border-radius: 8px;
	border: 1px solid var(--xcd-border);
}

.xcd-ai-top li {
	margin-bottom: 0.75rem;
}

.xcd-loading {
	color: #64748b;
}

/* Catálogo */
.xcd-catalog {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.xcd-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: var(--xcd-bg);
	border-radius: 10px;
	border: 1px solid var(--xcd-border);
}

.xcd-filters .xcd-field {
	margin: 0;
	min-width: 140px;
}

.xcd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.xcd-project-card {
	background: var(--xcd-card);
	border: 1px solid var(--xcd-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.xcd-project-thumb {
	display: block;
	aspect-ratio: 16/10;
	background: #e2e8f0;
	overflow: hidden;
}

.xcd-project-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xcd-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #64748b;
}

.xcd-project-body {
	padding: 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.xcd-project-body h3 {
	margin: 0;
	font-size: 1.1rem;
}

.xcd-excerpt {
	font-size: 0.95rem;
	color: #475569;
	margin: 0;
}

.xcd-price {
	font-weight: 700;
	color: var(--xcd-accent);
	margin: 0;
}

.xcd-details {
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

.xcd-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.5rem;
}

.xcd-gallery a img {
	border-radius: 4px;
}

.xcd-pagination {
	margin-top: 1.5rem;
}

.xcd-empty {
	color: #64748b;
}

.xcd-notice {
	padding: 1rem;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 8px;
}
