/* ==========================================================================
   TrustFlow Solutions — hoja de estilo principal
   Paleta y escala derivadas del manual de marca (brand/manual-de-marca.md).
   ========================================================================== */

:root {
	/* Marca */
	--tf-navy: #0C426E;
	--tf-blue: #29A6D8;
	--tf-silver: #A2A7AC;

	/* Derivados de interfaz */
	--tf-deep: #06253D;
	--tf-link: #0E75B0;
	--tf-mist: #EDF5FB;
	--tf-ink: #12202E;
	--tf-muted: #5A6B7B;
	--tf-line: #E2E8F0;
	--tf-white: #FFFFFF;

	--tf-blue-soft: rgba(41, 166, 216, .10);
	--tf-blue-ring: rgba(41, 166, 216, .38);
	--tf-gradient: linear-gradient(135deg, #06253D 0%, #0C426E 60%, #12578F 100%);

	/* Sistema */
	--tf-radius: 16px;
	--tf-radius-lg: 24px;
	--tf-pill: 999px;
	--tf-maxw: 1160px;
	--tf-shadow: 0 18px 40px -24px rgba(12, 66, 110, .35);
	--tf-shadow-lg: 0 34px 70px -30px rgba(6, 37, 61, .55);

	--tf-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--tf-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--tf-header-h: 76px;
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--tf-header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--tf-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--tf-ink);
	background: var(--tf-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--tf-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tf-navy); }

h1, h2, h3, h4 {
	font-family: var(--tf-display);
	color: var(--tf-navy);
	line-height: 1.15;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2.15rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.022em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.08rem; font-weight: 700; }

p { margin: 0 0 1.1em; max-width: 70ch; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }

