:root {
	--tpx-bg: #07111f;
	--tpx-bg-soft: #101d33;
	--tpx-card: rgba(255, 255, 255, 0.075);
	--tpx-card-strong: rgba(255, 255, 255, 0.12);
	--tpx-text: #f5f7fb;
	--tpx-muted: #c7d1e8;
	--tpx-gold: #f6c766;
	--tpx-aurora: #78f0d1;
	--tpx-blue: #78a6ff;
	--tpx-max: 1120px;
	--tpx-reading: 760px;
}

.tpx-wrap {
	max-width: var(--tpx-max);
	margin-inline: auto;
	padding: clamp(1.25rem, 3vw, 3rem);
}

.tpx-hero {
	position: relative;
	overflow: hidden;
	border-radius: 2rem;
	margin: 2rem auto;
	padding: clamp(2rem, 6vw, 5rem);
	background:
		radial-gradient(circle at 20% 20%, rgba(120, 240, 209, 0.26), transparent 32%),
		radial-gradient(circle at 85% 15%, rgba(120, 166, 255, 0.22), transparent 30%),
		linear-gradient(135deg, #07111f 0%, #101d33 52%, #1d2542 100%);
	color: var(--tpx-text);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.tpx-kicker {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tpx-aurora);
	font-weight: 700;
}

.tpx-title {
	margin: 0;
	max-width: 11ch;
	font-size: clamp(2.4rem, 8vw, 6rem);
	line-height: 0.95;
	letter-spacing: -0.055em;
}

.tpx-subtitle {
	max-width: 720px;
	margin-top: 1.25rem;
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	line-height: 1.6;
	color: var(--tpx-muted);
}

.tpx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.tpx-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.05rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: var(--tpx-gold);
	color: #111827;
}

.tpx-button--ghost {
	background: transparent;
	color: var(--tpx-text);
}

.tpx-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	margin: 1rem auto 2rem;
	background: rgba(7, 17, 31, 0.92);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	max-width: var(--tpx-max);
}

.tpx-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0.5rem;
}

.tpx-nav__link {
	display: block;
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	color: var(--tpx-text);
	text-decoration: none;
	font-size: 0.95rem;
}

.tpx-nav__link:hover,
.tpx-nav__link:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	outline: none;
}

.tpx-intro {
	max-width: var(--tpx-reading);
	margin: 2.5rem auto;
	font-size: 1.08rem;
	line-height: 1.8;
}

.tpx-index {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 2rem auto;
	max-width: var(--tpx-max);
}

.tpx-book {
	border-radius: 1.25rem;
	padding: 1.25rem;
	background: #ffffff;
	border: 1px solid rgba(7, 17, 31, 0.12);
}

.tpx-book h2 {
	margin-top: 0;
	font-size: 1.25rem;
}

.tpx-book ol,
.tpx-book ul {
	padding-left: 1.25rem;
}

.tpx-book li {
	margin-bottom: 0.45rem;
}

.tpx-media-slot {
	max-width: var(--tpx-reading);
	margin: 2rem auto;
	padding: 1.25rem;
	border-radius: 1.25rem;
	border: 1px dashed rgba(7, 17, 31, 0.25);
	background: rgba(7, 17, 31, 0.04);
}

.tpx-chapter {
	max-width: var(--tpx-reading);
	margin-inline: auto;
	font-size: 1.08rem;
	line-height: 1.85;
}

.tpx-chapter-header {
	max-width: var(--tpx-reading);
	margin: 2rem auto;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(7, 17, 31, 0.14);
}

.tpx-chapter-meta {
	color: #5b6475;
	font-size: 0.95rem;
}

.tpx-figure {
	margin: 2rem auto;
	max-width: var(--tpx-reading);
}

.tpx-figure img {
	width: 100%;
	height: auto;
	border-radius: 1rem;
}

.tpx-figure figcaption {
	margin-top: 0.6rem;
	font-size: 0.92rem;
	color: #5b6475;
	text-align: center;
}

@media (max-width: 900px) {
	.tpx-index {
		grid-template-columns: 1fr;
	}

	.tpx-nav {
		border-radius: 1rem;
		position: static;
	}

	.tpx-nav__list {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
	}
}

@media (max-width: 600px) {
	.tpx-hero {
		border-radius: 1.25rem;
		padding: 1.5rem;
	}

	.tpx-title {
		font-size: clamp(2.2rem, 15vw, 4rem);
	}

	.tpx-button {
		width: 100%;
	}

	.tpx-wrap {
		padding-inline: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
	}
}

