/**
 * tf-header.css — header en código, UNA SOLA FILA.
 *
 * Zonas con prioridad de encogimiento explícita (el ancho del nav lo decide
 * el editor del menú, no nosotros):
 *   logo     flex 0 0 auto   — nunca encoge
 *   nav      flex 1 1 auto   — absorbe
 *   buscador flex 0 1 …      — el primero en ceder, y colapsa a icono
 *   iconos   flex 0 0 auto   — nunca encogen (mínimo táctil 44px)
 *
 * FRONTERA ANTI-TEMA: Astra y el Elementor Kit 882 inyectan hover morado y
 * `border: 2px solid #1f1f1f` en todo button/a nuevo. Verificar SIEMPRE con
 * getComputedStyle, nunca a ojo — es la trampa recurrente del proyecto.
 */

.tf-header {
	--tf-h-bg: #000;
	--tf-h-ink: #fff;
	--tf-h-muted: #b9b4ab;
	--tf-h-gold: #c9a54a;
	--tf-h-line: rgba(255, 255, 255, .14);
	--tf-h-bar: 72px;
	--tf-h-promo: 36px;
	/* r9: header STICKY. Se pega arriba al hacer scroll; la franja
	   promocional se sigue escondiendo al bajar, asi que en scroll solo queda
	   la fila util. */
	position: sticky;
	top: 0;
	z-index: 9000;
	background: var(--tf-h-bg);
	color: var(--tf-h-ink);
	font-family: Montserrat, Arial, sans-serif;
}

/* PASO 3 DEL RETIRO (2026-07-20) — aqui vivia la regla que ocultaba el header
   de Elementor por CSS:

       body.tf-header-active header.elementor-location-header { display:none!important }

   Se elimina porque ya NO hace falta: Elementor dejo de tomar la ubicacion
   header (opcion tf_elementor_hf_retirado). Ocultar por CSS significaba que el
   header viejo se seguia descargando y renderizando, solo que invisible.
   Medido tras el retiro: .elementor-location-header = 0.

   ROLLBACK, si hubiera que volver al header viejo: son DOS operaciones, y en
   este orden importa poco pero las dos son necesarias --
       tf_elementor_hf_retirado = '0'   (Elementor vuelve a pintar 2852)
       tf_header_global         = '0'   (se apaga el header en codigo)
   Con solo la primera se verian LOS DOS headers, porque esta regla ya no esta.
*/