:focus-visible {
	outline: 3px solid var(--tf-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

.tf-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--tf-white);
	color: var(--tf-navy);
	padding: 12px 20px;
	font-weight: 600;
	border-radius: 0 0 var(--tf-radius) 0;
}
.tf-skip:focus { left: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* --- Contenedores y secciones -------------------------------------------- */

.tf-wrap { width: 100%; max-width: var(--tf-maxw); margin: 0 auto; padding: 0 24px; }

.tf-section { padding: clamp(56px, 7vw, 104px) 0; }
.tf-section--mist { background: var(--tf-mist); }
.tf-section--deep { background: var(--tf-deep); color: #C9D6E2; }
.tf-section--deep h2,
.tf-section--deep h3 { color: var(--tf-white); }

.tf-head { max-width: 720px; margin: 0 auto clamp(36px, 4vw, 60px); text-align: center; }
.tf-head p { margin-inline: auto; color: var(--tf-muted); font-size: 1.06rem; }
.tf-section--deep .tf-head p { color: #A9BDCE; }

.tf-eyebrow {
	display: inline-block;
	font-family: var(--tf-display);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tf-link);
	margin-bottom: 14px;
}
.tf-section--deep .tf-eyebrow,
.tf-hero .tf-eyebrow { color: var(--tf-blue); }

/* --- Botones ------------------------------------------------------------- */

.tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--tf-display);
	font-size: .97rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 15px 28px;
	border-radius: var(--tf-pill);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.tf-btn:hover { transform: translateY(-1px); }

.tf-btn--primary { background: var(--tf-navy); color: var(--tf-white); }
.tf-btn--primary:hover { background: #0A3559; color: var(--tf-white); }

.tf-btn--light { background: var(--tf-white); color: var(--tf-navy); }
.tf-btn--light:hover { background: #E9F2F9; color: var(--tf-navy); }

.tf-btn--ghost { background: transparent; color: var(--tf-white); border-color: rgba(255, 255, 255, .38); }
.tf-btn--ghost:hover { border-color: var(--tf-white); background: rgba(255, 255, 255, .07); color: var(--tf-white); }

.tf-btn--outline { background: transparent; color: var(--tf-navy); border-color: var(--tf-navy); }
.tf-btn--outline:hover { background: var(--tf-navy); color: var(--tf-white); }

.tf-btn svg { width: 18px; height: 18px; }

/* --- Cabecera ------------------------------------------------------------ */

.tf-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(6, 37, 61, .93);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.tf-header .tf-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--tf-header-h);
}

.tf-brand { display: inline-flex; align-items: center; text-decoration: none; }
.tf-brand__img { height: 46px; width: auto; }
.tf-brand__text {
	font-family: var(--tf-display);
	font-weight: 800;
	font-size: 1.2rem;
	color: var(--tf-white);
	letter-spacing: -.01em;
}

.tf-nav { display: flex; align-items: center; gap: 28px; }
.tf-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.tf-nav a {
	font-family: var(--tf-display);
	font-size: .94rem;
	font-weight: 600;
	color: #D3DDE7;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
.tf-nav a:hover,
.tf-nav .current-menu-item > a { color: var(--tf-white); border-color: var(--tf-blue); }

.tf-header__actions { display: flex; align-items: center; gap: 14px; }
.tf-header__actions .tf-btn { padding: 11px 22px; font-size: .9rem; }

/* El botón dentro del menú solo existe para la versión desplegable en móvil. */
.tf-nav .tf-btn { display: none; }

.tf-burger {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 10px;
	color: var(--tf-white);
	width: 44px; height: 44px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.tf-burger span {
	display: block;
	width: 20px; height: 2px;
	background: currentColor;
	position: relative;
	transition: background-color .2s;
}
.tf-burger span::before,
.tf-burger span::after {
	content: '';
	position: absolute;
	left: 0;
	width: 20px; height: 2px;
	background: currentColor;
	transition: transform .25s;
}
.tf-burger span::before { top: -6px; }
.tf-burger span::after { top: 6px; }
.tf-burger[aria-expanded="true"] span { background: transparent; }
.tf-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.tf-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Héroe --------------------------------------------------------------- */

.tf-hero {
	position: relative;
	overflow: hidden;
	background: var(--tf-gradient);
	color: #C9D6E2;
	padding: clamp(64px, 8vw, 108px) 0 clamp(72px, 8vw, 112px);
}

.tf-hero__glow { position: absolute; inset: 0; pointer-events: none; }
.tf-hero__glow::before,
.tf-hero__glow::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .55;
}
.tf-hero__glow::before {
	width: 680px; height: 680px;
	right: -160px; top: -280px;
	background: radial-gradient(circle, rgba(41, 166, 216, .60), transparent 68%);
}
.tf-hero__glow::after {
	width: 520px; height: 520px;
	left: -200px; bottom: -220px;
	background: radial-gradient(circle, rgba(162, 167, 172, .28), transparent 68%);
}

.tf-hero .tf-wrap { position: relative; z-index: 1; }

.tf-hero__grid {
	display: grid;
	grid-template-columns: 1.12fr .88fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.tf-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(41, 166, 216, .13);
	border: 1px solid var(--tf-blue-ring);
	color: #CFE7F5;
	font-size: .82rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: var(--tf-pill);
	margin-bottom: 24px;
}
.tf-hero__badge .tf-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #4ADE80;
	flex: 0 0 auto;
}

.tf-hero h1 { color: var(--tf-white); margin-bottom: 22px; }
.tf-hero h1 mark { background: none; color: var(--tf-blue); }

.tf-hero__lead {
	font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
	color: #B8C9D8;
	max-width: 54ch;
	margin-bottom: 34px;
}

.tf-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Tarjeta lateral del héroe: pilares de la propuesta */
.tf-hero__panel {
	background: rgba(6, 24, 40, .58);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--tf-radius-lg);
	box-shadow: var(--tf-shadow-lg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 26px;
}
.tf-hero__panel h2 {
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #9BBED6;
	margin-bottom: 18px;
}
.tf-pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tf-pillar {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--tf-radius);
}
.tf-pillar .tf-icon { color: var(--tf-blue); flex: 0 0 auto; margin-top: 2px; }
.tf-pillar strong { display: block; color: var(--tf-white); font-size: .97rem; font-weight: 600; line-height: 1.35; }
.tf-pillar span { display: block; color: #9FB4C6; font-size: .86rem; line-height: 1.5; }

/* --- Franja de presencia -------------------------------------------------- */

.tf-presence {
	background: var(--tf-deep);
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding: 30px 0;
	text-align: center;
}
.tf-presence__label {
	font-family: var(--tf-display);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #8FA6B9;
	margin: 0 0 16px;
	max-width: none;
}
.tf-presence__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tf-presence__list li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--tf-pill);
	padding: 8px 18px;
	color: #DCE7F0;
	font-size: .92rem;
	font-weight: 500;
}
.tf-presence__flag { font-size: 1.15rem; line-height: 1; }

