/* =============================================================================
   TFHKA THEME — sistema de diseño
   Paleta de The Factory HKA, esquinas rectas, Roboto.
   Índice:
     01 Tokens          06 Hero            11 Galería en panal
     02 Reset           07 Marquee         12 Plataformas / specs
     03 Tipografía      08 Bento           13 CTA / footer
     04 Utilidades      09 Recorrido       14 Contenido / archivo
     05 Cabecera        10 Métricas        15 Movimiento / responsive
   ========================================================================== */

/* -- 01 Tokens ------------------------------------------------------------ */

:root {
	/* Marca (extraída del portal TFHKA y del icono corporativo). */
	--tf-brand: #009ee0;
	--tf-blue: #0084d1;
	--tf-blue-bright: #00a3ff;
	--tf-cyan: #9adcf8;
	--tf-ice: #b0dff5;
	--tf-silver: #d9dadb;
	--tf-ink: #1a171b;

	--tf-ok: #3dd9b0;
	--tf-warn: #f5b942;
	--tf-err: #ff7a88;

	--tf-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
	--tf-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Consolas, monospace;

	--tf-shell: 1320px;
	--tf-gut: clamp(20px, 4vw, 56px);
	--tf-sec: clamp(72px, 10vw, 152px);

	--tf-ease: cubic-bezier(.22, .61, .36, 1);
	--tf-ease-out: cubic-bezier(.16, 1, .3, 1);
	--tf-dur: 240ms;

	--tf-line: 1px;
	--tf-radius: 0;

	/* Base neutra: garantiza que los tokens existan aunque no haya atributo
	   data-tf-scheme (editor de bloques, correos, vistas aisladas). */
	--tf-bg: #eef3f9;
	--tf-bg-2: #ffffff;
	--tf-panel: rgba(255, 255, 255, .78);
	--tf-panel-solid: #ffffff;
	--tf-panel-2: #f5f8fc;
	--tf-border: #d7e0ea;
	--tf-border-2: #bccbdc;
	--tf-border-hot: rgba(0, 132, 209, .55);
	--tf-text: #0d1622;
	--tf-text-dim: #35465c;
	--tf-muted: #64748b;
	--tf-accent: var(--tf-blue);
	--tf-accent-soft: rgba(0, 132, 209, .1);
	--tf-grid: rgba(13, 22, 34, .055);
	--tf-glow-a: rgba(0, 132, 209, .13);
	--tf-glow-b: rgba(0, 158, 224, .09);
	--tf-glow-c: rgba(120, 160, 200, .08);
	--tf-shadow: 0 24px 60px -34px rgba(15, 35, 60, .45);
	--tf-mark-light: block;
	--tf-mark-dark: none;
	--tf-inverse: #ffffff;
}

[data-tf-scheme="dark"] {
	color-scheme: dark;
	--tf-bg: #05070e;
	--tf-bg-2: #080d18;
	--tf-panel: rgba(12, 18, 32, .72);
	--tf-panel-solid: #0c1220;
	--tf-panel-2: #101a2b;
	--tf-border: rgba(154, 220, 248, .14);
	--tf-border-2: rgba(154, 220, 248, .26);
	--tf-border-hot: rgba(0, 163, 255, .48);
	--tf-text: #e9f4fc;
	--tf-text-dim: #b9cbdc;
	--tf-muted: #8296ae;
	--tf-accent: var(--tf-blue-bright);
	--tf-accent-soft: rgba(0, 163, 255, .14);
	--tf-grid: rgba(154, 220, 248, .055);
	--tf-glow-a: rgba(0, 163, 255, .22);
	--tf-glow-b: rgba(0, 158, 224, .12);
	--tf-glow-c: rgba(176, 223, 245, .07);
	--tf-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
	--tf-mark-light: none;
	--tf-mark-dark: block;
	--tf-inverse: #05070e;
}

[data-tf-scheme="light"] {
	color-scheme: light;
	--tf-bg: #eef3f9;
	--tf-bg-2: #ffffff;
	--tf-panel: rgba(255, 255, 255, .78);
	--tf-panel-solid: #ffffff;
	--tf-panel-2: #f5f8fc;
	--tf-border: #d7e0ea;
	--tf-border-2: #bccbdc;
	--tf-border-hot: rgba(0, 132, 209, .55);
	--tf-text: #0d1622;
	--tf-text-dim: #35465c;
	--tf-muted: #64748b;
	--tf-accent: var(--tf-blue);
	--tf-accent-soft: rgba(0, 132, 209, .1);
	--tf-grid: rgba(13, 22, 34, .055);
	--tf-glow-a: rgba(0, 132, 209, .13);
	--tf-glow-b: rgba(0, 158, 224, .09);
	--tf-glow-c: rgba(120, 160, 200, .08);
	--tf-shadow: 0 24px 60px -34px rgba(15, 35, 60, .45);
	--tf-mark-light: block;
	--tf-mark-dark: none;
	--tf-inverse: #ffffff;
}

/* -- 02 Reset ------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
	border-radius: 0 !important; /* regla del design system TFHKA */
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body.tf-body {
	margin: 0;
	background: var(--tf-bg);
	color: var(--tf-text);
	font-family: var(--tf-font);
	font-weight: 300;
	font-size: clamp(15px, .38vw + 14px, 17px);
	line-height: 1.65;
	letter-spacing: .015em;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

[data-tf-kiosk="on"] body.tf-body {
	font-size: clamp(17px, .5vw + 15px, 20px);
}

img,
svg,
video,
canvas {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--tf-blue-bright);
	outline-offset: 3px;
}

