
:root{
  --font-sans:'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head:'Avenir Next','Avenir','Segoe UI Variable','Segoe UI','Inter',ui-sans-serif,system-ui,-apple-system,Roboto,Arial,sans-serif;
  --font-serif:'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --ink:#0f172a;
  --muted:#475569;
  --paper:#ffffff;
  --paper-2:#e7edf5;
  --paper-3:#dce6f2;
  --line:#e2e8f0;
  --navy:#0b1b2b;
  --navy-2:#102a43;
  --accent:#1e3a5f;
  --shadow: 0 18px 36px rgba(2,8,23,.10);
  --radius: 18px;
  --max: 1140px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1,h2,h3{font-family:var(--font-head); letter-spacing:-0.015em; line-height:1.08; margin:0 0 14px}
h1{font-weight:600; font-size:clamp(2.4rem, 4.6vw, 4.2rem)}
h2{font-weight:600; font-size:clamp(1.8rem, 3.2vw, 2.6rem)}
h3{font-family:var(--font-sans); font-weight:760; letter-spacing:-0.01em; font-size:1.18rem; line-height:1.25; margin:0 0 10px}
p{margin:0 0 14px}
.kicker{font-family:var(--font-sans); font-weight:800; letter-spacing:.18em; text-transform:uppercase; font-size:.78rem; color:rgba(191,219,254,.95)}
.lede{font-size:1.12rem; line-height:1.6; color:rgba(226,232,240,.92)}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.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}
.skip-link{
  position:absolute; left:-999px; top:10px; background:var(--paper); padding:10px 12px; border:1px solid var(--line); border-radius:10px; z-index:9999;
}
.skip-link:focus{left:10px}

.site-header{
  position:fixed; top:0; left:0; right:0; z-index:50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.75);
}

/* Fixed header offset for all internal pages */
body{ padding-top:96px; }
body.is-home{ padding-top:0; }
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; height:96px; padding:0}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand img{height:88px; width:auto}
.brand .tag{display:flex; flex-direction:column; line-height:1.05}
.brand .name{font-weight:850; letter-spacing:.08em}
.brand .sub{font-size:.78rem; color:var(--muted); letter-spacing:.18em; text-transform:uppercase; margin-top:4px}

.site-nav{display:flex; align-items:center; gap:6px}
.site-nav a{
  font-size:.95rem; text-decoration:none; color:var(--ink);
  padding:10px 12px; border-radius:12px;
}
.site-nav a:hover{background:rgba(226,232,240,.55)}
.site-nav a[aria-current="page"]{background:rgba(30,58,95,.10); color:var(--accent); font-weight:750}