/* --- Rejilla de tarjetas -------------------------------------------------- */

.tf-grid { display: grid; gap: 22px; }
.tf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tf-grid--4 { grid-template-columns: repeat(4, 1fr); }

.tf-card {
	position: relative;
	background: var(--tf-white);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	padding: 30px 28px;
	overflow: hidden;
	transition: transform .22s, box-shadow .22s, border-color .22s;
}
.tf-card::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--tf-blue);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .28s ease;
}
.tf-card:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow); border-color: #CFE0EE; }
.tf-card:hover::before { transform: scaleY(1); }

.tf-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px; height: 50px;
	border-radius: 14px;
	background: var(--tf-blue-soft);
	color: var(--tf-link);
	margin-bottom: 18px;
}
.tf-card h3 { margin-bottom: 10px; }
.tf-card p { color: var(--tf-muted); font-size: .97rem; margin-bottom: 0; }
.tf-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	font-family: var(--tf-display);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
}
.tf-card__link::after { content: '\2192'; transition: transform .2s; }
.tf-card__link:hover::after { transform: translateX(4px); }

/* Variante sobre fondo oscuro */
.tf-section--deep .tf-card {
	background: rgba(255, 255, 255, .045);
	border-color: rgba(255, 255, 255, .1);
}
.tf-section--deep .tf-card p { color: #A9BDCE; }
.tf-section--deep .tf-card__icon { background: rgba(41, 166, 216, .16); color: var(--tf-blue); }
.tf-section--deep .tf-card:hover { border-color: var(--tf-blue-ring); box-shadow: none; }
.tf-section--deep .tf-card__link { color: var(--tf-blue); }

/* --- Nosotros ------------------------------------------------------------- */

.tf-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
.tf-about__text p { color: var(--tf-muted); }
.tf-about__text .tf-eyebrow { margin-bottom: 10px; }
.tf-about__media img { border-radius: var(--tf-radius-lg); box-shadow: var(--tf-shadow); }
.tf-about__media--empty {
	border-radius: var(--tf-radius-lg);
	background: var(--tf-gradient);
	min-height: 340px;
	display: grid;
	place-items: center;
	padding: 40px;
}
.tf-about__media--empty img { max-width: 260px; box-shadow: none; border-radius: 0; }

/* --- Métricas ------------------------------------------------------------- */

.tf-metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}
.tf-metrics--inset { margin-top: clamp(32px, 4vw, 52px); }

.tf-metric {
	padding: 26px 18px;
	border-radius: var(--tf-radius);
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .1);
}
.tf-metric__value {
	display: block;
	font-family: var(--tf-display);
	font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
	font-weight: 800;
	color: var(--tf-white);
	line-height: 1.1;
	letter-spacing: -.02em;
}
.tf-metric__label {
	display: block;
	margin-top: 8px;
	font-size: .88rem;
	color: #A9BDCE;
	line-height: 1.45;
}

/* --- Alianzas -------------------------------------------------------------- */

.tf-ally {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px;
	text-align: center;
	max-width: 860px;
	margin: 0 auto;
}
.tf-ally__logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	background: var(--tf-white);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	padding: 18px 26px;
}
.tf-ally__logo img { max-height: 34px; width: auto; }
.tf-ally__badge {
	display: inline-block;
	font-family: var(--tf-display);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tf-link);
	background: var(--tf-blue-soft);
	border-radius: var(--tf-pill);
	padding: 5px 12px;
}
.tf-ally p { color: var(--tf-muted); margin: 0; }

/* --- Contacto -------------------------------------------------------------- */

.tf-contact__grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: clamp(32px, 5vw, 60px);
	align-items: start;
}
.tf-contact__info p { color: var(--tf-muted); }
.tf-contact__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.tf-contact__list li { display: flex; align-items: flex-start; gap: 13px; }
.tf-contact__list .tf-icon { color: var(--tf-link); flex: 0 0 auto; margin-top: 3px; }
.tf-contact__list a { text-decoration: none; }
.tf-contact__list a:hover { text-decoration: underline; }

