/* ─────────────────────────────────────────────────────────────────
   home.css — Teramot Home V2 (relanzamiento, foco Finanzas / P&CdG).
   Recreación pixel-perfect del handoff "Teramot Home V2": valores
   literales del handoff donde no calzan con los tokens de landing.css
   (radio 22px, sombra de card 11,27,43), reuso de landing.css donde
   sí calzan (--brand-deep, .tm-lang). Prefijo tm-home-* en todo lo
   nuevo para no pisar nada de otras páginas. ───────────────────── */

/* ── Loader ────────────────────────────────────────────────────
   Same markup/timing as teramot.com/control-de-gestion/'s #tlLoader —
   copied verbatim so both pages' loading state feel identical. Lives
   outside #root (plain HTML in index.html) so it paints before
   Babel has parsed/transpiled home.jsx, and is dismissed by index.
   html's own plain <script>, not by React. */
#tlLoader { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: radial-gradient(120% 130% at 50% 18%, #16276E 0%, #0F1B4C 48%, #0A1234 100%); opacity: 1; transition: opacity .55s ease; }
#tlLoader.done { opacity: 0; pointer-events: none; }
#tlLoader .ld-mark { width: 78px; height: auto; display: block; overflow: visible; }
#tlLoader .ld-pill { transform-origin: center; transform-box: fill-box; animation: ldPill 2.4s cubic-bezier(.37,0,.63,1) infinite; }
#tlLoader .ld-node { transform-origin: center; transform-box: fill-box; animation: ldPulse 2.4s cubic-bezier(.37,0,.63,1) .2s infinite; }
#tlLoader .ld-out { transform-origin: center; transform-box: fill-box; animation: ldPulse 2.4s cubic-bezier(.37,0,.63,1) .4s infinite; }
@keyframes ldPulse { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.035); } }
@keyframes ldPill { 0%, 100% { opacity: .6; transform: scaleX(.95); } 50% { opacity: 1; transform: scaleX(1.015); } }
#tlLoader .ld-track { width: 140px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
#tlLoader .ld-track i { display: block; height: 100%; width: 38%; border-radius: 999px; background: linear-gradient(90deg, rgba(90,109,243,0), #5A6DF3, #91DFC8, rgba(145,223,200,0)); animation: ldSweep 1.6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes ldSweep { 0% { transform: translateX(-130%); } 100% { transform: translateX(400%); } }
@media (prefers-reduced-motion: reduce) {
  #tlLoader .ld-pill, #tlLoader .ld-node, #tlLoader .ld-out, #tlLoader .ld-track i { animation: none !important; opacity: 1 !important; transform: none !important; }
}