.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:12px;
  width:44px;height:44px;
}
.burger{display:block; width:18px; height:2px; background:var(--ink); margin:0 auto; position:relative}
.burger:before,.burger:after{content:""; position:absolute; left:0; width:18px; height:2px; background:var(--ink)}
.burger:before{top:-6px}
.burger:after{top:6px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid var(--line);
  text-decoration:none;
  font-weight:750;
  gap:10px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:focus-visible{outline:3px solid rgba(96,165,250,.55); outline-offset:3px}
.btn:hover{transform: translateY(-1px); box-shadow: 0 10px 22px rgba(2,8,23,.10)}
.btn-primary{background:var(--ink); color:#fff; border-color:transparent}
.btn-primary:hover{filter:brightness(1.05); box-shadow: 0 14px 30px rgba(2,8,23,.18)}
.btn-ghost{background:transparent}
.btn-ghost:hover{background:rgba(226,232,240,.55)}

.hero{
  position:relative;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.10);
  overflow:hidden;
}

.hero::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(1200px 520px at 20% 10%, rgba(96,165,250,.18), transparent 55%),
              radial-gradient(900px 420px at 80% 30%, rgba(147,197,253,.12), transparent 60%);
  pointer-events:none;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(1400px 700px at 50% 40%, transparent 35%, rgba(2,8,23,.55) 100%);
  pointer-events:none;
  mix-blend-mode:multiply;
}
.hero .bg{
  position:absolute; inset:0;
  background-image:
    linear-gradient(120deg, rgba(11,27,43,.50), rgba(11,27,43,.30)),
    url("/assets/img/hero/transmission-hero.jpg");
  background-color: #0b1b2b;
  background-size: cover;
  background-position: center;
}
.hero .container{position:relative; min-height:86vh; display:flex; flex-direction:column; justify-content:center; padding:148px 20px 72px}
.eyebrow{margin:0 0 10px; color:rgba(191,219,254,.95); font-weight:750; letter-spacing:.18em; text-transform:uppercase; font-size:.8rem}
.hero h1{margin:0 0 12px; font-size: clamp(2.05rem, 3.6vw, 3.35rem); letter-spacing:-.02em}
.hero .lead{margin:0 0 18px; color:rgba(226,232,240,.92); font-size:1.08rem; max-width:70ch}
.hero .cta-row{display:flex; gap:12px; flex-wrap:wrap; margin:20px 0 0}
.hero .btn{border-color: rgba(255,255,255,.22)}
.hero .btn-ghost{color:#fff}
.hero .btn-ghost:hover{background:rgba(255,255,255,.08)}
.hero .proof{
  margin-top:26px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.16);
}
.hero .proof dt{font-size:.78rem; color:rgba(226,232,240,.75); letter-spacing:.08em; text-transform:uppercase}
.hero .proof dd{margin:4px 0 0; font-weight:850}