/* ——— Franja promocional (se conserva por decisión del usuario) ——— */
.tf-header__promo { height: var(--tf-h-promo); overflow: hidden; background: #6a5a86; }
.tf-header__marquee { display: flex; width: max-content; height: 100%; animation: tf-h-marquee 38s linear infinite; }
.tf-header__marquee-run { display: flex; align-items: center; height: 100%; }
.tf-header__promo-item { padding: 0 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tf-header__promo-sep { color: var(--tf-h-gold); font-size: 9px; }
@keyframes tf-h-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.tf-header__marquee { animation: none; }
	.tf-header__promo { overflow-x: auto; }
}

/* ——— La fila ——— */
.tf-header__bar { height: var(--tf-h-bar); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tf-header__wrap {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.6vw, 22px);
	width: min(100% - 72px, 1400px);
	height: 100%;
	margin-inline: auto;
}

.tf-header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.tf-header__logo img { display: block; width: auto; height: 44px; object-fit: contain; }
.tf-header__logo-text { font-size: 20px; font-weight: 900; letter-spacing: .12em; }

.tf-header__burger { display: none; flex: 0 0 auto; width: 44px; height: 44px; }
.tf-header__burger-box { display: grid; gap: 4px; width: 20px; margin-inline: auto; }
.tf-header__burger-box i { display: block; height: 2px; background: currentColor; border-radius: 2px; }

/* NAV — flex:1 para que absorba, min-width:0 para que pueda reportar overflow */
/* r5: con flex:1 el nav absorbia todo el sobrante y lo empujaba contra el
   buscador, dejando el logo pegado a las categorias. Con margin-left:auto
   el sobrante se va ENTRE el logo y el nav, que es lo pedido. */
.tf-header__nav { flex: 0 1 auto; min-width: 0; }
@media (min-width: 1024px) {
  .tf-header__nav { margin-left: auto; }
  .tf-header__actions { margin-left: 4px; }
}
.tf-header__nav-list {
	display: flex; align-items: center; gap: clamp(10px, 1.4vw, 24px);
	margin: 0; padding: 0; list-style: none; overflow: hidden;
}
.tf-header__nav-item { position: static; }
.tf-header__nav-link {
	display: inline-block; padding: 8px 0;
	color: var(--tf-h-ink); font-size: clamp(12.5px, 1vw, 14px); font-weight: 600;
	text-decoration: none; white-space: nowrap; /* nowrap en el ENLACE, no en el contenedor */
	position: relative;
}
.tf-header__nav-link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
	background: var(--tf-h-gold); transform: scaleX(0); transform-origin: left;
	transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
.tf-header__nav-item:hover > .tf-header__nav-link::after,
.tf-header__nav-link:focus-visible::after { transform: scaleX(1); }

/* BUSCADOR — el primero en ceder */
/* r2: mas chico (antes 280px) — el usuario pidio que no ocupe tanto. */
.tf-header__search { flex: 0 1 clamp(0px, 15vw, 196px); min-width: 0; position: relative; }
.tf-header__search-form { position: relative; display: flex; align-items: center; }
/* r2: la lupa interna se sobreponia al placeholder. En escritorio se
   oculta: con la barra visible ya se entiende que es una busqueda. */
.tf-header__search-icon { display: none; }
/* r3: tampoco en movil — se sobreponia al placeholder igual que en
   escritorio. El campo con su borde ya comunica que es una busqueda. */
.tf-header__search-input {
	width: 100%; height: 38px; padding: 0 14px;
	font: inherit; font-size: 12.5px;
}

.tf-header__results {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
	max-height: 60vh; overflow-y: auto; padding: 6px;
	background: #101010; border: 1px solid var(--tf-h-line); border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.tf-header__results a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: var(--tf-h-ink); text-decoration: none; font-size: 13px; }
.tf-header__results a:hover, .tf-header__results a:focus-visible { background: rgba(255, 255, 255, .07); }
.tf-header__results img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.tf-header__results .tf-h-empty { padding: 12px; color: var(--tf-h-muted); font-size: 13px; }

/* ICONOS — nunca encogen */
.tf-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.tf-header__icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	position: relative; width: 44px; height: 44px; color: var(--tf-h-ink);
}
.tf-header__icon-btn svg { width: 21px; height: 21px; }
.tf-header__icon-btn:hover, .tf-header__icon-btn:focus-visible { color: var(--tf-h-gold); }
[data-tf-search-toggle] { display: none; }
/* r5: el badge se veia apretado. Mas caja, menos peso tipografico. */
.tf-header__cart-count {
	position: absolute; top: 2px; right: -1px; min-width: 20px; height: 20px; padding: 0 6px;
	display: grid; place-items: center; border-radius: 999px;
	background: var(--tf-h-gold); color: #111;
	font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: -.01em;
}

/* ——— MEGA (escritorio) ——— */
.tf-header__mega {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 15;
	background: #0b0b0b; border-top: 1px solid var(--tf-h-line);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	opacity: 0; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s cubic-bezier(.16, 1, .3, 1);
}
.tf-header__mega.is-open { opacity: 1; transform: none; }
.tf-header__mega-inner {
	display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 48px);
	width: min(100% - 72px, 1400px); margin-inline: auto; padding: 26px 0 30px;
}
.tf-header__mega-links ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 9px; }
/* r4: subcategorias al MISMO tamano que las categorias del nav. */
.tf-header__mega-links a { color: var(--tf-h-muted); font-size: clamp(12.5px, 1vw, 14px); font-weight: 600; text-decoration: none; }
.tf-header__mega-links a:hover, .tf-header__mega-links a:focus-visible { color: var(--tf-h-ink); }
.tf-header__mega-all { color: var(--tf-h-gold); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
/* r5: 30% mas chicas manteniendo 3/4 (medido 334px -> 234px). */
.tf-header__mega-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 234px));
  justify-content: start; align-content: start; gap: 14px; }

