/* =========================================================================
   Lomito Inversor - blog: articulo, listado y categorias
   ========================================================================= */

.lmt-breakout,
.lmt-breakout * {
	box-sizing: border-box;
}

.lmt-breakout {
	max-width: none !important;
	width: 100%;
	font-family: var(--lmt-font);
	color: var(--lmt-text);
}

/* Ocultamos las piezas que el tema pinta por su cuenta en el articulo,
   porque nosotros dibujamos hero, titulo, fecha y separador. */
body.single-post .hostinger-ai-page-title,
body.single-post .wp-block-post-featured-image,
body.single-post .wp-block-post-date,
body.single-post .wp-block-separator.alignwide {
	display: none !important;
}

/* ============================== Hero ==================================== */
.lmt-hero-post {
	position: relative;
	min-height: clamp(320px, 46vw, 520px);
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--lmt-navy);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.lmt-hero-post--plain {
	background-image:
		radial-gradient(900px 480px at 78% 12%, rgba(16, 185, 129, 0.35), transparent 62%),
		linear-gradient(140deg, #0b1b2b 0%, #102a43 55%, #06603f 100%);
}

.lmt-hero-post__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 21, 33, 0.35) 0%, rgba(8, 21, 33, 0.72) 100%);
}

.lmt-hero-post--plain .lmt-hero-post__veil {
	background: linear-gradient(180deg, rgba(8, 21, 33, 0.1) 0%, rgba(8, 21, 33, 0.3) 100%);
}

.lmt-hero-post__inner {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
	padding: clamp(48px, 8vw, 96px) var(--lmt-gutter);
	text-align: center;
}

.lmt-hero-post__title {
	margin: 0;
	font-family: var(--lmt-font-display);
	font-size: clamp(1.9rem, 4.6vw, 3.4rem);
	line-height: 1.12;
	letter-spacing: -0.025em;
	color: #ffffff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* ============================ Breadcrumb ================================ */
.lmt-crumbs {
	position: relative;
	z-index: 2;
	max-width: 1160px;
	margin: -34px auto 0;
	padding-inline: var(--lmt-gutter);
}

.lmt-crumbs__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 18px 26px;
	background: var(--lmt-surface);
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius);
	box-shadow: var(--lmt-shadow);
	font-size: 0.88rem;
}

.lmt-crumbs a {
	color: var(--lmt-accent);
	font-weight: 600;
	text-decoration: none;
}

.lmt-crumbs a:hover { text-decoration: underline; }

.lmt-crumbs__sep { color: var(--lmt-text-faint); }

.lmt-crumbs__current {
	color: var(--lmt-text-muted);
	min-width: 0;
}

/* ============================= Articulo ================================= */
.lmt-article {
	max-width: 1160px;
	margin-inline: auto;
	padding: clamp(36px, 5vw, 64px) var(--lmt-gutter) clamp(24px, 4vw, 48px);
}

.lmt-article__grid {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: clamp(20px, 3vw, 48px);
	align-items: start;
}

.lmt-article__main {
	min-width: 0;
	max-width: 760px;
}

/* --------------------------- Compartir --------------------------------- */
.lmt-share {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px;
	border-radius: 16px;
	background: var(--lmt-navy);
	overflow: hidden;
}

.lmt-share__btn {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	color: #ffffff;
	border-radius: 12px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.lmt-share__btn:hover {
	background: var(--lmt-emerald-700);
	transform: translateY(-2px);
	color: #ffffff;
}

.lmt-share__btn svg { width: 22px; height: 22px; }

/* ----------------------------- Firma ----------------------------------- */
.lmt-postmeta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-bottom: 26px;
	font-size: 0.88rem;
	color: var(--lmt-text-muted);
}

.lmt-postmeta__author {
	font-weight: 700;
	color: var(--lmt-text);
}

.lmt-postmeta__dot { color: var(--lmt-text-faint); }

/* ----------------------------- Indice ---------------------------------- */
.lmt-toc {
	margin: 0 0 40px;
	background: var(--lmt-surface);
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius-lg);
	box-shadow: var(--lmt-shadow);
	overflow: hidden;
}

.lmt-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 20px 26px;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--lmt-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--lmt-text);
	text-align: left;
}

.lmt-toc__icon {
	position: relative;
	width: 18px;
	height: 18px;
	flex: none;
}

.lmt-toc__icon::before,
.lmt-toc__icon::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 2px;
	background: var(--lmt-accent);
	border-radius: 2px;
	transition: transform 0.25s ease;
}

.lmt-toc__icon::after { transform: rotate(90deg); }

.lmt-toc__head[aria-expanded="true"] .lmt-toc__icon::after { transform: rotate(0deg); }

.lmt-toc__list {
	list-style: none;
	margin: 0;
	padding: 0 26px 22px;
	display: grid;
	gap: 12px;
}

.lmt-toc__list[hidden] { display: none; }

.lmt-toc__list li {
	position: relative;
	padding-left: 22px;
}

.lmt-toc__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 11px;
	height: 3px;
	border-radius: 2px;
	background: var(--lmt-accent);
}

.lmt-toc__list a {
	color: var(--lmt-accent);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.45;
}

.lmt-toc__list a:hover { text-decoration: underline; }

/* ------------------------- Cuerpo del texto ---------------------------- */
.lmt-prose {
	font-size: 1.06rem;
	line-height: 1.78;
	color: var(--lmt-text-muted);
}

.lmt-prose > * { max-width: 100%; }

.lmt-prose p { margin: 0 0 1.35em; }

.lmt-prose strong { color: var(--lmt-text); }