/* ==========================================================
   TIMI EL VIAJERO · EN BUSCA DEL PLANETA X
   Estilo para bloque de presentación en la home
   ========================================================== */

:root {
	--tpx-azul-noche: #06101f;
	--tpx-azul-profundo: #0d1b35;
	--tpx-violeta-cosmos: #25204d;
	--tpx-aurora: #7fffe0;
	--tpx-azul-luz: #83b7ff;
	--tpx-dorado: #f4c86a;
	--tpx-blanco: #f8fbff;
	--tpx-texto-suave: #d8e3f7;
	--tpx-sombra: rgba(0, 0, 0, 0.35);
}

/* Contenedor general */
.tpx-wrap {
	max-width: 1180px;
	margin: 3rem auto;
	padding: 0 1.25rem;
}

/* Bloque principal de presentación */
.tpx-hero {
	position: relative;
	overflow: hidden;
	border-radius: 32px;
	padding: clamp(2rem, 6vw, 5.5rem);
	color: var(--tpx-blanco);
	background:
		radial-gradient(circle at 15% 20%, rgba(127, 255, 224, 0.32), transparent 28%),
		radial-gradient(circle at 85% 10%, rgba(131, 183, 255, 0.28), transparent 30%),
		radial-gradient(circle at 70% 90%, rgba(244, 200, 106, 0.16), transparent 26%),
		linear-gradient(135deg, var(--tpx-azul-noche) 0%, var(--tpx-azul-profundo) 50%, var(--tpx-violeta-cosmos) 100%);
	box-shadow: 0 28px 80px var(--tpx-sombra);
	isolation: isolate;
}

/* Efecto de estrellas suaves */
.tpx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle, rgba(255, 255, 255, 0.75) 1px, transparent 1.5px),
		radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1.5px);
	background-size: 52px 52px, 87px 87px;
	background-position: 0 0, 22px 31px;
	opacity: 0.28;
	z-index: -2;
}

/* Gran arco auroral */
.tpx-hero::after {
	content: "";
	position: absolute;
	width: 75%;
	height: 75%;
	right: -20%;
	bottom: -38%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(127, 255, 224, 0.28), transparent 62%);
	filter: blur(4px);
	z-index: -1;
}

/* Texto pequeño superior */
.tpx-kicker {
	margin: 0 0 0.8rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tpx-aurora);
}

/* Título */
.tpx-title {
	max-width: 900px;
	margin: 0;
	font-size: clamp(2.3rem, 7vw, 5.8rem);
	line-height: 0.95;
	letter-spacing: -0.055em;
	color: var(--tpx-blanco);
	text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Subtítulo */
.tpx-subtitle {
	max-width: 760px;
	margin: 1.35rem 0 0;
	font-size: clamp(1.05rem, 2.1vw, 1.35rem);
	line-height: 1.65;
	color: var(--tpx-texto-suave);
}

/* Botones */
.tpx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 2rem;
}

.tpx-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.8rem 1.25rem;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	background: var(--tpx-dorado);
	color: #111827;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tpx-button:hover,
.tpx-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
	background: #ffd986;
	color: #111827;
	text-decoration: none;
}

.tpx-button--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: var(--tpx-blanco);
	backdrop-filter: blur(8px);
}

.tpx-button--ghost:hover,
.tpx-button--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	color: var(--tpx-blanco);
}

/* Responsive tablet */
@media (max-width: 900px) {
	.tpx-wrap {
		margin: 2rem auto;
	}

	.tpx-hero {
		border-radius: 24px;
	}
}

/* Responsive móvil */
@media (max-width: 600px) {
	.tpx-wrap {
		margin: 1.5rem auto;
		padding: 0 1rem;
	}

	.tpx-hero {
		border-radius: 20px;
		padding: 1.6rem;
	}

	.tpx-title {
		font-size: clamp(2.2rem, 14vw, 3.8rem);
	}

	.tpx-subtitle {
		font-size: 1rem;
		line-height: 1.6;
	}

	.tpx-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.tpx-button {
		width: 100%;
	}
}

/* Accesibilidad: reduce animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
	.tpx-button {
		transition: none;
	}

	.tpx-button:hover,
	.tpx-button:focus-visible {
		transform: none;
	}
}