/* Caufy KB 1.1 · Centro de Ayuda */
.ckb-portal,
.ckb-single {
	--ckb-navy: #0a1f5c;
	--ckb-navy-2: #0f3a99;
	--ckb-blue: #0050c8;
	--ckb-blue-dark: #003d9b;
	--ckb-sky: #8fd0ff;
	--ckb-soft: #eaf1ff;
	--ckb-text: #101828;
	--ckb-muted: #5b6478;
	--ckb-border: #e4e7ec;
	--ckb-card: #ffffff;
	--ckb-radius: 14px;
	--ckb-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
	--ckb-shadow-hover: 0 12px 28px rgba(0, 80, 200, .14);
	font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--ckb-text);
	line-height: 1.55;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.ckb-portal *, .ckb-portal *::before, .ckb-portal *::after,
.ckb-single *, .ckb-single *::before, .ckb-single *::after { box-sizing: border-box; }
.ckb-portal :is(h2, h3, h4, p, strong, span, a, li, input, select, button),
.ckb-single :is(h2, h3, h4, p, strong, span, a, li) { font-family: inherit; }
.ckb-portal a, .ckb-single a { text-decoration: none; }
.ckb-portal ul, .ckb-single ul { list-style: none; margin: 0; padding: 0; }
.ckb-portal [hidden] { display: none !important; }
.ckb-ico { flex: none; display: block; }

.ckb-portal { width: 100%; margin: 0 auto; padding: 0 0 48px; }

/* ---------- Ocultar título nativo del tema ---------- */
body.single-ckb_entry .page-title,
body.single-ckb_entry .entry-header,
body.single-ckb_entry .entry-title,
body.single-ckb_entry .woodmart-title-container {
	display: none !important;
}

/* ---------- Hero + buscador (Full Width) ---------- */
.ckb-portal .ckb-hero {
	background: radial-gradient(1200px 400px at 85% -10%, rgba(80, 140, 255, .35), transparent 60%),
	            linear-gradient(135deg, var(--ckb-navy) 0%, var(--ckb-navy-2) 100%);
	border-radius: 0;
	padding: 56px 24px 120px;
	transition: padding .25s ease;
	width: 100%;
}

/* Truco para romper el contenedor del tema en entradas individuales y forzar 100% de pantalla */
.ckb-portal.is-single .ckb-hero {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	border-radius: 0;
}

.ckb-portal:not(.is-home) .ckb-hero { padding-bottom: 52px; }

/* Contenedor Flexbox para Imagen y Textos */
.ckb-hero__inner { 
	max-width: 960px; 
	margin: 0 auto; 
	display: flex;
	align-items: center;
	gap: 40px;
}

/* Columna de la mascota (Kipi) */
.ckb-hero__mascot {
	flex: 0 0 200px;
}

.ckb-hero__mascot img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Columna de contenidos */
.ckb-hero__content {
	flex: 1;
	min-width: 0;
}

