/*
Theme Name:   Tu Hipoteca Clara
Theme URI:    https://tuhipotecaclara.com
Description:  Tema hijo de GeneratePress optimizado para blog de hipotecas y finanzas con monetización AdSense.
Author:       Tu Hipoteca Clara
Template:     generatepress
Version:      0.2.0
Text Domain:  tuhipotecaclara
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
	--thc-color-primary: #0b2545;
	--thc-color-primary-dark: #061833;
	--thc-color-primary-light: #13386b;
	--thc-color-accent: #e76f24;
	--thc-color-accent-dark: #c95d17;
	--thc-color-text: #1a1a1a;
	--thc-color-text-soft: #4a4a4a;
	--thc-color-muted: #6b7280;
	--thc-color-bg: #ffffff;
	--thc-color-bg-alt: #f5f6f8;
	--thc-color-border: #e5e7eb;
	--thc-color-success: #15803d;
	--thc-color-danger: #b91c1c;
	color-scheme: light;
}

/* DARK MODE — invierte fondo/texto manteniendo el azul marino del header como marca */
[data-theme="dark"] {
	--thc-color-text: #e5e7eb;
	--thc-color-text-soft: #cbd5e1;
	--thc-color-muted: #94a3b8;
	--thc-color-bg: #0f172a;
	--thc-color-bg-alt: #1e293b;
	--thc-color-border: #334155;
	color-scheme: dark;
}
[data-theme="dark"] body { background: var(--thc-color-bg); }
[data-theme="dark"] .thc-card {
	background: var(--thc-color-bg-alt);
	border-color: var(--thc-color-border);
}
[data-theme="dark"] .thc-card .entry-title a { color: var(--thc-color-text); }
[data-theme="dark"] .thc-card__category { color: var(--thc-color-accent); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .entry-title { color: #f1f5f9; }
[data-theme="dark"] .thc-toc { background: var(--thc-color-bg-alt); }
[data-theme="dark"] .thc-toc__title { color: var(--thc-color-text); }
[data-theme="dark"] .thc-toc__list a { color: var(--thc-color-text-soft); border-color: var(--thc-color-border); }
[data-theme="dark"] .thc-related-sidebar,
[data-theme="dark"] .thc-search-widget,
[data-theme="dark"] .thc-article__meta,
[data-theme="dark"] .thc-author-bio { background: var(--thc-color-bg-alt); }
[data-theme="dark"] .thc-related-sidebar__title { color: var(--thc-color-text); }
[data-theme="dark"] .thc-related-sidebar__link { color: var(--thc-color-text-soft); }
[data-theme="dark"] .thc-section-title { color: var(--thc-color-text); }
[data-theme="dark"] table th { background: var(--thc-color-primary); }
[data-theme="dark"] .entry-content blockquote { background: var(--thc-color-bg-alt); color: var(--thc-color-text-soft); }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
	background: #1e293b; color: var(--thc-color-text); border-color: var(--thc-color-border);
}
[data-theme="dark"] .site-info { background: #020617; }
[data-theme="dark"] .thc-modal__card,
[data-theme="dark"] .thc-push-card { background: var(--thc-color-bg-alt); color: var(--thc-color-text); }
[data-theme="dark"] .thc-modal__title,
[data-theme="dark"] .thc-push-card__title { color: var(--thc-color-text); }
[data-theme="dark"] .thc-modal__lead,
[data-theme="dark"] .thc-push-card__lead { color: var(--thc-color-text-soft); }

/* Contenido de artículos en dark mode (fix de contraste) */
[data-theme="dark"] body,
[data-theme="dark"] .entry-content,
[data-theme="dark"] .entry-content p,
[data-theme="dark"] .entry-content li,
[data-theme="dark"] .entry-content td,
[data-theme="dark"] .entry-content th,
[data-theme="dark"] .entry-content blockquote,
[data-theme="dark"] .entry-content blockquote p,
[data-theme="dark"] .thc-article .entry-content > p:first-of-type,
[data-theme="dark"] .thc-author-bio p,
[data-theme="dark"] .thc-author-bio strong,
[data-theme="dark"] .thc-related-sidebar__title,
[data-theme="dark"] .thc-card__body,
[data-theme="dark"] .thc-card .entry-title a,
[data-theme="dark"] .thc-card__meta,
[data-theme="dark"] .thc-section-title,
[data-theme="dark"] .thc-toc__title,
[data-theme="dark"] .thc-toc__list a,
[data-theme="dark"] .thc-toc__list li,
[data-theme="dark"] .thc-article__meta,
[data-theme="dark"] .thc-article__meta span,
[data-theme="dark"] .thc-article__meta time,
[data-theme="dark"] .thc-breadcrumb,
[data-theme="dark"] .thc-breadcrumb a {
	color: var(--thc-color-text);
}
[data-theme="dark"] .entry-content strong,
[data-theme="dark"] .entry-content b,
[data-theme="dark"] .entry-content h1,
[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4,
[data-theme="dark"] .entry-content h5,
[data-theme="dark"] .entry-content h6 {
	color: #f8fafc;
}
[data-theme="dark"] .entry-content a {
	color: var(--thc-color-accent);
}
[data-theme="dark"] .entry-content a:hover {
	color: #fbbf24;
}
[data-theme="dark"] .entry-content em,
[data-theme="dark"] .entry-content i {
	color: var(--thc-color-text-soft);
}
[data-theme="dark"] .entry-content code {
	background: #1e293b;
	color: #fbbf24;
	padding: 0.1rem 0.35rem;
	border-radius: 3px;
}
[data-theme="dark"] .entry-content table {
	background: var(--thc-color-bg-alt);
}
[data-theme="dark"] .entry-content tbody tr:nth-child(odd) td {
	background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .entry-content tbody tr:nth-child(even) td {
	background: var(--thc-color-bg-alt);
}
[data-theme="dark"] .thc-pillar-page .thc-toc__list li {
	color: var(--thc-color-text);
}
[data-theme="dark"] .thc-pillar-page .thc-toc__list li:hover {
	background: rgba(255,255,255,0.05);
}
[data-theme="dark"] .thc-article__updated {
	background: rgba(231, 111, 36, 0.2);
	color: #fbbf24;
}
[data-theme="dark"] .thc-pill {
	background: var(--thc-color-accent);
	color: #fff;
}
[data-theme="dark"] .thc-newsletter {
	background: var(--thc-color-primary-dark);
}
/* Calculadora en dark mode */
[data-theme="dark"] .thc-calc {
	background: var(--thc-color-bg-alt);
	border-color: var(--thc-color-border);
}
[data-theme="dark"] .thc-calc__intro p,
[data-theme="dark"] .thc-calc__field label,
[data-theme="dark"] .thc-calc__summary-label,
[data-theme="dark"] .thc-calc__summary-value,
[data-theme="dark"] .thc-calc__bar-label,
[data-theme="dark"] .thc-calc__details summary {
	color: var(--thc-color-text);
}
[data-theme="dark"] .thc-calc__form,
[data-theme="dark"] .thc-calc__summary-card:not(.thc-calc__summary-card--primary) {
	background: rgba(255,255,255,0.03);
	border-color: var(--thc-color-border);
}
[data-theme="dark"] .thc-calc__input-row input[type="number"] {
	background: var(--thc-color-bg);
	color: var(--thc-color-text);
	border-color: var(--thc-color-border);
}
[data-theme="dark"] .thc-calc__table-wrap td {
	background: rgba(255,255,255,0.02);
	color: var(--thc-color-text);
}
[data-theme="dark"] .thc-calc__table-wrap tbody tr:nth-child(odd) td {
	background: rgba(255,255,255,0.05);
}
[data-theme="dark"] .thc-calc__footer { color: var(--thc-color-text-soft); }

/* Toggle de tema en el footer */
.thc-theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.92);
	border: 1px solid rgba(255,255,255,0.15);
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	font-family: var(--thc-font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.thc-theme-toggle:hover {
	background: rgba(255,255,255,0.15);
	border-color: rgba(255,255,255,0.3);
}
.thc-theme-toggle__icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fbbf24;
	box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
	transition: all 0.3s ease;
	position: relative;
}
.thc-theme-toggle__icon::after {
	content: '';
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	background: var(--thc-color-primary-dark);
	transform: translateX(8px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.thc-theme-toggle--dark .thc-theme-toggle__icon {
	background: #94a3b8;
}
.thc-theme-toggle--dark .thc-theme-toggle__icon::after {
	transform: translateX(-3px);
	opacity: 1;
}

/* Foto grande en página Sobre Nosotros */
.thc-about-photo {
	max-width: 280px;
	margin: 0 auto 2rem;
	float: right;
	shape-outside: circle();
	margin-left: 2rem;
	margin-bottom: 1.5rem;
}
.thc-about-photo img {
	border-radius: 50%;
	border: 6px solid var(--thc-color-bg-alt);
	box-shadow: 0 14px 36px rgba(11, 37, 69, 0.18);
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 1;
	object-fit: cover;
}
@media (max-width: 600px) {
	.thc-about-photo {
		float: none;
		max-width: 200px;
		margin: 0 auto 1.5rem;
	}
}

/* Foto real autora (cuando hay URL configurada en opciones) */
.thc-author-bio__avatar--photo,
.thc-author-header__avatar--photo {
	padding: 0;
	overflow: hidden;
	background: var(--thc-color-bg-alt);
}
.thc-author-bio__avatar--photo img,
.thc-author-header__avatar--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Pillar page: TOC más vistoso con estilo de "índice de guía" */
.thc-pillar-page .thc-toc {
	background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
	border: 2px solid var(--thc-color-accent);
	border-radius: 14px;
	padding: 1.75rem 2rem;
	margin: 2rem 0 2.5rem;
	box-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
	position: relative;
}
.thc-pillar-page .thc-toc::before {
	content: 'GUÍA PASO A PASO';
	position: absolute;
	top: -10px;
	left: 24px;
	background: var(--thc-color-accent);
	color: #fff;
	padding: 0.25rem 0.85rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	font-family: var(--thc-font-sans);
}
.thc-pillar-page .thc-toc__title {
	font-family: var(--thc-font-serif);
	font-size: 1.35rem;
	color: var(--thc-color-primary);
	border-bottom: 0;
	margin-bottom: 1.25rem;
	text-transform: none;
	letter-spacing: -0.01em;
}
.thc-pillar-page .thc-toc__list {
	counter-reset: thc-step;
	padding-left: 0;
	list-style: none;
	display: grid;
	gap: 0.4rem;
}
.thc-pillar-page .thc-toc__list li {
	counter-increment: thc-step;
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: transparent;
	transition: background 0.15s ease, transform 0.15s ease;
}
.thc-pillar-page .thc-toc__list li:hover {
	background: var(--thc-color-bg-alt);
	transform: translateX(4px);
}
.thc-pillar-page .thc-toc__list li::before {
	content: counter(thc-step);
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	background: var(--thc-color-primary);
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--thc-font-sans);
	font-size: 0.85rem;
	font-weight: 700;
	flex-shrink: 0;
}
.thc-pillar-page .thc-toc__list a {
	color: var(--thc-color-text);
	border-bottom: 0;
	font-size: 1rem;
	font-weight: 500;
	padding-top: 4px;
}
.thc-pillar-page .thc-toc__list a:hover {
	color: var(--thc-color-accent);
}
[data-theme="dark"] .thc-pillar-page .thc-toc {
	background: linear-gradient(135deg, var(--thc-color-bg-alt) 0%, #1a2438 100%);
}

	--thc-font-serif: "Merriweather", Georgia, "Times New Roman", serif;
	--thc-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--thc-fs-h1: clamp(1.85rem, 1.4rem + 2vw, 2.6rem);
	--thc-fs-h2: clamp(1.45rem, 1.2rem + 1.2vw, 2rem);
	--thc-fs-h3: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
	--thc-fs-body: 1.0625rem;
	--thc-fs-small: 0.875rem;

	--thc-radius: 4px;
	--thc-shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
	--thc-shadow-md: 0 4px 14px rgba(11, 37, 69, 0.08);

	--thc-container: 1400px;
	--thc-gap: 1.75rem;
}

/* ============================================================
   2. Base typography
   ============================================================ */
body {
	font-family: var(--thc-font-sans);
	font-size: var(--thc-fs-body);
	color: var(--thc-color-text);
	background: var(--thc-color-bg);
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title {
	font-family: var(--thc-font-serif);
	color: var(--thc-color-primary);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
}

h1, .entry-title { font-size: var(--thc-fs-h1); }
h2 { font-size: var(--thc-fs-h2); }
h3 { font-size: var(--thc-fs-h3); }

a {
	color: var(--thc-color-primary);
	text-decoration: none;
	transition: color 0.15s ease;
}
a:hover,
a:focus {
	color: var(--thc-color-accent);
	text-decoration: underline;
}

/* ============================================================
   3. Header — single line (título izq + menú der)
   ============================================================ */
.site-header {
	background: var(--thc-color-primary) !important;
	border-bottom: 3px solid var(--thc-color-accent);
}
.site-header .inside-header {
	padding-block: 0.95rem !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 1rem;
	flex-wrap: nowrap !important;
	min-height: 0 !important;
}
.site-header .header-widget,
.site-header .site-logo { display: none !important; }

.site-header .site-branding {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex-shrink: 1;
	min-width: 0;
}
.site-header .main-title,
.site-header .main-title a,
.site-header .site-description {
	color: #fff !important;
}
.site-header .main-title {
	font-family: var(--thc-font-serif) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	font-size: 1.65rem !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.15 !important;
	white-space: nowrap;
}
.site-header .site-description {
	color: rgba(255,255,255,0.65) !important;
	font-family: var(--thc-font-sans) !important;
	font-size: 0.72rem !important;
	font-weight: 400 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Nav dentro del header (gracias a nav-float-right de GP) */
.site-header .main-navigation,
.site-header nav.main-navigation {
	background: transparent !important;
	flex: 0 0 auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
}
.site-header .main-navigation .inside-navigation {
	padding: 0 !important;
	max-width: none !important;
}
.site-header .main-navigation .main-nav > ul {
	display: flex !important;
	gap: 0.1rem !important;
	margin: 0 !important;
	padding: 0 !important;
}
.site-header .main-navigation .main-nav ul li a {
	color: #fff !important;
	font-family: var(--thc-font-sans) !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	font-size: 0.78rem !important;
	letter-spacing: 0.05em;
	padding: 0.55rem 0.85rem !important;
	line-height: 1 !important;
	background: transparent;
}
.site-header .main-navigation .main-nav ul li:hover > a,
.site-header .main-navigation .main-nav ul li.current-menu-item > a,
.site-header .main-navigation .main-nav ul li.current-menu-ancestor > a {
	background: var(--thc-color-accent) !important;
	color: #fff !important;
}
/* Submenús (dropdown desktop) */
.site-header .main-navigation .main-nav ul ul {
	background: var(--thc-color-primary-dark) !important;
	border-top: 2px solid var(--thc-color-accent);
}
.site-header .main-navigation .main-nav ul ul li a {
	padding: 0.6rem 1rem !important;
	font-size: 0.75rem !important;
}

/* Botón hamburguesa del header (mobile wrapper) — oculto en desktop */
.site-header .mobile-menu-control-wrapper {
	display: none !important;
}
/* Botón menu-toggle del nav principal — oculto en desktop */
.site-header .main-navigation > .inside-navigation > .menu-toggle {
	display: none !important;
}

/* Neutralizar GP "featured-image-active" para que el header se vea igual
   en todas las páginas (homepage, single, archive). */
body.featured-image-active .site-header,
body.featured-image-active .inside-header {
	background: var(--thc-color-primary) !important;
}
body.featured-image-active .featured-image,
body.featured-image-active .page-hero {
	display: none !important;
}

/* ============================================================
   3b. Header MOBILE
   ============================================================ */
@media (max-width: 768px) {
	.site-header .inside-header {
		padding-block: 0.5rem !important;
		flex-wrap: nowrap !important;
	}
	.site-header .main-title {
		font-size: 1.1rem !important;
	}
	.site-header .site-description {
		display: none !important;
	}

	/* Mostrar el wrapper del toggle, ocultar el menú desktop */
	.site-header .mobile-menu-control-wrapper {
		display: block !important;
		flex: 0 0 auto;
	}
	.site-header .main-navigation#site-navigation {
		display: none !important;
	}

	/* Toggle button styles */
	.site-header .mobile-menu-control-wrapper .menu-toggle {
		display: flex !important;
		align-items: center;
		gap: 0.4rem;
		padding: 0.4rem 0.7rem !important;
		font-size: 0.85rem !important;
		background: transparent;
		color: #fff;
		border: 1px solid rgba(255,255,255,0.35);
		border-radius: var(--thc-radius);
		cursor: pointer;
	}
	.site-header .mobile-menu-control-wrapper .menu-toggle svg {
		fill: #fff;
		width: 1.1rem;
		height: 1.1rem;
	}

	/* Cuando el menú está abierto, mostramos el nav#site-navigation como dropdown */
	.main-navigation.toggled,
	.site-header .main-navigation#site-navigation.toggled {
		display: block !important;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--thc-color-primary-dark) !important;
		z-index: 999;
		box-shadow: 0 8px 16px rgba(0,0,0,0.25);
	}
	.main-navigation.toggled .inside-navigation,
	.site-header .main-navigation#site-navigation.toggled .inside-navigation {
		padding: 0 !important;
	}
	.main-navigation.toggled .main-nav > ul,
	.site-header .main-navigation#site-navigation.toggled .main-nav > ul {
		display: block !important;
		gap: 0 !important;
	}
	.main-navigation.toggled .main-nav ul li,
	.site-header .main-navigation#site-navigation.toggled .main-nav ul li {
		display: block;
		width: 100%;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}
	.main-navigation.toggled .main-nav ul li a,
	.site-header .main-navigation#site-navigation.toggled .main-nav ul li a {
		display: block;
		padding: 0.85rem 1.25rem !important;
		font-size: 0.85rem !important;
		text-align: left;
	}

	/* Posicionar el header como referencia del menú colgante */
	.site-header {
		position: relative;
	}
}