::selection {
	background: var(--tf-blue-bright);
	color: #04070d;
}

/* Fondo vivo: nebulosa + retícula ortogonal + grano. */
body.tf-body::before,
body.tf-body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

body.tf-body::before {
	background:
		radial-gradient(58% 48% at 12% 6%, var(--tf-glow-a), transparent 66%),
		radial-gradient(46% 44% at 92% 22%, var(--tf-glow-b), transparent 64%),
		radial-gradient(60% 50% at 62% 104%, var(--tf-glow-c), transparent 68%);
}

body.tf-body::after {
	background-image:
		linear-gradient(to right, var(--tf-grid) 1px, transparent 1px),
		linear-gradient(to bottom, var(--tf-grid) 1px, transparent 1px);
	background-size: 84px 84px;
	mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
}

[data-tf-grain="on"] body.tf-body {
	position: relative;
}

[data-tf-grain="on"] #tf-grain {
	position: fixed;
	inset: -50%;
	z-index: 1;
	pointer-events: none;
	opacity: .045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: tf-grain 5s steps(5) infinite;
}

@keyframes tf-grain {
	0%,
	100% { transform: translate(0, 0); }
	20% { transform: translate(-3%, 2%); }
	40% { transform: translate(2%, -3%); }
	60% { transform: translate(-2%, -2%); }
	80% { transform: translate(3%, 3%); }
}

.tf-particles {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

/* -- 03 Tipografía -------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.022em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.75rem); }
h4 { font-size: clamp(1.08rem, 1.2vw, 1.25rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 500; }

code, kbd, pre, samp {
	font-family: var(--tf-mono);
	font-size: .88em;
}

pre {
	padding: 20px 22px;
	overflow-x: auto;
	background: var(--tf-panel-2);
	border: var(--tf-line) solid var(--tf-border);
	border-left: 3px solid var(--tf-accent);
}

blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border-left: 2px solid var(--tf-accent);
	font-size: 1.15em;
	color: var(--tf-text-dim);
}

hr {
	height: 0;
	margin: var(--tf-sec) 0;
	border: 0;
	border-top: var(--tf-line) solid var(--tf-border);
}

/* -- 04 Utilidades -------------------------------------------------------- */

.tf-shell {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--tf-shell);
	margin-inline: auto;
	padding-inline: var(--tf-gut);
}

.tf-shell--narrow { max-width: 820px; }
.tf-shell--wide { max-width: 1620px; }

.tf-section {
	position: relative;
	z-index: 2;
	padding-block: var(--tf-sec);
}

.tf-section--tight { padding-block: calc(var(--tf-sec) * .55); }

.tf-section--edge {
	border-top: var(--tf-line) solid var(--tf-border);
}

.screen-reader-text,
.tf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.tf-skip {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 12px 20px;
	background: var(--tf-blue-bright);
	color: #04070d;
}

.tf-skip:focus {
	left: 16px;
	top: 16px;
}

.tf-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--tf-accent);
}

/* El guion del antetítulo queda oculto; se mantiene el marcado para poder
   recuperarlo cambiando este display. */
.tf-kicker__tick {
	display: none;
	width: 26px;
	height: 1px;
	background: currentColor;
	box-shadow: 0 0 12px currentColor;
}

.tf-sechead { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.tf-sechead--center { margin-inline: auto; text-align: center; }
.tf-sechead--center .tf-kicker { justify-content: center; }
.tf-sechead__title { margin-bottom: 18px; }

.tf-sechead__lead {
	font-size: clamp(1rem, 1.1vw, 1.2rem);
	color: var(--tf-muted);
	max-width: 62ch;
}

.tf-sechead--center .tf-sechead__lead { margin-inline: auto; }

/* Botones */

.tf-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 30px;
	border: var(--tf-line) solid var(--tf-border-2);
	background: transparent;
	color: var(--tf-text);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
	cursor: pointer;
	overflow: hidden;
	transition: color var(--tf-dur) var(--tf-ease), border-color var(--tf-dur) var(--tf-ease), background var(--tf-dur) var(--tf-ease);
}

.tf-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tf-accent);
	transform: translateY(101%);
	transition: transform 420ms var(--tf-ease-out);
	z-index: -1;
}

.tf-btn > * { position: relative; z-index: 1; }

.tf-btn:hover {
	border-color: var(--tf-border-hot);
	color: #04070d;
}

.tf-btn:hover::after { transform: translateY(0); }

.tf-btn--primary {
	background: var(--tf-accent);
	border-color: var(--tf-accent);
	color: #04070d;
	box-shadow: 0 0 0 0 var(--tf-accent-soft);
}

.tf-btn--primary::after { background: var(--tf-cyan); }

.tf-btn--primary:hover {
	box-shadow: 0 0 40px -6px var(--tf-accent);
	color: #04070d;
}

.tf-btn--ghost { border-color: var(--tf-border); color: var(--tf-text-dim); }
.tf-btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }

.tf-btn__arrow { transition: transform 320ms var(--tf-ease-out); }
.tf-btn:hover .tf-btn__arrow { transform: translateX(5px); }

.tf-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: var(--tf-line) solid var(--tf-border);
	background: transparent;
	cursor: pointer;
	transition: border-color var(--tf-dur) var(--tf-ease), background var(--tf-dur) var(--tf-ease);
}