.tf-header__card { display: block; position: relative; color: var(--tf-h-ink); text-decoration: none; }
/* r7: Astra pinta el hover de los <a> en morado y sobre la foto el titulo
   desaparecia. Se fija blanco en TODOS los estados. */
.tf-header .tf-header__card,
.tf-header .tf-header__card:hover,
.tf-header .tf-header__card:focus,
.tf-header .tf-header__card:focus-visible,
.tf-header .tf-header__card:active,
.tf-header .tf-header__card:visited,
.tf-header .tf-header__card:hover .tf-header__card-title,
.tf-header .tf-header__card:hover .tf-header__root-title,
.tf-header .tf-header__card-title,
.tf-header .tf-header__root-title { color: #fff !important; }
/* r5: en escritorio el titulo va SOBREPUESTO sobre la foto, no debajo. */
@media (min-width: 1024px) {
  .tf-header__mega-cards .tf-header__card-title {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
    padding: 26px 10px 9px; text-align: right;
    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0));
    border-radius: 0 0 10px 10px;
  }
}
.tf-header__card-media { display: block; overflow: hidden; border-radius: 10px; background: #1a1a1a; /* r2: verticales, no cuadradas (pedido del usuario). */
	aspect-ratio: 3 / 4; }
.tf-header__card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.tf-header__card:hover .tf-header__card-media img { transform: scale(1.05); }
.tf-header__card-title { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; }

.tf-header__scrim { position: fixed; inset: var(--tf-h-total, 108px) 0 0; z-index: 10; background: rgba(0, 0, 0, .45); border: 0; }

/* ——— Colapso del buscador a icono (1024–1139) ——— */
@media (max-width: 1139px) {
	.tf-header[data-tf-search-state="icon"] .tf-header__search,
	.tf-header:not([data-tf-search-state="open"]) .tf-header__search { display: none; }
	[data-tf-search-toggle] { display: inline-flex; }
	.tf-header[data-tf-search-state="open"] .tf-header__search {
		display: block; position: absolute; left: 16px; right: 16px; z-index: 30;
		flex: none;
	}
	.tf-header[data-tf-search-state="open"] .tf-header__nav { opacity: 0; pointer-events: none; }
}
/* El guardia de overflow puede forzar el colapso en cualquier ancho. */
.tf-header[data-tf-search="icon"] .tf-header__search { display: none; }
.tf-header[data-tf-search="icon"] [data-tf-search-toggle] { display: inline-flex; }

/* ——— MÓVIL ——— */
@media (max-width: 1023px) {
	.tf-header__burger { display: inline-flex; align-items: center; justify-content: center; }
	.tf-header__nav { display: none; }
	.tf-header__search { display: none; }
	[data-tf-search-toggle] { display: inline-flex; }
	/* r3: flex:1 + justify-center NO centra respecto al viewport, porque la
	   caja del logo queda descentrada entre la hamburguesa (44px) y los dos
	   iconos (~88px). Se centra respecto a la fila con posicionamiento. */
	.tf-header__wrap { position: relative; }
	.tf-header__logo {
		position: absolute; left: 50%; transform: translateX(-50%);
		flex: 0 0 auto; pointer-events: auto;
	}
	.tf-header__logo img { height: 38px; }
	.tf-header__actions { margin-left: auto; }
	.tf-header[data-tf-search-state="open"] .tf-header__search {
		display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
		padding: 10px 16px; background: var(--tf-h-bg); border-bottom: 1px solid var(--tf-h-line);
	}
}

/* r4: el drawer arranca en la ALTURA DE LA HAMBURGUESA, no debajo de todo
   el header. Su propia cabecera (volver / MENU / cerrar) queda a la misma
   altura que el icono que lo abrio. Antes usaba --tf-h-total (promo+fila)
   y el menu aparecia un bloque mas abajo. */