/* ============================================================
   4. Layout: magazine grid
   ============================================================ */
.site-content .content-area {
	background: var(--thc-color-bg);
}
.thc-container {
	max-width: var(--thc-container);
	margin-inline: auto;
	padding-inline: 1rem;
}

/* Homepage hero */
.thc-hero {
	display: grid;
	grid-template-columns: 1.85fr 1fr;
	gap: 2.5rem;
	margin-block: 2rem;
}
.thc-hero__featured {
	position: relative;
	border-radius: var(--thc-radius);
	overflow: hidden;
	box-shadow: var(--thc-shadow-md);
	background: var(--thc-color-bg);
	border: 1px solid var(--thc-color-border);
	display: flex;
	flex-direction: column;
	/* No estirar en vacío: la tarjeta grande mide lo que mide su contenido
	   (imagen + título + entradilla + fecha), en vez de igualar a la columna
	   lateral y dejar un hueco blanco debajo. */
	align-self: start;
}
.thc-hero__featured a {
	color: inherit;
}
/* Imagen completa arriba a 16:9 (sin recorte: las portadas son 1200x675 = 16:9) */
.thc-hero__featured .thc-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 0;
	background: var(--thc-color-bg-alt);
	position: relative;
	overflow: hidden;
}
.thc-hero__featured .thc-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
/* Título debajo de la imagen (no superpuesto) */
.thc-hero__featured .thc-card__body {
	position: static;
	padding: 1.5rem 1.75rem 1.75rem;
	background: none;
}
.thc-hero__featured .thc-card__category {
	color: var(--thc-color-accent);
}
.thc-hero__featured .entry-title {
	color: var(--thc-color-primary);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	margin: 0.5rem 0;
}
.thc-hero__excerpt {
	color: var(--thc-color-muted);
	font-size: 1.06rem;
	line-height: 1.55;
	margin: 0.35rem 0 0.9rem;
}
[data-theme="dark"] .thc-hero__excerpt { color: #cbd5e1; }
.thc-hero__featured .thc-card__meta {
	color: var(--thc-color-muted);
}
[data-theme="dark"] .thc-hero__featured .entry-title { color: #f1f5f9; }
.thc-hero__side {
	display: grid;
	grid-template-rows: repeat(3, 1fr);
	gap: 1.1rem;
}
/* Las tarjetas laterales rellenan su celda y centran el contenido,
   para que las 3 ocupen toda la altura de la foto grande sin hueco. */
.thc-hero__side .thc-card--horizontal {
	height: 100%;
	align-items: center;
}
.thc-hero__side .thc-card--horizontal .thc-card__media {
	align-self: center;
}

/* Caja de comparador / afiliación (shortcode [thc_comparador]) */
.thc-afiliado {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 1.75rem;
	background: linear-gradient(135deg, #061833 0%, #0d2b52 100%);
	color: #fff;
	border-radius: var(--thc-radius, 14px);
	padding: 1.6rem 1.9rem;
	margin: 2.25rem 0;
	box-shadow: var(--thc-shadow-md, 0 8px 24px rgba(6, 24, 51, 0.15));
}
.thc-afiliado__body { flex: 1 1 320px; }
.thc-afiliado__title {
	color: #fff;
	margin: 0 0 0.4rem;
	font-size: 1.22rem;
	line-height: 1.25;
}
.thc-afiliado__text {
	color: #cbd5e1;
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.5;
}
.thc-afiliado__btn {
	flex: 0 0 auto;
	display: inline-block;
	background: var(--thc-color-accent, #F4A261);
	color: #061833;
	font-weight: 700;
	text-decoration: none;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	white-space: nowrap;
	transition: transform 0.15s ease, background 0.15s ease;
}
.thc-afiliado__btn:hover {
	background: #f6b47f;
	transform: translateY(-1px);
}
@media (max-width: 600px) {
	.thc-afiliado { flex-direction: column; align-items: flex-start; }
	.thc-afiliado__btn { width: 100%; text-align: center; }
}
.thc-hero__side .thc-card--horizontal .entry-title {
	font-size: 1.02rem;
	line-height: 1.3;
}

/* Article cards */
.thc-card {
	background: var(--thc-color-bg);
	border: 1px solid var(--thc-color-border);
	border-radius: var(--thc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thc-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--thc-shadow-md);
}
.thc-card__media {
	display: block;
	background: var(--thc-color-bg-alt);
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
}
.thc-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.thc-card__body {
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex-grow: 1;
}
.thc-card__category {
	display: inline-block;
	font-family: var(--thc-font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--thc-color-accent);
}
.thc-card .entry-title {
	font-size: 1.15rem;
	line-height: 1.3;
	margin: 0;
}
.thc-card__meta {
	color: var(--thc-color-muted);
	font-size: var(--thc-fs-small);
	margin-top: auto;
}
.thc-card--horizontal {
	flex-direction: row;
}
.thc-card--horizontal .thc-card__media {
	flex: 0 0 44%;
	aspect-ratio: 16 / 9;
	align-self: flex-start;
	min-height: 0;
}

/* Latest grid */
.thc-section-title {
	font-family: var(--thc-font-serif);
	color: var(--thc-color-primary);
	font-size: 1.5rem;
	margin: 2.5rem 0 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--thc-color-accent);
	display: inline-block;
}
.thc-home-title {
	font-family: var(--thc-font-serif);
	color: var(--thc-color-primary);
	font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
	line-height: 1.15;
	margin: 2rem 0 0.75rem;
}
.thc-home-intro {
	color: var(--thc-color-text-soft);
	font-size: 1.08rem;
	line-height: 1.6;
	max-width: 720px;
	margin: 0 0 0.5rem;
}
[data-theme="dark"] .thc-home-title { color: #f1f5f9; }
.thc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.75rem 2.5rem;
}
.thc-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 2.75rem 2.5rem; }

/* Two-column layout with sidebar */
.thc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 3rem;
	margin-block: 2rem;
}
.thc-main { min-width: 0; }
.thc-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.thc-sidebar .widget {
	background: var(--thc-color-bg-alt);
	padding: 1.25rem;
	border-radius: var(--thc-radius);
}
.thc-sidebar .widget-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--thc-color-accent);
}
.thc-sidebar--sticky > .thc-ad-slot {
	position: sticky;
	top: 1rem;
}