.tf-iconbtn:hover { border-color: var(--tf-border-hot); background: var(--tf-accent-soft); }

.tf-ico {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: square;
}

[data-tf-scheme="dark"] .tf-ico--sun { display: none; }
[data-tf-scheme="light"] .tf-ico--moon { display: none; }

/* Selector segmentado */

.tf-switch {
	display: inline-flex;
	border: var(--tf-line) solid var(--tf-border);
	height: 40px;
}

.tf-switch__opt {
	display: grid;
	place-items: center;
	min-width: 42px;
	padding-inline: 6px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	color: var(--tf-muted);
	transition: color var(--tf-dur) var(--tf-ease), background var(--tf-dur) var(--tf-ease);
}

.tf-switch__opt.is-on {
	background: var(--tf-accent);
	color: #04070d;
}

.tf-switch__opt:not(.is-on):hover { color: var(--tf-text); background: var(--tf-accent-soft); }

/* Panel base */

.tf-panel {
	position: relative;
	background: var(--tf-panel);
	border: var(--tf-line) solid var(--tf-border);
	backdrop-filter: blur(14px) saturate(130%);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
}

.tf-panel--solid { background: var(--tf-panel-solid); backdrop-filter: none; }

/* Esquinas técnicas */

.tf-corners::before,
.tf-corners::after {
	content: "";
	position: absolute;
	width: 12px;
	height: 12px;
	border: 1px solid var(--tf-accent);
	opacity: .65;
	transition: opacity var(--tf-dur) var(--tf-ease);
}

.tf-corners::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.tf-corners::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* Slots vacíos */

/* Estado vacío: una composición geométrica deliberada, no un hueco roto.
   Se sustituye en cuanto se sube la pieza desde Media Studio. */

.tf-slot-empty {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	overflow: hidden;
	background:
		radial-gradient(70% 60% at 30% 22%, var(--tf-glow-a), transparent 62%),
		radial-gradient(56% 52% at 82% 86%, var(--tf-glow-b), transparent 60%),
		linear-gradient(160deg, var(--tf-panel-2), var(--tf-bg-2));
}

.tf-slot-empty::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, var(--tf-grid) 1px, transparent 1px),
		linear-gradient(to bottom, var(--tf-grid) 1px, transparent 1px);
	background-size: 34px 34px;
}

.tf-slot-empty::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46%;
	aspect-ratio: 1;
	translate: -50% -50%;
	rotate: 45deg;
	border: 1px solid var(--tf-border-hot);
	box-shadow:
		0 0 0 1px transparent,
		inset 0 0 34px -12px var(--tf-blue-bright),
		0 0 44px -18px var(--tf-blue-bright);
	animation: tf-idle 9s var(--tf-ease) infinite;
}

.tf-slot-empty__grid {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 74%;
	aspect-ratio: 1;
	translate: -50% -50%;
	border: 1px solid var(--tf-border);
	background:
		conic-gradient(from 0deg, transparent 0 88deg, var(--tf-accent-soft) 90deg 92deg, transparent 94deg 178deg, var(--tf-accent-soft) 180deg 182deg, transparent 184deg);
	opacity: .8;
	animation: tf-spin 60s linear infinite;
}

@keyframes tf-idle {
	0%, 100% { rotate: 45deg; scale: 1; }
	50% { rotate: 135deg; scale: .88; }
}

[data-tf-motion="off"] .tf-slot-empty::after,
[data-tf-motion="off"] .tf-slot-empty__grid { animation: none; }

.tf-slot-img { width: 100%; height: 100%; object-fit: cover; }

/* -- 05 Cabecera ---------------------------------------------------------- */

.tf-header {
	position: sticky;
	top: 0;
	z-index: 90;
	border-bottom: var(--tf-line) solid transparent;
	transition: background var(--tf-dur) var(--tf-ease), border-color var(--tf-dur) var(--tf-ease);
}

.tf-header.is-stuck {
	background: color-mix(in srgb, var(--tf-bg) 78%, transparent);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border-bottom-color: var(--tf-border);
}

.tf-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 44px);
	min-height: 78px;
}

.tf-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.tf-brand__mark {
	position: relative;
	display: block;
	width: 34px;
	height: 34px;
}

.tf-brand__mark img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	transition: transform 600ms var(--tf-ease-out);
}

.tf-brand__mark-light { display: var(--tf-mark-light); }
.tf-brand__mark-dark { display: var(--tf-mark-dark); }
.tf-brand:hover .tf-brand__mark img { transform: rotate(-8deg) scale(1.06); }

.tf-brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.tf-brand__name {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .01em;
}

.tf-brand__sub {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--tf-accent);
}

.tf-nav { margin-left: auto; }

.tf-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-nav a {
	position: relative;
	display: block;
	padding: 6px 0;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .04em;
	color: var(--tf-text-dim);
	transition: color var(--tf-dur) var(--tf-ease);
}

.tf-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--tf-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 360ms var(--tf-ease-out);
}

.tf-nav a:hover { color: var(--tf-text); }

.tf-nav a:hover::after,
.tf-nav .current-menu-item > a::after,
.tf-nav li.is-active > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.tf-header__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.tf-burger { display: none; }

.tf-drawer {
	position: fixed;
	inset: 0;
	z-index: 95;
	display: grid;
	align-content: center;
	gap: 8px;
	padding: 96px var(--tf-gut) 40px;
	background: var(--tf-bg);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 520ms var(--tf-ease-out), visibility 520ms;
}

