/**
 * Karlas — Dudas por módulo.
 * Estilos acotados a .kd-* para no pelear con Tutor.
 */

.kd-box {
	background: #fff;
	border: 1px solid #e6e6ef;
	border-radius: 14px;
	padding: 22px;
	margin: 24px 0;
	box-shadow: 0 8px 24px rgba(20, 16, 60, 0.05);
	font-size: 15px;
	line-height: 1.6;
	color: #2b2b3a;
}

.kd-box--compact {
	padding: 18px;
	margin-top: 28px;
}

.kd-box__head,
.kd-subpage__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.kd-kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a86a8;
	margin-bottom: 4px;
}

.kd-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: #1f1b3a;
}

.kd-subpage__head {
	margin-bottom: 22px;
}

.kd-subpage__head .kd-title {
	font-size: 24px;
}

.kd-muted {
	color: #6b6880;
	font-size: 14px;
}

.kd-hint {
	color: #8a86a8;
	font-size: 12px;
}

.kd-link {
	color: #42229c;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.kd-link--small {
	font-size: 13px;
}

.kd-form {
	display: grid;
	gap: 14px;
	margin: 0 0 24px;
	padding: 18px;
	background: #f7f6fc;
	border: 1px solid #eceaf7;
	border-radius: 12px;
}

.kd-form__intro {
	margin: 0;
	color: #3c3956;
}

.kd-field {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #4a4666;
}

.kd-field small {
	font-weight: 400;
	color: #8a86a8;
}

.kd-field input,
.kd-field textarea,
.kd-filters input,
.kd-filters select,
.kd-reply-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #dcd9ea;
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	font-weight: 400;
	color: #232033;
	background: #fff;
}

.kd-field textarea,
.kd-reply-form textarea {
	resize: vertical;
}

.kd-field input:focus,
.kd-field textarea:focus,
.kd-filters input:focus,
.kd-filters select:focus,
.kd-reply-form textarea:focus {
	outline: 2px solid rgba(66, 34, 156, 0.25);
	border-color: #42229c;
}

.kd-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #5a5675;
}

.kd-check input {
	margin-top: 3px;
}

.kd-form__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.kd-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	background: #42229c;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 11px 22px;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.kd-button:hover {
	background: #341a7e;
	transform: translateY(-1px);
}

.kd-button--small {
	padding: 8px 16px;
	font-size: 13px;
}

.kd-button--ghost {
	background: #fff;
	color: #42229c;
	border: 1px solid #d8d3ee;
}

.kd-button--ghost:hover {
	background: #f2effc;
}

.kd-button.is-current {
	background: #42229c;
	color: #fff;
	border-color: #42229c;
}

.kd-alert {
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	margin: 0 0 16px;
}

.kd-alert--ok {
	background: #eaf7ef;
	border: 1px solid #bfe6cd;
	color: #1d6b3a;
}

.kd-alert--error {
	background: #fdeeee;
	border: 1px solid #f3c6c6;
	color: #8a1f1f;
}

.kd-list__title {
	font-size: 15px;
	margin: 18px 0 10px;
	color: #1f1b3a;
}

.kd-item {
	border: 1px solid #ececf3;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
	background: #fff;
}

.kd-item__top {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 6px;
	font-size: 13px;
}

.kd-item__who {
	color: #1f1b3a;
}

.kd-item__alias {
	color: #8a86a8;
	font-weight: 400;
}

.kd-item__date {
	margin-left: auto;
	color: #8a86a8;
	font-size: 12px;
}

.kd-item__message {
	color: #33304a;
	white-space: normal;
}

.kd-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: #efeaf9;
	color: #42229c;
}

.kd-badge--abierta {
	background: #fff1e6;
	color: #9a4b00;
}

.kd-badge--en_seguimiento {
	background: #e8f1ff;
	color: #1b4f9c;
}

.kd-badge--resuelta {
	background: #e8f7ee;
	color: #1d6b3a;
}

.kd-replies {
	margin-top: 12px;
	padding-left: 14px;
	border-left: 3px solid #eceaf7;
	display: grid;
	gap: 10px;
}

.kd-replies--detail {
	margin-top: 18px;
	margin-bottom: 18px;
}

.kd-reply {
	font-size: 14px;
	color: #3b3855;
}

.kd-reply__who {
	display: inline-block;
	font-weight: 700;
	color: #42229c;
	margin-right: 8px;
}

.kd-reply__date {
	color: #8a86a8;
	font-size: 12px;
}

.kd-reply__text {
	margin-top: 2px;
}

.kd-reply-form {
	margin-top: 10px;
}

.kd-reply-form summary {
	cursor: pointer;
	color: #42229c;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
}

.kd-reply-form form {
	display: grid;
	gap: 8px;
}

.kd-sidebar-link {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 2px 36px;
	padding: 6px 10px;
	border-radius: 8px;
	background: #f5f2ff;
	color: #42229c;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.kd-sidebar-link:hover {
	background: #ece6ff;
}

.kd-sidebar-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #42229c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.kd-inline-wrap {
	margin-top: 30px;
}

.kd-subpage {
	max-width: 920px;
	margin: 0 auto;
	padding: 8px 0 40px;
}

.kd-modules {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 16px;
}

.kd-module-tab {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid #ddd8ee;
	background: #fff;
	color: #4a4666;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.kd-module-tab:hover {
	border-color: #42229c;
	color: #42229c;
}

.kd-module-tab.is-active {
	background: #42229c;
	border-color: #42229c;
	color: #fff;
}

.kd-dashboard .kd-filters {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 18px;
	padding: 14px;
	background: #f7f6fc;
	border: 1px solid #eceaf7;
	border-radius: 12px;
}

.kd-filters label {
	display: grid;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #4a4666;
}

.kd-filters__search {
	min-width: 200px;
	flex: 1;
}

.kd-table-wrap {
	overflow-x: auto;
	border: 1px solid #ececf3;
	border-radius: 12px;
}

.kd-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.kd-table th,
.kd-table td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid #f0eff6;
	vertical-align: top;
}

.kd-table th {
	background: #faf9fe;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b6880;
}

.kd-table tr:last-child td {
	border-bottom: 0;
}

.kd-detail__grid {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.kd-detail__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	font-size: 12px;
}

.kd-detail__message {
	margin: 16px 0;
	padding: 14px 16px;
	background: #f8f7fd;
	border-radius: 10px;
}

.kd-detail__links {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.kd-form--reply {
	background: #fff;
	border-style: dashed;
}

.kd-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.kd-actions form {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.kd-pagination {
	margin-top: 16px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.kd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 8px;
	border: 1px solid #ddd8ee;
	text-decoration: none;
	color: #42229c;
	font-size: 13px;
}

.kd-pagination .page-numbers.current {
	background: #42229c;
	border-color: #42229c;
	color: #fff;
}

@media (max-width: 640px) {
	.kd-box {
		padding: 16px;
	}

	.kd-item__date {
		margin-left: 0;
		width: 100%;
	}

	.kd-detail__meta {
		align-items: flex-start;
	}

	.kd-sidebar-link {
		margin-left: 0;
	}
}