/* ============================================================
   5. Single article
   ============================================================ */
.thc-article {
	max-width: 760px;
	margin: 0 auto;
}
.thc-article .entry-title {
	margin-bottom: 0.5rem;
}
.thc-article__meta {
	color: var(--thc-color-muted);
	font-size: var(--thc-fs-small);
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--thc-color-border);
}
.thc-article__meta a {
	color: var(--thc-color-muted);
}
.thc-article__featured {
	margin: 0 0 1.5rem;
}
.thc-article__featured img {
	width: 100%;
	height: auto;
	border-radius: var(--thc-radius);
}
.thc-article__updated {
	background: rgba(231, 111, 36, 0.12);
	color: var(--thc-color-primary);
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
}
.thc-article .entry-content {
	font-size: 1.125rem;
	line-height: 1.75;
}

/* Tabla de contenidos */
.thc-toc {
	margin: 1.5rem 0 2rem;
	padding: 1.25rem 1.5rem;
	background: var(--thc-color-bg-alt);
	border-left: 4px solid var(--thc-color-accent);
	border-radius: var(--thc-radius);
}
.thc-toc__title {
	margin: 0 0 0.75rem;
	font-family: var(--thc-font-sans);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--thc-color-primary);
	font-weight: 700;
}
.thc-toc__list {
	margin: 0;
	padding-left: 1.4rem;
	counter-reset: thc-toc;
}
.thc-toc__list li {
	margin: 0.35rem 0;
	font-size: 0.98rem;
	line-height: 1.5;
}
.thc-toc__list a {
	color: var(--thc-color-text);
	text-decoration: none;
	border-bottom: 1px dashed var(--thc-color-border);
	padding-bottom: 1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.thc-toc__list a:hover {
	color: var(--thc-color-accent);
	border-color: var(--thc-color-accent);
}

/* Scroll suave para anchors */
html { scroll-behavior: smooth; }
html { scroll-padding-top: 1rem; }

/* Reading progress bar */
.thc-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: var(--thc-color-accent);
	z-index: 9998;
	transition: width 0.1s ease-out;
	pointer-events: none;
}
.thc-article .entry-content > p:first-of-type {
	font-size: 1.2rem;
	color: var(--thc-color-text-soft);
	font-weight: 500;
}
.thc-article .entry-content h2 {
	margin-top: 2.25rem;
	margin-bottom: 1rem;
}
.thc-article .entry-content h3 {
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
}
.thc-article .entry-content blockquote {
	border-left: 4px solid var(--thc-color-accent);
	padding: 0.5rem 0 0.5rem 1.25rem;
	margin: 1.5rem 0;
	color: var(--thc-color-text-soft);
	font-style: italic;
	background: var(--thc-color-bg-alt);
}
.thc-article .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95rem;
}
.thc-article .entry-content th,
.thc-article .entry-content td {
	border: 1px solid var(--thc-color-border);
	padding: 0.65rem 0.85rem;
	text-align: left;
}
.thc-article .entry-content th {
	background: var(--thc-color-primary);
	color: #fff;
	font-family: var(--thc-font-sans);
}