.tf-drawer.is-open { transform: translateY(0); visibility: visible; }

.tf-drawer ul { margin: 0; padding: 0; list-style: none; }

.tf-drawer a {
	display: block;
	padding: 14px 0;
	font-size: clamp(1.7rem, 7vw, 2.6rem);
	font-weight: 300;
	letter-spacing: -.02em;
	border-bottom: var(--tf-line) solid var(--tf-border);
}

.tf-drawer a:hover { color: var(--tf-accent); }

/* -- 06 Hero -------------------------------------------------------------- */

.tf-hero {
	position: relative;
	z-index: 2;
	padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 130px);
	overflow: hidden;
}

.tf-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	object-fit: cover;
	width: 100%;
	height: 100%;
	opacity: .5;
	mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
	-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
}

.tf-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
}

.tf-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 26px;
	padding: 7px 14px;
	border: var(--tf-line) solid var(--tf-border-2);
	background: var(--tf-accent-soft);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tf-text-dim);
}

.tf-hero__dot {
	width: 6px;
	height: 6px;
	background: var(--tf-ok);
	box-shadow: 0 0 0 0 var(--tf-ok);
	animation: tf-pulse 2.4s infinite;
}

@keyframes tf-pulse {
	0% { box-shadow: 0 0 0 0 rgba(61, 217, 176, .6); }
	70% { box-shadow: 0 0 0 9px rgba(61, 217, 176, 0); }
	100% { box-shadow: 0 0 0 0 rgba(61, 217, 176, 0); }
}

.tf-hero__title {
	margin-bottom: 26px;
	font-weight: 300;
}

.tf-hero__title .tf-line { display: block; overflow: hidden; }

.tf-hero__title .tf-line > span {
	display: block;
	transform: translateY(105%);
	animation: tf-rise 1s var(--tf-ease-out) forwards;
}

.tf-hero__title .tf-line:nth-child(2) > span { animation-delay: .1s; }

.tf-hero__title em {
	font-style: normal;
	font-weight: 400;
	background: linear-gradient(100deg, var(--tf-brand), var(--tf-blue-bright) 45%, var(--tf-ice));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@keyframes tf-rise {
	to { transform: translateY(0); }
}

.tf-hero__lead {
	max-width: 56ch;
	margin-bottom: 38px;
	font-size: clamp(1rem, 1.15vw, 1.2rem);
	color: var(--tf-muted);
}

.tf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 52px;
}

.tf-hero__metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: var(--tf-line) solid var(--tf-border);
}

.tf-hero__metric {
	padding: 22px 18px 0 0;
}

.tf-hero__metric + .tf-hero__metric {
	padding-left: 22px;
	border-left: var(--tf-line) solid var(--tf-border);
}

.tf-hero__metric b {
	display: block;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 400;
	letter-spacing: -.02em;
	color: var(--tf-text);
}

.tf-hero__metric span {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tf-muted);
}

/* Visual del hero */

.tf-hero__visual {
	position: relative;
	aspect-ratio: 7 / 8;
}

.tf-hero__visual .tf-slot-img,
.tf-hero__visual .tf-slot-empty {
	position: absolute;
	inset: 0;
	height: 100%;
	object-fit: cover;
	clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
}

.tf-hero__frame {
	position: absolute;
	inset: -14px;
	border: var(--tf-line) solid var(--tf-border-2);
	clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
	pointer-events: none;
}

.tf-hero__orbit {
	position: absolute;
	inset: 6%;
	pointer-events: none;
	animation: tf-spin 42s linear infinite;
}

.tf-hero__orbit svg { width: 100%; height: 100%; overflow: visible; }

.tf-hero__orbit path,
.tf-hero__orbit polygon,
.tf-hero__orbit circle {
	fill: none;
	stroke: var(--tf-accent);
	stroke-width: 1;
	opacity: .5;
	vector-effect: non-scaling-stroke;
}

@keyframes tf-spin {
	to { transform: rotate(360deg); }
}

.tf-hero__chip {
	position: absolute;
	right: -6%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 15px;
	background: var(--tf-panel-solid);
	border: var(--tf-line) solid var(--tf-border-2);
	border-left: 2px solid var(--tf-accent);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tf-text-dim);
	box-shadow: var(--tf-shadow);
	animation: tf-float 7s var(--tf-ease) infinite;
}

.tf-hero__chip--a { top: 14%; }
.tf-hero__chip--b { bottom: 18%; left: -8%; right: auto; animation-delay: -3.5s; }

@keyframes tf-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

.tf-hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 52px;
	font-size: 10px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--tf-muted);
}

.tf-hero__scroll i {
	display: block;
	width: 46px;
	height: 1px;
	background: linear-gradient(to right, var(--tf-accent), transparent);
	animation: tf-slide 2.4s var(--tf-ease) infinite;
}

@keyframes tf-slide {
	0%, 100% { transform: translateX(0); opacity: 1; }
	50% { transform: translateX(12px); opacity: .35; }
}

/* -- 07 Marquee ----------------------------------------------------------- */

.tf-marquee {
	position: relative;
	z-index: 2;
	padding-block: 26px;
	border-block: var(--tf-line) solid var(--tf-border);
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.tf-marquee__track {
	display: flex;
	width: max-content;
	gap: 56px;
	animation: tf-marquee 42s linear infinite;
}

.tf-marquee:hover .tf-marquee__track { animation-play-state: paused; }

@keyframes tf-marquee {
	to { transform: translateX(-50%); }
}

.tf-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--tf-muted);
	white-space: nowrap;
}

