/* =====================================================
   CONOCIMIENTO (carpeta conocimiento/ — índice y guías)
   Usa los tokens de color definidos en style.css (:root)
===================================================== */
.kb-page {
	padding: 150px 0 70px;
	background: var(--bg-primary);
}
.kb-wrap {
	max-width: 780px;
	margin: 0 auto;
}

/* Encabezado */
.kb-eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	color: var(--green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}
.kb-title {
	color: var(--text-primary);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
}
.kb-subtitle {
	color: var(--text-secondary);
	font-size: 18px;
	line-height: 1.6;
	margin: 0;
	max-width: 640px;
}
.kb-head {
	padding-bottom: 36px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--border);
}

/* Autor y fechas del artículo */
.kb-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 18px 0 0;
	color: var(--text-secondary);
	font-size: 13px;
	line-height: 1.6;
}
.kb-meta-label {
	color: var(--green);
	font-weight: 600;
}
.kb-meta > span + span::before {
	content: "\00B7";
	margin: 0 10px;
	color: var(--text-muted);
}

/* Índice: categorías y lista de guías */
.kb-category {
	margin-bottom: 44px;
}
.kb-category-title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-primary);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 14px;
}
.kb-category-title::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
	flex-shrink: 0;
}
.kb-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--border);
}
.kb-list li {
	border-bottom: 1px solid var(--border);
}
.kb-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 4px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.kb-list a:hover,
.kb-list a:focus-visible {
	background: var(--bg-secondary);
}
.kb-list-name {
	display: block;
	color: var(--text-primary);
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 4px;
}
.kb-list-desc {
	display: block;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}
.kb-list-arrow {
	color: var(--green);
	font-size: 20px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.kb-list a:hover .kb-list-arrow,
.kb-list a:focus-visible .kb-list-arrow {
	transform: translateX(4px);
}
.kb-soon {
	color: var(--text-muted);
	font-size: 14px;
	margin: 0;
	padding: 16px 4px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

/* Índice: tarjetas con imagen */
.kb-wrap--wide {
	max-width: 1100px;
}
.kb-wrap--wide .kb-head {
	max-width: 780px;
	border-bottom: none;
	margin-bottom: 20px;
}
.kb-wrap--wide .kb-category {
	padding-top: 32px;
	border-top: 1px solid var(--border);
	margin-bottom: 40px;
}
.kb-wrap--wide .kb-category-title {
	margin-bottom: 22px;
}
.kb-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.kb-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.kb-card a:hover,
.kb-card a:focus-visible {
	border-color: var(--green);
	transform: translateY(-3px);
}
.kb-card a:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}
.kb-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}
.kb-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.kb-card a:hover .kb-card-media img {
	transform: scale(1.03);
}
.kb-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px;
}
.kb-card-title {
	color: var(--text-primary);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 8px;
}
.kb-card-desc {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 18px;
}
.kb-card-link {
	margin-top: auto;
	color: var(--green);
	font-size: 14px;
	font-weight: 700;
}
.kb-card-link span {
	display: inline-block;
	transition: transform 0.2s ease;
}
.kb-card a:hover .kb-card-link span {
	transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
	.kb-card a,
	.kb-card-media img,
	.kb-card-link span {
		transition: none;
	}
}
@media (max-width: 991px) {
	.kb-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 575px) {
	.kb-cards {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* Artículo */
.kb-article .kb-title {
	font-size: 36px;
}
.kb-article .kb-head {
	margin-bottom: 8px;
}
.kb-body h2 {
	color: var(--text-primary);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	margin: 44px 0 14px;
}
.kb-body h3 {
	color: var(--text-primary);
	font-size: 17px;
	font-weight: 700;
	margin: 24px 0 10px;
}
.kb-body p,
.kb-body li {
	color: #D5DDD7;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
}
.kb-body p {
	margin: 0 0 16px;
}
.kb-body ul,
.kb-body ol {
	padding-left: 0;
	margin: 0 0 18px;
	list-style: none;
}
.kb-body li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
}
.kb-body ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.72em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
}
.kb-body ol {
	counter-reset: kb;
}
.kb-body ol li {
	counter-increment: kb;
	padding-left: 30px;
}
.kb-body ol li::before {
	content: counter(kb);
	position: absolute;
	left: 0;
	top: 0;
	color: var(--green);
	font-weight: 700;
}
.kb-body strong {
	color: var(--text-primary);
}
.kb-body a {
	color: var(--green);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.kb-body a:hover,
.kb-body a:focus-visible {
	color: var(--green-soft);
}
.kb-example {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-left: 3px solid var(--green);
	border-radius: 10px;
	padding: 20px 22px;
	margin: 22px 0;
}
.kb-example-label {
	display: block;
	color: var(--green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.kb-body .kb-example p:last-child,
.kb-body .kb-example ul:last-child {
	margin-bottom: 0;
}
.kb-table-wrap {
	overflow-x: auto;
	margin: 12px 0 0;
}
.kb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.kb-table th,
.kb-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--border);
	text-align: right;
	white-space: nowrap;
	color: #D5DDD7;
}
.kb-table th {
	color: var(--text-secondary);
	font-weight: 600;
}
.kb-table th:first-child,
.kb-table td:first-child {
	text-align: left;
}
.kb-body .kb-note {
	color: var(--text-secondary);
	font-size: 14px;
}

/* Nota regulatoria al final del artículo */
.kb-disclaimer {
	margin: 36px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	color: var(--text-secondary);
	font-size: 13px;
	line-height: 1.6;
}

/* CTA final */
.kb-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 50px 0 0;
	padding: 26px 28px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 14px;
}
.kb-cta-title {
	color: var(--text-primary);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}
.kb-cta-text {
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.6;
	margin: 6px 0 0;
}
.kb-cta .button-two {
	margin-top: 0;
	flex-shrink: 0;
}

/* Más guías */
.kb-related {
	margin-top: 50px;
}
.kb-related-title {
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin: 0 0 6px;
}

@media (max-width: 767px) {
	.kb-page {
		padding: 120px 0 50px;
	}
	.kb-title,
	.kb-article .kb-title {
		font-size: 28px;
	}
	.kb-subtitle {
		font-size: 16px;
	}
	.kb-body h2 {
		font-size: 21px;
		margin-top: 36px;
	}
	.kb-cta {
		flex-direction: column;
		align-items: flex-start;
	}
	.kb-meta {
		flex-direction: column;
	}
	.kb-meta > span + span::before {
		content: none;
	}
}