.tm-home {
  font-family: 'Google Sans Flex', Manrope, Inter, system-ui, sans-serif;
  background: #FAFAF7;
  color: #0B0F14;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.tm-home h1, .tm-home h2, .tm-home h3, .tm-home h4, .tm-home h5 { margin: 0; font-family: inherit; }
.tm-home p { margin: 0; }
.tm-home a { color: #253DE5; text-decoration: none; }
.tm-home a:hover { color: #1D2FB0; }

/* ES/EN toggle crossfade — document.startViewTransition() (home.jsx's
   changeLang) snapshots the page before/after the copy swap and cross-
   fades between them by default; this just tunes the timing so it
   matches the toggle pill's own 380ms slide instead of the browser's
   default ~250ms linear fade. Global selector (view-transition
   pseudo-elements aren't scoped to a page), but inert everywhere else
   since nothing else on the site calls startViewTransition(). */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tmHomeHeroRise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes tmHomeHeroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tmHomeHeroPop { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.94); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .tm-home * { animation: none !important; } }

/* ── Reusable pieces ─────────────────────────────────────────── */

.tm-home-eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #253DE5;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(37, 61, 229, .07);
  border: 1px solid rgba(37, 61, 229, .16);
}
.tm-home-eyebrow-dot { width: 5px; height: 5px; border-radius: 9999px; background: #253DE5; display: block; flex: none; }
.tm-home-text-blue { color: #253DE5; }
.tm-home-text-mint { color: #91DFC8; }

.tm-home-section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.tm-home-section-head h2 { margin-top: 16px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; color: #1C2536; text-wrap: pretty; }
.tm-home-section-head p { margin-top: 14px; font-size: 17px; color: #4b5563; line-height: 1.6; }

.tm-home-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Buttons — scoped equivalents of the white-on-dark / ghost-on-dark pattern
   already used elsewhere on the site (industry.css .tm-ind-btn-white /
   .tm-ind-btn-outline-light), kept local to home.css so this page doesn't
   depend on industry.css. */
.tm-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 240ms cubic-bezier(0.16,1,0.3,1), box-shadow 240ms cubic-bezier(0.16,1,0.3,1), background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}
.tm-home-btn i { transition: transform 240ms cubic-bezier(0.16,1,0.3,1); }
.tm-home-btn:hover { transform: translateY(-1px); }
.tm-home-btn:hover i { transform: translateX(2px); }
.tm-home-btn:hover .ph-play-circle { transform: scale(1.08); }
.tm-home-btn:active { transform: translateY(0); }
.tm-home-btn-md { height: 40px; padding: 0 20px; font-size: 14.5px; }
.tm-home-btn-lg { height: 48px; padding: 0 28px; font-size: 15.5px; }
a.tm-home-btn-white { background: #fff; color: #2F43D6; }
a.tm-home-btn-white:hover { box-shadow: 0 10px 26px rgba(11,27,43,.18); }
a.tm-home-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
a.tm-home-btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.85); }
a.tm-home-btn-blue { background: #253DE5; color: #fff; }
a.tm-home-btn-blue:hover { box-shadow: 0 10px 26px rgba(37,61,229,.28); }
a.tm-home-btn-outline-blue { background: transparent; color: #253DE5; border-color: #253DE5; }
a.tm-home-btn-outline-blue:hover { background: rgba(37,61,229,.06); }
a.tm-home-btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
a.tm-home-btn-outline-white:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
a.tm-home-video-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.tm-home-video-link i { font-size: 22px; transition: transform 240ms cubic-bezier(0.16,1,0.3,1); }
a.tm-home-video-link:hover { color: #fff; }
.tm-home-video-link:hover i { transform: scale(1.08); }

/* ── Hero ────────────────────────────────────────────────────── */

.tm-home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(281deg, #2F43D6 4.97%, #263185 97.32%);
  border-radius: 0 0 75px 44px;
  color: #fff;
}
.tm-home-hero-nav {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.tm-home-hero-nav-logo { display: flex; align-items: center; }
.tm-home-hero-nav-logo img { height: 19px; width: auto; display: block; }
.tm-home-hero-nav-links { display: flex; gap: 14px 32px; align-items: center; flex-wrap: wrap; min-width: 0; }
.tm-home-hero-nav-links a { color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color 200ms ease; }
.tm-home-hero-nav-links a:hover { color: #fff; }
.tm-home-hero-nav-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ES/EN toggle, on-dark — adapted from .tm-lang (landing.css) for the hero's
   dark gradient background; not part of the original design. A sliding
   pill (::before) replaces the old per-button background cross-fade —
   one indicator gliding across reads as smoother than two overlapping
   fades. */
.tm-home-hero-nav-actions .tm-lang {
  position: relative;
  display: inline-flex;
  background: rgba(255,255,255,.1);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}
.tm-home-lang-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11,15,20,.18);
  transition: transform 380ms cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.tm-home-lang-toggle.is-en::before { transform: translateX(100%); }
.tm-home-hero-nav-actions .tm-lang button {
  position: relative;
  z-index: 1;
  border: none;
  background: none;
  height: 24px;
  padding: 0 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: color 260ms ease;
}
.tm-home-hero-nav-actions .tm-lang button[aria-current="true"] { color: #2F43D6; }
@media (prefers-reduced-motion: reduce) {
  .tm-home-lang-toggle::before { transition: none; }
}

/* Mobile hamburger — on-dark variant of landing.css's .tm-nav-hamburger,
   hidden on desktop where the nav links/actions show inline. */
.tm-home-hero-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}
.tm-home-hero-hamburger:hover { background: rgba(255,255,255,.12); }
.tm-home-hero-hamburger span { display: block; height: 2px; border-radius: 2px; background: #fff; }

/* .tm-home a (0,1,1) would otherwise beat landing.css's .tm-btn-primary
   color, same specificity trap as the rest of this file's a./h1-5. rules. */
.tm-drawer .tm-btn-primary { color: #fff; }

.tm-home-hero-content {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  align-items: center;
}
.tm-home-hero-copy { position: relative; z-index: 2; padding-bottom: 72px; max-width: 600px; text-align: left; }
.tm-home-hero-copy h1 {
  animation: tmHomeHeroRise .7s cubic-bezier(0.2,0,0,1) both;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: pretty;
}
.tm-home-hero-copy > p:first-of-type { animation: tmHomeHeroRise .7s cubic-bezier(0.2,0,0,1) .1s both; margin-top: 24px; max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); }
.tm-home-hero-actions { animation: tmHomeHeroRise .7s cubic-bezier(0.2,0,0,1) .2s both; display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
p.tm-home-hero-finePrint { animation: tmHomeHeroFade .8s cubic-bezier(0.2,0,0,1) .45s both; margin-top: 40px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.72); }

.tm-home-hero-art { position: relative; width: 100%; max-width: 500px; aspect-ratio: 500/587; margin-left: auto; margin-right: 0; align-self: end; }
.tm-home-hero-art-glow { animation: tmHomeHeroFade 1s cubic-bezier(0.2,0,0,1) .15s both; transition: transform 220ms cubic-bezier(0.2,0,0,1); position: absolute; left: 6%; top: 0; width: 169.6%; height: 70%; background: rgba(255,255,255,.07); border-radius: 212px; }
.tm-home-hero-art img { transition: transform 220ms cubic-bezier(0.2,0,0,1); position: absolute; display: block; }
.tm-home-hero-art-mockup { animation: tmHomeHeroPop .8s cubic-bezier(0.2,0,0,1) .2s both; left: 0; top: 10.5%; width: 76%; height: auto; z-index: 1; }
.tm-home-hero-art-chart1 { animation: tmHomeHeroPop .7s cubic-bezier(0.2,0,0,1) .5s both; left: 71%; top: 55.2%; width: 22.6%; height: auto; z-index: 1; }
.tm-home-hero-art-girl { animation: tmHomeHeroRise .9s cubic-bezier(0.2,0,0,1) .3s both; left: 2%; top: 23.8%; width: 93.2%; height: auto; z-index: 2; }
.tm-home-hero-art-chart2 { animation: tmHomeHeroPop .7s cubic-bezier(0.2,0,0,1) .6s both; left: 66%; top: 72.4%; width: 32.2%; height: auto; z-index: 3; }

@media (max-width: 1023px) {
  .tm-home-hero-content { padding: 40px 24px 0; gap: 32px; }
  .tm-home-hero-copy { padding-bottom: 48px; }
  .tm-home-hero-nav { padding: 20px 24px; }
  .tm-home-hero-nav-links,
  .tm-home-hero-nav-actions { display: none; }
  .tm-home-hero-hamburger { display: flex; }
}

/* ── Clientes marquee ────────────────────────────────────────── */

.tm-home-clientes { border-bottom: 1px solid #E5E7EB; background: #fff; padding: 44px 0; overflow: hidden; }
p.tm-home-clientes-label { font-size: 11px; color: #9ca3af; text-align: center; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin: 0 0 28px; }
.tm-home-clientes-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.tm-home-marquee { position: relative; width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tm-home-marquee:hover .tm-home-marquee-track { animation-play-state: paused; }
.tm-home-marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; padding-right: 72px; animation: tmHomeLogoMarquee 46s linear infinite; }
@keyframes tmHomeLogoMarquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.tm-home-marquee img { width: auto; max-width: none; object-fit: contain; display: block; flex-shrink: 0; filter: grayscale(1) opacity(.55); transition: filter 260ms cubic-bezier(0.16,1,0.3,1); }
.tm-home-marquee img:hover { filter: grayscale(0) opacity(1); }
@media (prefers-reduced-motion: reduce) { .tm-home-marquee-track { animation: none; } }

/* ── Problema ────────────────────────────────────────────────── */

.tm-home-problema { padding: 96px 0; background: #fff; }
p.tm-home-problema-statement { max-width: 920px; margin: 0 auto; text-align: center; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; font-weight: 400; letter-spacing: -.035em; color: #0B0F14; text-wrap: pretty; }
.tm-home-problema-illo { position: relative; max-width: 720px; width: 100%; aspect-ratio: 720/260; margin: 40px auto 0; border-radius: 16px; overflow: hidden; background: #EEF1FB; }
.tm-home-problema-illo svg { width: 100%; height: 100%; display: block; }

.tm-home-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 48px; }
.tm-home-card {
  background: #FFF;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px 0 rgba(11,27,43,.04), 0 8px 24px 0 rgba(11,27,43,.06);
  transition: box-shadow 250ms cubic-bezier(0.22,1,0.36,1);
}
.tm-home-card:hover { box-shadow: 0 2px 4px 0 rgba(11,27,43,.06), 0 12px 32px 0 rgba(11,27,43,.09); }
.tm-home-card-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(37,61,229,.07); display: flex; align-items: center; justify-content: center; color: #253DE5; margin-bottom: 14px; }
.tm-home-card-icon i { font-size: 20px; }
.tm-home-card h4 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; color: #1C2536; }
.tm-home-card p { font-size: 14.5px; color: #4b5563; line-height: 1.55; }

/* ── Cómo funciona ───────────────────────────────────────────── */

.tm-home-comofunciona { padding: 96px 0; background: #fff; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
.tm-home-step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
@media (min-width: 1024px) {
  .tm-home-step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tm-home-step-shot { border: 1px solid #E5E7EB; border-radius: 8px; background: #F9FAFB; margin-bottom: 18px; aspect-ratio: 16/7; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tm-home-step-shot img { width: auto; height: 150%; max-width: none; display: block; }
.tm-home-step-num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #253DE5; margin-bottom: 10px; }
.tm-home-card h4.tm-home-step-title { font-size: 16px; }

/* ── Integraciones ───────────────────────────────────────────── */

.tm-home-integrations { padding: 96px 0; background: #fff; border-top: 1px solid #E5E7EB; }
.tm-home-integrations-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tm-home-integrations-header { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.tm-home-integrations-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #253DE5; padding: 4px 10px; border-radius: 9999px; background: rgba(37,61,229,.07); border: 1px solid rgba(37,61,229,.16); }
.tm-home-integrations-eyebrow-dot { width: 5px; height: 5px; border-radius: 9999px; background: #253DE5; display: block; }
h2.tm-home-integrations-heading { margin-top: 16px; font-size: clamp(24px,2.6vw,34px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; color: #1C2536; }
p.tm-home-integrations-lede { margin-top: 14px; font-size: 17px; color: #4b5563; line-height: 1.6; }
.tm-home-integrations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 12px; }
.tm-home-integration-card { border: 1px solid #E5E7EB; border-radius: 16px; background: #fff; padding: 20px 16px; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: box-shadow 260ms cubic-bezier(0.16,1,0.3,1), border-color 260ms cubic-bezier(0.16,1,0.3,1); }
.tm-home-integration-card:hover { border-color: #D1D5DB; box-shadow: 0 1px 2px 0 rgba(11,27,43,.04), 0 8px 24px 0 rgba(11,27,43,.06); }
.tm-home-integration-logo { width: auto; max-width: 100%; object-fit: contain; display: block; filter: grayscale(1); transition: filter 260ms cubic-bezier(0.16,1,0.3,1); }
.tm-home-integration-card:hover .tm-home-integration-logo { filter: grayscale(0); }
.tm-home-integration-label { font-size: 11px; color: #9ca3af; letter-spacing: .06em; text-transform: uppercase; }
.tm-home-integrations-cta { text-align: center; margin-top: 32px; }

/* ── Diferenciales ───────────────────────────────────────────── */

.tm-home-diff { padding: 96px 0; background: #2F43D6; color: #fff; position: relative; overflow: hidden; }
.tm-home-diff-container { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tm-home-diff-header { max-width: 800px; margin: 0 auto 48px; text-align: center; }
.tm-home-diff-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #91DFC8; padding: 4px 10px; border-radius: 9999px; background: rgba(145,223,200,.12); border: 1px solid rgba(145,223,200,.24); }
.tm-home-diff-eyebrow-dot { width: 5px; height: 5px; border-radius: 9999px; background: #91DFC8; display: block; }
h2.tm-home-diff-heading { margin-top: 16px; color: #fff; font-size: clamp(24px,2.6vw,34px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; }
p.tm-home-diff-lede { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,.82); line-height: 1.6; }
.tm-home-diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 16px; }
.tm-home-diff-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 26px; transition: background 200ms ease; }
.tm-home-diff-card:hover { background: rgba(255,255,255,.05); }
.tm-home-diff-card-icon { width: 44px; height: 44px; border-radius: 8px; background: rgba(145,223,200,.14); color: #91DFC8; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.tm-home-diff-card-icon-glyph { font-size: 22px; }
.tm-home-diff-card-kicker { font-size: 11px; color: #91DFC8; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
h3.tm-home-diff-card-title { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 10px; line-height: 1.22; }
.tm-home-diff-card-body { color: rgba(255,255,255,.82); font-size: 14.5px; line-height: 1.6; }

/* ── Antes / Después ─────────────────────────────────────────── */

.tm-home-before-after { padding: 96px 0; background: #fff; }
.tm-home-before-after-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tm-home-before-after-header { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.tm-home-before-after-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #253DE5; padding: 4px 10px; border-radius: 9999px; background: rgba(37,61,229,.07); border: 1px solid rgba(37,61,229,.16); }
.tm-home-before-after-eyebrow-dot { width: 5px; height: 5px; border-radius: 9999px; background: #253DE5; display: block; }
h2.tm-home-before-after-heading { margin-top: 16px; font-size: clamp(24px,2.6vw,34px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; color: #1C2536; }
.tm-home-before-after-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
.tm-home-before-after-card { border-radius: 12px; padding: 28px; }
.tm-home-before-after-card--before { background: #F3F4F6; border: 1px solid #E5E7EB; }
.tm-home-before-after-card--after { background: #fff; border: 1px solid rgba(37,61,229,.24); }
h4.tm-home-before-after-card-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.tm-home-before-after-card--before .tm-home-before-after-card-title { color: #6b7280; }
.tm-home-before-after-card--after .tm-home-before-after-card-title { color: #253DE5; }
.tm-home-before-after-list { display: grid; gap: 12px; }
.tm-home-before-after-item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.tm-home-before-after-card--before .tm-home-before-after-item { color: #374151; }
.tm-home-before-after-card--after .tm-home-before-after-item { color: #0B0F14; }
.tm-home-before-after-icon { font-size: 16px; margin-top: 3px; flex-shrink: 0; }
.tm-home-before-after-icon--x { color: #6b7280; }
.tm-home-before-after-icon--check { color: #253DE5; }

/* ── Casos de uso (scroll-pinned) ────────────────────────────── */

.tm-home-casos { position: relative; background: #EFF1FE; height: 400vh; }
.tm-home-casos-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.tm-home-casos-head { text-align: center; }
.tm-home-casos-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #0F6E58; padding: 4px 10px; border-radius: 9999px; background: #E1FFF6; }
h2.tm-home-casos-heading { margin-top: 16px; font-size: clamp(24px,2.6vw,34px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; color: #1C2536; }

.tm-home-casos-pillnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.tm-home-casos-pill {
  appearance: none; cursor: pointer; border: 0; font: inherit;
  font-size: 14.5px; font-weight: 500; padding: 10px 20px; border-radius: 9999px;
  background: transparent; color: #6B739E;
  transition: background 380ms cubic-bezier(0.16,1,0.3,1), color 380ms cubic-bezier(0.16,1,0.3,1), box-shadow 380ms cubic-bezier(0.16,1,0.3,1);
}
.tm-home-casos-pill.is-active { background: #fff; color: #253DE5; font-weight: 600; box-shadow: 0 1px 2px 0 rgba(11,27,43,.06), 0 8px 24px 0 rgba(11,27,43,.06); }

.tm-home-casos-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; margin-top: 56px; }
.tm-home-casos-shot { position: relative; width: 100%; min-width: 0; }
.tm-home-casos-text { max-width: 520px; }
.tm-home-casos-text h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.03em; line-height: 1.22; color: #1C2536; }
.tm-home-casos-text p { margin-top: 14px; font-size: 15.5px; color: #4b5563; line-height: 1.6; }
.tm-home-casos-bullets { display: grid; gap: 10px; margin-top: 22px; }
.tm-home-casos-bullet { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #374151; }
.tm-home-casos-bullet i { color: #7bc1ad; font-size: 17px; margin-top: 1px; flex-shrink: 0; }

.tm-home-casos-dots { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.tm-home-casos-dot { display: block; width: 6px; height: 6px; border-radius: 9999px; background: rgba(37,61,229,.22); transition: width 420ms cubic-bezier(0.16,1,0.3,1), background 420ms cubic-bezier(0.16,1,0.3,1); }
.tm-home-casos-dot.is-active { width: 22px; background: #253DE5; }

/* App-shell mockup shared by all 4 cases */
.tm-home-case-mockup-frame { position: relative; padding: 16px; border-radius: 26px; background: linear-gradient(150deg,#E4E9FB 0%,#F0F2FC 46%,#EAF3F0 100%); }
.tm-home-case-mockup-card { display: flex; border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(37,61,229,.12), 0 2px 6px rgba(11,15,20,.04); overflow: hidden; transition: box-shadow 250ms cubic-bezier(0.22,1,0.36,1); }
.tm-home-case-mockup-card:hover { box-shadow: 0 24px 56px rgba(37,61,229,.18), 0 2px 6px rgba(11,15,20,.05); }
.tm-home-case-mockup-rail { flex-shrink: 0; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 0; background: #FBFCFE; border-right: 1px solid #F1F3F8; }
.tm-home-case-mockup-rail-logo, .tm-home-case-mockup-rail-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9999px; flex-shrink: 0; }
.tm-home-case-mockup-rail-logo { background: #EEF0FE; }
.tm-home-case-mockup-rail-logo img { width: 17px; height: 17px; display: block; }
.tm-home-case-mockup-rail-icon { background: #fff; border: 1px solid #EDEFF5; color: #9199AE; transition: color 180ms ease, border-color 180ms ease; }
.tm-home-case-mockup-rail-icon:hover { color: #253DE5; border-color: #C8CEF8; }
.tm-home-case-mockup-rail-icon i { font-size: 14px; }
.tm-home-case-mockup-rail-avatar { margin-top: auto; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 9999px; background: #253DE5; color: #fff; flex-shrink: 0; font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.tm-home-case-mockup-body-wrap { flex: 1; min-width: 0; padding: 13px 16px 16px; }
.tm-home-case-mockup-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tm-home-case-mockup-version { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 9999px; border: 1px solid #EDEFF5; background: #FBFCFE; font-size: 10.5px; font-weight: 600; color: #5B6478; white-space: nowrap; }
.tm-home-case-mockup-version i:first-child { color: #253DE5; font-size: 12px; }
.tm-home-case-mockup-version i:last-child { font-size: 9px; color: #9199AE; }
.tm-home-case-mockup-title { margin: 0 auto; font-size: 11.5px; font-weight: 600; color: #1C2536; white-space: nowrap; }
.tm-home-case-mockup-action { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9999px; background: #1C2536; color: #fff; font-size: 10.5px; font-weight: 600; white-space: nowrap; transition: background 180ms ease; }
.tm-home-case-mockup-action:hover { background: #253DE5; }
.tm-home-case-mockup-action i { font-size: 11px; }
.tm-home-case-mockup-body { padding: 2px 0 0; }

/* Case 0 — Cierre mensual */
.tm-home-mock-toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #F1F3F8; }
.tm-home-mock-toprow-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9199AE; }
.tm-home-mock-badge { font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 3px 8px; border-radius: 9999px; }
.tm-home-mock-badge-green { background: rgba(123,193,173,.22); color: #2E7A64; }
.tm-home-mock-badge-neutral { background: #F1F3F8; color: #5B6478; }
.tm-home-mock-checklist { display: grid; gap: 2px; padding-top: 6px; }
.tm-home-mock-check-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F5F6FA; }
.tm-home-mock-check-row i { color: #7bc1ad; font-size: 18px; flex-shrink: 0; }
.tm-home-mock-check-row span:nth-child(2) { font-size: 12.5px; color: #5B6478; flex: 1; }
.tm-home-mock-check-row span:nth-child(3) { font-variant-numeric: tabular-nums; font-weight: 700; color: #0B0F14; font-size: 13px; }
.tm-home-mock-total-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; padding-top: 14px; border-top: 1px solid #F1F3F8; }
.tm-home-mock-total-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; color: #0B0F14; font-size: 26px; letter-spacing: -.03em; }

/* Case 1 — Presupuesto & Forecast */
.tm-home-mock-bars { display: grid; gap: 16px; padding-top: 18px; }
.tm-home-mock-bar-row { display: grid; gap: 7px; }
.tm-home-mock-bar-row-head { display: flex; justify-content: space-between; align-items: baseline; }
.tm-home-mock-bar-row-head span:first-child { font-size: 12.5px; color: #5B6478; }
.tm-home-mock-bar-row-head span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; color: #0B0F14; font-size: 14px; }
.tm-home-mock-bar-track { height: 9px; border-radius: 9999px; background: #F1F3F8; overflow: hidden; }
.tm-home-mock-bar-fill { height: 100%; border-radius: 9999px; transform-origin: left; display: block; }
.tm-home-mock-footnote { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding-top: 14px; border-top: 1px solid #F1F3F8; }
.tm-home-mock-footnote i { color: #2E7A64; font-size: 15px; }
.tm-home-mock-footnote span { font-size: 12.5px; color: #5B6478; }
.tm-home-mock-footnote b { color: #2E7A64; }

/* Case 2 — Rentabilidad */
.tm-home-mock-table-head { display: grid; grid-template-columns: 1fr 76px 64px; gap: 12px; padding: 10px 0; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9199AE; }
.tm-home-mock-table-row { display: grid; grid-template-columns: 1fr 76px 64px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #F5F6FA; transition: background 200ms ease; }
.tm-home-mock-table-row:hover { background: #F7F9FC; }
.tm-home-mock-table-row span:nth-child(1) { font-size: 12.5px; color: #5B6478; }
.tm-home-mock-table-row span:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 700; color: #0B0F14; font-size: 13px; text-align: right; }
.tm-home-mock-table-row span:nth-child(3) { text-align: right; }
.tm-home-mock-badge-low { font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 3px 8px; border-radius: 9999px; background: #FBEDE6; color: #9A5B33; }
.tm-home-mock-alert { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid #F1F3F8; }
.tm-home-mock-alert i { color: #9A5B33; font-size: 15px; }
.tm-home-mock-alert span { font-size: 12.5px; color: #5B6478; }

/* Case 3 — Reportes ad-hoc */
.tm-home-mock-queries { display: grid; gap: 10px; padding-top: 16px; }
.tm-home-mock-query { border: 1px solid #F1F3F8; border-radius: 10px; padding: 13px 14px; transition: border-color 200ms ease; }
.tm-home-mock-query:hover { border-color: #D8DEEC; }
.tm-home-mock-query-q { font-size: 12.5px; color: #0B0F14; line-height: 1.45; }
.tm-home-mock-query-meta { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.tm-home-mock-query-value { font-variant-numeric: tabular-nums; font-weight: 700; color: #0B0F14; font-size: 15px; }
.tm-home-mock-query-src { font-size: 10px; font-family: ui-monospace, monospace; padding: 2px 7px; border-radius: 4px; background: #F1F3F8; color: #5B6478; transition: background 200ms ease, color 200ms ease; }
.tm-home-mock-query:hover .tm-home-mock-query-src { background: rgba(123,193,173,.22); color: #2E7A64; font-weight: 700; }
.tm-home-mock-query-who { font-size: 11px; color: #9199AE; margin-left: auto; }

@media (max-width: 1023px) {
  .tm-home-casos { height: auto; min-height: 100vh; }
}

/* ── Prensa ──────────────────────────────────────────────────── */

.tm-home-prensa { padding: 96px 0; background: #EFF1FE; }
.tm-home-prensa-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tm-home-prensa-header { max-width: 760px; margin: 0 auto 48px; text-align: center; }
h2.tm-home-prensa-title { margin-top: 16px; font-size: clamp(24px,2.6vw,34px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; color: #1C2536; }
p.tm-home-prensa-lede { margin-top: 14px; font-size: 17px; color: #4b5563; line-height: 1.6; }
.tm-home-press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; align-items: stretch; }
.tm-home-press-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #FFF; box-shadow: 0 1px 2px 0 rgba(11,27,43,.04), 0 8px 24px 0 rgba(11,27,43,.06); transition: transform 250ms cubic-bezier(0.22,1,0.36,1), box-shadow 250ms cubic-bezier(0.22,1,0.36,1); text-decoration: none; }
.tm-home-press-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11,27,43,.12); }
.tm-home-press-card-image { position: relative; width: 100%; aspect-ratio: 16/10; background: #F3F4F6; overflow: hidden; }
.tm-home-press-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-home-press-card-skeleton { width: 100%; height: 100%; background: linear-gradient(90deg, #F3F4F6 25%, #ECEDF0 37%, #F3F4F6 63%); background-size: 400% 100%; animation: tmHomePressSkeleton 1.6s ease-in-out infinite; }
@keyframes tmHomePressSkeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.tm-home-press-card-nophoto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #9ca3af; letter-spacing: .02em; }
.tm-home-press-card-content { flex: 1; padding: 24px; display: flex; flex-direction: column; }
.tm-home-press-card-source { display: flex; align-items: center; gap: 8px; }
.tm-home-press-card-source-logo { height: 14px; width: auto; max-width: 90px; object-fit: contain; display: block; }
.tm-home-press-card-outlet { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #253DE5; }
h3.tm-home-press-card-headline { margin-top: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.015em; color: #1C2536; line-height: 1.4; text-wrap: pretty; }
.tm-home-press-card-cta { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 12.5px; font-weight: 600; color: #253DE5; }
.tm-home-press-card-cta i { font-size: 13px; }
.tm-home-press-more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.tm-home-press-more { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 9999px; border: 1.5px solid #253DE5; background: transparent; color: #253DE5; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 200ms ease, background-color 200ms ease; }
.tm-home-press-more i { transition: transform 200ms ease; }
.tm-home-press-more:hover { transform: translateY(-1px); background-color: rgba(37,61,229,.07); }
.tm-home-press-more:hover i { transform: translateX(2px); }

/* ── Seguridad ───────────────────────────────────────────────── */

.tm-home-seguridad { padding: 96px 0; background: #fff; }
.tm-home-soc2-diagram { position: relative; max-width: 820px; margin: 0 auto 40px; background: #F7F9FC; border: 1px solid #E6EAF0; border-radius: 22px; padding: 20px 32px; overflow: hidden; }
.tm-home-soc2-inner { position: relative; max-width: 660px; margin: 0 auto; }
.tm-home-soc2-inner svg { display: block; width: 100%; max-width: 660px; height: auto; margin: 0 auto; }
.tm-home-soc2-badge-img { position: absolute; left: 41.2%; top: 35%; width: 17.6%; height: 30%; object-fit: contain; opacity: 0; pointer-events: none; }
.tm-home-soc2-tooltip {
  position: absolute; left: 50%; top: 24px; transform: translate(-50%, 4px); opacity: 0; pointer-events: none;
  background: #fff; border: 1px solid #E6EAF0; border-radius: 8px; box-shadow: 0 8px 24px rgba(11,27,43,.08);
  padding: 7px 12px; font-size: 12px; color: #0B1B2B; white-space: nowrap;
  transition: opacity 200ms cubic-bezier(0.22,1,0.36,1), transform 200ms cubic-bezier(0.22,1,0.36,1);
}

/* ── FAQ ─────────────────────────────────────────────────────── */

.tm-home-faq { padding: 96px 0; background: #fff; border-top: 1px solid #E5E7EB; }
.tm-home-faq-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tm-home-faq-grid { display: grid; grid-template-columns: 400px 1fr; gap: 80px; align-items: start; }
.tm-home-faq-aside { position: sticky; top: 32px; }
h2.tm-home-faq-heading { margin-top: 16px; font-size: clamp(24px,2.2vw,30px); line-height: 1.14; font-weight: 700; letter-spacing: -.035em; color: #1C2536; }
p.tm-home-faq-subcopy { margin-top: 14px; font-size: 15px; color: #4b5563; line-height: 1.6; }
.tm-home-faq-support-card { margin-top: 32px; background: #F7F9FC; border: 1px solid #E6EAF0; border-radius: 14px; padding: 20px; }
.tm-home-faq-support-title { font-size: 13.5px; font-weight: 700; color: #1C2536; }
.tm-home-faq-support-copy { margin-top: 8px; font-size: 13px; color: #6b7280; line-height: 1.6; }
.tm-home-faq-support-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: #253DE5; }
.tm-home-faq-support-link i { font-size: 13px; }
.tm-home-faq-list { display: flex; flex-direction: column; border-top: 1px solid #E6EAF0; }
.tm-home-faq-item { border-bottom: 1px solid #E6EAF0; }
.tm-home-faq-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 4px; cursor: pointer; list-style: none; }
.tm-home-faq-summary::-webkit-details-marker { display: none; }
.tm-home-faq-question { font-size: 17px; font-weight: 500; color: #1C2536; letter-spacing: -.005em; }
.tm-home-faq-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9999px; border: 1px solid #E6EAF0; background: #F7F9FC; color: #4b5563; display: flex; align-items: center; justify-content: center; transition: background 300ms cubic-bezier(0.22,1,0.36,1), border-color 300ms cubic-bezier(0.22,1,0.36,1), color 300ms cubic-bezier(0.22,1,0.36,1); }
.tm-home-faq-icon i { font-size: 14px; transition: transform 300ms cubic-bezier(0.22,1,0.36,1); }
.tm-home-faq-item[open] .tm-home-faq-icon { background: rgba(37,61,229,.08); border-color: #253DE5; color: #253DE5; }
.tm-home-faq-item[open] .tm-home-faq-icon i { transform: rotate(45deg); }
.tm-home-faq-answer { padding: 0 4px 24px; font-size: 16px; color: #334155; line-height: 1.6; max-width: 680px; }
.tm-home-faq-answer b { color: #1C2536; font-weight: 600; }
@media (max-width: 1023px) {
  .tm-home-faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .tm-home-faq-aside { position: static; }
  .tm-home-faq-question { font-size: 15.5px; }
}

/* ── CTA final ───────────────────────────────────────────────── */

.tm-home-cta-final { padding: 96px 0; background: #253DE5; color: #fff; position: relative; overflow: hidden; }
.tm-home-cta-final-container { position: relative; max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; }
.tm-home-cta-final-heading { color: #fff; font-size: clamp(28px,3.1vw,40px); line-height: 1.1; font-weight: 700; letter-spacing: -.04em; text-wrap: pretty; }
p.tm-home-cta-final-copy { color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.6; margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.tm-home-cta-final-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
a.tm-home-cta-final-btn-primary { background: #fff; color: #253DE5; }
a.tm-home-cta-final-btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
a.tm-home-cta-final-btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
p.tm-home-cta-final-fineprint { margin-top: 24px; font-size: 11.5px; letter-spacing: .06em; color: rgba(255,255,255,.68); }

/* ── Footer ──────────────────────────────────────────────────── */

.tm-home-footer { background: #1B2A91; color: rgba(255,255,255,.6); padding: 64px 0 24px; }
.tm-home-footer-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.tm-home-footer-brandrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tm-home-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tm-home-footer-logo { height: 18px; width: auto; display: block; }
p.tm-home-footer-tagline { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; margin: 0; max-width: 340px; }
.tm-home-footer-soc2 { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(145,223,200,.2); border-radius: 8px; padding: 10px 14px; }
.tm-home-footer-soc2-img { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .82; }
.tm-home-footer-map { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; padding: 48px 0 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
h5.tm-home-footer-col-title { color: #91DFC8; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 16px; font-weight: 700; }
.tm-home-footer-col-links { display: grid; gap: 16px; justify-items: start; }
a.tm-home-footer-link { display: inline-flex; align-items: center; gap: 0; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.72); text-decoration: none; transition: color 200ms ease; }
.tm-home-footer-link i { font-size: 12px; opacity: 0; max-width: 0; margin-left: 0; overflow: hidden; transform: translateX(-4px); transition: opacity 200ms ease, max-width 200ms ease, margin-left 200ms ease, transform 200ms ease; }
a.tm-home-footer-link:hover { color: #fff; }
.tm-home-footer-link:hover i { opacity: 1; max-width: 16px; margin-left: 6px; transform: translateX(0); }
.tm-home-footer-bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding-top: 24px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.45); }
a.tm-home-footer-social { justify-self: end; width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: transparent; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.72); transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease; }
.tm-home-footer-social i { font-size: 15px; }
a.tm-home-footer-social:hover { color: #91DFC8; border-color: rgba(145,223,200,.3); background: rgba(145,223,200,.05); }
@media (max-width: 1023px) {
  .tm-home-footer-brandrow { flex-direction: column; gap: 24px; }
  .tm-home-footer-map { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 36px 0; }
  .tm-home-footer-bottom { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
  .tm-home-footer-social { justify-self: start; }
}
@media (max-width: 520px) {
  .tm-home-footer-map { grid-template-columns: 1fr; }
}

/* ── Scroll reveal (idiom compartido con el resto del sitio) ────── */
.tm-home .rv { opacity: 0; transform: translateY(16px); transition: opacity 640ms cubic-bezier(.2,0,0,1), transform 640ms cubic-bezier(.2,0,0,1); }
.tm-home .rv-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .tm-home .rv { opacity: 1; transform: none; } }

/* ── Heading weight ──────────────────────────────────────────────
   H2/H3 render at weight 400, H1 at 600, sitewide on the home page.
   Every per-section heading rule above sets its own font-weight:700
   with a selector at the same specificity tier (single class + tag,
   e.g. h2.tm-home-diff-heading or .tm-home-casos-text h3) as
   .tm-home h# below — so this wins purely by being declared last,
   not by out-specifying them. Keep this block last in the file. */
.tm-home h2,
.tm-home h3 {
  font-weight: 400;
}
.tm-home h1 {
  font-weight: 600;
}