.tf-marquee__item img {
	width: 22px;
	height: 15px;
	object-fit: cover;
	filter: saturate(.25) contrast(1.1);
	opacity: .8;
	transition: filter var(--tf-dur) var(--tf-ease), opacity var(--tf-dur) var(--tf-ease);
}

.tf-marquee__item:hover img { filter: none; opacity: 1; }

.tf-marquee__sep { color: var(--tf-accent); opacity: .5; }

/* -- 08 Bento de capacidades ---------------------------------------------- */

.tf-bento {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1px;
	background: var(--tf-border);
	border: var(--tf-line) solid var(--tf-border);
}

.tf-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 14px;
	min-height: 280px;
	padding: clamp(24px, 2.6vw, 38px);
	background: var(--tf-bg);
	overflow: hidden;
	transition: background var(--tf-dur) var(--tf-ease);
	grid-column: span 2;
}

.tf-tile--lg { grid-column: span 4; min-height: 380px; }
.tf-tile--tall { grid-row: span 2; }

.tf-tile:hover { background: var(--tf-panel-2); }

.tf-tile__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: .2;
	transition: opacity 600ms var(--tf-ease), transform 900ms var(--tf-ease-out);
}

.tf-tile__media img,
.tf-tile__media .tf-slot-empty {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	mask-image: linear-gradient(to top, transparent 4%, #000 70%);
	-webkit-mask-image: linear-gradient(to top, transparent 4%, #000 70%);
}

.tf-tile:hover .tf-tile__media { opacity: .38; transform: scale(1.04); }

.tf-tile__num {
	position: relative;
	font-family: var(--tf-mono);
	font-size: 11px;
	letter-spacing: .2em;
	color: var(--tf-accent);
}

.tf-tile__title { position: relative; margin: 0; font-size: clamp(1.15rem, 1.5vw, 1.45rem); }

.tf-tile__text {
	position: relative;
	margin: 0;
	max-width: 46ch;
	font-size: .95rem;
	color: var(--tf-muted);
}

.tf-tile__glyph {
	position: absolute;
	top: clamp(24px, 2.6vw, 38px);
	right: clamp(24px, 2.6vw, 38px);
	width: 38px;
	height: 38px;
	color: var(--tf-accent);
	opacity: .55;
	transition: opacity var(--tf-dur) var(--tf-ease), transform 600ms var(--tf-ease-out);
}

.tf-tile:hover .tf-tile__glyph { opacity: 1; transform: rotate(90deg); }

.tf-tile__glyph svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
}

/* -- 09 Recorrido --------------------------------------------------------- */

.tf-flow__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
	gap: clamp(32px, 5vw, 78px);
	align-items: start;
}

.tf-steps { position: relative; padding-left: 0; margin: 0; list-style: none; counter-reset: tfstep; }

.tf-step {
	position: relative;
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	gap: 22px;
	padding: 26px 0;
	border-top: var(--tf-line) solid var(--tf-border);
	counter-increment: tfstep;
	transition: padding-left var(--tf-dur) var(--tf-ease);
}

.tf-step:last-child { border-bottom: var(--tf-line) solid var(--tf-border); }
.tf-step:hover { padding-left: 10px; }

.tf-step__idx {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: var(--tf-line) solid var(--tf-border-2);
	font-family: var(--tf-mono);
	font-size: 13px;
	color: var(--tf-accent);
	transition: border-color var(--tf-dur) var(--tf-ease), background var(--tf-dur) var(--tf-ease);
}

.tf-step__idx::before { content: counter(tfstep, decimal-leading-zero); }
.tf-step:hover .tf-step__idx { border-color: var(--tf-border-hot); background: var(--tf-accent-soft); }

.tf-step__title { margin: 4px 0 6px; font-size: 1.15rem; }
.tf-step__text { margin: 0; color: var(--tf-muted); font-size: .95rem; }

.tf-flow__visual {
	position: relative;
	aspect-ratio: 1 / 1;
	border: var(--tf-line) solid var(--tf-border);
	overflow: hidden;
}

.tf-flow__visual .tf-slot-img,
.tf-flow__visual .tf-slot-empty {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.tf-flow__scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent 0%, var(--tf-accent-soft) 48%, transparent 100%);
	mix-blend-mode: screen;
	animation: tf-scan 6s var(--tf-ease) infinite;
}

@keyframes tf-scan {
	0%, 100% { transform: translateY(-100%); }
	50% { transform: translateY(100%); }
}

/* -- 10 Métricas ---------------------------------------------------------- */

.tf-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--tf-border);
	border: var(--tf-line) solid var(--tf-border);
}

.tf-stat {
	padding: clamp(26px, 3vw, 44px);
	background: var(--tf-bg);
	border-top: 2px solid transparent;
	transition: border-color var(--tf-dur) var(--tf-ease), background var(--tf-dur) var(--tf-ease);
}

.tf-stat:hover { border-top-color: var(--tf-accent); background: var(--tf-panel-2); }