/* ============================================================
   5b. Caja de autora (E-E-A-T para AdSense + cierre humano)
   ============================================================ */
.thc-author-bio {
	display: flex;
	gap: 1.25rem;
	margin: 2rem 0;
	padding: 1.5rem;
	background: var(--thc-color-bg-alt);
	border-left: 4px solid var(--thc-color-accent);
	border-radius: var(--thc-radius);
	align-items: flex-start;
}
.thc-author-bio__avatar {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	background: var(--thc-color-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--thc-font-serif);
	font-weight: 700;
	font-size: 1.8rem;
	border: 3px solid var(--thc-color-accent);
}
.thc-author-bio__body h3 {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	color: var(--thc-color-primary);
}
.thc-author-bio__body p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--thc-color-text-soft);
	line-height: 1.6;
}
.thc-author-bio__body a {
	color: var(--thc-color-accent);
	font-weight: 600;
}
@media (max-width: 600px) {
	.thc-author-bio {
		flex-direction: column;
		text-align: center;
	}
	.thc-author-bio__avatar { margin: 0 auto; }
}

/* ============================================================
   6. Ad slots
   ============================================================ */
.thc-ad-slot {
	margin: 1.5rem 0;
	padding: 0.5rem 0;
	text-align: center;
	min-height: 100px;
	background: var(--thc-color-bg-alt);
	border: 1px dashed var(--thc-color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.thc-ad-slot::before {
	content: "Publicidad";
	position: absolute;
	top: 4px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--thc-color-muted);
}
.thc-ad-slot--placeholder {
	color: var(--thc-color-muted);
	font-family: var(--thc-font-sans);
	font-size: 0.85rem;
}
.thc-ad-slot--header { min-height: 100px; }
.thc-ad-slot--sidebar { min-height: 250px; }
.thc-ad-slot--in-article { min-height: 280px; margin: 2rem 0; }

/* ============================================================
   6a. Related posts en sidebar
   ============================================================ */
.thc-related-sidebar {
	background: var(--thc-color-bg-alt);
	padding: 1.15rem 1.25rem;
	border-radius: var(--thc-radius);
}
.thc-related-sidebar h3 {
	font-family: var(--thc-font-sans);
	font-size: 0.85rem;
	margin: 0 0 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--thc-color-primary);
	border-bottom: 2px solid var(--thc-color-accent);
	padding-bottom: 0.4rem;
	display: inline-block;
	font-weight: 700;
}
.thc-related-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.thc-related-sidebar__item {
	margin: 0 0 0.85rem;
	padding: 0 0 0.85rem;
	border-bottom: 1px solid var(--thc-color-border);
}
.thc-related-sidebar__item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}
.thc-related-sidebar__link {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	color: var(--thc-color-text);
	text-decoration: none;
	transition: color 0.15s ease;
}
.thc-related-sidebar__link:hover {
	color: var(--thc-color-accent);
}
.thc-related-sidebar__media {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: var(--thc-radius);
	background: var(--thc-color-border);
}
.thc-related-sidebar__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.thc-related-sidebar__title {
	font-family: var(--thc-font-serif);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--thc-color-primary);
}
.thc-related-sidebar__link:hover .thc-related-sidebar__title {
	color: var(--thc-color-accent);
}

/* ============================================================
   6a-bis. Author archive header
   ============================================================ */
.thc-author-header {
	display: flex;
	gap: 1.5rem;
	margin: 2rem 0;
	padding: 1.75rem;
	background: var(--thc-color-bg-alt);
	border-left: 4px solid var(--thc-color-accent);
	border-radius: var(--thc-radius);
	align-items: flex-start;
}
.thc-author-header__avatar {
	flex: 0 0 90px;
	width: 90px;
	height: 90px;
	background: var(--thc-color-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--thc-font-serif);
	font-weight: 700;
	font-size: 2.6rem;
	border: 3px solid var(--thc-color-accent);
}
.thc-author-header__body { flex: 1; min-width: 0; }
.thc-author-header__body .entry-title { font-size: clamp( 1.5rem, 1.1rem + 1.5vw, 2rem ); margin: 0 0 0.6rem; }
.thc-author-header__bio {
	color: var(--thc-color-text-soft);
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0 0 1rem;
}
.thc-author-header__meta {
	margin: 0;
}
@media (max-width: 600px) {
	.thc-author-header { flex-direction: column; text-align: center; }
	.thc-author-header__avatar { margin: 0 auto; }
}

/* ============================================================
   6b. Search widget en sidebar
   ============================================================ */
.thc-search-widget {
	background: var(--thc-color-bg-alt);
	padding: 1rem 1.15rem;
	border-radius: var(--thc-radius);
}
.thc-search-widget h3 {
	font-size: 1rem;
	margin: 0 0 0.65rem;
	color: var(--thc-color-primary);
	font-family: var(--thc-font-sans);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 2px solid var(--thc-color-accent);
	padding-bottom: 0.35rem;
	display: inline-block;
}
.thc-search-widget .wp-block-search,
.thc-search-widget form {
	display: flex;
	gap: 0;
	margin: 0;
}
.thc-search-widget input[type="search"],
.thc-search-widget .wp-block-search__input {
	flex: 1;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--thc-color-border);
	border-radius: var(--thc-radius) 0 0 var(--thc-radius);
	font-size: 0.95rem;
	font-family: var(--thc-font-sans);
	min-width: 0;
}
.thc-search-widget button,
.thc-search-widget .wp-block-search__button {
	background: var(--thc-color-primary);
	color: #fff;
	border: 0;
	padding: 0.55rem 0.95rem;
	border-radius: 0 var(--thc-radius) var(--thc-radius) 0;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	font-family: var(--thc-font-sans);
}
.thc-search-widget button:hover,
.thc-search-widget .wp-block-search__button:hover {
	background: var(--thc-color-accent);
}
.thc-search-widget .wp-block-search__label {
	display: none;
}

/* ============================================================
   6c. Página 404
   ============================================================ */
.thc-404 {
	max-width: 860px;
	margin: 3rem auto;
	text-align: center;
}
.thc-404__hero {
	margin-bottom: 2rem;
}
.thc-404__code {
	display: block;
	font-family: var(--thc-font-serif);
	font-size: 6rem;
	font-weight: 900;
	color: var(--thc-color-accent);
	line-height: 1;
	margin-bottom: 0.5rem;
}
.thc-404__title {
	font-size: clamp( 1.6rem, 1.2rem + 1.5vw, 2.2rem );
	margin: 0 0 0.75rem;
}
.thc-404__lead {
	color: var(--thc-color-text-soft);
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto;
}
.thc-404__search {
	margin: 2rem 0;
	padding: 1.5rem;
	background: var(--thc-color-bg-alt);
	border-radius: var(--thc-radius);
}
.thc-404__search strong {
	display: block;
	margin-bottom: 0.8rem;
	color: var(--thc-color-primary);
	font-size: 1.05rem;
}
.thc-404__search form,
.thc-404__search .wp-block-search {
	display: flex;
	max-width: 500px;
	margin: 0 auto;
}
.thc-404__search input[type="search"] {
	flex: 1;
	padding: 0.7rem 1rem;
	border: 1px solid var(--thc-color-border);
	border-radius: var(--thc-radius) 0 0 var(--thc-radius);
	font-size: 1rem;
	min-width: 0;
}
.thc-404__search button {
	background: var(--thc-color-accent);
	color: #fff;
	border: 0;
	padding: 0.7rem 1.5rem;
	border-radius: 0 var(--thc-radius) var(--thc-radius) 0;
	font-weight: 600;
	cursor: pointer;
}
.thc-404__sections {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin: 2rem 0;
	text-align: left;
}
.thc-404__list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.thc-404__list li {
	border-bottom: 1px solid var(--thc-color-border);
	padding: 0.5rem 0;
}
.thc-404__list li:last-child {
	border-bottom: 0;
}
.thc-404__list a {
	color: var(--thc-color-primary);
	font-weight: 500;
	text-decoration: none;
}
.thc-404__list a:hover {
	color: var(--thc-color-accent);
	text-decoration: underline;
}
.thc-404__newsletter {
	margin-top: 2.5rem;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 600px) {
	.thc-404__code { font-size: 4rem; }
	.thc-404__sections { grid-template-columns: 1fr; }
}

/* ============================================================
   7. Newsletter / subscription
   ============================================================ */
