/* ==========================================================================
   Tudo Para Casa — tema hijo, estilo "tienda" (referencia tudoreal.jpg).
   1 Variables/base · 2 Topbar y header · 3 Botones · 4 Hero · 5 Categorias
   6 Banner destacado · 7 Secciones y tarjetas · 8 Por que · 9 Archivos/single/404
   10 Footer · 11 Responsive
   ========================================================================== */

/* ============ 1. Variables y base ============ */
:root {
	--tpc-ink: #111318;
	--tpc-ink-2: #1A1D24;
	--tpc-text: #16181D;
	--tpc-muted: #5B6070;
	--tpc-bg: #FFFFFF;
	--tpc-soft: #F6F7F9;
	--tpc-line: #E7E8EC;
	--tpc-lav: #EEEDFA;
	--tpc-orange: #EA580C;      /* titulares grandes y decoracion (>=3:1) */
	--tpc-orange-ink: #C94A0B;  /* botones con texto blanco y texto pequeno (>=4.5:1) */
	--tpc-orange-dk: #F26B1D;   /* acentos sobre fondo oscuro */
	--tpc-radius: 10px;
	--tpc-radius-lg: 14px;
	--tpc-shadow: 0 1px 3px rgba(17, 19, 24, .06), 0 4px 14px rgba(17, 19, 24, .05);
	--tpc-shadow-lg: 0 10px 30px rgba(17, 19, 24, .12);
	--tpc-max: 1200px;
}