.tf-stat__num {
	display: block;
	font-size: clamp(2.4rem, 4.4vw, 3.6rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -.035em;
	color: var(--tf-text);
}

.tf-stat__num sup { font-size: .42em; top: -.9em; color: var(--tf-accent); }
.tf-stat__label { display: block; margin-top: 14px; font-size: .92rem; color: var(--tf-text-dim); }
.tf-stat__note { display: block; margin-top: 8px; font-size: .8rem; color: var(--tf-muted); }

/* -- 11 Galería en panal -------------------------------------------------- */

.tf-hive {
	--hex: clamp(150px, 15.4vw, 236px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(var(--hex) * -.06);
}

.tf-hive__row {
	display: flex;
	justify-content: center;
	gap: calc(var(--hex) * .08);
	margin-top: calc(var(--hex) * -.26);
}

.tf-hive__row:first-child { margin-top: 0; }

.tf-cell {
	position: relative;
	width: var(--hex);
	height: calc(var(--hex) * 1.1547);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	background: var(--tf-panel-2);
	overflow: hidden;
	cursor: pointer;
	transition: transform 480ms var(--tf-ease-out), filter 480ms var(--tf-ease);
}

.tf-cell img,
.tf-cell .tf-slot-empty {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	transition: transform 900ms var(--tf-ease-out);
}

.tf-cell::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 20, 40, .82), transparent 58%);
	opacity: .85;
	transition: opacity 420ms var(--tf-ease);
}

.tf-cell__label {
	position: absolute;
	inset: auto 0 14%;
	z-index: 2;
	padding-inline: 12%;
	text-align: center;
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #dff0fb;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 320ms var(--tf-ease), transform 420ms var(--tf-ease-out);
}

.tf-cell:hover { transform: scale(1.05); z-index: 3; }
.tf-cell:hover img { transform: scale(1.1); }
.tf-cell:hover::after { opacity: 1; }
.tf-cell:hover .tf-cell__label { opacity: 1; transform: translateY(0); }

.tf-cell__edge {
	position: absolute;
	inset: 0;
	z-index: 2;
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	box-shadow: inset 0 0 0 1px var(--tf-border-2);
	transition: box-shadow 420ms var(--tf-ease);
	pointer-events: none;
}

.tf-cell:hover .tf-cell__edge { box-shadow: inset 0 0 0 2px var(--tf-accent); }

/* Visor */

.tf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: clamp(20px, 5vw, 64px);
	background: color-mix(in srgb, var(--tf-bg) 92%, transparent);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 320ms var(--tf-ease), visibility 320ms;
}

.tf-lightbox.is-open { opacity: 1; visibility: visible; }

.tf-lightbox img {
	max-width: min(1100px, 100%);
	max-height: 82vh;
	object-fit: contain;
	border: var(--tf-line) solid var(--tf-border-2);
	transform: scale(.97);
	transition: transform 420ms var(--tf-ease-out);
}

.tf-lightbox.is-open img { transform: scale(1); }

.tf-lightbox__close {
	position: absolute;
	top: clamp(16px, 3vw, 34px);
	right: clamp(16px, 3vw, 34px);
}

.tf-lightbox__cap {
	position: absolute;
	bottom: clamp(16px, 3vw, 34px);
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--tf-muted);
}

/* -- 12 Plataformas y especificaciones ------------------------------------ */

.tf-plats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--tf-border);
	border: var(--tf-line) solid var(--tf-border);
}

.tf-plat {
	position: relative;
	padding: clamp(28px, 3vw, 44px);
	background: var(--tf-bg);
	transition: background var(--tf-dur) var(--tf-ease);
}

.tf-plat:hover { background: var(--tf-panel-2); }
.tf-plat--live { background: var(--tf-panel-2); box-shadow: inset 0 2px 0 var(--tf-accent); }

.tf-plat__logo {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 26px;
	border: var(--tf-line) solid var(--tf-border);
	color: var(--tf-accent);
}

.tf-plat__logo svg { width: 26px; height: 26px; fill: currentColor; }
.tf-plat__logo img { width: 26px; height: 26px; object-fit: contain; }
.tf-plat h3 { margin-bottom: 10px; }
.tf-plat p { margin: 0; color: var(--tf-muted); font-size: .95rem; }

.tf-plat__tag {
	position: absolute;
	top: clamp(28px, 3vw, 44px);
	right: clamp(28px, 3vw, 44px);
	padding: 5px 10px;
	border: var(--tf-line) solid var(--tf-border-2);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tf-muted);
}

.tf-plat--live .tf-plat__tag { border-color: var(--tf-border-hot); color: var(--tf-accent); }

.tf-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 1px;
	background: var(--tf-border);
	border: var(--tf-line) solid var(--tf-border);
}

.tf-spec {
	display: flex;
	gap: 16px;
	padding: clamp(22px, 2.4vw, 32px);
	background: var(--tf-bg);
	transition: background var(--tf-dur) var(--tf-ease);
}

.tf-spec:hover { background: var(--tf-panel-2); }

.tf-spec__mark {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin-top: 8px;
	border: 1px solid var(--tf-accent);
	transform: rotate(45deg);
}

.tf-spec h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 500; }
.tf-spec p { margin: 0; font-size: .9rem; color: var(--tf-muted); }

/* Showcase de capturas */

.tf-showcase {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: end;
}

.tf-showcase__pane {
	position: relative;
	border: var(--tf-line) solid var(--tf-border);
	background: var(--tf-panel-2);
	overflow: hidden;
	box-shadow: var(--tf-shadow);
}

.tf-showcase__pane img,
.tf-showcase__pane .tf-slot-empty {
	width: 100%;
	border: 0;
	display: block;
}

.tf-showcase__bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 14px;
	border-bottom: var(--tf-line) solid var(--tf-border);
	background: var(--tf-panel-solid);
}