.thc-newsletter {
	background: var(--thc-color-primary);
	color: #fff;
	padding: 2rem 1.5rem;
	border-radius: var(--thc-radius);
	text-align: center;
}
.thc-newsletter h3 {
	color: #fff;
	margin: 0 0 0.5rem;
}
.thc-newsletter p {
	color: rgba(255,255,255,0.85);
	font-size: var(--thc-fs-small);
	margin-bottom: 1rem;
}
.thc-newsletter form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}
.thc-newsletter input[type="email"] {
	flex: 1 1 200px;
	padding: 0.65rem 0.85rem;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: var(--thc-radius);
	font-size: 0.95rem;
	background: rgba(255,255,255,0.95);
	color: var(--thc-color-text);
}
.thc-newsletter button {
	background: var(--thc-color-accent);
	color: #fff;
	border: none;
	padding: 0.65rem 1.25rem;
	border-radius: var(--thc-radius);
	font-weight: 600;
	cursor: pointer;
	font-family: var(--thc-font-sans);
	transition: background 0.15s ease;
}
.thc-newsletter button:hover {
	background: var(--thc-color-accent-dark);
}
.thc-newsletter button:disabled {
	opacity: 0.7;
	cursor: wait;
}
.thc-newsletter__status {
	margin-top: 0.8rem;
	font-size: 0.92rem;
	padding: 0 0.25rem;
	min-height: 1.2rem;
	color: rgba(255,255,255,0.95);
}
.thc-newsletter__status--ok {
	background: rgba(255,255,255,0.12);
	padding: 0.75rem 1rem;
	border-radius: var(--thc-radius);
	border-left: 3px solid var(--thc-color-accent);
	font-weight: 500;
}
.thc-newsletter__status--err {
	background: rgba(185, 28, 28, 0.25);
	padding: 0.75rem 1rem;
	border-radius: var(--thc-radius);
	border-left: 3px solid #fca5a5;
	font-weight: 500;
}

/* ============================================================
   8. Category pills + breadcrumbs
   ============================================================ */
.thc-pill {
	display: inline-block;
	background: var(--thc-color-accent);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
}
.thc-breadcrumb {
	font-size: 0.85rem;
	color: var(--thc-color-muted);
	margin-bottom: 1rem;
}
.thc-breadcrumb a {
	color: var(--thc-color-muted);
}

/* ============================================================
   9. Footer
   ============================================================ */
.site-footer,
.site-info {
	background: var(--thc-color-primary-dark);
	color: rgba(255,255,255,0.85);
}
.site-footer a,
.site-info a {
	color: rgba(255,255,255,0.85);
}
.site-footer a:hover,
.site-info a:hover {
	color: var(--thc-color-accent);
}
.site-footer .widget-title { color: #fff; }

/* Ocultar widgets de footer por defecto de GP — usamos el .thc-footer custom */
#footer-widgets,
.footer-widgets,
.footer-widgets-container {
	display: none !important;
}

/* Custom footer block (inyectado vía generate_before_footer_content) */
.thc-footer {
	background: var(--thc-color-primary);
	padding: 2.5rem 1rem 2rem;
	border-top: 3px solid var(--thc-color-accent);
}
.thc-footer__inner {
	max-width: var(--thc-container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.3fr 1.1fr;
	gap: 2rem;
}
.thc-footer__col h3 {
	font-family: var(--thc-font-serif);
	color: #fff;
	font-size: 1.05rem;
	margin: 0 0 0.85rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--thc-color-accent);
	display: inline-block;
}
.thc-footer__col p {
	color: rgba(255,255,255,0.75);
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0 0 0.75rem;
}
.thc-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.thc-footer__col li {
	margin: 0 0 0.45rem;
}
.thc-footer__col a {
	color: rgba(255,255,255,0.85);
	font-size: 0.92rem;
	text-decoration: none;
	transition: color 0.15s ease;
}
.thc-footer__col a:hover {
	color: var(--thc-color-accent);
}
.thc-footer__cta {
	display: inline-block;
	margin-top: 0.25rem;
	padding: 0.45rem 0.95rem;
	background: var(--thc-color-accent);
	color: #fff !important;
	border-radius: var(--thc-radius);
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none !important;
}
.thc-footer__cta:hover {
	background: var(--thc-color-accent-dark);
	color: #fff !important;
}
.thc-footer__author {
	font-size: 0.85rem !important;
	color: rgba(255,255,255,0.7) !important;
}
.thc-footer__author strong { color: rgba(255,255,255,0.9); }
.thc-footer__author a {
	color: var(--thc-color-accent) !important;
	font-weight: 600;
	white-space: nowrap;
}
.thc-author-bio__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: center;
	margin: 0.5rem 0 0;
}
.thc-author-bio__links a {
	font-weight: 600;
	white-space: nowrap;
}
.thc-footer__cta--ghost {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.35);
	color: #fff !important;
}
.thc-footer__cta--ghost:hover {
	background: rgba(255,255,255,0.08);
	border-color: var(--thc-color-accent);
	color: var(--thc-color-accent) !important;
}

/* Copyright bar override */
.site-info {
	background: var(--thc-color-primary-dark);
	padding: 0.9rem 1rem;
	font-size: 0.82rem;
	color: rgba(255,255,255,0.7);
	text-align: center;
}
.site-info .inside-site-info { max-width: var(--thc-container); margin: 0 auto; }

@media (max-width: 1024px) {
	.thc-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 1.75rem;
	}
}
@media (max-width: 600px) {
	.thc-footer__inner {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

/* ============================================================
   10. Responsive
   ============================================================ */
@media (max-width: 1024px) {
	.thc-layout {
		grid-template-columns: 1fr;
	}
	.thc-hero {
		grid-template-columns: 1fr;
	}
	.thc-hero__side {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: auto;
	}
}
@media (max-width: 768px) {
	.thc-grid,
	.thc-grid--2 {
		grid-template-columns: 1fr;
	}
	.thc-hero__side {
		grid-template-columns: 1fr;
	}
	.thc-card--horizontal {
		flex-direction: column;
	}
	.thc-card--horizontal .thc-card__media {
		flex: initial;
		aspect-ratio: 16 / 9;
	}
}

/* ============================================================
   10b. Calculadora de hipotecas
   ============================================================ */
.thc-calc {
	background: var(--thc-color-bg);
	border: 1px solid var(--thc-color-border);
	border-radius: var(--thc-radius);
	padding: 1.5rem;
	margin: 1.5rem 0;
	box-shadow: var(--thc-shadow-sm);
	font-family: var(--thc-font-sans);
}
.thc-calc__intro h2 {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
}
.thc-calc__intro p {
	margin: 0 0 1.5rem;
	color: var(--thc-color-text-soft);
}

.thc-calc__form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	padding: 1.25rem;
	background: var(--thc-color-bg-alt);
	border-radius: var(--thc-radius);
}
.thc-calc__field label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--thc-color-primary);
	margin-bottom: 0.4rem;
}
.thc-calc__input-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}
.thc-calc__input-row input[type="number"] {
	flex: 1;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--thc-color-border);
	border-radius: var(--thc-radius);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--thc-color-primary);
	font-family: var(--thc-font-sans);
	min-width: 0;
}
.thc-calc__input-row input[type="number"]:focus {
	outline: none;
	border-color: var(--thc-color-accent);
	box-shadow: 0 0 0 3px rgba(231, 111, 36, 0.15);
}
.thc-calc__unit {
	color: var(--thc-color-muted);
	font-weight: 500;
	font-size: 0.95rem;
}
.thc-calc__field input[type="range"] {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	background: var(--thc-color-border);
	border-radius: 2px;
	outline: none;
}
.thc-calc__field input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	background: var(--thc-color-accent);
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.thc-calc__field input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	background: var(--thc-color-accent);
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.thc-calc__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.thc-calc__summary-card {
	background: var(--thc-color-bg-alt);
	border-radius: var(--thc-radius);
	padding: 1.15rem 1.25rem;
	border-left: 4px solid var(--thc-color-border);
}
.thc-calc__summary-card--primary {
	background: var(--thc-color-primary);
	color: #fff;
	border-left-color: var(--thc-color-accent);
}
.thc-calc__summary-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.85;
	margin-bottom: 0.4rem;
	font-weight: 600;
}
.thc-calc__summary-value {
	font-family: var(--thc-font-serif);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.15;
}

.thc-calc__bar-wrap {
	margin-bottom: 1.5rem;
}
.thc-calc__bar-label {
	font-size: 0.85rem;
	color: var(--thc-color-text-soft);
	margin-bottom: 0.5rem;
	font-weight: 600;
}
.thc-calc__bar {
	display: flex;
	height: 36px;
	border-radius: var(--thc-radius);
	overflow: hidden;
	background: var(--thc-color-bg-alt);
}
.thc-calc__bar-cap,
.thc-calc__bar-int {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	transition: flex-grow 0.25s ease;
	gap: 0.4rem;
}
.thc-calc__bar-cap { background: var(--thc-color-primary); }
.thc-calc__bar-int { background: var(--thc-color-accent); }

