/* TECNIMAX v2 · Home: secciones de la portada */

/* =========================================================
   TECNIMAX · Home v2
   Paleta y tipografía actuales de la marca (Poppins, navy/azul),
   esquinas rectas en todo y la diagonal del isotipo como recurso.
   ========================================================= */
/* ---------- Base ---------- */
body.tmx-v2-home {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.tmx-home) :where(img, video, svg) { display: block; max-width: 100%; }
:where(.tmx-home) :where(a) { color: inherit; text-decoration: none; }
:where(.tmx-home) :where(a:hover, a:focus) { text-decoration: none; }
:where(.tmx-home) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.tmx-home) :where(h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; }
:where(.tmx-home) :where(ul, ol) { padding: 0; list-style: none; }
:where(.tmx-home) :where(h1, h2, h3) { color: var(--head); font-weight: 600; text-wrap: balance; }
:where(.tmx-home) :where(p) { text-wrap: pretty; }
.tmx-home:focus { outline: none; }
/* =========================================================
   HERO
   ========================================================= */
.tmx-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, calc(100svh - var(--topbar-h) - var(--bar-h)));
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--navy-950); color: #fff;
}
.tmx-hero__media { position: absolute; inset: 0; z-index: -1; }
.tmx-hero__poster, .tmx-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%;
}
.tmx-hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.tmx-hero__video.is-playing { opacity: 1; }
.tmx-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 25, 47, .95) 0%, rgba(6, 25, 47, .84) 30%, rgba(6, 25, 47, .42) 58%, rgba(6, 25, 47, .12) 100%),
    linear-gradient(0deg, rgba(6, 25, 47, .92) 0%, rgba(6, 25, 47, 0) 46%);
}
.tmx-hero__media::after { content: none; display: none; }
.tmx-hero__inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; align-content: center;
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(72px, 9vh, 112px); padding-bottom: clamp(56px, 8vh, 96px);
}
.tmx-hero__kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 15px; font-weight: 500; color: var(--blue-200);
}
.tmx-hero__kicker::before {
  content: ""; width: 12px; height: 18px; background: var(--blue);
  clip-path: polygon(45% 0, 100% 0, 55% 100%, 0 100%);
}
.tmx-v2 .tmx-hero__title {
  max-width: 19ch; color: #fff;
  font-size: clamp(38px, 4.5vw, 70px); line-height: 1.04; letter-spacing: -.034em;
}
.tmx-hero__lead { max-width: 54ch; margin-top: 26px; font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .84); }
.tmx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* Franja inferior a todo el ancho con los tres datos */
.tmx-hero__strip { position: relative; z-index: 1; background: rgba(6, 25, 47, .62); border-top: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tmx-hero__strip::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), transparent 70%); }
.tmx-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tmx-hero__facts > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 24px 28px 26px 0; }
.tmx-hero__facts > div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.tmx-hero__facts dt { white-space: nowrap; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.tmx-hero__facts dd { margin: 0; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.tmx-hero__toggle {
  position: absolute; top: 22px; right: var(--edge); z-index: 2;
  display: grid; place-items: center; width: 42px; height: 42px;
  background: rgba(6, 25, 47, .45); border: 1px solid rgba(255, 255, 255, .4); color: #fff; cursor: pointer;
  transition: background .25s, border-color .25s;
}
.tmx-hero__toggle:hover { background: var(--blue); border-color: var(--blue); }
.tmx-hero__toggle-play { display: none; }
.tmx-hero__toggle[aria-pressed="true"] .tmx-hero__toggle-play { display: block; }
.tmx-hero__toggle[aria-pressed="true"] .tmx-hero__toggle-pause { display: none; }
/* Secuencia de entrada del hero */
.tmx-js .tmx-hero__media { clip-path: polygon(0 0, 0 0, -30% 100%, 0 100%); }
.tmx-js .tmx-hero.is-ready .tmx-hero__media { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); transition: clip-path 1.4s var(--ease-io); }
.tmx-js [data-hero-step] { opacity: 0; transform: translateY(18px); }
.tmx-js .tmx-hero.is-ready [data-hero-step] { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.tmx-js .tmx-hero.is-ready .tmx-hero__kicker { transition-delay: .35s; }
.tmx-js .tmx-hero.is-ready .tmx-hero__lead { transition-delay: .95s; }
.tmx-js .tmx-hero.is-ready .tmx-hero__actions { transition-delay: 1.1s; }
.tmx-js .tmx-hero.is-ready .tmx-hero__strip { transition-delay: 1.3s; }
/* =========================================================
   CLIENTES
   ========================================================= */
.tmx-clients { background: var(--navy-950); color: rgba(255, 255, 255, .62); border-top: 1px solid rgba(255, 255, 255, .08); }
.tmx-clients__inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 40px; padding-block: 30px; }
.tmx-clients__label { font-size: 14px; line-height: 1.45; }
.tmx-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tmx-marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; }
.tmx-marquee.is-running .tmx-marquee__track { animation: tmx-marquee var(--marquee-dur, 48s) linear infinite; }
.tmx-marquee:hover .tmx-marquee__track { animation-play-state: paused; }
.tmx-marquee__track img { height: 36px; width: auto; max-width: none; opacity: .85; transition: opacity .3s; }
.tmx-marquee__track img:hover { opacity: 1; }
@keyframes tmx-marquee { to { transform: translateX(calc(-50% - 32px)); } }
/* =========================================================
   SECCIONES · comunes
   ========================================================= */