.tf-showcase__bar i {
	width: 8px;
	height: 8px;
	background: var(--tf-border-2);
}

.tf-showcase__bar span {
	margin-left: 10px;
	font-family: var(--tf-mono);
	font-size: 11px;
	color: var(--tf-muted);
}

/* Contacto */

.tf-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1px;
	background: var(--tf-border);
	border: var(--tf-line) solid var(--tf-border);
}

.tf-contact__card {
	display: grid;
	gap: 8px;
	padding: clamp(26px, 3vw, 40px);
	background: var(--tf-bg);
	border-top: 2px solid transparent;
	transition: border-color var(--tf-dur) var(--tf-ease), background var(--tf-dur) var(--tf-ease);
}

.tf-contact__card:hover { border-top-color: var(--tf-accent); background: var(--tf-panel-2); }

.tf-contact__glyph {
	width: 34px;
	height: 34px;
	margin-bottom: 8px;
	color: var(--tf-accent);
}

.tf-contact__glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }

.tf-contact__label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tf-muted);
}

.tf-contact__value {
	font-size: clamp(1.05rem, 1.3vw, 1.3rem);
	font-weight: 300;
	color: var(--tf-text);
	overflow-wrap: anywhere;
}

a.tf-contact__value { border-bottom: 1px solid var(--tf-border-2); transition: border-color var(--tf-dur) var(--tf-ease), color var(--tf-dur) var(--tf-ease); }
a.tf-contact__value:hover { color: var(--tf-accent); border-color: var(--tf-accent); }

/* -- 13 CTA y pie --------------------------------------------------------- */

.tf-cta {
	position: relative;
	z-index: 2;
	overflow: hidden;
	border-top: var(--tf-line) solid var(--tf-border);
}

.tf-cta__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .9;
	mask-image: radial-gradient(70% 90% at 50% 100%, #000, transparent 75%);
	-webkit-mask-image: radial-gradient(70% 90% at 50% 100%, #000, transparent 75%);
}

.tf-cta__inner {
	padding-block: clamp(80px, 11vw, 170px);
	text-align: center;
}

.tf-cta__title {
	margin-bottom: 20px;
	font-size: clamp(2.3rem, 5.4vw, 4.4rem);
	font-weight: 300;
}

.tf-cta__lead {
	max-width: 56ch;
	margin: 0 auto 40px;
	color: var(--tf-muted);
	font-size: clamp(1rem, 1.1vw, 1.15rem);
}

.tf-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.tf-footer {
	position: relative;
	z-index: 2;
	border-top: var(--tf-line) solid var(--tf-border);
	background: var(--tf-bg-2);
}

.tf-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
	padding-block: clamp(48px, 6vw, 84px);
}

.tf-footer__tagline { margin-top: 18px; max-width: 34ch; color: var(--tf-muted); font-size: .92rem; }

.tf-footer h4 {
	margin-bottom: 18px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--tf-accent);
}

.tf-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tf-footer li a { font-size: .92rem; color: var(--tf-muted); transition: color var(--tf-dur) var(--tf-ease); }
.tf-footer li a:hover { color: var(--tf-text); }

.tf-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-block: 22px;
	border-top: var(--tf-line) solid var(--tf-border);
	font-size: .8rem;
	letter-spacing: .06em;
	color: var(--tf-muted);
}

.tf-widget { margin-bottom: 26px; }
.tf-widget__title { margin-bottom: 14px; }

/* -- 14 Contenido y archivos ---------------------------------------------- */

.tf-pagehead {
	position: relative;
	z-index: 2;
	padding-block: clamp(64px, 8vw, 128px) clamp(30px, 4vw, 56px);
	border-bottom: var(--tf-line) solid var(--tf-border);
}

.tf-pagehead__title { margin-bottom: 14px; font-weight: 300; }
.tf-pagehead__lead { max-width: 60ch; color: var(--tf-muted); }

.tf-prose { max-width: 76ch; }
.tf-prose > * + * { margin-top: 1.2em; }
.tf-prose h2 { margin-top: 1.8em; }
.tf-prose h3 { margin-top: 1.5em; }
.tf-prose a { color: var(--tf-accent); border-bottom: 1px solid currentColor; }
.tf-prose ul, .tf-prose ol { padding-left: 1.2em; }
.tf-prose li { margin-bottom: .45em; }
.tf-prose img { border: var(--tf-line) solid var(--tf-border); }

.tf-prose table { width: 100%; border-collapse: collapse; }
.tf-prose th, .tf-prose td { padding: 12px 14px; border: var(--tf-line) solid var(--tf-border); text-align: left; }
.tf-prose th { font-weight: 500; background: var(--tf-panel-2); }

.tf-grid-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1px;
	background: var(--tf-border);
	border: var(--tf-line) solid var(--tf-border);
}

.tf-card { background: var(--tf-bg); transition: background var(--tf-dur) var(--tf-ease); }
.tf-card:hover { background: var(--tf-panel-2); }
.tf-card__link { display: grid; height: 100%; }
.tf-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--tf-ease-out); }
.tf-card:hover .tf-card__media img { transform: scale(1.06); }

.tf-card__ghost {
	display: block;
	width: 100%;
	height: 100%;
	background:
		repeating-linear-gradient(135deg, var(--tf-grid) 0 1px, transparent 1px 12px),
		var(--tf-panel-2);
}