.tf-form {
	background: var(--tf-white);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius-lg);
	padding: clamp(24px, 3vw, 36px);
	box-shadow: var(--tf-shadow);
}
.tf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tf-field { display: block; margin-bottom: 16px; }
.tf-field > span {
	display: block;
	font-family: var(--tf-display);
	font-size: .82rem;
	font-weight: 600;
	color: var(--tf-navy);
	margin-bottom: 7px;
}
.tf-field > span .tf-req { color: #C0392B; }

.tf-form input[type="text"],
.tf-form input[type="email"],
.tf-form input[type="tel"],
.tf-form textarea {
	width: 100%;
	font-family: var(--tf-body);
	font-size: 1rem;
	color: var(--tf-ink);
	background: #FBFDFE;
	border: 1px solid var(--tf-line);
	border-radius: 12px;
	padding: 13px 15px;
	transition: border-color .2s, box-shadow .2s;
}
.tf-form textarea { min-height: 140px; resize: vertical; }
.tf-form input:focus,
.tf-form textarea:focus {
	outline: none;
	border-color: var(--tf-blue);
	box-shadow: 0 0 0 4px var(--tf-blue-soft);
}

.tf-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--tf-muted); margin: 6px 0 20px; }
.tf-consent input { margin-top: 4px; flex: 0 0 auto; }

.tf-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.tf-form__note { font-size: .84rem; color: var(--tf-muted); margin: 14px 0 0; }

.tf-notice {
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 22px;
	font-size: .93rem;
	border: 1px solid transparent;
}
.tf-notice--ok { background: #E9F8EF; border-color: #B7E4C9; color: #1B5E37; }
.tf-notice--error { background: #FDECEA; border-color: #F5C2BC; color: #8B2318; }

/* --- Pie ------------------------------------------------------------------- */

.tf-footer {
	background: var(--tf-deep);
	color: #A9BDCE;
	padding: clamp(48px, 6vw, 72px) 0 0;
}
.tf-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 36px;
	padding-bottom: 44px;
}
.tf-footer h2 {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--tf-white);
	margin-bottom: 16px;
}
.tf-footer p { font-size: .93rem; max-width: 42ch; }
.tf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tf-footer a { color: #A9BDCE; text-decoration: none; font-size: .93rem; }
.tf-footer a:hover { color: var(--tf-white); text-decoration: underline; }
.tf-footer .tf-brand__img { height: 54px; margin-bottom: 18px; }
.tf-footer .tf-brand__text { color: var(--tf-white); }

.tf-social { display: flex; gap: 12px; margin-top: 18px; }
.tf-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
	color: #C9D6E2;
	transition: border-color .2s, color .2s, background-color .2s;
}
.tf-social a:hover { border-color: var(--tf-blue); color: var(--tf-blue); background: rgba(41, 166, 216, .1); }

.tf-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 22px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: .86rem;
}
.tf-footer__bottom p { margin: 0; max-width: none; }
.tf-footer__bottom ul { display: flex; gap: 20px; }

/* --- Contenido editorial (páginas y blog) --------------------------------- */

.tf-page { padding: clamp(48px, 6vw, 80px) 0; }
.tf-page__header { max-width: 760px; margin-bottom: 36px; }
.tf-page__header p { color: var(--tf-muted); }

.tf-prose { max-width: 760px; }
.tf-prose h2 { margin-top: 1.8em; }
.tf-prose h3 { margin-top: 1.5em; }
.tf-prose img { border-radius: var(--tf-radius); }
.tf-prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--tf-blue);
	color: var(--tf-muted);
	font-size: 1.06rem;
}
.tf-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.tf-prose th, .tf-prose td { border: 1px solid var(--tf-line); padding: 10px 14px; text-align: left; }
.tf-prose th { background: var(--tf-mist); font-family: var(--tf-display); }

.tf-breadcrumbs { background: var(--tf-mist); border-bottom: 1px solid var(--tf-line); font-size: .86rem; }
.tf-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 12px 0; }
.tf-breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--tf-silver); }
.tf-breadcrumbs a { text-decoration: none; }
.tf-breadcrumbs [aria-current] { color: var(--tf-muted); }