body {
	background: var(--tpc-bg);
	color: var(--tpc-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

.container {
	width: 100%;
	max-width: var(--tpc-max);
	margin-inline: auto;
	padding-inline: 20px;
}

img { max-width: 100%; height: auto; }

/* Imagify envuelve las imagenes en <picture> (inline): sin esto el alto colapsa. */
.tpc-hero__media picture,
.tpc-cat__media picture,
.tpc-promo__thumbs picture,
.tpc-pcard__media picture,
.tpc-card__media picture,
.post-card-thumb picture,
.entry-thumb picture {
	display: block;
	width: 100%;
	height: 100%;
}

a { color: var(--tpc-orange-ink); }
a:hover { color: #A63C08; }

h1, h2, h3, h4 {
	color: var(--tpc-text);
	line-height: 1.2;
	letter-spacing: -.02em;
	font-weight: 800;
}

.tpc-ico { width: 20px; height: 20px; display: inline-block; flex: none; vertical-align: middle; }
.tpc-accent { color: var(--tpc-orange); }

.tpc-eyebrow {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tpc-orange-ink);
	margin: 0 0 12px;
}

/* El padre mete 3rem/4rem en el envoltorio: el padding lo controlan las secciones. */
.site-content { padding: 0; }

/* ============ 2. Topbar y header ============ */
.tpc-topbar { background: var(--tpc-ink); color: #D5D8DF; font-size: .8rem; }

.tpc-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}

.tpc-topbar__item { display: inline-flex; align-items: center; gap: 8px; color: #D5D8DF; text-decoration: none; }
.tpc-topbar__item .tpc-ico { width: 15px; height: 15px; }
a.tpc-topbar__item:hover { color: #fff; }

.site-header {
	background: #fff;
	border-bottom: 1px solid rgba(17, 19, 24, .05);
	/* Sombra en dos capas: una corta que marca el borde y otra amplia y difusa
	   que despega la cabecera del contenido. z-index la deja sobre el héroe. */
	box-shadow:
		0 1px 2px rgba(17, 19, 24, .05),
		0 8px 24px -6px rgba(17, 19, 24, .10);
	position: relative;
	z-index: 30;
}

.site-header .header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 74px;
}

.site-header .site-title {
	color: var(--tpc-text);
	font-weight: 800;
	font-size: 1.25rem;
	text-decoration: none;
}

.site-header .custom-logo { height: 54px; width: auto; }

.site-nav { display: flex; align-items: center; margin-left: auto; }

.site-nav .primary-menu {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .primary-menu a {
	display: inline-block;
	color: var(--tpc-text);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	padding-block: 8px;
	border-bottom: 2px solid transparent;
}

.site-nav .primary-menu a:hover,
.site-nav .primary-menu .current-menu-item > a {
	color: var(--tpc-orange-ink);
	border-bottom-color: var(--tpc-orange);
}

/* Buscador desplegable sin JS */
.tpc-hsearch { position: relative; }
.tpc-hsearch summary {
	list-style: none;
	cursor: pointer;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--tpc-text);
}
.tpc-hsearch summary::-webkit-details-marker { display: none; }
.tpc-hsearch summary:hover,
.tpc-hsearch[open] summary { background: var(--tpc-soft); color: var(--tpc-orange-ink); }

.tpc-hsearch__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	width: min(340px, calc(100vw - 32px));
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: var(--tpc-radius);
	box-shadow: var(--tpc-shadow-lg);
	padding: 12px;
}

.tpc-hsearch__panel form { display: flex; gap: 8px; }
.tpc-hsearch__panel label { flex: 1; display: block; }

.tpc-hsearch__panel input[type="search"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tpc-line);
	border-radius: 6px;
	font-size: .95rem;
}

.tpc-hsearch__panel input[type="submit"],
.tpc-hsearch__panel button[type="submit"] {
	background: var(--tpc-orange-ink);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 16px;
	font-weight: 700;
	cursor: pointer;
}

/* ============ 3. Botones ============ */
.tpc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 6px;
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.tpc-btn .tpc-ico { width: 17px; height: 17px; }
.tpc-btn--primary { background: var(--tpc-orange-ink); color: #fff; }
.tpc-btn--primary:hover { background: #A63C08; color: #fff; }
.tpc-btn--outline { background: #fff; color: var(--tpc-text); border-color: #C9CBD2; }
.tpc-btn--outline:hover { border-color: var(--tpc-text); color: var(--tpc-text); }
.tpc-btn--soft { background: var(--tpc-soft); color: var(--tpc-text); border-color: var(--tpc-line); }
.tpc-btn--soft:hover { background: #ECEEF2; color: var(--tpc-text); }

/* ============ 4. Hero ============ */
.tpc-hero {
	background: linear-gradient(115deg, #F7F6FD 0%, var(--tpc-lav) 55%, #E3E2F7 100%);
	overflow: hidden;
}

.tpc-hero__inner {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding-block: clamp(40px, 6vw, 72px);
}

.tpc-hero__title {
	font-size: clamp(2.1rem, 4.6vw, 3.3rem);
	letter-spacing: -.03em;
	margin: 0 0 18px;
}

.tpc-hero__title span { display: block; }

/* Sobre el lavanda el naranja base no llega: tonos validados para este fondo. */
.tpc-hero .tpc-eyebrow { color: #A63C08; }
.tpc-hero .tpc-accent { color: #D14B0A; }

.tpc-hero__sub {
	color: #3A3E4A;
	font-size: 1.05rem;
	max-width: 42ch;
	margin: 0 0 28px;
}

.tpc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.tpc-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, max-content));
	gap: 16px 40px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: start;
}

.tpc-trust li { display: flex; align-items: flex-start; gap: 8px; font-size: .74rem; color: var(--tpc-muted); line-height: 1.35; }
.tpc-trust .tpc-ico { width: 22px; height: 22px; color: var(--tpc-text); }
.tpc-trust strong { display: block; color: var(--tpc-text); font-size: .78rem; }

.tpc-hero__media {
	position: relative;
	display: block;
	aspect-ratio: 5 / 4;
	max-width: 100%;
	border-radius: 24px;
	overflow: visible;
}

.tpc-hero__media picture,
.tpc-hero__media > img {
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--tpc-shadow-lg);
}

.tpc-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

.tpc-badge {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--tpc-shadow-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: var(--tpc-text);
	text-align: center;
}

.tpc-badge small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tpc-badge b { font-size: 2rem; font-weight: 800; color: var(--tpc-orange); margin: 3px 0; letter-spacing: -.03em; }
.tpc-badge--word b { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 2px; color: var(--tpc-orange-ink); }

/* ============ 5. Categorias (mosaicos) ============ */
.tpc-section { padding-block: clamp(36px, 4.5vw, 54px); }
.tpc-section--soft { background: var(--tpc-soft); }

/* ---- Fondo propio por sección (las tarjetas no cambian) ---- */
.tpc-section--recent {
	background:
		radial-gradient(520px 260px at 100% 0, rgba(234, 88, 12, .07), transparent 70%),
		#fff;
}

/* ---- Conteúdo recente: destacada + lista horizontal ---- */
.tpc-recent {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 22px;
	align-items: stretch;
}

.tpc-rcard {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: var(--tpc-radius);
	padding: 12px;
	transition: border-color .15s ease, box-shadow .2s ease;
}

.tpc-rcard:hover { border-color: var(--tpc-orange); box-shadow: var(--tpc-shadow); }

.tpc-rcard__media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: var(--tpc-soft);
}

.tpc-rcard__media picture { display: block; width: 100%; height: 100%; }
.tpc-rcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tpc-rcard:hover .tpc-rcard__media img { transform: scale(1.04); }

.tpc-rcard__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.tpc-rcard__title {
	font-size: .92rem;
	line-height: 1.35;
	letter-spacing: -.01em;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tpc-rcard__title a { color: var(--tpc-text); text-decoration: none; }
.tpc-rcard__title a:hover { color: var(--tpc-orange-ink); }

.tpc-rcard__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: .76rem;
	color: var(--tpc-muted);
}

.tpc-recent__list { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }

/* Destacada: imagen arriba, texto grande, extracto y botón */
.tpc-rcard--lead {
	grid-template-columns: 1fr;
	align-items: start;
	padding: 14px 14px 20px;
	box-shadow: var(--tpc-shadow);
}

.tpc-rcard--lead .tpc-rcard__media { aspect-ratio: 16 / 9; border-radius: 10px; }
.tpc-rcard--lead .tpc-rcard__body { gap: 10px; padding: 4px 6px 0; }
.tpc-rcard--lead .tpc-rcard__title { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; -webkit-line-clamp: 3; }
.tpc-rcard--lead .tpc-rcard__excerpt { margin: 0; color: var(--tpc-muted); font-size: .92rem; }
.tpc-rcard--lead .tpc-rcard__foot { margin-top: 6px; font-size: .82rem; }
.tpc-rcard--lead .tpc-btn { padding: 10px 18px; }

.tpc-section--cats {
	background:
		radial-gradient(circle at 1px 1px, rgba(17, 19, 24, .07) 1px, transparent 1.5px) 0 0 / 18px 18px,
		var(--tpc-soft);
}

.tpc-section--cat {
	--sec-bg: var(--tpc-soft);
	--sec-accent: var(--tpc-orange);
	position: relative;
	background:
		radial-gradient(700px 320px at 100% 0, rgba(255, 255, 255, .75), transparent 70%),
		radial-gradient(520px 260px at 0 100%, rgba(255, 255, 255, .55), transparent 70%),
		var(--sec-bg);
	border-top: 1px solid rgba(17, 19, 24, .04);
}

.tpc-section--cat .tpc-head__title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tpc-section--cat .tpc-head__title::before {
	content: "";
	width: 5px;
	height: 1.15em;
	border-radius: 3px;
	background: var(--sec-accent);
	flex: none;
}

.tpc-bg--guias-de-compra     { --sec-bg: #FFF4EA; --sec-accent: #EA580C; }
.tpc-bg--tecnologia          { --sec-bg: #EDF2FA; --sec-accent: #2563EB; }
.tpc-bg--casa-decoracao      { --sec-bg: #F6F0E6; --sec-accent: #A16207; }
.tpc-bg--saude-e-beleza      { --sec-bg: #FCEEF3; --sec-accent: #DB2777; }
.tpc-bg--artigos-esportivos  { --sec-bg: #EBF6EE; --sec-accent: #16A34A; }
.tpc-bg--avaliacoes          { --sec-bg: #F1EFFB; --sec-accent: #7C3AED; }
.tpc-bg--cuidados-com-a-pele { --sec-bg: #EAF5F6; --sec-accent: #0891B2; }

.tpc-why {
	background:
		linear-gradient(180deg, #fff 0%, var(--tpc-soft) 100%);
}

.tpc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.tpc-head__title {
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	text-transform: uppercase;
	letter-spacing: .01em;
	margin: 0;
}

.tpc-head__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--tpc-text);
	text-decoration: none;
	white-space: nowrap;
}

.tpc-head__more .tpc-ico { width: 16px; height: 16px; }
.tpc-head__more:hover { color: var(--tpc-orange-ink); }

.tpc-cats {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 14px;
}

.tpc-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 14px;
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: var(--tpc-radius);
	box-shadow: var(--tpc-shadow);
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}

.tpc-cat:hover { border-color: var(--tpc-orange); transform: translateY(-2px); }

.tpc-cat__media {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: var(--tpc-soft);
}

.tpc-cat__media img { width: 100%; height: 100%; object-fit: cover; }

.tpc-cat__name {
	font-size: .8rem;
	font-weight: 600;
	color: var(--tpc-text);
	text-align: center;
	line-height: 1.3;
}

/* ============ 6. Banner destacado (oscuro) ============ */
.tpc-promo-wrap { padding-bottom: clamp(8px, 2vw, 16px); }

.tpc-promo {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
	gap: 28px;
	align-items: center;
	background: radial-gradient(120% 140% at 70% 50%, #242833 0%, var(--tpc-ink) 60%);
	border-radius: var(--tpc-radius-lg);
	padding: clamp(26px, 3.5vw, 40px);
	overflow: hidden;
}

.tpc-promo .tpc-eyebrow { color: var(--tpc-orange-dk); }

.tpc-promo__title {
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin: 0 0 10px;
}

.tpc-promo__title .tpc-accent { color: var(--tpc-orange-dk); }
.tpc-promo__sub { color: #C9CDD6; font-size: .92rem; margin: 0 0 20px; max-width: 34ch; }

.tpc-promo__thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tpc-promo__thumbs a {
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tpc-ink-2);
	transition: transform .2s ease;
}

.tpc-promo__thumbs a:hover { transform: translateY(-4px); }
.tpc-promo__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.tpc-badge--dark {
	top: 50%;
	right: clamp(14px, 1.6vw, 22px);
	transform: translateY(-50%);
	background: transparent;
	border: 2px solid rgba(255, 255, 255, .85);
	box-shadow: none;
	color: #fff;
	width: 92px;
	height: 92px;
}

.tpc-badge--dark b { color: var(--tpc-orange-dk); }

/* ============ 7. Secciones de categoria: tarjetas producto ============ */
.tpc-products {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.tpc-pcard {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: var(--tpc-radius);
	box-shadow: var(--tpc-shadow);
	padding: 12px 12px 14px;
	transition: box-shadow .2s ease, transform .2s ease;
}

.tpc-pcard:hover { box-shadow: var(--tpc-shadow-lg); transform: translateY(-2px); }

.tpc-pcard__media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: var(--tpc-soft);
	margin-bottom: 12px;
}

.tpc-pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tpc-pcard:hover .tpc-pcard__media img { transform: scale(1.04); }

.tpc-pcard__rule { display: block; width: 22px; height: 2px; background: var(--tpc-text); margin-bottom: 10px; }

.tpc-pcard__title {
	font-size: .86rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -.01em;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tpc-pcard__title a { color: var(--tpc-text); text-decoration: none; }
.tpc-pcard__title a:hover { color: var(--tpc-orange-ink); }

.tpc-pcard__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.tpc-pcard__meta { margin: 0; font-size: .74rem; color: var(--tpc-muted); display: flex; flex-direction: column; line-height: 1.35; }
.tpc-pcard__meta span { color: var(--tpc-text); font-weight: 700; }

.tpc-pcard__go {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #C9CBD2;
	color: var(--tpc-text);
	flex: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.tpc-pcard__go .tpc-ico { width: 16px; height: 16px; }
.tpc-pcard__go:hover { background: var(--tpc-orange-ink); border-color: var(--tpc-orange-ink); color: #fff; }

/* ============ 8. Por que ler ============ */
.tpc-why__title {
	text-align: center;
	text-transform: uppercase;
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	margin: 0 0 24px;
}

.tpc-why__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.tpc-why__item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	border: 1px solid var(--tpc-line);
	border-radius: var(--tpc-radius);
	background: #fff;
}

.tpc-why__item > .tpc-ico { width: 30px; height: 30px; color: var(--tpc-orange); }
.tpc-why__item h3 { font-size: .9rem; margin: 2px 0 4px; }
.tpc-why__item p { font-size: .8rem; color: var(--tpc-muted); margin: 0; line-height: 1.45; }

/* ============ 9. Archivos, single, 404 ============ */
.site-main { padding-block: 44px; }

.layout.has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
}

/* ---- Barra lateral (posts y categorías) ---- */
/* El padre la hace sticky; con más alto que la pantalla, su final quedaría inalcanzable. */
.tpc-side {
	position: static;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tpc-side__block {
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: var(--tpc-radius);
	box-shadow: var(--tpc-shadow);
	padding: 18px 18px 20px;
}

.tpc-side__title {
	position: relative;
	font-size: .8rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tpc-line);
}

.tpc-side__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 34px;
	height: 2px;
	background: var(--tpc-orange);
}

.tpc-side__search form { display: flex; }

.tpc-side__search input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--tpc-line);
	border-right: 0;
	border-radius: 6px 0 0 6px;
	font-size: .9rem;
}

.tpc-side__search button {
	display: grid;
	place-items: center;
	width: 44px;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: var(--tpc-orange-ink);
	color: #fff;
	cursor: pointer;
}

.tpc-side__search button:hover { background: #A63C08; }
.tpc-side__search .tpc-ico { width: 18px; height: 18px; }

.tpc-side__cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.tpc-side__cats a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 7px;
	font-size: .88rem;
	font-weight: 500;
	color: var(--tpc-text);
	text-decoration: none;
	transition: background .15s ease;
}

.tpc-side__cats a:hover,
.tpc-side__cats .is-current a { background: var(--sec-bg, var(--tpc-soft)); color: var(--tpc-text); }
.tpc-side__cats .is-current a { font-weight: 700; }

.tpc-side__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sec-accent, var(--tpc-orange)); flex: none; }
.tpc-side__cats .tpc-ico { width: 15px; height: 15px; margin-left: auto; color: #8A8F9C; transition: transform .15s ease; }
.tpc-side__cats a:hover .tpc-ico { transform: translateX(3px); color: var(--tpc-text); }

.tpc-side__posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.tpc-side__posts li { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; align-items: center; }

.tpc-side__thumb { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--tpc-soft); }
.tpc-side__thumb picture { display: block; width: 100%; height: 100%; }
.tpc-side__thumb img { width: 100%; height: 100%; object-fit: cover; }

.tpc-side__ptitle {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--tpc-text);
	text-decoration: none;
	margin-bottom: 3px;
}

.tpc-side__ptitle:hover { color: var(--tpc-orange-ink); }
.tpc-side__posts time { font-size: .74rem; color: var(--tpc-muted); }

.tpc-side__promo {
	background: radial-gradient(130% 120% at 100% 0, #262A35 0%, var(--tpc-ink) 65%);
	border-color: var(--tpc-ink);
	color: #C9CDD6;
}

.tpc-side__promo .tpc-eyebrow { color: var(--tpc-orange-dk); margin-bottom: 6px; }
.tpc-side__promo-title { color: #fff; font-size: 1.3rem; margin: 0 0 14px; }
.tpc-side__promo-title .tpc-accent { color: var(--tpc-orange-dk); }

.tpc-side__promo-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tpc-side__promo-list li { display: flex; gap: 10px; font-size: .85rem; line-height: 1.4; }
.tpc-side__promo-list li::before { content: ""; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: var(--tpc-orange-dk); flex: none; }
.tpc-side__promo-list a { color: #E3E6EC; text-decoration: none; }
.tpc-side__promo-list a:hover { color: #fff; text-decoration: underline; }
.tpc-side__promo .tpc-btn { width: 100%; justify-content: center; }

/* Tarjeta oscura fija al hacer scroll (solo con barra al lado del contenido).
   La columna se estira al alto del contenido para que el sticky tenga recorrido;
   la tarjeta se suelta sola al final de la columna, sin tapar el pie. */
@media (min-width: 901px) {
	.layout.has-sidebar > .tpc-side { align-self: stretch; }

	.tpc-side__promo {
		position: sticky;
		top: calc(20px + var(--wp-admin--admin-bar--height, 0px));
		z-index: 2;
	}
}

/* ---- Cabecera de categoría ---- */
.tpc-archive-head { padding-block: clamp(26px, 4vw, 42px); }
.tpc-archive-head .tpc-breadcrumbs { margin-bottom: 14px; }
.tpc-archive-head .tpc-eyebrow { margin-bottom: 6px; }
.tpc-archive-head__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: none; margin: 0; }
.tpc-archive-head .archive-description { margin-top: 10px; max-width: 70ch; }

.tpc-products--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- Cabecera de búsqueda y archivos genéricos ---- */
.tpc-search-head {
	background:
		radial-gradient(560px 260px at 100% 0, rgba(234, 88, 12, .08), transparent 70%),
		linear-gradient(115deg, #F7F6FD 0%, var(--tpc-lav) 100%);
	border-bottom: 1px solid var(--tpc-line);
}

.tpc-search-head .tpc-eyebrow { color: #A63C08; }
.tpc-search-head .tpc-accent { color: #B4420A; }

.tpc-search-head__form {
	display: flex;
	max-width: 620px;
	margin-top: 20px;
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: 8px;
	box-shadow: var(--tpc-shadow);
	overflow: hidden;
}

.tpc-search-head__form:focus-within { border-color: var(--tpc-orange-ink); }

.tpc-search-head__form input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 14px 16px;
	font-size: 1rem;
	background: transparent;
	color: var(--tpc-text);
}

.tpc-search-head__form input:focus { outline: none; }

.tpc-search-head__form button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: var(--tpc-orange-ink);
	color: #fff;
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 0 22px;
	cursor: pointer;
}

.tpc-search-head__form button:hover { background: #A63C08; }
.tpc-search-head__form .tpc-ico { width: 17px; height: 17px; }

/* ---- Búsqueda sin resultados ---- */
.tpc-empty {
	background: #fff;
	border: 1px dashed #CDD0D8;
	border-radius: var(--tpc-radius);
	padding: clamp(22px, 3vw, 32px);
}

.tpc-empty__title { font-size: 1.3rem; margin: 0 0 8px; }
.tpc-empty__text { color: var(--tpc-muted); margin: 0 0 18px; max-width: 60ch; }

.tpc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.tpc-chips a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--sec-bg, var(--tpc-soft));
	border: 1px solid rgba(17, 19, 24, .06);
	color: var(--tpc-text);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
}

.tpc-chips a:hover { border-color: var(--sec-accent, var(--tpc-orange)); }
.tpc-empty__sugg { margin-top: 36px; }
.tpc-empty__sugg .tpc-head__title { margin-bottom: 18px; }

/* ---- Página de autor ---- */
.tpc-author-head {
	padding-block: clamp(24px, 3.5vw, 40px) clamp(36px, 5vw, 56px);
	background:
		radial-gradient(560px 280px at 100% 0, rgba(234, 88, 12, .08), transparent 70%),
		linear-gradient(115deg, #F7F6FD 0%, var(--tpc-lav) 100%);
	border-bottom: 1px solid var(--tpc-line);
}

.tpc-author {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: clamp(28px, 4vw, 52px);
	align-items: center;
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: 18px;
	box-shadow: var(--tpc-shadow-lg);
	padding: clamp(24px, 3.5vw, 40px);
}

.tpc-author__photo {
	position: relative;
	width: 200px;
	height: 200px;
	margin-inline: auto;
}

/* Anillo decorativo naranja alrededor de la foto. */
.tpc-author__photo::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 2px dashed rgba(234, 88, 12, .45);
}

.tpc-author__photo picture { display: block; width: 100%; height: 100%; }

.tpc-author__photo img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid #fff;
	box-shadow: 0 10px 28px rgba(17, 19, 24, .18);
}

.tpc-author .tpc-eyebrow { margin-bottom: 6px; }

.tpc-author__name {
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	letter-spacing: -.03em;
	margin: 0 0 14px;
}

.tpc-author__bio { color: #3A3E4A; font-size: 1rem; line-height: 1.7; max-width: 70ch; }
.tpc-author__bio p { margin: 0 0 .8em; }
.tpc-author__bio p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
	.tpc-author { grid-template-columns: 1fr; text-align: center; }
	.tpc-author__photo { width: 150px; height: 150px; }
	.tpc-author__bio { margin-inline: auto; }
}

.page-header { margin-bottom: 28px; }

.page-title,
.entry-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 10px; }

.archive-description { color: var(--tpc-muted); }
.gold { color: var(--tpc-orange-ink); }

.post-grid,
.tpc-grid--3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.tpc-card,
.post-card {
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: var(--tpc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--tpc-shadow);
	transition: box-shadow .2s ease, transform .2s ease;
}

.tpc-card:hover,
.post-card:hover { box-shadow: var(--tpc-shadow-lg); transform: translateY(-2px); }

.tpc-card__media,
.post-card-thumb { display: block; aspect-ratio: 16 / 10; background: var(--tpc-soft); overflow: hidden; }

.tpc-card__media img,
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tpc-card__body,
.post-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.tpc-kicker,
.post-card-cats a {
	background: transparent;
	padding: 0;
	border: 0;
	border-radius: 0;
	display: inline-block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--tpc-orange-ink);
	text-decoration: none;
}

.tpc-card__title,
.post-card-title { font-size: 1rem; margin: 0; line-height: 1.35; }

.tpc-card__title a,
.post-card-title a { color: var(--tpc-text); text-decoration: none; }

.tpc-card__title a:hover,
.post-card-title a:hover { color: var(--tpc-orange-ink); }

.tpc-card__excerpt,
.post-card-excerpt { color: var(--tpc-muted); font-size: .88rem; margin: 0; }

.tpc-card__more,
.post-card-more {
	margin-top: auto;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--tpc-orange-ink);
	text-decoration: none;
}

.tpc-breadcrumbs { font-size: .84rem; color: var(--tpc-muted); margin-bottom: 18px; }
.tpc-breadcrumbs p { margin: 0; }
.tpc-breadcrumbs a { text-decoration: none; font-weight: 600; }
.tpc-breadcrumbs a:hover { text-decoration: underline; }
.tpc-breadcrumbs .separator { margin-inline: 6px; color: #9AA0AC; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--tpc-muted); font-size: .88rem; margin: 14px 0 0; }
.entry-meta strong,
.entry-meta .meta-author-link { color: var(--tpc-text); font-weight: 600; text-decoration: none; }
.entry-meta .meta-author-link:hover { color: var(--tpc-orange-ink); text-decoration: underline; }
.entry-meta .meta-sep { color: #9AA0AC; }

.entry-thumb { margin: 26px 0; border-radius: var(--tpc-radius-lg); overflow: hidden; box-shadow: var(--tpc-shadow); }
.entry-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.single .entry-content,
.page .entry-content { max-width: 72ch; }

.entry-content { font-size: 1.04rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.55rem; margin-top: 1.9em; }
.entry-content h3 { font-size: 1.22rem; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.05rem; margin-top: 1.4em; }
.entry-content img { border-radius: var(--tpc-radius); }

.entry-content blockquote {
	border-left: 4px solid var(--tpc-orange);
	background: var(--tpc-soft);
	padding: 16px 22px;
	border-radius: 0 var(--tpc-radius) var(--tpc-radius) 0;
	margin-inline: 0;
}

.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid var(--tpc-line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--tpc-soft); }

.tpc-related { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--tpc-line); }
.tpc-section__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 22px; }

.sidebar .widget { background: #fff; border: 1px solid var(--tpc-line); border-radius: var(--tpc-radius); padding: 18px 20px; margin-bottom: 22px; }
.widget-title { font-size: 1rem; margin: 0 0 12px; }

.pagination,
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }

.pagination .page-numbers {
	display: inline-block;
	padding: 9px 14px;
	border: 1px solid var(--tpc-line);
	border-radius: 6px;
	text-decoration: none;
	color: var(--tpc-text);
	font-weight: 600;
	font-size: .9rem;
}

.pagination .page-numbers.current { background: var(--tpc-orange-ink); border-color: var(--tpc-orange-ink); color: #fff; }

/* ---- Páginas de error (404 y 410) ---- */
.tpc-lost {
	text-align: center;
	padding-block: clamp(48px, 7vw, 88px);
	background:
		radial-gradient(520px 260px at 100% 0, rgba(234, 88, 12, .08), transparent 70%),
		linear-gradient(115deg, #F7F6FD 0%, var(--tpc-lav) 100%);
	border-bottom: 1px solid var(--tpc-line);
}

/* 410: tono cálido, distinto del 404, para señalar que no es un error de enlace. */
.tpc-lost--410 {
	background:
		radial-gradient(520px 260px at 0 100%, rgba(234, 88, 12, .07), transparent 70%),
		linear-gradient(115deg, #FFFAF5 0%, #FFF1E6 100%);
}

.tpc-lost__inner { display: flex; flex-direction: column; align-items: center; }

.tpc-lost__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--tpc-shadow-lg);
	color: var(--tpc-orange);
	margin-bottom: 20px;
}

.tpc-lost__icon .tpc-ico { width: 34px; height: 34px; }
.tpc-lost .tpc-eyebrow { color: #A63C08; margin-bottom: 10px; }
.tpc-lost__title { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.03em; margin: 0 0 14px; max-width: 20ch; }
.tpc-lost__text { color: #3A3E4A; font-size: 1.02rem; max-width: 56ch; margin: 0 0 26px; }
.tpc-lost__form { width: 100%; margin-top: 0; }
.tpc-lost__home { margin-top: 16px; }
.tpc-lost__cats .tpc-head { justify-content: center; }
.tpc-lost__cats .tpc-chips { justify-content: center; }

/* ============ 10. Footer ============ */
.site-footer { background: var(--tpc-ink); margin-top: 0; }

.tpc-flinks { padding-block: 26px; }
.tpc-flinks ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 34px;
}
.tpc-flinks a {
	color: #C2C6CF;
	font-size: .88rem;
	font-weight: 500;
	text-decoration: none;
	padding-block: 4px;
	border-bottom: 1px solid transparent;
}
.tpc-flinks a:hover { color: #fff; border-bottom-color: var(--tpc-orange-dk); }

/* ============ 11. Responsive ============ */
@media (max-width: 1100px) {
	.tpc-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tpc-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tpc-trust { grid-template-columns: repeat(2, auto); }
	.tpc-promo { grid-template-columns: 1fr; padding-right: clamp(26px, 3.5vw, 40px); }
	.tpc-badge--dark { display: none; }
	.tpc-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
	.tpc-products--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.tpc-topbar__item--mid { display: none; }
	.tpc-hero__inner { grid-template-columns: 1fr; }
	.tpc-hero__media { order: -1; aspect-ratio: 16 / 10; }
	.tpc-badge { top: 10px; right: 10px; width: 78px; height: 78px; }
	.tpc-badge b { font-size: 1.6rem; }
	.post-grid,
	.tpc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tpc-recent { grid-template-columns: 1fr; }
	/* Por debajo de 900px la barra pasa bajo el contenido. */
	.layout.has-sidebar { grid-template-columns: 1fr; gap: 36px; }
	.tpc-recent__list { grid-template-rows: none; }
}

@media (max-width: 768px) {
	.site-header .header-inner { min-height: 60px; gap: 10px; }
	.site-header .custom-logo { height: 40px; width: auto; max-height: none; }

	/* Menu horizontal SOLO en escritorio: en movil colapsa al toggle del padre. */
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		flex-direction: column;
		align-items: stretch;
		background: #fff;
		border-bottom: 1px solid var(--tpc-line);
		box-shadow: var(--tpc-shadow-lg);
		padding: 6px 20px 14px;
		display: none;
	}

	.nav-toggle:checked ~ .site-nav { display: flex; }
	.nav-toggle-label { margin-left: auto; }
	.site-nav .primary-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.site-nav .primary-menu li { border-bottom: 1px solid var(--tpc-line); }
	.site-nav .primary-menu a { display: block; padding: 13px 0; border-bottom: 0; }

	/* Categorias: carrusel horizontal con su propio scroll. */
	.tpc-cats {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 132px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
	}
	.tpc-cat { scroll-snap-align: start; }

	.tpc-promo__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tpc-promo__thumbs li:nth-child(n+4) { display: none; }
}

@media (max-width: 640px) {
	.container { padding-inline: 16px; }
	.site-main { padding-block: 26px; }
	.tpc-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tpc-rcard { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px; }
	.tpc-rcard--lead { grid-template-columns: 1fr; }
	.tpc-rcard--lead .tpc-rcard__foot { flex-wrap: wrap; }

	/* A 2 columnas, 5 tarjetas dejan una huérfana: se muestran 4. */
	.tpc-products:not(.tpc-products--archive) .tpc-pcard:nth-child(5) { display: none; }

	/* Barra superior en una sola línea: solo el aviso de actualización. */
	.tpc-topbar__inner { justify-content: center; min-height: 34px; }
	.tpc-topbar__item { white-space: nowrap; }
	.tpc-topbar__item:first-child,
	.tpc-topbar__inner > a.tpc-topbar__item { display: none; }
	.tpc-topbar__item--mid { display: inline-flex; }
	.tpc-pcard { padding: 10px 10px 12px; }
	.post-grid,
	.tpc-grid--3,
	.tpc-why__grid { grid-template-columns: 1fr; }
	.tpc-trust { gap: 14px; }
	.tpc-hero__title { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
	.entry-content { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