.tf-card__body { display: grid; gap: 10px; padding: clamp(20px, 2vw, 28px); }
.tf-card__date { font-family: var(--tf-mono); font-size: 11px; letter-spacing: .12em; color: var(--tf-accent); }
.tf-card__title { font-size: 1.18rem; line-height: 1.25; }
.tf-card__excerpt { font-size: .9rem; color: var(--tf-muted); }
.tf-card__more { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--tf-text-dim); }

.tf-pagination { margin-top: 48px; }

.tf-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.tf-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: var(--tf-line) solid var(--tf-border);
	font-size: 13px;
	color: var(--tf-muted);
	transition: all var(--tf-dur) var(--tf-ease);
}

.tf-pagination .page-numbers:hover { border-color: var(--tf-border-hot); color: var(--tf-text); }
.tf-pagination .page-numbers.current { background: var(--tf-accent); border-color: var(--tf-accent); color: #04070d; }

.tf-searchform { display: flex; border: var(--tf-line) solid var(--tf-border); }

.tf-searchform input[type="search"] {
	flex: 1;
	min-height: 52px;
	padding: 0 18px;
	background: var(--tf-panel-2);
	border: 0;
}

.tf-searchform input[type="search"]::placeholder { color: var(--tf-muted); }
.tf-searchform button { min-height: 52px; padding: 0 24px; border: 0; background: var(--tf-accent); color: #04070d; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* Navegación entre entradas */

.tf-postnav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 18px;
	font-size: .95rem;
}

.tf-postnav a { color: var(--tf-muted); transition: color var(--tf-dur) var(--tf-ease); }
.tf-postnav a:hover { color: var(--tf-accent); }
.tf-postnav__next { margin-left: auto; text-align: right; }

/* Comentarios */

.tf-comments__title { margin-bottom: 26px; font-size: 1.3rem; font-weight: 400; }
.tf-comments__list { margin: 0 0 42px; padding: 0; list-style: none; }
.tf-comments__list .children { margin: 20px 0 0 26px; padding: 0 0 0 20px; list-style: none; border-left: var(--tf-line) solid var(--tf-border); }

.tf-comments__list li.comment,
.tf-comments__list li.pingback {
	padding: 20px 0;
	border-top: var(--tf-line) solid var(--tf-border);
}

.tf-comments .comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; color: var(--tf-muted); }
.tf-comments .comment-meta img { width: 36px; height: 36px; object-fit: cover; }
.tf-comments .comment-author a,
.tf-comments .comment-metadata a { color: var(--tf-muted); }
.tf-comments .reply { margin-top: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.tf-comments .reply a { color: var(--tf-accent); }

.tf-comments .comment-respond { padding-top: 10px; border-top: var(--tf-line) solid var(--tf-border); }
.tf-comments .comment-reply-title { margin-bottom: 18px; font-size: 1.15rem; font-weight: 400; }
.tf-comments .comment-form label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--tf-muted); }

.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%;
	min-height: 48px;
	padding: 12px 14px;
	background: var(--tf-panel-2);
	border: var(--tf-line) solid var(--tf-border);
}

.tf-comments .comment-form p { margin-bottom: 16px; }

.tf-404 { display: grid; place-items: center; min-height: 66vh; text-align: center; }
.tf-404__code { font-size: clamp(6rem, 22vw, 16rem); font-weight: 300; line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--tf-border-2); }

/* -- 15 Movimiento y responsive ------------------------------------------- */

[data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 760ms var(--tf-ease-out), transform 760ms var(--tf-ease-out);
	transition-delay: var(--tf-delay, 0ms);
}

[data-reveal].is-in { opacity: 1; transform: none; }

[data-tf-motion="off"] [data-reveal] { opacity: 1; transform: none; transition: none; }

[data-tf-motion="off"] .tf-marquee__track,
[data-tf-motion="off"] .tf-hero__orbit,
[data-tf-motion="off"] .tf-hero__chip,
[data-tf-motion="off"] .tf-flow__scan,
[data-tf-motion="off"] #tf-grain,
[data-tf-motion="off"] .tf-hero__scroll i { animation: none; }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.tf-hero__title .tf-line > span { transform: none; }
}

@media (max-width: 1080px) {
	.tf-hero__grid,
	.tf-flow__grid,
	.tf-showcase { grid-template-columns: minmax(0, 1fr); }
	.tf-hero__visual { max-width: 520px; }
	.tf-plats { grid-template-columns: minmax(0, 1fr); }
	.tf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tf-tile,
	.tf-tile--lg { grid-column: span 3; }
	.tf-tile--tall { grid-row: auto; }
	.tf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.tf-nav { display: none; }
	.tf-burger { display: inline-grid; }
	.tf-hive { --hex: min(30vw, 190px); }
}

@media (max-width: 620px) {
	.tf-bento { grid-template-columns: minmax(0, 1fr); }
	.tf-tile,
	.tf-tile--lg { grid-column: span 1; min-height: 240px; }
	.tf-stats { grid-template-columns: minmax(0, 1fr); }
	.tf-hero__metrics { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tf-hero__metric + .tf-hero__metric { padding-left: 0; border-left: 0; border-top: var(--tf-line) solid var(--tf-border); }
	.tf-hero__chip { display: none; }
	.tf-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.tf-hive__row { flex-wrap: wrap; }
}

@media print {
	.tf-header, .tf-footer, .tf-particles, .tf-cta, #tf-grain { display: none !important; }
	body.tf-body { background: #fff; color: #000; }
}