.thc-calc__details {
	margin: 1rem 0;
	border: 1px solid var(--thc-color-border);
	border-radius: var(--thc-radius);
	overflow: hidden;
}
.thc-calc__details summary {
	background: var(--thc-color-bg-alt);
	padding: 0.85rem 1.2rem;
	cursor: pointer;
	font-weight: 600;
	color: var(--thc-color-primary);
	user-select: none;
}
.thc-calc__details summary:hover { background: var(--thc-color-border); }
.thc-calc__details[open] summary { border-bottom: 1px solid var(--thc-color-border); }
.thc-calc__table-wrap {
	padding: 1rem;
	overflow-x: auto;
}
.thc-calc__table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.thc-calc__table-wrap th,
.thc-calc__table-wrap td {
	padding: 0.55rem 0.85rem;
	text-align: right;
	border-bottom: 1px solid var(--thc-color-border);
}
.thc-calc__table-wrap th:first-child,
.thc-calc__table-wrap td:first-child { text-align: left; }
.thc-calc__table-wrap thead th {
	background: var(--thc-color-primary);
	color: #fff;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-family: var(--thc-font-sans);
}
.thc-calc__table-wrap tbody tr:nth-child(odd) td { background: var(--thc-color-bg-alt); }
.thc-calc-row-active td {
	background: rgba(231, 111, 36, 0.15) !important;
	font-weight: 700;
	color: var(--thc-color-primary);
}

.thc-calc__footer {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--thc-color-border);
	font-size: 0.82rem;
	color: var(--thc-color-muted);
}
.thc-calc__footer a { color: var(--thc-color-accent); }

@media (max-width: 600px) {
	.thc-calc { padding: 1rem; }
	.thc-calc__form { padding: 1rem; }
	.thc-calc__summary-value { font-size: 1.35rem; }
	.thc-calc__table-wrap th,
	.thc-calc__table-wrap td { padding: 0.45rem 0.6rem; font-size: 0.82rem; }
}

/* ============================================================
   10b-bis. Modales Newsletter + Push (centrados, animados)
   ============================================================ */
.thc-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	transition: opacity 0.25s ease-out;
}
.thc-modal.thc-modal--open { opacity: 1; }
.thc-modal[hidden] { display: none !important; }

.thc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(11, 37, 69, 0.85) 0%, rgba(6, 24, 51, 0.95) 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.thc-modal__card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 640px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	padding: 2.75rem 2.5rem 1.75rem;
	box-shadow:
		0 24px 80px rgba(0,0,0,0.45),
		0 0 0 1px rgba(255,255,255,0.05);
	text-align: center;
	z-index: 1;
	transform: translateY(30px) scale(0.9);
	transition: transform 0.45s cubic-bezier(.21,1.5,.36,1.0);
}
.thc-modal--open .thc-modal__card {
	transform: translateY(0) scale(1);
}

/* Banda decorativa superior con gradiente */
.thc-modal__card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--thc-color-accent), #f4a261, var(--thc-color-accent));
	background-size: 200% 100%;
	border-radius: 16px 16px 0 0;
	animation: thc-shimmer 4s linear infinite;
}
@keyframes thc-shimmer {
	from { background-position: 0% 50%; }
	to   { background-position: 200% 50%; }
}

.thc-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 1rem;
	background: transparent;
	border: 0;
	font-size: 2rem;
	color: var(--thc-color-muted);
	cursor: pointer;
	line-height: 1;
	padding: 0.25rem 0.6rem;
	transition: color 0.15s ease, transform 0.2s ease;
	z-index: 2;
}
.thc-modal__close:hover {
	color: var(--thc-color-primary);
	transform: rotate(90deg);
}