.tf-header__drawer {
	overscroll-behavior: contain;
	position: fixed; top: var(--tf-h-promo-real, 36px); right: 0; bottom: 0; left: 0; z-index: 9500;
	display: flex; flex-direction: column;
	background: var(--tf-h-bg);
	visibility: hidden; opacity: 0; transform: translateX(-100%);
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s ease, visibility 0s linear .3s;
}
.tf-header__drawer.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
/* r7: sin texto "Menú" y la X anclada a la DERECHA. La flecha de volver
   solo aparece dentro de una categoria (la portada no la muestra). */
.tf-header__drawer-head {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 52px; padding: 4px 10px; border-bottom: 1px solid var(--tf-h-line);
}
.tf-header__drawer-close { margin-left: auto; }
.tf-header__drawer-title { text-align: center; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tf-header__drawer-back, .tf-header__drawer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--tf-h-ink); }
/* r5 FIX: `display: inline-flex` ANULABA el atributo [hidden] — por eso la
   flecha de volver aparecia en la portada del menu sin hacer nada. La
   regla de [hidden] tiene que ganar SIEMPRE. */
.tf-header [hidden] { display: none !important; }
.tf-header__drawer-back svg, .tf-header__drawer-close svg { width: 21px; height: 21px; }

.tf-header__screens { position: relative; flex: 1 1 auto; overflow: hidden; }
.tf-header__screen {
	position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
	padding: 10px 16px 28px;
	transform: translateX(100%); transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.tf-header__screen.is-active { transform: none; }
.tf-header__m-list { margin: 0; padding: 0; list-style: none; }
/* r3: las filas CON submenu son <button> y las que no, <a>. El tema les
   aplicaba text-transform y tipografia distintos, y en el menu se veian dos
   fuentes mezcladas. Se igualan explicitamente, con !important porque es
   frontera contra el tema. */
.tf-header__m-row,
.tf-header .tf-header__m-row {
	display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; min-height: 64px; padding: 5px 2px;
	color: var(--tf-h-ink) !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: left; text-decoration: none;
	border-bottom: 1px solid var(--tf-h-line) !important;
}
.tf-header__m-row svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--tf-h-muted); }
.tf-header__m-all { display: block; margin-top: 16px; color: var(--tf-h-gold); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
/* r3: las 3 tarjetas se ven A LA VEZ (antes carril con scroll de 1.5) y van
   DEBAJO de las subcategorias — el orden lo da el markup. */
.tf-header__m-cards {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px; margin: 18px 0 4px;
}
.tf-header__m-cards .tf-header__card-title { font-size: 11px; line-height: 1.25; }
.tf-header__drawer-foot { margin-top: 22px; display: grid; gap: 10px; }
.tf-header__drawer-account, .tf-header__drawer-shop { color: var(--tf-h-muted); font-size: 14px; text-decoration: none; }

body.tf-header-locked { overflow: hidden; }

/* ═══ FRONTERA ANTI-TEMA ═══════════════════════════════════════════════ */
.tf-header a, .tf-header a:hover, .tf-header a:focus, .tf-header a:visited { text-decoration: none; box-shadow: none !important; }
.tf-header a::before, .tf-header a::after,
.tf-header button::before, .tf-header button::after { background: transparent !important; }
.tf-header .tf-header__nav-link::after { background: var(--tf-h-gold) !important; content: "" !important; }
.tf-header button {
	margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; color: inherit !important;
	box-shadow: none !important; outline: none; cursor: pointer; font: inherit;
}
/* r5 FIX: el `min-height: 0 !important` que neutralizaba a Astra tambien
   aplastaba las filas del menu movil, que son <button>. Medido: 37px de alto
   con min-height computado en 0. Se acota a los botones que NO son filas. */
.tf-header button:not(.tf-header__m-row) { min-height: 0 !important; }
.tf-header .tf-header__m-row { min-height: 64px !important; }
.tf-header .tf-header__icon-btn:focus-visible,
.tf-header .tf-header__burger:focus-visible { outline: 2px solid var(--tf-h-gold); outline-offset: -3px; }
.tf-header .tf-header__cart-count { background: var(--tf-h-gold) !important; color: #111 !important; }
/* r2: el blanco puro tomaba demasiado protagonismo sobre el header negro.
   Pasa a translucido con texto blanco. Se fija el fondo TAMBIEN en :focus y
   :hover con !important: en el footer aprendimos que el entorno puede forzar
   un fondo blanco al enfocar y dejar texto blanco sobre blanco. */
.tf-header input[type="search"], .tf-header .tf-header__search-input,
.tf-header input[type="search"]:focus, .tf-header input[type="search"]:hover,
.tf-header input[type="search"]:active {
	background: rgba(255, 255, 255, .11) !important;
	background-color: rgba(255, 255, 255, .11) !important;
	color: #fff !important; -webkit-text-fill-color: #fff !important;
	caret-color: #fff !important;
	border: 1px solid rgba(255, 255, 255, .18) !important; border-radius: 999px !important;
	box-shadow: none !important; outline: none;
}
.tf-header input::placeholder { color: rgba(255, 255, 255, .55) !important; -webkit-text-fill-color: rgba(255, 255, 255, .55) !important; opacity: 1; }
.tf-header input[type="search"]:focus {
	background: rgba(255, 255, 255, .16) !important;
	border-color: rgba(201, 165, 74, .65) !important;
}
.tf-header input:-webkit-autofill, .tf-header input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px #111 inset !important;
}
.tf-header input[type="search"]::-webkit-search-cancel-button { filter: invert(.4); }

.tf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ——— Bloques de la portada del menú móvil (máx 2, horizontales) ———
   Se pintan solo si hay contenido cargado en TitanFit → Menú del header. */
.tf-header__root-cards {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px; margin: 4px 0 18px;
}
.tf-header__root-card {
	display: block; color: var(--tf-h-ink); text-decoration: none;
	border: 1px solid var(--tf-h-line); border-radius: 10px; overflow: hidden;
}
/* r5: el titulo va DENTRO de la foto, abajo a la derecha, y la foto se
   estira hasta donde termina el titulo: ya no hay franja de texto aparte. */
.tf-header__root-card { position: relative; }
.tf-header__root-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1a1a; }
.tf-header__root-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tf-header__root-title {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
	padding: 22px 9px 7px; text-align: right;
	font-size: 12px; font-weight: 800; line-height: 1.2;
	background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.tf-header__root-text { display: block; padding: 6px 9px 8px; color: var(--tf-h-muted); font-size: 11.5px; line-height: 1.3; }
/* Sin imagen la tarjeta es solo editorial: el titulo vuelve al flujo. */
.tf-header__root-card:not(:has(.tf-header__root-media)) .tf-header__root-title {
	position: static; padding: 12px 10px 0; text-align: left; background: none;
}

@media (prefers-reduced-motion: reduce) {
	.tf-header__promo { transition: none; }
}

/* La barra de admin de WordPress es fixed: sin esto el header sticky se le
   mete por debajo cuando hay sesion iniciada. */
/* r10: el offset ya no se hardcodea: lo mide el JS y lo publica en
   --tf-h-offset. Con el valor fijo de 32px quedaba un hueco con el fondo
   de la pagina asomando cuando la barra de admin no estaba. */

/* r9 FIX: la X quedaba a la IZQUIERDA. Con `space-between` y un solo hijo en
   flujo (el titulo es sr-only y la flecha va oculta en la portada), el unico
   boton se alineaba al inicio. Se ancla al final de forma explicita. */
.tf-header__drawer-head { justify-content: flex-end; }
.tf-header__drawer-back { margin-right: auto; }
.tf-header__drawer-close { margin-left: 0; }

/* ═══ HEADER TRANSPARENTE SOBRE EL HERO — escritorio (2026-07-20) ═══════════
   PROBLEMA MEDIDO: el header ocupa 108px en flujo (36 de franja promocional +
   72 de fila) y EMPUJA el hero hacia abajo. Con un hero de 581px en un
   viewport de 675px, eso se come el 18% de la composicion — justo la parte
   alta, donde esta la cara del modelo.

   Sospecha del origen: al suprimir el shell de Astra se quito
   `Astra_Ext_Transparent_Header_Markup::transparent_header_logo`. El diseno
   anterior muy probablemente pintaba el header TRANSPARENTE encima del hero,
   sin robarle altura.

   SOLUCION: el hero sube 108px con margen negativo y el header flota encima
   con fondo transparente. Al pasar el hero, el header recupera su fondo negro
   solido para que el menu siga siendo legible sobre el contenido.

   Solo escritorio: en movil el hero es mas corto y el header mas bajo, y
   superponer ahi complica la legibilidad sin ganar casi nada.

   Se anima SOLO `background-color`, que es compositable. Nunca la altura. */
@media (min-width: 1024px) {
	/* Sube SOLO lo que mide la fila del nav (--tf-h-alto lo calcula el JS
	   midiendo .tf-header__bar). La franja promocional es opaca y se queda en
	   flujo: si el hero pasara por debajo de ella, esos pixeles se perderian. */
	body.tf-hero-overlay .tf-home__hero {
		margin-top: calc(var(--tf-h-alto, 72px) * -1);
	}

	body.tf-hero-overlay .tf-header {
		background-color: transparent;
		transition: background-color .25s ease;
	}

	/* Velo superior: sin el, el texto del menu compite con un fotograma claro
	   del video. Es un degradado, no un bloque: no se percibe como barra. */
	body.tf-hero-overlay .tf-header::before {
		content: '';
		position: absolute;
		inset: 0 0 auto 0;
		height: 100%;
		background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .14) 72%, transparent);
		pointer-events: none;
		z-index: -1;
		transition: opacity .25s ease;
	}

	/* Pasado el hero: fondo solido, se apaga el velo. */
	body.tf-hero-overlay .tf-header.is-stuck {
		background-color: var(--tf-h-bg, #000);
	}
	body.tf-hero-overlay .tf-header.is-stuck::before { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	body.tf-hero-overlay .tf-header,
	body.tf-hero-overlay .tf-header::before { transition: none; }
}

/* ==========================================================================
   Breadcrumb visible — movimiento 0.5b
   Va aqui y no en un asset propio: es un elemento sitewide contiguo al header,
   este CSS ya se encola en todas las paginas, y un archivo nuevo seria una
   peticion HTTP mas por ~1 KB en un sitio cuyo TTFB p75 es el 74% del LCP movil.
   El markup lo produce includes/breadcrumbs.php del plugin titanfit-core.
   ========================================================================== */

.tf-breadcrumb {
	max-width: var(--tf-h-max, 1280px);
	margin: 0 auto;
	padding: 12px 20px 0;
	font-size: 13px;
	line-height: 1.4;
}

.tf-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-breadcrumb__item {
	margin: 0;
	padding: 0;
	min-width: 0;
}

/* Rank Math emite <a> y <span> sueltos cuando no reconoce nuestros wrappers:
   se estilan por elemento y no por clase para cubrir las dos formas. */
.tf-breadcrumb a {
	color: #6b6b6b;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}

.tf-breadcrumb a:hover,
.tf-breadcrumb a:focus-visible {
	color: #111;
	border-bottom-color: currentColor;
}

/* El ultimo eslabon es la pagina actual: no es un enlace y no debe parecerlo. */
.tf-breadcrumb [aria-current="page"],
.tf-breadcrumb__item:last-child {
	color: #111;
	font-weight: 500;
}

.tf-breadcrumb__sep,
.tf-breadcrumb .separator {
	color: #b8b8b8;
	user-select: none;
}

/* Movil: una sola linea con scroll tactil. Scrollbar OCULTA, nunca visible
   (AGENTS.md): el gesto tactil si, la barra no. */
@media (max-width: 767px) {
	.tf-breadcrumb {
		padding: 10px 16px 0;
		font-size: 12px;
	}

	.tf-breadcrumb__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		-webkit-overflow-scrolling: touch;
	}

	.tf-breadcrumb__list::-webkit-scrollbar { display: none; }

	.tf-breadcrumb__item {
		white-space: nowrap;
		flex: 0 0 auto;
	}
}