.tf-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tf-post-card {
	display: flex;
	flex-direction: column;
	background: var(--tf-white);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	overflow: hidden;
	transition: transform .22s, box-shadow .22s;
}
.tf-post-card:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow); }
.tf-post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tf-post-card__body { padding: 22px 24px 26px; }
.tf-post-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tf-post-card h3 a { color: inherit; text-decoration: none; }
.tf-post-card p { font-size: .94rem; color: var(--tf-muted); }
.tf-post-meta { font-size: .82rem; color: var(--tf-muted); margin-bottom: 8px; }

.tf-center-cta { text-align: center; max-width: none; margin: 36px auto 0; }

/* --- Búsqueda y comentarios ----------------------------------------------- */

.tf-searchform { max-width: 520px; margin-bottom: 32px; }
.tf-searchform__row { display: flex; gap: 10px; }
.tf-searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--tf-body);
	font-size: 1rem;
	border: 1px solid var(--tf-line);
	border-radius: 12px;
	padding: 13px 15px;
	background: #FBFDFE;
}
.tf-searchform input[type="search"]:focus {
	outline: none;
	border-color: var(--tf-blue);
	box-shadow: 0 0 0 4px var(--tf-blue-soft);
}

.tf-comments { max-width: 760px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--tf-line); }
.tf-comments__list { list-style: none; margin: 0 0 40px; padding: 0; }
.tf-comments__list ol { list-style: none; padding-left: 28px; }
.tf-comments .comment-body { padding: 20px 0; border-bottom: 1px solid var(--tf-line); }
.tf-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tf-comments .comment-author img { border-radius: 50%; }
.tf-comments .comment-metadata { font-size: .82rem; color: var(--tf-muted); margin-bottom: 8px; }
.tf-comments .comment-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.tf-comments .comment-form input[type="text"],
.tf-comments .comment-form input[type="email"],
.tf-comments .comment-form input[type="url"],
.tf-comments .comment-form textarea {
	width: 100%;
	font-family: var(--tf-body);
	font-size: 1rem;
	border: 1px solid var(--tf-line);
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 16px;
	background: #FBFDFE;
}

.tf-pagination { margin-top: 44px; display: flex; justify-content: center; }
.tf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px; height: 42px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid var(--tf-line);
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
}
.tf-pagination .page-numbers.current { background: var(--tf-navy); border-color: var(--tf-navy); color: var(--tf-white); }

.tf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
body.no-sidebar .tf-layout { grid-template-columns: minmax(0, 1fr); }
.tf-sidebar .widget { margin-bottom: 32px; }
.tf-sidebar .widget-title { font-size: 1rem; font-family: var(--tf-display); }

.tf-cta-band { background: var(--tf-gradient); color: var(--tf-white); text-align: center; }
.tf-cta-band h2 { color: var(--tf-white); }
.tf-cta-band p { color: #B8C9D8; margin-inline: auto; }
.tf-cta-band .tf-btn { margin-top: 10px; }

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 1024px) {
	.tf-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.tf-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.tf-posts { grid-template-columns: repeat(2, 1fr); }
	.tf-footer__grid { grid-template-columns: 1fr 1fr; }
	.tf-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
	.tf-hero__grid,
	.tf-about__grid,
	.tf-contact__grid { grid-template-columns: 1fr; }
	.tf-about__media { order: -1; }
	.tf-metrics { grid-template-columns: repeat(2, 1fr); }

	.tf-burger { display: inline-flex; }
	.tf-nav {
		position: fixed;
		inset: var(--tf-header-h) 0 auto 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--tf-deep);
		border-bottom: 1px solid rgba(255, 255, 255, .12);
		padding: 12px 24px 24px;
		max-height: calc(100vh - var(--tf-header-h));
		overflow-y: auto;
	}
	.tf-nav.is-open { display: flex; }
	.tf-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.tf-nav li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.tf-nav a { display: block; padding: 14px 0; border-bottom: 0; font-size: 1rem; }
	.tf-header__actions .tf-btn--primary { display: none; }
	.tf-nav .tf-btn { display: inline-flex; margin-top: 18px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.tf-grid--3, .tf-grid--4, .tf-posts { grid-template-columns: 1fr; }
	.tf-metrics { grid-template-columns: 1fr 1fr; }
	.tf-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.tf-form__row { grid-template-columns: 1fr; }
	.tf-hero__cta .tf-btn { width: 100%; }
	.tf-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

@media print {
	.tf-header, .tf-footer, .tf-hero__glow, .tf-form { display: none !important; }
	body { color: #000; }
}