/* Icono con burbuja animada */
.thc-modal__icon-wrap {
	margin: 0 auto 1.25rem;
	width: 88px;
	height: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.thc-modal__icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 12px 30px rgba(231, 111, 36, 0.35);
	transform: scale(0) rotate(-25deg);
	opacity: 0;
}
.thc-modal--open .thc-modal__icon {
	animation: thc-icon-pop 0.55s 0.15s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes thc-icon-pop {
	0%   { transform: scale(0) rotate(-25deg); opacity: 0; }
	60%  { transform: scale(1.15) rotate(8deg); opacity: 1; }
	100% { transform: scale(1) rotate(0); opacity: 1; }
}
.thc-modal__icon--mail {
	background: linear-gradient(135deg, var(--thc-color-accent) 0%, #f4a261 100%);
}
.thc-modal__icon--bell {
	background: linear-gradient(135deg, var(--thc-color-primary) 0%, #2563eb 100%);
	box-shadow: 0 12px 30px rgba(11, 37, 69, 0.35);
}
/* Aura pulsante alrededor del icono */
.thc-modal__icon-wrap::after {
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid rgba(231, 111, 36, 0.25);
	opacity: 0;
}
.thc-modal--open .thc-modal__icon-wrap::after {
	animation: thc-pulse 2s 1s ease-out infinite;
}
.thc-modal--push .thc-modal__icon-wrap::after {
	border-color: rgba(37, 99, 235, 0.25);
}
@keyframes thc-pulse {
	0%   { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.4); }
}

.thc-modal__title {
	font-family: var(--thc-font-serif);
	color: var(--thc-color-primary);
	font-size: clamp( 1.4rem, 1rem + 1.5vw, 1.85rem );
	margin: 0 0 0.85rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.thc-modal__lead {
	color: var(--thc-color-text-soft);
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0 0 1.5rem;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}
.thc-modal__lead strong {
	color: var(--thc-color-primary);
}

.thc-modal__benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem;
	max-width: 380px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}
.thc-modal__benefits li {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.45rem 0;
	color: var(--thc-color-text);
	font-size: 0.95rem;
}
.thc-modal__benefits li span {
	flex: 0 0 24px;
	font-weight: 700;
	color: var(--thc-color-accent);
	font-size: 1rem;
}

.thc-modal__form {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.6rem;
	flex-wrap: wrap;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}
.thc-modal__form input[type="email"] {
	flex: 1 1 200px;
	padding: 0.85rem 1rem;
	border: 2px solid var(--thc-color-border);
	border-radius: var(--thc-radius);
	font-size: 1rem;
	font-family: var(--thc-font-sans);
	color: var(--thc-color-text);
	min-width: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.thc-modal__form input[type="email"]:focus {
	outline: none;
	border-color: var(--thc-color-accent);
	box-shadow: 0 0 0 4px rgba(231, 111, 36, 0.18);
}
.thc-modal__form button {
	background: linear-gradient(135deg, var(--thc-color-accent) 0%, #d9540a 100%);
	color: #fff;
	border: 0;
	padding: 0.85rem 1.65rem;
	border-radius: var(--thc-radius);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	font-family: var(--thc-font-sans);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(231, 111, 36, 0.3);
}
.thc-modal__form button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(231, 111, 36, 0.4);
}
.thc-modal__form button:active { transform: translateY(0); }
.thc-modal__form button:disabled { opacity: 0.7; cursor: wait; transform: none; }

.thc-modal__card .thc-newsletter__status {
	color: var(--thc-color-text);
	font-size: 0.92rem;
	margin: 0.75rem auto 0;
	min-height: 1.2rem;
	max-width: 480px;
}
.thc-modal__card .thc-newsletter__status--ok {
	background: rgba(21, 128, 61, 0.1);
	color: var(--thc-color-success);
	padding: 0.75rem 1rem;
	border-radius: var(--thc-radius);
	border-left: 3px solid var(--thc-color-success);
	font-weight: 600;
}
.thc-modal__card .thc-newsletter__status--err {
	background: rgba(185, 28, 28, 0.1);
	color: var(--thc-color-danger);
	padding: 0.75rem 1rem;
	border-radius: var(--thc-radius);
	border-left: 3px solid var(--thc-color-danger);
	font-weight: 500;
}

.thc-modal__actions {
	display: flex;
	gap: 0.75rem;
	margin: 0 auto 0.5rem;
	max-width: 480px;
	flex-wrap: wrap;
	justify-content: center;
}
.thc-modal__btn {
	border: 0;
	padding: 0.85rem 1.6rem;
	border-radius: var(--thc-radius);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	font-family: var(--thc-font-sans);
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}
.thc-modal__btn--primary {
	background: linear-gradient(135deg, var(--thc-color-primary) 0%, #2563eb 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(11, 37, 69, 0.35);
	flex: 1 1 220px;
}
.thc-modal__btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(11, 37, 69, 0.45);
}
.thc-modal__btn--ghost {
	background: transparent;
	color: var(--thc-color-primary);
	border: 1px solid var(--thc-color-border);
}
.thc-modal__btn--ghost:hover {
	background: var(--thc-color-bg-alt);
}

.thc-modal__dismiss {
	background: transparent;
	border: 0;
	color: var(--thc-color-muted);
	font-size: 0.9rem;
	cursor: pointer;
	padding: 0.6rem;
	margin-top: 0.25rem;
	text-decoration: underline;
	font-family: var(--thc-font-sans);
}
.thc-modal__dismiss:hover { color: var(--thc-color-primary); }

.thc-modal__legal {
	font-size: 0.78rem;
	color: var(--thc-color-muted);
	margin: 1rem 0 0;
	line-height: 1.5;
}
.thc-modal__legal a { color: var(--thc-color-muted); text-decoration: underline; }

@media (max-width: 600px) {
	.thc-modal { padding: 1rem; }
	.thc-modal__card {
		max-width: none;
		width: 100%;
		max-height: calc(100vh - 2rem);
		max-height: calc(100dvh - 2rem);
		border-radius: 18px;
		padding: 2.25rem 1.25rem 1.25rem;
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.thc-modal__close {
		top: 0.5rem;
		right: 0.5rem;
		padding: 0.5rem 0.85rem;
		font-size: 1.75rem;
		background: rgba(11, 37, 69, 0.06);
		border-radius: 999px;
		min-width: 44px;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.thc-modal__icon-wrap, .thc-modal__icon { width: 64px; height: 64px; }
	.thc-modal__icon svg { width: 30px; height: 30px; }
	.thc-modal__title { font-size: 1.25rem; }
	.thc-modal__lead { font-size: 0.95rem; }
	.thc-modal__benefits { max-width: 100%; }
	.thc-modal__actions { flex-direction: column; }
	.thc-modal__btn { width: 100%; }
}

/* Ocultar slidedown nativo de OneSignal (sale en inglés desde el dashboard) */
.onesignal-slidedown-container,
#onesignal-slidedown-container,
.onesignal-popover-container,
.onesignal-bell-launcher,
[id^="onesignal-slidedown"],
[class*="onesignal-slidedown"],
[id^="onesignal-popover"],
[class*="onesignal-popover"] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* ============================================================
   10b-bis-2. Modal Push (premium, con preview de notificación)
   ============================================================ */
.thc-push-card {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 92vh;
	background: #fff;
	border-radius: 24px;
	box-shadow:
		0 30px 90px rgba(11, 37, 69, 0.55),
		0 0 0 1px rgba(255,255,255,0.06);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	transform: translateY(40px) scale(0.85);
	opacity: 0;
	transition: transform 0.55s cubic-bezier(.21,1.5,.36,1.0), opacity 0.4s ease;
	z-index: 1;
}
.thc-modal--open .thc-push-card {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.thc-push-card__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	background: #fff !important;
	border: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #061833 !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	z-index: 5;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
	font-size: 0;
}
/* Oculta el SVG interno (problemas con stroke / dark mode) y dibuja la ✕ con CSS */
.thc-push-card__close svg { display: none !important; }
.thc-push-card__close::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 2.5px;
	background: #061833;
	border-radius: 2px;
	transform: rotate(45deg);
}
.thc-push-card__close::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 2.5px;
	background: #061833;
	border-radius: 2px;
	transform: rotate(-45deg);
}
.thc-push-card__close:hover {
	background: #fff !important;
	transform: rotate(90deg);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* === FORZAR MODO CLARO EN EL MODAL PUSH ===
   Evita que el tema oscuro (sistema o data-theme) tiña los textos
   sobre la card o sobre el preview de notificación. */
.thc-push-card,
[data-theme="dark"] .thc-push-card {
	background: #ffffff !important;
	color: #1a1a1a !important;
}
.thc-push-card__title,
[data-theme="dark"] .thc-push-card__title { color: #061833 !important; }
.thc-push-card__lead,
[data-theme="dark"] .thc-push-card__lead { color: #4b5563 !important; }
.thc-push-card__preview-title,
[data-theme="dark"] .thc-push-card__preview-title { color: #061833 !important; }
.thc-push-card__preview-body,
[data-theme="dark"] .thc-push-card__preview-body { color: #4b5563 !important; }
.thc-push-card__preview-meta,
[data-theme="dark"] .thc-push-card__preview-meta { color: #6b7280 !important; }
.thc-push-card__preview-meta strong,
[data-theme="dark"] .thc-push-card__preview-meta strong { color: #061833 !important; }
.thc-push-card__stat strong,
[data-theme="dark"] .thc-push-card__stat strong { color: #061833 !important; }
.thc-push-card__stat span,
[data-theme="dark"] .thc-push-card__stat span { color: #6b7280 !important; }
.thc-push-card__legal,
[data-theme="dark"] .thc-push-card__legal { color: #6b7280 !important; }
.thc-push-card__skip,
[data-theme="dark"] .thc-push-card__skip { color: #6b7280 !important; }

/* HERO: fondo gradiente con campana animada y órbitas */
.thc-push-card__hero {
	position: relative;
	height: 220px;
	background:
		radial-gradient(circle at 30% 40%, rgba(231, 111, 36, 0.4) 0%, transparent 50%),
		radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.4) 0%, transparent 50%),
		linear-gradient(135deg, #0b2545 0%, #1e3a8a 50%, #0b2545 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.thc-push-card__hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.6;
}

.thc-push-card__orbits {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.thc-push-card__orbit {
	position: absolute;
	border: 2px solid rgba(231, 111, 36, 0.3);
	border-radius: 50%;
	opacity: 0;
}
.thc-modal--open .thc-push-card__orbit:nth-child(1) {
	animation: thc-orbit-pulse 2.5s 0.5s ease-out infinite;
}
.thc-modal--open .thc-push-card__orbit:nth-child(2) {
	animation: thc-orbit-pulse 2.5s 1.1s ease-out infinite;
}
.thc-modal--open .thc-push-card__orbit:nth-child(3) {
	animation: thc-orbit-pulse 2.5s 1.7s ease-out infinite;
}
@keyframes thc-orbit-pulse {
	0%   { width: 70px;  height: 70px;  opacity: 0.85; }
	100% { width: 240px; height: 240px; opacity: 0; }
}

.thc-push-card__bell {
	position: relative;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e76f24 0%, #f59e0b 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow:
		0 20px 50px rgba(231, 111, 36, 0.5),
		0 0 0 6px rgba(255,255,255,0.1);
	z-index: 2;
	transform: scale(0) rotate(-15deg);
	opacity: 0;
}
.thc-modal--open .thc-push-card__bell {
	animation:
		thc-bell-enter 0.7s 0.15s cubic-bezier(.34,1.56,.64,1) forwards,
		thc-bell-shake 2s 1s ease-in-out infinite;
}
@keyframes thc-bell-enter {
	0%   { transform: scale(0) rotate(-25deg); opacity: 0; }
	60%  { transform: scale(1.15) rotate(10deg); opacity: 1; }
	100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes thc-bell-shake {
	0%, 92%, 100% { transform: scale(1) rotate(0); }
	94%  { transform: scale(1) rotate(-12deg); }
	96%  { transform: scale(1) rotate(12deg); }
	98%  { transform: scale(1) rotate(-6deg); }
}

.thc-push-card__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 26px;
	height: 26px;
	background: #ef4444;
	color: #fff;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #fff;
	transform: scale(0);
}
.thc-modal--open .thc-push-card__badge {
	animation: thc-badge-pop 0.4s 0.85s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes thc-badge-pop {
	from { transform: scale(0); }
	to   { transform: scale(1); }
}

/* BODY */
.thc-push-card__body {
	padding: 1.75rem 1.75rem 1.5rem;
}
.thc-push-card__title {
	font-family: var(--thc-font-serif);
	color: var(--thc-color-primary);
	font-size: clamp( 1.3rem, 1rem + 1.3vw, 1.65rem );
	margin: 0 0 0.7rem;
	line-height: 1.25;
	text-align: center;
	letter-spacing: -0.01em;
}
.thc-push-card__lead {
	color: var(--thc-color-text-soft);
	font-size: 0.98rem;
	line-height: 1.55;
	margin: 0 0 1.25rem;
	text-align: center;
}

/* Preview de notificación */
.thc-push-card__preview {
	display: flex;
	gap: 0.75rem;
	padding: 0.85rem;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 1.25rem;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	position: relative;
	opacity: 0;
	transform: translateX(40px);
}
.thc-modal--open .thc-push-card__preview {
	animation: thc-preview-slide 0.5s 0.65s cubic-bezier(.21,1.02,.73,1.04) forwards;
}
@keyframes thc-preview-slide {
	from { opacity: 0; transform: translateX(40px); }
	to   { opacity: 1; transform: translateX(0); }
}
.thc-push-card__preview::before {
	content: '';
	position: absolute;
	top: 8px;
	right: 10px;
	width: 8px;
	height: 8px;
	background: #22c55e;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.thc-push-card__preview-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--thc-color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}
.thc-push-card__preview-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.thc-push-card__preview-content { flex: 1; min-width: 0; text-align: left; }
.thc-push-card__preview-meta {
	font-size: 0.75rem;
	color: var(--thc-color-muted);
	display: flex;
	gap: 0.3rem;
	margin-bottom: 0.2rem;
	align-items: baseline;
}
.thc-push-card__preview-meta strong {
	color: var(--thc-color-primary);
	font-weight: 700;
}
.thc-push-card__preview-title {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--thc-color-text);
	margin-bottom: 0.2rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.thc-push-card__preview-body {
	font-size: 0.82rem;
	color: var(--thc-color-text-soft);
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Stats */
.thc-push-card__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding: 0.85rem 0;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}
.thc-push-card__stat {
	text-align: center;
}
.thc-push-card__stat strong {
	display: block;
	font-family: var(--thc-font-serif);
	font-size: 1.15rem;
	color: var(--thc-color-primary);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 0.15rem;
}
.thc-push-card__stat span {
	display: block;
	font-size: 0.72rem;
	color: var(--thc-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}

/* Acciones */
.thc-push-card__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
}
.thc-push-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: linear-gradient(135deg, var(--thc-color-accent) 0%, #d9540a 100%);
	color: #fff;
	border: 0;
	padding: 0.95rem 2rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1.02rem;
	cursor: pointer;
	font-family: var(--thc-font-sans);
	transition: transform 0.18s ease, box-shadow 0.25s ease;
	box-shadow: 0 8px 24px rgba(231, 111, 36, 0.4);
	width: 100%;
	max-width: 320px;
	position: relative;
}
.thc-push-card__cta::before {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--thc-color-accent), #f59e0b, var(--thc-color-accent));
	z-index: -1;
	opacity: 0;
	transition: opacity 0.2s ease;
	filter: blur(8px);
}
.thc-push-card__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(231, 111, 36, 0.5);
}
.thc-push-card__cta:hover::before { opacity: 0.7; }
.thc-push-card__cta:active { transform: translateY(0); }

.thc-push-card__skip {
	background: transparent;
	border: 0;
	color: var(--thc-color-muted);
	font-size: 0.88rem;
	cursor: pointer;
	padding: 0.55rem 1rem;
	text-decoration: underline;
	font-family: var(--thc-font-sans);
}
.thc-push-card__skip:hover { color: var(--thc-color-primary); }

.thc-push-card__legal {
	font-size: 0.74rem;
	color: var(--thc-color-muted);
	margin: 1rem 0 0;
	line-height: 1.5;
	text-align: center;
}

@media (max-width: 600px) {
	.thc-push-card {
		max-width: 100%;
		max-height: calc(100vh - 2rem);
		max-height: calc(100dvh - 2rem);
		border-radius: 20px;
		display: flex;
		flex-direction: column;
	}
	.thc-push-card__close {
		width: 46px;
		height: 46px;
		top: 0.75rem;
		right: 0.75rem;
		background: #fff;
		color: #061833;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08);
	}
	.thc-push-card__close svg { width: 22px; height: 22px; }
	.thc-push-card__hero { height: 160px; flex-shrink: 0; }
	.thc-push-card__bell { width: 74px; height: 74px; }
	.thc-push-card__bell svg { width: 40px; height: 40px; }
	.thc-push-card__body {
		padding: 1.25rem 1.25rem 1.25rem;
		flex: 1;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.thc-push-card__title { font-size: 1.2rem; margin-bottom: 0.5rem; }
	.thc-push-card__lead { font-size: 0.92rem; margin-bottom: 1rem; }
	.thc-push-card__preview { padding: 0.7rem; margin-bottom: 1rem; }
	.thc-push-card__stats { padding: 0.65rem 0; margin-bottom: 1.1rem; }
	.thc-push-card__stat strong { font-size: 1rem; }
	.thc-push-card__stat span { font-size: 0.65rem; }
	.thc-push-card__cta { max-width: 100%; padding: 0.85rem 1.5rem; font-size: 0.98rem; }
	.thc-push-card__legal { font-size: 0.7rem; margin-top: 0.8rem; }
}
@media (max-width: 380px) {
	.thc-push-card__hero { height: 130px; }
	.thc-push-card__bell { width: 64px; height: 64px; }
	.thc-push-card__bell svg { width: 34px; height: 34px; }
	.thc-push-card__stats { display: none; }
}

/* ============================================================
   10c. Banner de cookies (Consent Mode v2)
   ============================================================ */
.thc-cookie-banner {
	position: fixed;
	bottom: 1.25rem;
	left: 1.25rem;
	right: 1.25rem;
	max-width: 720px;
	margin-left: auto;
	background: var(--thc-color-primary);
	color: #fff;
	padding: 1.25rem 1.5rem;
	border-radius: var(--thc-radius);
	border-left: 4px solid var(--thc-color-accent);
	box-shadow: 0 14px 40px rgba(0,0,0,0.25);
	z-index: 99999;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1rem;
	font-family: var(--thc-font-sans);
	animation: thc-cookie-in 0.35s ease-out;
}
/* hidden attribute must override display:grid */
.thc-cookie-banner[hidden] {
	display: none !important;
}
@keyframes thc-cookie-in {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.thc-cookie-banner__body {
	font-size: 0.88rem;
	line-height: 1.55;
	color: rgba(255,255,255,0.92);
}
.thc-cookie-banner__body strong {
	color: #fff;
}
.thc-cookie-banner__body a {
	color: var(--thc-color-accent);
	text-decoration: underline;
}
.thc-cookie-banner__actions {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}
.thc-cookie-banner__btn {
	padding: 0.55rem 1.15rem;
	border-radius: var(--thc-radius);
	font-family: var(--thc-font-sans);
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}
.thc-cookie-banner__btn--primary {
	background: var(--thc-color-accent);
	color: #fff;
}
.thc-cookie-banner__btn--primary:hover {
	background: var(--thc-color-accent-dark);
}
.thc-cookie-banner__btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,0.35);
}
.thc-cookie-banner__btn--ghost:hover {
	background: rgba(255,255,255,0.08);
	border-color: rgba(255,255,255,0.6);
}
@media (max-width: 720px) {
	.thc-cookie-banner {
		grid-template-columns: 1fr;
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		padding: 1rem 1.1rem;
	}
	.thc-cookie-banner__actions {
		justify-content: stretch;
	}
	.thc-cookie-banner__btn {
		flex: 1;
		padding: 0.7rem 1rem;
		font-size: 0.9rem;
	}
}

/* ============================================================
   11. Utilities
   ============================================================ */
.thc-mt-0 { margin-top: 0 !important; }
.thc-mt-2 { margin-top: 1rem !important; }
.thc-mt-4 { margin-top: 2rem !important; }
.thc-text-center { text-align: center; }
.thc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ============================================================
   Personal author note (humanization callout)
   ============================================================ */
.entry-content .thc-personal-note {
	background: linear-gradient(135deg, rgba(244, 162, 97, 0.08), rgba(244, 162, 97, 0.02));
	border-left: 4px solid var(--thc-color-accent, #F4A261);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin: 1.5rem 0 2rem;
	font-style: normal;
	color: var(--thc-color-text, #1a1a1a);
	position: relative;
}
.entry-content .thc-personal-note::before {
	content: "✍️";
	font-size: 1.4rem;
	position: absolute;
	top: -0.5rem;
	left: 1rem;
	background: var(--thc-color-bg, #fff);
	padding: 0 0.4rem;
	line-height: 1;
}
.entry-content .thc-personal-note p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.65;
}
.entry-content .thc-personal-note strong {
	color: var(--thc-color-primary, #061833);
}
[data-theme="dark"] .entry-content .thc-personal-note {
	background: linear-gradient(135deg, rgba(244, 162, 97, 0.12), rgba(244, 162, 97, 0.04));
	color: #e8e8e8;
}
[data-theme="dark"] .entry-content .thc-personal-note::before {
	background: var(--thc-color-bg, #1a1a1a);
}

/* Infographics inside articles (SVG figures) */
.entry-content .thc-infographic {
	margin: 2.5rem 0;
	padding: 0;
	border: 1px solid var(--thc-color-border, #e5e7eb);
	border-radius: 12px;
	overflow: hidden;
	background: var(--thc-color-bg, #fff);
}
.entry-content .thc-infographic svg {
	display: block;
	width: 100%;
	height: auto;
	padding: 1rem;
	box-sizing: border-box;
}
.entry-content .thc-infographic figcaption {
	background: var(--thc-color-bg-alt, #f8f9fb);
	color: var(--thc-color-text-muted, #6b7280);
	font-size: 0.85rem;
	padding: 0.75rem 1.25rem;
	border-top: 1px solid var(--thc-color-border, #e5e7eb);
	margin: 0;
	font-style: italic;
}
[data-theme="dark"] .entry-content .thc-infographic {
	background: var(--thc-color-bg, #1a1a1a);
	border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .entry-content .thc-infographic svg rect[fill="#fff"],
[data-theme="dark"] .entry-content .thc-infographic svg rect[fill="#fff5e6"] {
	fill: #2a2a2a;
}
[data-theme="dark"] .entry-content .thc-infographic svg text[fill="#061833"],
[data-theme="dark"] .entry-content .thc-infographic svg text[fill="#374151"] {
	fill: #e8e8e8;
}
[data-theme="dark"] .entry-content .thc-infographic figcaption {
	background: #222;
	border-top-color: rgba(255,255,255,0.08);
}
