/*
Theme Name: TokkiNovel Child
Theme URI: https://tokkinovel.com/
Description: Tema hijo de Astra para TokkiNovel.
Author: TokkiNovel
Author URI: https://tokkinovel.com/
Template: astra
Version: 1.0.5
Text Domain: tokkinovel-child
*/

/* Página 404 personalizada de TokkiNovel */
body.error404 .tokki-404-page {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: none;
	min-height: 68vh;
	margin: 0;
	padding: 70px 24px;
}

body.error404 .tokki-404-container {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 54px 42px;
	text-align: center;
	background: #1A191D;
	border-radius: 24px;
}

body.error404 .tokki-404-code {
	margin-bottom: 14px;
	color: #B98BDD;
	font-size: clamp(72px, 14vw, 140px);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -5px;
}

body.error404 .tokki-404-title {
	margin: 0 0 18px;
	color: #F1F0F3;
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.2;
}

body.error404 .tokki-404-description {
	max-width: 560px;
	margin: 0 auto 30px;
	color: #BFBEC1;
	font-size: 17px;
	line-height: 1.7;
}

body.error404 .tokki-404-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

body.error404 .tokki-404-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
}

body.error404 .tokki-404-button-primary {
	background: #B98BDD;
	color: #1A191D !important;
}

body.error404 .tokki-404-button-secondary {
	border-color: rgba(185, 139, 221, 0.55);
	background: transparent;
	color: #D8B9F0 !important;
}

@media (max-width: 767px) {
	body.error404 .tokki-404-page {
		min-height: 62vh;
		padding: 42px 18px;
	}

	body.error404 .tokki-404-container {
		padding: 40px 22px;
		border-radius: 20px;
	}

	body.error404 .tokki-404-description {
		font-size: 15px;
	}

	body.error404 .tokki-404-actions {
		flex-direction: column;
	}

	body.error404 .tokki-404-button {
		width: 100%;
	}
}






/* =========================================================
   ARCHIVO DE GÉNEROS
   ========================================================= */

.tokki-genre-archive {
	width: min(1280px, calc(100% - 40px));
	margin: 0 auto;
	padding: 44px 0 64px;
}

/* Cabecera */

.tokki-genre-header {
	margin-bottom: 30px;
}

.tokki-genre-title {
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	line-height: 1.15;
}

.tokki-genre-description {
	max-width: 760px;
	margin: 12px auto 0;
	color: #bfbec1;
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
}

.tokki-genre-description p {
	margin: 0;
}

.tokki-genre-description p + p {
	margin-top: 10px;
}

.tokki-genre-count {
	display: table;
	margin: 26px auto 0 !important;
	padding: 8px 16px;
	border-radius: 999px;
	background: #1A191D;
	color: #BFBEC1;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

/* =========================================================
   GRID DE NOVELAS POR GÉNERO
   ========================================================= */

.tokki-genre-archive .tokki-genre-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

/* Tarjeta */

.tokki-genre-archive .tokki-genre-card {
	min-width: 0;
	margin: 0;
	padding: 0;
	background: transparent;
}

.tokki-genre-archive .tokki-genre-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.tokki-genre-archive .tokki-genre-card-link:hover,
.tokki-genre-archive .tokki-genre-card-link:focus {
	color: inherit;
	text-decoration: none;
}

/* Portada completa */

.tokki-genre-archive .tokki-genre-card-cover {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 2 / 3;
	border-radius: 15px;
	background: #222124;
}

/* Imagen */

.tokki-genre-archive .tokki-genre-card-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.3s ease;
}

.tokki-genre-archive .tokki-genre-card-link:hover .tokki-genre-archive .tokki-genre-card-image {
	transform: scale(1.035);
}

/* Degradado sobre la portada */

.tokki-genre-archive .tokki-genre-card-gradient {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(26, 25, 29, 0) 38%,
		rgba(26, 25, 29, 0.18) 56%,
		rgba(26, 25, 29, 0.82) 80%,
		#1a191d 100%
	);
	pointer-events: none;
}

/* Título superpuesto */

.tokki-genre-archive .tokki-genre-card-title {
	position: absolute;
	z-index: 2;
	right: 14px;
	bottom: 14px;
	left: 14px;
	display: -webkit-box;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	color: #fff;
	font-size: 17px;
	font-weight: 600 ;
	line-height: 1.35;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
	letter-spacing: 0.015em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}




/* Estado de traducción como texto simple */

/* Cápsula del estado de traducción */

.tokki-genre-archive .tokki-genre-card-status {
	position: absolute;
	z-index: 3;
	top: 10px;
	left: 10px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 22px;
	max-width: calc(100% - 20px);
	margin: 0;
	padding: 1px 10px !important;

	border-radius: 999px;
	background: #b98bdd;
	color: #fff !important;

	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;

	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


@media (max-width: 600px) {
	.tokki-genre-archive .tokki-genre-card-status {
		font-size: 11px !important;
	}
}

.tokki-genre-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	margin: 28px auto 0;
	padding: 10px 18px;

	border-radius: 999px;
	background: #1A191D;

	color: #BFBEC1;
	font-size: 16px;
	font-weight: 600;
}

.tokki-genre-count i {
	color: #B98BDD;
	font-size: 15px;
}

.tokki-genre-divider {
	width: min(900px, 100%);
	height: 1px;
	margin: 24px auto 24px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(185, 139, 221, 0.3) 50%,
		transparent 100%
	);
}

/* Paginación */

.tokki-genre-pagination {
	margin-top: 40px;
}

.tokki-genre-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tokki-genre-pagination a,
.tokki-genre-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: #1a191d;
	color: #bfbec1;
	font-size: 13px;
	text-decoration: none;
}

.tokki-genre-pagination .current {
	border-color: rgba(185, 139, 221, 0.4);
	background: rgba(185, 139, 221, 0.12);
	color: #b98bdd;
}

/* Estado vacío */

.tokki-genre-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 14px;
	min-height: 280px;
	padding: 35px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 20px;
	background: #1a191d;
	color: #9e9ca1;
	text-align: center;
}

.tokki-genre-empty i {
	color: #b98bdd;
	font-size: 28px;
}

.tokki-genre-empty p {
	margin: 0;
}

/* Pantallas medianas */

@media (max-width: 1024px) {
	.tokki-genre-archive .tokki-genre-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}

	.tokki-genre-archive .tokki-genre-card-title {
		font-size: 15px;
	}
}



/* Móvil */

@media (max-width: 600px) {
	.tokki-genre-archive .tokki-genre-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 10px;
	}


	.tokki-genre-archive .tokki-genre-card-cover {
		border-radius: 13px;
	}

	.tokki-genre-archive .tokki-genre-card-title {
		right: 10px;
		bottom: 11px;
		left: 10px;
		font-size: 13px;
		line-height: 1.35;
	}

	.tokki-genre-count {
		padding: 7px 14px;
		font-size: 14px;
	}

}


.tax-genre .tokki-genre-card-image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center top !important;
}

.tax-genre .tokki-genre-card-cover {
	position: relative !important;
	overflow: hidden !important;
	aspect-ratio: 2 / 3 !important;
	border-radius: 15px !important;
}

.tax-genre .tokki-genre-card-title {
	position: absolute !important;
	z-index: 2 !important;
	right: 14px !important;
	bottom: 14px !important;
	left: 14px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #fff !important;
	text-align: center !important;
}

.tax-genre .tokki-genre-card-gradient {
	position: absolute !important;
	z-index: 1 !important;
	inset: 0 !important;
}










