.ckb-portal .ckb-hero__eyebrow { display: block; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.ckb-portal .ckb-hero__title { margin: 0 0 24px; color: var(--ckb-sky); font-weight: 800; font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; }
.ckb-portal .ckb-hero__sub { margin: -12px 0 24px; color: #dbe7ff; font-size: 1.05rem; }

.ckb-portal .ckb-search {
	display: flex;
	align-items: stretch;
	background: #fff;
	border-radius: 10px;
	height: 54px;
	margin: 0;
	box-shadow: 0 10px 28px rgba(3, 12, 48, .35);
	overflow: hidden;
}
.ckb-select { position: relative; flex: 0 0 170px; border-right: 1px solid var(--ckb-border); }
.ckb-portal .ckb-search__cat {
	appearance: none; -webkit-appearance: none;
	width: 100%; height: 100%;
	border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0;
	padding: 0 34px 0 16px; margin: 0;
	font-size: 1rem; font-weight: 600; color: var(--ckb-text); cursor: pointer; border-radius: 0;
	text-overflow: ellipsis;
}
.ckb-select .ckb-select__arrow { position: absolute; right: 12px; top: 50%; margin-top: -8px; color: var(--ckb-muted); pointer-events: none; }
.ckb-portal .ckb-search__input {
	flex: 1; min-width: 0; height: 100%;
	border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; border-radius: 0;
	padding: 0 16px; margin: 0;
	font-size: 1rem; font-weight: 600; color: var(--ckb-text);
	-webkit-appearance: none; appearance: none;
}
.ckb-portal .ckb-search__input::placeholder { color: #8a93a6; font-weight: 600; opacity: 1; }
.ckb-portal .ckb-search__btn {
	flex: 0 0 58px; border: 0; margin: 0; padding: 0; border-radius: 0;
	background: transparent; color: var(--ckb-blue); cursor: pointer;
	display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.ckb-portal .ckb-search__btn:hover { background: var(--ckb-soft); }

/* ---------- Cuerpo ---------- */
.ckb-body { 
	position: relative; 
	max-width: 1200px; 
	margin: 0 auto; 
	padding: 0 16px; 
}
.ckb-portal.is-home .ckb-body { margin-top: -78px; }
.ckb-portal:not(.is-home) .ckb-body { margin-top: 24px; }
.ckb-portal.is-loading .ckb-view { opacity: .45; transition: opacity .15s; }

/* ---------- Breadcrumbs ---------- */
.ckb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; font-size: .95rem; font-weight: 600; }
.ckb-crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--ckb-blue); }
.ckb-crumbs a:hover { text-decoration: underline; }
.ckb-crumbs .ckb-sep { display: inline-flex; color: #98a2b3; }
.ckb-crumbs .ckb-current { color: var(--ckb-muted); }

/* ---------- Iconos en caja ---------- */
.ckb-ibox {
	flex: none; width: 44px; height: 44px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ckb-soft); color: var(--ckb-blue);
}
.ckb-ibox--lg { width: 60px; height: 60px; border-radius: 16px; }

/* ---------- Tarjetas destacadas ---------- */
.ckb-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.ckb-fcard {
	display: flex; flex-direction: column;
	background: var(--ckb-card); border-radius: var(--ckb-radius); box-shadow: var(--ckb-shadow);
	padding: 22px; border: 1px solid rgba(228, 231, 236, .6);
	transition: box-shadow .2s, transform .2s;
}
.ckb-fcard:hover { box-shadow: var(--ckb-shadow-hover); transform: translateY(-2px); }
.ckb-fcard__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ckb-portal .ckb-fcard__title { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.ckb-fcard__title a { color: var(--ckb-text); }
.ckb-fcard__title a:hover { color: var(--ckb-blue); }
.ckb-portal .ckb-fcard__sum { margin: 4px 0 0; font-size: .85rem; color: var(--ckb-muted); line-height: 1.4; }
.ckb-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 4px 2px; vertical-align: middle; opacity: .7; }
.ckb-fcard__list { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ckb-fcard__list li { position: relative; padding-left: 16px; line-height: 1.4; }
.ckb-fcard__list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--ckb-blue); }
.ckb-fcard__list a { color: var(--ckb-blue); font-weight: 600; font-size: .97rem; }
.ckb-fcard__list a:hover { text-decoration: underline; }
.ckb-fcard__none { color: var(--ckb-muted); font-size: .92rem; }
.ckb-portal .ckb-pill {
	align-self: flex-start; display: inline-block;
	background: #eef0f4; color: var(--ckb-text); font-weight: 700; font-size: .9rem;
	padding: 9px 20px; border-radius: 999px; transition: background .2s, color .2s;
}
.ckb-portal .ckb-pill:hover { background: var(--ckb-blue); color: #fff; }

/* ---------- Secciones y tarjetas de temas ---------- */
.ckb-section { margin-bottom: 40px; }
.ckb-portal .ckb-section__title { margin: 0 0 18px; font-size: 1.5rem; font-weight: 800; color: var(--ckb-navy); }
.ckb-portal .ckb-subtitle { margin: 30px 0 14px; font-size: 1.1rem; font-weight: 800; color: var(--ckb-navy); }
.ckb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ckb-portal .ckb-tcard {
	display: flex; gap: 14px; align-items: flex-start;
	background: var(--ckb-card); border-radius: var(--ckb-radius); box-shadow: var(--ckb-shadow);
	padding: 22px; color: inherit; border: 1px solid rgba(228, 231, 236, .6);
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ckb-tcard:hover { box-shadow: var(--ckb-shadow-hover); transform: translateY(-2px); border-color: #b9d0ff; }
.ckb-tcard__icon { flex: none; color: var(--ckb-blue); display: flex; padding-top: 2px; }
.ckb-tcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ckb-tcard__title { font-size: 1.08rem; font-weight: 800; color: var(--ckb-text); line-height: 1.25; }
.ckb-tcard__desc { font-size: .92rem; color: var(--ckb-muted); line-height: 1.4; }

/* ---------- Vista de categoría / búsqueda ---------- */
.ckb-cathead { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.ckb-portal .ckb-cathead__title { margin: 0; font-size: 1.7rem; font-weight: 800; color: var(--ckb-navy); line-height: 1.2; }
.ckb-portal .ckb-cathead__desc { margin: 4px 0 0; color: var(--ckb-muted); }

.ckb-list { display: flex; flex-direction: column; gap: 12px; }
.ckb-portal .ckb-item {
	display: flex; align-items: center; gap: 16px;
	background: var(--ckb-card); border: 1px solid var(--ckb-border); border-radius: 12px;
	padding: 16px 20px; color: inherit; transition: border-color .2s, box-shadow .2s;
}
.ckb-item:hover { border-color: #b9d0ff; box-shadow: var(--ckb-shadow-hover); }
.ckb-item__icon { color: var(--ckb-blue); display: flex; }
.ckb-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ckb-item__title { font-size: 1.05rem; font-weight: 800; color: var(--ckb-text); line-height: 1.3; }
.ckb-item:hover .ckb-item__title { color: var(--ckb-blue); }
.ckb-item__excerpt { font-size: .93rem; color: var(--ckb-muted); }
.ckb-item__arrow { color: #98a2b3; display: flex; }
.ckb-item:hover .ckb-item__arrow { color: var(--ckb-blue); }
.ckb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ckb-tag { background: var(--ckb-soft); color: var(--ckb-blue); font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

.ckb-portal .ckb-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--ckb-muted); padding: 48px 16px; font-weight: 600; margin: 0; }
.ckb-empty .ckb-ico { color: #98a2b3; }

.ckb-more-wrap { text-align: center; margin-top: 26px; }
.ckb-portal .ckb-more, .ckb-single .ckb-btn {
	display: inline-block; border: 2px solid var(--ckb-blue); background: #fff; color: var(--ckb-blue);
	font-weight: 700; font-size: .95rem; padding: 10px 28px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.ckb-portal .ckb-more:hover, .ckb-single .ckb-btn:hover { background: var(--ckb-blue); color: #fff; }

/* ---------- Entrada individual (UI Profesional) ---------- */
.ckb-single { max-width: 820px; margin: 0 auto; }
.ckb-single__content.ckb-card-ui {
	font-size: 1.05rem;
	line-height: 1.75;
	background: var(--ckb-card);
	border-radius: var(--ckb-radius);
	box-shadow: var(--ckb-shadow);
	padding: 40px 48px;
	border: 1px solid var(--ckb-border);
	margin-top: 20px;
}

.ckb-single__title {
	margin: 0 0 24px;
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--ckb-navy);
	line-height: 1.25;
	border-bottom: 1px solid var(--ckb-border);
	padding-bottom: 18px;
}

.ckb-single__content :is(h2, h3, h4) { font-weight: 800; color: var(--ckb-navy); margin-top: 1.6em; }
.ckb-single__content img { max-width: 100%; height: auto; border-radius: 12px; }
.ckb-single__content a { color: var(--ckb-blue); text-decoration: underline; }
.ckb-related { margin-top: 44px; padding: 24px; background: #f6f8fc; border-radius: var(--ckb-radius); }
.ckb-related h3 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; color: var(--ckb-navy); }
.ckb-related ul { display: flex; flex-direction: column; gap: 10px; }
.ckb-related a { display: flex; gap: 10px; align-items: center; color: var(--ckb-blue); font-weight: 700; }
.ckb-related a:hover { text-decoration: underline; }
.ckb-denied { text-align: center; background: var(--ckb-soft); border-radius: var(--ckb-radius); padding: 40px 24px; }
.ckb-denied .ckb-ico { margin: 0 auto; color: var(--ckb-blue); }
.ckb-denied p { font-weight: 700; margin: 10px 0 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.ckb-featured, .ckb-grid { grid-template-columns: repeat(2, 1fr); }
	.ckb-hero__inner { gap: 24px; max-width: 100%; }
	.ckb-hero__mascot { flex: 0 0 160px; }
}
@media (max-width: 640px) {
	.ckb-portal { padding: 0 0 36px; }
	.ckb-portal .ckb-hero { padding: 36px 16px 100px; border-radius: 0; }
	
	/* Apilar imagen y textos en versión móvil */
	.ckb-hero__inner { 
		flex-direction: column; 
		text-align: center; 
		gap: 20px; 
	}
	.ckb-hero__mascot { 
		flex: 0 0 auto; 
		width: 140px; 
	}
	.ckb-portal .ckb-hero__eyebrow {
		margin-left: auto;
		margin-right: auto;
	}

	.ckb-portal:not(.is-home) .ckb-hero { padding-bottom: 36px; }
	.ckb-portal.is-home .ckb-body { margin-top: -64px; }
	.ckb-featured, .ckb-grid { grid-template-columns: 1fr; gap: 14px; }
	.ckb-portal .ckb-search { flex-wrap: wrap; height: auto; }
	.ckb-select { flex: 1 1 100%; height: 50px; border-right: 0; border-bottom: 1px solid var(--ckb-border); }
	.ckb-portal .ckb-search__input { height: 50px; }
	.ckb-portal .ckb-search__btn { height: 50px; }
	.ckb-portal .ckb-cathead__title { font-size: 1.35rem; }
	.ckb-ibox--lg { width: 50px; height: 50px; }
	.ckb-portal .ckb-item { padding: 14px; gap: 12px; }
	.ckb-item__arrow { display: none; }
	.ckb-fcard, .ckb-portal .ckb-tcard { padding: 18px; }
	.ckb-single__content.ckb-card-ui { padding: 24px 20px; }
	.ckb-single__title { font-size: 1.8rem; }
}