.tmx-sec { padding-block: var(--sec); }
.tmx-sec--paper { background: var(--paper); }
.tmx-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.tmx-head--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: clamp(24px, 5vw, 80px); max-width: none; }
.tmx-v2 .tmx-head h2, .tmx-v2 .tmx-why h2, .tmx-v2 .tmx-sectors h2, .tmx-v2 .tmx-faq h2, .tmx-v2 .tmx-quote h2 {
  font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -.03em;
}
.tmx-head p, .tmx-head__aside p { font-size: 17px; color: var(--muted); max-width: 46ch; }
.tmx-head__aside { display: grid; gap: 24px; justify-items: start; }
.tmx-head--light h2, .tmx-v2 .tmx-head--light h2 { color: #fff; }
.tmx-head--light p { color: rgba(255, 255, 255, .74); }
/* =========================================================
   SOLUCIONES · bento
   ========================================================= */
.tmx-bento {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(300px, 27vw, 400px));
}
.tmx-tile { position: relative; overflow: hidden; display: flex; align-items: flex-end; background: var(--navy-950); color: #fff; }
.tmx-tile--tall { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.tmx-tile--wide { grid-column: 3 / span 2; }
.tmx-tile__media { position: absolute; inset: 0; overflow: hidden; }
.tmx-tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 25, 47, 0) 18%, rgba(6, 25, 47, .55) 52%, rgba(6, 25, 47, .94) 100%); }
.tmx-tile__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.tmx-tile--tall .tmx-tile__img { object-position: 60% 30%; }
.tmx-tile__body { position: relative; z-index: 1; padding: clamp(22px, 2.4vw, 36px); }
.tmx-v2 .tmx-tile h3 { color: #fff; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.25; letter-spacing: -.015em; max-width: 22ch; }
.tmx-v2 .tmx-tile--tall h3 { font-size: clamp(24px, 2.3vw, 34px); max-width: 18ch; }
.tmx-tile p { margin-top: 10px; max-width: 46ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.tmx-tile__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14.5px; font-weight: 600; }
.tmx-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tmx-tile::before {
  /* esquina cortada de marca */
  content: ""; position: absolute; top: 0; right: 0; z-index: 1; width: 76px; height: 76px;
  background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform: scale(0); transform-origin: 100% 0; transition: transform .5s var(--ease);
}
.tmx-tile:hover::before, .tmx-tile:focus-within::before { transform: scale(1); }
.tmx-tile:hover .tmx-tile__img, .tmx-tile:focus-within .tmx-tile__img { transform: scale(1.08); }
.tmx-tile__link:focus-visible { outline: none; }
.tmx-tile:has(.tmx-tile__link:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
/* =========================================================
   POR QUÉ TECNIMAX
   ========================================================= */
.tmx-why__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(40px, 6vw, 104px); }
.tmx-why__visual { position: relative; padding: 0 16% 18% 0; }
.tmx-why__visual::before {
  content: ""; position: absolute; top: -20px; left: -20px; width: 58%; height: 62%;
  border: 1px solid var(--blue); pointer-events: none;
}
.tmx-why__main, .tmx-why__second { position: relative; overflow: hidden; background: var(--paper); }
.tmx-why__main { aspect-ratio: 4 / 3; }
.tmx-why__second { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; border: 8px solid #fff; }
.tmx-why__img { width: 100%; height: 100%; object-fit: cover; }
.tmx-why__main .tmx-why__img { object-position: 50% 30%; }
/* Dato de trayectoria: tipográfico, sin tarjeta, en el hueco bajo la foto */
.tmx-why__badge {
  position: absolute; left: 0; bottom: 0; width: calc(52% - 28px);
  display: flex; align-items: flex-end; gap: 18px; margin: 0;
  background: none; color: var(--ink); border-radius: 0 !important;
}
.tmx-why__badge strong {
  flex: none; font-size: clamp(44px, 4.4vw, 68px); line-height: .9; font-weight: 600; letter-spacing: -.045em;
  color: var(--ink);
}
.tmx-why__badge strong::after { content: ""; display: block; width: 100%; height: 3px; margin-top: 10px; background: var(--blue); border-radius: 3px; }
.tmx-why__badge span { max-width: 21ch; padding-left: 18px; border-left: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.tmx-why__lead { margin-top: 22px; font-size: 17.5px; color: var(--muted); max-width: 52ch; }
.tmx-why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; margin: 40px 0 44px; }
.tmx-why__list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; }
.tmx-why__ico {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); color: var(--blue);
  transition: background .35s, color .35s, border-color .35s;
}
.tmx-why__list li:hover .tmx-why__ico { background: var(--blue); border-color: var(--blue); color: #fff; }
.tmx-v2 .tmx-why__list h3 { font-size: 17px; line-height: 1.35; }
.tmx-why__list p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
/* =========================================================
   PROCESO
   ========================================================= */
.tmx-process { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: #fff; }
.tmx-process__bg { position: absolute; inset: 0; z-index: -1; }
.tmx-process__bgimg { width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: grayscale(.3); }
.tmx-process__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 25, 47, .92), rgba(6, 25, 47, .78) 50%, rgba(6, 25, 47, .96)); }
.tmx-steps { --progress: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.tmx-steps::before, .tmx-steps::after { content: ""; position: absolute; left: 0; top: 22px; height: 2px; }
.tmx-steps::before { right: 0; background: rgba(255, 255, 255, .16); }
.tmx-steps::after { width: calc(var(--progress) * 100%); background: var(--blue); transition: width .2s linear; }
.tmx-step { position: relative; padding-top: 76px; }
.tmx-step__n {
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--navy-950); border: 1px solid rgba(255, 255, 255, .3);
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8);
  transition: background .45s var(--ease), border-color .45s, color .45s, transform .45s var(--ease);
}
.tmx-step.is-on .tmx-step__n { background: var(--blue); border-color: var(--blue); color: #fff; }
.tmx-v2 .tmx-step h3 { color: #fff; font-size: 20px; line-height: 1.3; }
.tmx-step p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.tmx-step h3, .tmx-step p { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tmx-js .tmx-step:not(.is-on) h3, .tmx-js .tmx-step:not(.is-on) p { opacity: .4; }
.tmx-process__cta { margin-top: clamp(48px, 5vw, 72px); }
/* =========================================================
   SECTORES
   ========================================================= */
.tmx-sectors__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
.tmx-sectors__side > p { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 44ch; }
.tmx-sectors__tabs { display: grid; margin-top: 36px; border-top: 1px solid var(--line); }
.tmx-sectors__tab {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 18px 4px; background: none; border: 0; border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--muted); text-align: left; cursor: pointer;
  transition: color .3s, padding .4s var(--ease);
}
.tmx-sectors__tab::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 4px; background: var(--blue);
  transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease);
}
.tmx-sectors__tab:hover { color: var(--head); }
.tmx-sectors__tab[aria-selected="true"] { color: var(--head); font-weight: 600; padding-left: 22px; }
.tmx-sectors__tab[aria-selected="true"]::before { transform: scaleY(1); }
.tmx-sectors__tab:focus-visible { outline-offset: -3px; }
.tmx-sectors__stage { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--navy-950); }
.tmx-sectors__panel { position: absolute; inset: 0; }
.tmx-sectors__panel[hidden] { display: none; }
.tmx-sectors__panel.is-active { z-index: 2; }
.tmx-sectors__panel.is-leaving { z-index: 1; display: block; }
.tmx-sectors__media { position: absolute; inset: 0; overflow: hidden; }
.tmx-sectors__img { width: 100%; height: 100%; object-fit: cover; }
.tmx-sectors__caption {
  position: absolute; left: 0; bottom: 0; z-index: 1; max-width: min(430px, 82%);
  padding: 22px 26px 24px; background: #fff; border-top: 4px solid var(--blue);
}
.tmx-v2 .tmx-sectors__caption h3 { font-size: 21px; letter-spacing: -.02em; }
.tmx-sectors__caption p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.tmx-sectors__caption ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tmx-sectors__caption li { padding: 5px 10px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--navy-800); }
/* transición de imagen entre sectores */
.tmx-sectors__panel.is-entering { animation: tmx-wipe .9s var(--ease-io) both; }
.tmx-sectors__panel.is-entering .tmx-sectors__img { animation: tmx-settle 1.4s var(--ease) both; }
.tmx-sectors__panel.is-entering .tmx-sectors__caption { animation: tmx-rise .8s .35s var(--ease) both; }
@keyframes tmx-wipe { from { clip-path: polygon(100% 0, 130% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(-30% 0, 130% 0, 100% 100%, -30% 100%); } }
@keyframes tmx-settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes tmx-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* =========================================================
   TIENDA (markup de tecnimax_home_shop_product_card)
   ========================================================= */
.tmx-shop__cats { display: flex; align-items: center; gap: 12px 20px; margin-bottom: 28px; }
.tmx-shop__cats-label { flex: none; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tmx-shop__chips { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; gap: 8px; }
.tmx-shop__chips.is-measuring { overflow: hidden; }
.tmx-shop__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; transition: opacity .3s; }
.home-shop-showcase.is-loading .tmx-shop__grid { opacity: .4; pointer-events: none; }
.tmx-v2 .home-shop-product-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease);
  animation: tmx-rise .6s var(--ease) both;
}
.tmx-v2 .home-shop-product-card:nth-child(2) { animation-delay: .06s; }
.tmx-v2 .home-shop-product-card:nth-child(3) { animation-delay: .12s; }
.tmx-v2 .home-shop-product-card:nth-child(4) { animation-delay: .18s; }
.tmx-v2 .home-shop-product-card:hover { border-color: var(--navy-800); transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(6, 25, 47, .55); }
.tmx-v2 .home-shop-product-card__image { display: block; aspect-ratio: 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.tmx-v2 .home-shop-product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .8s var(--ease); }
.tmx-v2 .home-shop-product-card:hover .home-shop-product-card__image img { transform: scale(1.06); }
.tmx-v2 .home-shop-product-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.tmx-v2 .home-shop-product-card__cat { font-size: 13px; font-weight: 600; color: var(--blue-700); }
.tmx-v2 .home-shop-product-card h3 { margin-top: 6px; font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tmx-v2 .home-shop-product-card h3 a:hover { color: var(--blue-700); }
.tmx-v2 .home-shop-product-card__meta { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.tmx-v2 .home-shop-product-card__meta span { display: inline-flex; align-items: center; gap: 8px; }
.tmx-v2 .home-shop-product-card__meta span::before { content: ""; width: 7px; height: 7px; background: #1fa463; }
.tmx-v2 .home-shop-product-card__detail {
  display: inline-flex; align-items: center; justify-content: center; margin-top: auto; padding-top: 18px;
  font-size: 14.5px; font-weight: 600; color: var(--navy-800);
}
.tmx-v2 .home-shop-product-card__detail::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; margin-left: 10px; transition: transform .4s var(--ease); }
.tmx-v2 .home-shop-product-card__detail { justify-content: flex-start; }
.tmx-v2 .home-shop-product-card:hover .home-shop-product-card__detail::after { transform: translate(3px, -3px); }
.tmx-v2 .home-shop-empty { grid-column: 1 / -1; display: grid; gap: 6px; padding: 40px; background: #fff; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.tmx-v2 .home-shop-empty strong { color: var(--head); }
/* =========================================================
   BLOG
   ========================================================= */
.tmx-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tmx-post { position: relative; display: flex; flex-direction: column; background: #fff; border-bottom: 3px solid transparent; transition: border-color .35s; }
.tmx-post:hover, .tmx-post:focus-within { border-color: var(--blue); }
.tmx-post__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-950); isolation: isolate; }
.tmx-post__bg {
  /* fondo: la misma foto difuminada, para que la imagen se vea completa sin recortes */
  position: absolute; inset: -24px; z-index: -1;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: blur(22px) saturate(1.1) brightness(.8);
  transition: transform 1.2s var(--ease);
}
.tmx-post:hover .tmx-post__bg { transform: scale(1.08); }
.tmx-v2 .tmx-post__img { position: relative; width: 100%; height: 100%; object-fit: contain; transform: none !important; }
.tmx-post__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.tmx-post time { font-size: 13.5px; font-weight: 500; color: var(--blue-700); }
.tmx-v2 .tmx-post h3 { margin-top: 10px; font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.tmx-post h3 a::after { content: ""; position: absolute; inset: 0; }
.tmx-post h3 a:focus-visible { outline: none; }
.tmx-post:has(h3 a:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.tmx-post p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.tmx-post__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--navy-800); }
/* =========================================================
   FAQ
   ========================================================= */
.tmx-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.tmx-faq__side { position: sticky; top: calc(var(--bar-h) + 32px); display: grid; gap: 22px; justify-items: start; }
.tmx-faq__side p { font-size: 17px; color: var(--muted); max-width: 40ch; }
.tmx-faq__list { border-top: 1px solid var(--line); }
.tmx-faq__item { border-bottom: 1px solid var(--line); }
.tmx-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
}
.tmx-faq__item summary::-webkit-details-marker { display: none; }
.tmx-v2 .tmx-faq__item h3 { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.4; transition: color .25s; }
.tmx-faq__item summary:hover h3 { color: var(--blue-700); }
.tmx-faq__item summary:focus-visible { outline-offset: 4px; }
.tmx-faq__icon { position: relative; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.tmx-faq__icon::before, .tmx-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--navy-800); transition: transform .4s var(--ease), background .3s; }
.tmx-faq__icon::after { transform: rotate(90deg); }
.tmx-faq__item[open] .tmx-faq__icon { background: var(--navy-900); border-color: var(--navy-900); }
.tmx-faq__item[open] .tmx-faq__icon::before, .tmx-faq__item[open] .tmx-faq__icon::after { background: #fff; }
.tmx-faq__item[open] .tmx-faq__icon::after { transform: rotate(0); }
.tmx-faq__answer { overflow: hidden; }
.tmx-faq__answer p { padding: 0 60px 26px 0; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 66ch; }
/* =========================================================
   COTIZACIÓN
   ========================================================= */
.tmx-quote { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--sec); background: var(--navy-900); color: #fff; }
.tmx-quote__bg { position: absolute; inset: 0; z-index: -1; }
.tmx-quote__bgimg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; opacity: .22; }
.tmx-quote__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 25, 47, .97) 0%, rgba(6, 25, 47, .9) 45%, rgba(12, 47, 90, .7) 100%); }
.tmx-quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 6vw, 104px); align-items: center; }
.tmx-v2 .tmx-quote h2 { color: #fff; max-width: 22ch; }
.tmx-quote__copy > p { margin-top: 22px; font-size: 17.5px; color: rgba(255, 255, 255, .8); max-width: 50ch; }
.tmx-quote__list { display: grid; gap: 14px; margin-top: 32px; }
.tmx-quote__list li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.tmx-quote__direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.tmx-quote__direct a {
  display: flex; align-items: center; gap: 14px; min-width: 240px; padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .22); transition: border-color .3s, background .3s;
}
.tmx-quote__direct a:hover { border-color: var(--blue); background: rgba(46, 134, 255, .12); }
.tmx-quote__direct svg { width: 22px; height: 22px; color: var(--blue-200); }
.tmx-quote__direct span { display: grid; font-size: 16px; font-weight: 600; line-height: 1.35; }
.tmx-quote__direct small { font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .62); }
.tmx-form { display: grid; gap: 18px; padding: clamp(26px, 3vw, 44px); background: #fff; color: var(--text); border-top: 4px solid var(--blue); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.tmx-v2 .tmx-form__title { font-size: 22px; letter-spacing: -.02em; }
.tmx-form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tmx-field { display: grid; gap: 7px; }
.tmx-field label { font-size: 13.5px; font-weight: 500; color: var(--head); }
.tmx-field label span { font-weight: 400; color: var(--muted); }
.tmx-field input, .tmx-field select {
  width: 100%; height: 52px; padding: 0 16px;
  background: #f8fafd; border: 1px solid #c9d3e1; color: var(--head); font-size: 15.5px;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.tmx-field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173b6c' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.tmx-field input::placeholder { color: #8a98ab; }
.tmx-field input:hover, .tmx-field select:hover { border-color: #9fb0c6; }
.tmx-field input:focus, .tmx-field select:focus { outline: none; background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 134, 255, .2); }
.tmx-field input:user-invalid, .tmx-field select:user-invalid { border-color: #d64545; }
.tmx-form__submit { width: 100%; margin-top: 4px; min-height: 56px; }
.tmx-form__submit:disabled { opacity: .7; cursor: progress; }
.tmx-form__msg { font-size: 14.5px; padding: 12px 14px; }
.tmx-form__msg--err { background: #fdecec; color: #a12727; }
.tmx-form__msg--ok { background: #e7f6ee; color: #146c3f; }
.tmx-form__note { font-size: 13px; color: var(--muted); }
.tmx-form__note a { color: var(--blue-700); font-weight: 600; }
.tmx-form__note a:hover { color: var(--blue-700); }
/* =========================================================
   REVELADO AL HACER SCROLL
   (solo con JS activo; sin JS o con movimiento reducido, todo visible)
   ========================================================= */
.tmx-js [data-reveal]:not([data-reveal="mask"]) { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.tmx-js [data-reveal].is-in:not([data-reveal="mask"]) { opacity: 1; transform: none; }
.tmx-js [data-reveal="mask"] { clip-path: polygon(0 0, 0 0, -30% 100%, 0 100%); transition: clip-path 1.25s var(--ease-io); transition-delay: var(--d, 0ms); }
.tmx-js [data-reveal="mask"].is-in { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); }
.tmx-js [data-reveal="mask"] img { transform: scale(1.16); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0ms); }
.tmx-js [data-reveal="mask"].is-in img { transform: scale(1.02); }
.tmx-js .tmx-tile[data-reveal="mask"].is-in:hover .tmx-tile__img { transform: scale(1.08); transition-duration: 1.4s; transition-delay: 0s; }
.tmx-js .tmx-why__second[data-reveal="mask"] { clip-path: polygon(100% 0, 100% 0, 100% 100%, 130% 100%); }
.tmx-js .tmx-why__second[data-reveal="mask"].is-in { clip-path: polygon(-30% 0, 100% 0, 100% 100%, 0 100%); }
.tmx-js .tmx-form[data-reveal="mask"] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io); }
.tmx-js .tmx-form[data-reveal="mask"].is-in { clip-path: inset(-40px -40px -80px -40px); }
.tmx-js .tmx-post[data-reveal="mask"]:nth-child(2) { --d: 120ms; }
.tmx-js .tmx-post[data-reveal="mask"]:nth-child(3) { --d: 240ms; }
.tmx-js .tmx-bento .tmx-tile:nth-child(2) { --d: 120ms; }
.tmx-js .tmx-bento .tmx-tile:nth-child(3) { --d: 220ms; }
.tmx-js .tmx-bento .tmx-tile:nth-child(4) { --d: 320ms; }
.tmx-js .tmx-why__list li:nth-child(2) { --d: 90ms; }
.tmx-js .tmx-why__list li:nth-child(3) { --d: 180ms; }
.tmx-js .tmx-why__list li:nth-child(4) { --d: 270ms; }
.tmx-js .tmx-faq__item:nth-child(n) { --d: calc(60ms * var(--i, 0)); }
/* Títulos: palabras que suben desde una máscara */
.tmx-js .tmx-hero__title:not(.tmx-split) { visibility: hidden; }
.tmx-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.tmx-split .wi { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 55ms + var(--d, 0ms)); }
.tmx-split.is-in .wi, .tmx-hero.is-ready .tmx-split .wi { transform: none; }
.tmx-hero .tmx-split .wi { transition-delay: calc(var(--wi) * 60ms + 450ms); transition-duration: 1.1s; }
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .tmx-hero__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .tmx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(280px, 42vw, 380px); }
  .tmx-tile--tall { grid-column: 1 / -1; grid-row: auto; }
  .tmx-tile--wide { grid-column: 1 / -1; }
  .tmx-why__grid, .tmx-sectors__grid, .tmx-faq__grid, .tmx-quote__grid { grid-template-columns: minmax(0, 1fr); }
  .tmx-why__visual { max-width: 720px; }
  .tmx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .tmx-steps::before, .tmx-steps::after { display: none; }
  .tmx-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmx-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmx-blog__grid .tmx-post:nth-child(3) { display: none; }
  .tmx-faq__side { position: static; }
  .tmx-quote__grid { gap: 48px; }
}
@media (max-width: 820px) {
  .tmx-hero { min-height: calc(100svh - var(--bar-h)); }
  .tmx-hero__poster, .tmx-hero__video { object-position: 66% 50%; }
  .tmx-hero__shade { background: linear-gradient(0deg, rgba(6, 25, 47, .97) 0%, rgba(6, 25, 47, .86) 48%, rgba(6, 25, 47, .35) 100%); }
  .tmx-hero__media::after { display: none; }
  .tmx-hero__inner { padding-top: 84px; padding-bottom: 40px; gap: 28px; }
  .tmx-hero__toggle { top: 16px; right: var(--gut); }
  .tmx-hero__facts > div, .tmx-hero__facts > div + div { display: block; padding: 16px 10px 18px; }
  .tmx-hero__facts > div:first-child { padding-left: 0; }
  .tmx-hero__facts dt { font-size: 15.5px; white-space: normal; }
  .tmx-hero__facts dd { margin-top: 4px; font-size: 12.5px; }
  .tmx-clients__inner { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 26px; }
  .tmx-clients__label { font-size: 13.5px; }
  .tmx-marquee__track { gap: 44px; }
  .tmx-marquee__track img { height: 30px; }
  .tmx-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tmx-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tmx-tile, .tmx-tile--tall, .tmx-tile--wide { grid-column: auto; min-height: 380px; }
  .tmx-tile--tall { min-height: 460px; }
  .tmx-tile::before { width: 56px; height: 56px; }
  .tmx-why__visual { padding: 0 10% 16% 0; }
  .tmx-why__visual::before { top: -12px; left: -12px; }
  .tmx-why__visual { margin-bottom: 92px; }
  .tmx-why__badge { top: calc(100% + 28px); bottom: auto; width: 100%; align-items: center; }
  .tmx-why__badge strong { font-size: 48px; }
  .tmx-why__badge span { max-width: 26ch; font-size: 14px; }
  .tmx-why__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tmx-steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 0; }
  .tmx-steps::before, .tmx-steps::after { display: block; left: 22px; top: 0; width: 2px; height: auto; bottom: 0; }
  .tmx-steps::before { right: auto; }
  .tmx-steps::after { height: calc(var(--progress) * 100%); bottom: auto; }
  .tmx-step { padding: 0 0 36px 72px; }
  .tmx-step:last-child { padding-bottom: 0; }
  .tmx-sectors__tabs { margin-top: 28px; }
  .tmx-sectors__tab { padding: 14px 4px; font-size: 17px; }
  .tmx-sectors__tab[aria-selected="true"] { padding-left: 18px; }
  .tmx-sectors__stage { aspect-ratio: auto; background: transparent; overflow: visible; display: grid; }
  .tmx-sectors__panel { position: relative; inset: auto; grid-area: 1 / 1; }
  .tmx-sectors__panel.is-leaving { display: none; }
  .tmx-sectors__media { position: relative; aspect-ratio: 4 / 3; }
  .tmx-sectors__caption { position: relative; max-width: none; padding: 22px 20px 24px; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
  .tmx-shop__cats { flex-direction: column; align-items: stretch; gap: 10px; }
  .tmx-shop__chips { gap: 6px; }
  .tmx-chip { min-height: 40px; padding: 0 12px; font-size: 13.5px; }
  .tmx-shop__grid { gap: 10px; }
  .tmx-v2 .home-shop-product-card__body { padding: 14px 14px 16px; }
  .tmx-v2 .home-shop-product-card h3 { font-size: 14.5px; }
  .tmx-v2 .home-shop-product-card__image img { padding: 14px; }
  .tmx-blog__grid { grid-template-columns: minmax(0, 1fr); }
  .tmx-blog__grid .tmx-post:nth-child(3) { display: flex; }
  .tmx-faq__answer p { padding-right: 0; }
  .tmx-form__row { grid-template-columns: minmax(0, 1fr); }
  .tmx-quote__direct a { flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 420px) {
  .tmx-hero__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
  .tmx-v2 .tmx-hero__title { font-size: clamp(34px, 10vw, 42px); }
}


/* Sectores: la tarjeta va DEBAJO de la foto (nunca encima de las personas) */
.tmx-sectors__text { position: relative; min-width: 0; }
.tmx-sectors__count { position: absolute; top: 2px; right: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--blue-700); }
.tmx-sectors__count small { font-size: 13px; font-weight: 500; color: #a3afbf; }
.tmx-v2 .tmx-sectors__caption h3 { padding-right: 64px; }
.tmx-sectors__caption ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.tmx-sectors__caption li {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px;
  border: 0; border-radius: 10px; background: var(--paper); font-size: 13.5px; line-height: 1.3; font-weight: 500; color: var(--navy-800);
}
.tmx-sectors__caption li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5 10 16.5 18 8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tmx-sectors__panel.is-entering .tmx-sectors__caption li { animation: tmx-rise .7s var(--ease) both; }
.tmx-sectors__panel.is-entering .tmx-sectors__caption li:nth-child(1) { animation-delay: .45s; }
.tmx-sectors__panel.is-entering .tmx-sectors__caption li:nth-child(2) { animation-delay: .55s; }
.tmx-sectors__panel.is-entering .tmx-sectors__caption li:nth-child(3) { animation-delay: .65s; }
@media (min-width: 821px) {
  .tmx-sectors__stage { aspect-ratio: auto; display: grid; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .tmx-sectors__panel { position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; background: #fff; }
  .tmx-sectors__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .tmx-sectors__caption { position: relative; left: auto; bottom: auto; max-width: none; flex: 1; border-radius: 0; padding: 24px 28px 26px; }
}
@media (max-width: 560px) {
  .tmx-sectors__caption ul { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tmx-sectors__caption li { min-height: 44px; }
}