.section{padding:84px 0}
.section-alt{background:linear-gradient(180deg, var(--paper-2), var(--paper)); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section-head{margin-bottom:20px}
.section-head h2{margin:0 0 6px; font-size:1.95rem; letter-spacing:-.02em}
.section-head p{margin:0; color:var(--muted); max-width:82ch}

.grid-3{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px}
.grid-2{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px}

.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 22px rgba(2,8,23,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{transform:translateY(-4px); box-shadow: var(--shadow)}
.card h3{margin:0 0 8px}
.card p{margin:0; color:var(--muted)}
.small{font-size:.92rem}
.muted{color:var(--muted)}

.pills{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.pill{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
  color:var(--ink);
  font-weight:700;
  font-size:.92rem;
}

.split{display:grid; grid-template-columns: 1.15fr .85fr; gap:16px; align-items:start}
.quote{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 22px rgba(2,8,23,.06);
}
.quote p{margin:0 0 8px}
.quote footer{color:var(--muted)}

.clients{
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap:14px;
  align-items:center;
}
.client{
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.8);
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:76px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.client img{max-height:46px; width:auto; opacity:.82; filter: grayscale(100%) saturate(.9) contrast(1.05); transition: opacity .18s ease, filter .18s ease, transform .18s ease}
.client:hover{transform: translateY(-2px) scale(1.01); background: rgba(255,255,255,.96); border-color: rgba(15,23,42,.18); box-shadow: 0 14px 28px rgba(2,8,23,.12)}
.client:hover img{opacity:1; filter: grayscale(0%) saturate(1.06) contrast(1.05); transform: scale(1.03)}

.people{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px}
.person{background:var(--paper); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden}
.person img{width:100%; height:auto}
.person .body{padding:16px}
.person h3{margin:0 0 4px}
.person .role{margin:0 0 10px; color:var(--muted); font-weight:650}

.map-wrap{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:14px;
  align-items:start;
}
.map{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: 0 10px 22px rgba(2,8,23,.06);
}
.map svg{width:100%; height:auto}
.map .bg{fill:#fff; stroke: var(--line); stroke-width:2}
.map .land{fill: rgba(16,42,67,.10); stroke: rgba(16,42,67,.18); stroke-width:2}
.map .pin{fill: rgba(30,58,95,1); opacity:.92}

.list{margin:0; padding-left:18px}
.list li{margin:6px 0}

.form{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 22px rgba(2,8,23,.06);
}
label{display:block; font-weight:750; font-size:.95rem}
input,select,textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background:#fff;
  font:inherit;
}
textarea{resize:vertical}
.field-row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.form button{width:100%; margin-top:10px}

.site-footer{
  background: var(--navy);
  color:#fff;
  padding: 26px 0;
}
.footer-inner{display:flex; gap:18px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap}
.footer-links{display:flex; gap:12px; flex-wrap:wrap}
.footer-links a{color:rgba(255,255,255,.86); text-decoration:none; padding:6px 8px; border-radius:10px}
.footer-links a:hover{background:rgba(255,255,255,.08)}

[data-reveal]{opacity:0; transform: translateY(18px); filter: blur(2px); will-change: opacity, transform, filter; transition: opacity .72s cubic-bezier(.2,.8,.2,1), transform .72s cubic-bezier(.2,.8,.2,1), filter .72s cubic-bezier(.2,.8,.2,1)}
.revealed{opacity:1; transform:none; filter:none}

@media (max-width: 980px){
  .hero .proof{grid-template-columns: repeat(2, minmax(0,1fr))}
  .split{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .people{grid-template-columns:1fr}
  .clients{grid-template-columns: repeat(3, minmax(0,1fr))}
  .map-wrap{grid-template-columns:1fr}
}
@media (max-width: 820px){
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
  .site-nav{
    position:absolute; left:0; right:0; top:64px;
    margin:0 12px;
    background: var(--paper);
    border:1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    box-shadow: var(--shadow);
  }
  .site-nav.open{display:flex}

  /* Fix: on home (transparent header), mobile menu panel is light, so links must be dark */
  .is-home .site-nav a{color: var(--ink) !important}
  .is-home .site-nav a:hover{background: rgba(226,232,240,.60)}
  .is-home .site-nav a[aria-current="page"]{background: rgba(30,58,95,.10); color: var(--accent) !important}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  [data-reveal]{transition:none}
  .card{transition:none}
}


/* Header refinements: home transparent + logo swap */


/* Home header: transparent over hero, then solid on scroll */
.is-home .site-header{
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: none;
}
.is-home .site-nav a{ color: rgba(255,255,255,.92); }
.is-home .site-nav a:hover{ background: rgba(255,255,255,.10); }
.is-home .site-nav a[aria-current="page"]{
  background: rgba(255,255,255,.12);
  color: #fff;
}
.is-home .logo--light{ display:block; }
.is-home .logo--dark{ display:none; }

/* When scrolled on home, revert to standard (solid header) */
.is-home .site-header.is-scrolled{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.75);
}
.is-home .site-header.is-scrolled .site-nav a{ color: var(--ink); }
.is-home .site-header.is-scrolled .site-nav a:hover{ background: rgba(226,232,240,.55); }
.is-home .site-header.is-scrolled .site-nav a[aria-current="page"]{
  background: rgba(30,58,95,.10);
  color: var(--accent);
}
.is-home .site-header.is-scrolled .logo--light{ display:none; }
.is-home .site-header.is-scrolled .logo--dark{ display:block; }


.logo{height:74px; width:auto; display:block}
.logo--dark{display:block}
.logo--light{display:none}



.site-header.is-scrolled{
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(226,232,240,.75);
}
.site-header.is-scrolled .site-nav a{color: var(--ink)}
.site-header.is-scrolled .logo--light{display:none}
.site-header.is-scrolled .logo--dark{display:block}


/* Experience map */
.map{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(226,232,240,.9);
  background: linear-gradient(180deg, rgba(248,250,252,.9), rgba(241,245,249,.9));
}
.map img{display:block; width:100%; height:auto; filter: contrast(1.05) saturate(.9)}
.pin{
  position:absolute;
  width:12px; height:12px;
  border-radius:999px;
  background: #0b1220;
  box-shadow: 0 0 0 6px rgba(11,18,32,.12), 0 12px 26px rgba(2,6,23,.22);
}
.pin::after{
  content:"";
  position:absolute; inset:-10px;
  border-radius:999px;
  border:2px solid rgba(11,18,32,.18);
}
.pin--americas{left:27%; top:38%}
.pin--europe{left:54%; top:24%}
.pin--africa{left:52%; top:52%}
.pin--asia{left:73%; top:38%}


@media (max-width: 520px){
  .logo{height:52px}
}

.clients-cta{margin-top:16px; display:flex; justify-content:center}


/* Media cards: ensure images fill container without white band */
.card--media{padding:0; overflow:hidden}
.card--media img{display:block; width:100%; height:100%; object-fit:cover}

/* World map figure */
.world-map{position:relative; border:1px solid var(--border); border-radius:16px; background:linear-gradient(180deg,#fff,#f8fafc); overflow:hidden}
.world-map img{display:block; width:100%; height:auto}
.world-map .pin{position:absolute; width:10px; height:10px; border-radius:999px; background:var(--navy); box-shadow:0 0 0 6px rgba(30,58,95,.14)}
.world-map .pin::after{content:''; position:absolute; inset:-10px; border-radius:999px; border:1px solid rgba(30,58,95,.18)}
.world-map .legend{display:flex; gap:14px; flex-wrap:wrap; padding:12px 14px; font-size:13px; color:var(--muted); border-top:1px solid var(--border); background:rgba(248,250,252,.92)}
.world-map .legend span{display:inline-flex; align-items:center; gap:8px}
.world-map .legend i{width:10px; height:10px; border-radius:999px; display:inline-block; background:var(--navy)}
.pin--americas{left:27%; top:38%}
.pin--europe{left:54%; top:24%}
.pin--africa{left:52%; top:52%}
.pin--asia{left:73%; top:38%}


@media (max-width: 720px){
  .brand img{height:64px}
  .is-home .hero .container{padding-top:230px}
}

@media (max-width: 720px){
  .header-inner{height:88px}
  .site-header{height:88px}
  .brand img{height:68px;}
  .is-home .hero .container{padding-top:230px}
  .hero .container{padding-top:108px}
}


/* Language switch */
.lang-switch{display:inline-flex; align-items:center; gap:8px; margin-left:8px; padding-left:8px; border-left:1px solid rgba(226,232,240,.9)}
.lang-switch .lang{font-size:.9rem; text-decoration:none; color:var(--muted); padding:8px 10px; border-radius:10px}
.lang-switch .lang[aria-current="true"]{background:rgba(30,58,95,.12); color:var(--accent)}
.lang-switch .lang:hover{background:rgba(226,232,240,.55); color:var(--ink)}
.lang-switch .sep{color:rgba(71,85,105,.8)}
@media (max-width: 900px){.lang-switch{border-left:none; padding-left:0; margin-left:0}}

/* Language switch – home (transparent header) */
.is-home .lang-switch{border-left:1px solid rgba(255,255,255,.18);}
.is-home .lang-switch .lang{color:rgba(255,255,255,.92);}
.is-home .lang-switch .lang:hover{background:rgba(255,255,255,.10); color:#fff;}
.is-home .lang-switch .lang[aria-current="true"]{background:rgba(255,255,255,.18); color:#fff;}
.is-home .lang-switch .sep{color:rgba(255,255,255,.60);}

/* Language switch – home when scrolled (solid header) */
.is-home .site-header.is-scrolled .lang-switch{border-left:1px solid rgba(226,232,240,.9);}
.is-home .site-header.is-scrolled .lang-switch .lang{color:var(--muted);}
.is-home .site-header.is-scrolled .lang-switch .lang:hover{background:rgba(226,232,240,.55); color:var(--ink);}
.is-home .site-header.is-scrolled .lang-switch .lang[aria-current="true"]{background:rgba(30,58,95,.12); color:var(--accent);}
.is-home .site-header.is-scrolled .lang-switch .sep{color:rgba(71,85,105,.8);}



/* Home: emphasize International Experience */
.section--experience-home{padding:84px 0}
.section--experience-home .section-head p{max-width:72ch;font-size:1.05rem}


/* === Tier‑1 polish: services typography consistency (ES/EN) === */
.service-title { font-weight: 700; }
.service-lead { font-weight: 500; font-size: 0.98rem; line-height: 1.45; }
.service-card p { font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 640px){
  .service-lead, .service-card p { font-size: 0.96rem; }
}



/* === Tier-1 universal client logo hover (Home + Internal) === */
/* Some pages use `.clients` (home + internal). Keep selectors inclusive. */
.clients img,
.clients .client img,
.client-logos img,
.clients-grid img,
.logo-grid img {
    filter: grayscale(100%) contrast(85%);
    opacity: 0.75;
    transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.clients img:hover,
.clients .client img:hover,
.client-logos img:hover,
.clients-grid img:hover,
.logo-grid img:hover {
    filter: grayscale(0%) contrast(100%);
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


/* === Mobile logo legibility fix (Clients page) === */
@media (max-width: 640px) {
    .clients img,
    .clients-grid img,
    .client-logos img {
        max-height: 76px;
        object-fit: contain;
        width: 100%;
    }
}


/* === Client hover label V32 === */
.client-logo-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-item::after {
    content: attr(data-name);
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,23,42,0.9);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.client-logo-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Ensure hover color works */
.client-logo-item img {
    filter: grayscale(100%) contrast(85%);
    transition: all 0.35s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%) contrast(100%);
    transform: translateY(-4px) scale(1.03);
}

/* Improve tile height for better logo visibility */
.clients-grid,
.client-logos,
.logo-grid {
    grid-auto-rows: minmax(110px, auto);
}

/* Mobile legibility improvement */
@media (max-width: 768px) {
    .client-logo-item img {
        max-height: 70px !important;
        width: auto;
    }
}


/* --- Clients logo hover + tooltip (v33) --- */
.client, .client-logo-item { position: relative; }

.client img, .client-logo-item img{
  filter: grayscale(1) contrast(0.92);
  opacity: 0.9;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease, box-shadow .22s ease;
  will-change: transform;
}

.client:hover img, .client-logo-item:hover img{
  filter: none;
  opacity: 1;
  transform: translateY(-2px) scale(1.03);
}

/* Tooltip label */
.client[data-name]::after,
.client-logo-item[data-name]::after{
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translate(-50%, 10px);
  background: rgba(15,23,42,0.92);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 10px 24px rgba(2,6,23,.22);
  z-index: 5;
}

.client[data-name]:hover::after,
.client-logo-item[data-name]:hover::after{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Avoid tooltip clipping */
.clients{ overflow: visible; }


/* === v34: Client labels below logos (subtle, non-overlapping) === */
.client[data-name]::after,
.client-logo-item[data-name]::after{
  content: none !important;
  display: none !important;
}

.client,
.client-logo-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.client-label{
  font-size: .72rem;
  line-height: 1.15;
  text-align: center;
  color: rgba(92, 69, 50, .85);
  max-width: 150px;
  padding: 0 6px;
  opacity: .7;
  transition: opacity .2s ease, transform .2s ease;
}

/* Show label on hover (desktop), always visible on touch */
@media (hover:hover){
  .client-label{ opacity: 0; transform: translateY(-4px); }
  .client:hover .client-label,
  .client-logo-item:hover .client-label{ opacity: .9; transform: translateY(0); }
}
@media (hover:none){
  .client-label{ opacity: .72; transform: none; }
}

@media (max-width:640px){
  .client-label{ font-size: .68rem; max-width: 100%; }
}

/* Ensure hover-to-color works when hovering the tile, not only the image */
.clients .client:hover img,
.client:hover img,
.client-logo-item:hover img{
  filter: none !important;
  opacity: 1 !important;
}




/* --- Client logo tiles: label below logo (v35) --- */
.client, .client-logo-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  overflow:hidden; /* keep long labels inside tiles */
}

/* Disable tooltip pseudo-labels; we use real DOM labels for consistency */
.client[data-name]::after,
.client-logo-item[data-name]::after{
  content: none !important;
}

/* Labels: warmer + slightly darker, wrap nicely on mobile */
.client-label{
  max-width: 190px;
  text-wrap: balance;
  word-break: break-word;
}

@media (max-width: 640px){
  .client-label{
    font-size: .68rem;
    max-width: 200px;
    opacity: .8;
  }
}

/* === v36: Clients page mobile grid + label wrapping (avoid tall vertical tiles) === */
@media (max-width: 640px){
  /* Override inline 4/6-column settings on /clientes and /en/clients for mobile */
  .page-clients .clients{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(118px, auto);
  }

  /* Keep labels readable without forcing the tile to grow vertically */
  .page-clients .client-label{
    max-width: 100%;
    padding: 0 8px;
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(2 * 1.15em);
  }
}



/* Touch activation: keep logo in color after tap */
.client-logo-item.is-active img,
.client.is-active img,
.client-logo-item:focus img,
.client:focus img{
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-2px) scale(1.03);
}

@media (min-width: 900px){
  .people .person--center{grid-column:2;}
}

@media (max-width: 640px){.logo{height:58px;}}




/* === v78 Header Logo (Synex) === */
.logo-header{
  height: 60px;
  width: auto;
  display: block;
}


/* === v79 Synex header logo single-source + consistent sizing === */
header .logo-header,
nav .logo-header,
.logo-header {
  height: 60px !important;
  width: auto !important;
  max-height: 60px !important;
}

header.sticky .logo-header,
header.is-sticky .logo-header,
.navbar.sticky .logo-header {
  height: 60px !important;
  max-height: 60px !important;
}


/* === v81 Header logo: large, readable, and correct swap === */
.logo{
  height: 90px !important;
  width: auto !important;
  display: block;
}
/* Default (non-home) header is solid/white: show dark logo */
.logo--dark{ display:block !important; }
.logo--light{ display:none !important; }

/* Home hero header is transparent/dark: show light logo */
.is-home .logo--light{ display:block !important; }
.is-home .logo--dark{ display:none !important; }

/* When home becomes solid on scroll: show dark logo */
.is-home .site-header.is-scrolled .logo--light{ display:none !important; }
.is-home .site-header.is-scrolled .logo--dark{ display:block !important; }

/* Sticky/scroll: never shrink logo */
.site-header.is-scrolled .logo,
.site-header.is-scrolled .logo--light,
.site-header.is-scrolled .logo--dark{
  height: 90px !important;
  max-height: 90px !important;
}

/* Responsive: keep readable subtitle on mobile */
@media (max-width: 640px){
  .logo{ height: 80px !important; }
}
@media (max-width: 520px){
  .logo{ height: 76px !important; }
}

/* === v82 Header logo size tweak (keep v81 behavior) === */
.site-header .logo{
  height: 90px !important;
  max-height: 90px !important;
}
@media (max-width: 640px){
  .site-header .logo{ height: 80px !important; max-height: 80px !important; }
}
@media (max-width: 520px){
  .site-header .logo{ height: 76px !important; max-height: 76px !important; }
}


/* === v83 Micro polish: premium spacing & rhythm === */
:root{
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

/* Typography rhythm */
h1, h2{
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1{ margin: 0 0 var(--space-3); }
h2{ margin: 0 0 var(--space-3); }
p{ margin: 0 0 var(--space-3); }

/* Section spacing (responsive) */
.section{ padding: 92px 0; }
@media (max-width: 900px){
  .section{ padding: 76px 0; }
}
@media (max-width: 640px){
  .section{ padding: 64px 0; }
}

/* Container breathing room on mobile */
@media (max-width: 520px){
  .container{ padding-left: 18px; padding-right: 18px; }
}

/* Nav spacing subtle consistency (no layout change) */
.site-nav a{ padding: 10px 12px; }
@media (max-width: 900px){
  .site-nav a{ padding: 10px 10px; }
}

/* Cards and blocks: slightly more premium radius/shadow where already used */
.card, .panel, .tile{
  border-radius: 18px;
}


/* Normalize team bio font size */
.team-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}


/* Fix ES team bio size only */
html[lang="es"] .team-card p:last-of-type{
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}