.lmt-prose h2 {
	margin: 2.4em 0 0.7em;
	font-family: var(--lmt-font-display);
	font-size: clamp(1.5rem, 3vw, 2.05rem);
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: var(--lmt-text);
	scroll-margin-top: 110px;
}

.lmt-prose h3 {
	margin: 1.9em 0 0.6em;
	font-family: var(--lmt-font-display);
	font-size: clamp(1.18rem, 2.2vw, 1.4rem);
	line-height: 1.3;
	color: var(--lmt-text);
	scroll-margin-top: 110px;
}

.lmt-prose a {
	color: var(--lmt-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lmt-prose ul,
.lmt-prose ol {
	margin: 0 0 1.35em;
	padding-left: 1.3em;
}

.lmt-prose li { margin-bottom: 0.55em; }

.lmt-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--lmt-radius);
}

.lmt-prose figure { margin: 2em 0; }

.lmt-prose figcaption {
	margin-top: 10px;
	font-size: 0.85rem;
	color: var(--lmt-text-faint);
}

.lmt-prose blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--lmt-accent);
	font-size: 1.12rem;
	line-height: 1.6;
	color: var(--lmt-text);
}

.lmt-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.lmt-prose th,
.lmt-prose td {
	padding: 12px 14px;
	border: 1px solid var(--lmt-border);
	text-align: left;
}

.lmt-prose th {
	background: var(--lmt-surface-2);
	color: var(--lmt-text);
}

/* ------------------------------- CTA ----------------------------------- */
.lmt-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin: 2.6em 0;
	padding: clamp(24px, 3.2vw, 34px);
	border-radius: var(--lmt-radius-lg);
	background:
		radial-gradient(520px 300px at 88% 10%, rgba(16, 185, 129, 0.28), transparent 62%),
		linear-gradient(140deg, var(--lmt-navy) 0%, var(--lmt-navy-700) 100%);
	box-shadow: var(--lmt-shadow-lg);
}

.lmt-cta__text { flex: 1 1 280px; min-width: 0; }

.lmt-cta__kicker {
	margin: 0 0 8px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6ee7b7;
}

.lmt-cta__title {
	margin: 0 0 10px;
	font-family: var(--lmt-font-display);
	font-size: clamp(1.1rem, 2.1vw, 1.35rem);
	line-height: 1.35;
	color: #ffffff;
}

.lmt-cta__risk {
	margin: 0;
	font-size: 0.78rem;
	color: #8ba2b1;
}

.lmt-cta--final { margin-top: 3.4em; }

/* --------------------------- Relacionados ------------------------------ */
.lmt-related {
	padding-block: clamp(48px, 7vw, 88px);
	background: var(--lmt-bg-alt);
	border-top: 1px solid var(--lmt-border);
}

.lmt-related .lmt-h2 { margin-bottom: 28px; }

/* ===================== Listado y categorias ============================= */
.lmt-archive-head {
	padding-block: clamp(40px, 6vw, 76px) clamp(20px, 3vw, 32px);
	background: var(--lmt-bg);
}

.lmt-archive-head__title {
	margin: 0;
	font-family: var(--lmt-font-display);
	font-size: clamp(2rem, 5vw, 3.1rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--lmt-text);
}

.lmt-archive-head__desc {
	margin-top: 14px;
	max-width: 62ch;
	color: var(--lmt-text-muted);
	line-height: 1.65;
}

.lmt-archive-head__desc p { margin: 0; }

.lmt-archive-head__count {
	margin: 22px 0 0;
	font-size: 0.86rem;
	color: var(--lmt-text-faint);
}

.lmt-archive {
	padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 96px);
	background: var(--lmt-bg);
}

.lmt-cat-page .lmt-archive {
	background: var(--lmt-bg-alt);
	border-top: 1px solid var(--lmt-border);
	margin-top: clamp(32px, 5vw, 56px);
}

.lmt-pagination {
	margin-top: 44px;
	display: flex;
	justify-content: center;
}

.lmt-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.lmt-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 14px;
	border-radius: 999px;
	border: 1px solid var(--lmt-border);
	background: var(--lmt-surface);
	color: var(--lmt-text);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
}

.lmt-pagination .page-numbers:hover {
	border-color: var(--lmt-accent);
	color: var(--lmt-accent);
}

.lmt-pagination .page-numbers.current {
	background: var(--lmt-accent);
	border-color: var(--lmt-accent);
	color: #ffffff;
}

.lmt-pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* ============================ Responsive ================================ */
@media (max-width: 860px) {
	.lmt-article__grid { grid-template-columns: minmax(0, 1fr); }

	.lmt-share {
		position: static;
		flex-direction: row;
		justify-content: center;
		align-self: center;
		order: 2;
		margin-top: 12px;
	}

	.lmt-article__main { order: 1; max-width: none; }
}

@media (max-width: 560px) {
	.lmt-crumbs { margin-top: -22px; }

	.lmt-crumbs__inner {
		padding: 14px 18px;
		font-size: 0.82rem;
	}

	.lmt-crumbs__current { display: none; }
	.lmt-crumbs__inner > .lmt-crumbs__sep:last-of-type { display: none; }

	.lmt-cta { flex-direction: column; align-items: stretch; }
	.lmt-cta .lmt-btn { width: 100%; }
}


/* El boton del CTA no hereda el estilo de enlace del cuerpo. */
.lmt-prose .lmt-btn,
.lmt-cta .lmt-btn {
	text-decoration: none;
	font-weight: 700;
}

.lmt-prose .lmt-btn--primary,
.lmt-cta .lmt-btn--primary,
.lmt-prose .lmt-btn--primary:hover,
.lmt-cta .lmt-btn--primary:hover {
	color: #ffffff;
}
