/* Clientes internacionales: mapa de América (home, Nosotros y Exportación).
   Markup from world_map() in scripts/build_site.py; behaviour in world-map.js.
   Countries with clients are TeranBrand blue; the rest stay muted and invite: «Sé tú el próximo en estar aquí.» */
.tb-world{--tb-blue:#274b9b;--tb-blue-hi:#4d7be0;--tb-land:#232d32;--tb-land-hi:#36444b;position:relative;scroll-margin-top:100px}
.tb-world-home{padding:40px var(--gutter) 150px}
.studio-page .tb-world{width:min(100% - var(--gutter)*2,var(--page-width,1600px));margin-inline:auto;padding-block:clamp(64px,8vw,130px);border-top:1px solid var(--studio-line,#ffffff25)}
.tb-world-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(30px,6vw,110px);align-items:end;max-width:1480px;margin:0 auto clamp(34px,5vw,72px)}
.tb-world-top h2{font-size:clamp(46px,6.2vw,104px);font-weight:300;line-height:1.02;letter-spacing:-.047em;margin:22px 0 0}
.tb-world-top h2>span{color:#8195a2}
.tb-world-intro{font-size:clamp(17px,1.5vw,23px);line-height:1.6;color:#b9c2c6;max-width:580px;margin:0}
.tb-world-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,5vw,96px);align-items:center;max-width:1480px;margin:0 auto}

/* The map */
.tb-map{position:relative;margin:0;width:100%;max-width:620px;justify-self:center}
.tb-map svg{display:block;width:100%;height:auto;overflow:visible;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.tb-land{fill:var(--tb-land);stroke:#080d0f;stroke-width:.8;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:fill .3s}
.tb-land:hover,.tb-land.is-over{fill:var(--tb-land-hi)}
.tb-land.is-client{fill:var(--tb-blue);cursor:pointer}
.tb-land.is-client:hover,.tb-land.is-client.is-over,.tb-land.is-client.is-active{fill:var(--tb-blue-hi)}
circle.tb-land{stroke:#4a585f;stroke-width:.7}
.tb-pin{pointer-events:none}
.tb-pin-dot{fill:#f2f1ed}
.tb-pin-ring{fill:none;stroke:#f2f1ed;stroke-width:1;vector-effect:non-scaling-stroke;opacity:.5;transform-box:fill-box;transform-origin:center}
@media(prefers-reduced-motion:no-preference){
 .tb-pin-ring{animation:tb-pulse 2.8s ease-out infinite}
 .tb-pin:nth-child(3n+2) .tb-pin-ring{animation-delay:.9s}
 .tb-pin:nth-child(3n) .tb-pin-ring{animation-delay:1.8s}
}
/* Off screen the pins rest (world-map.js): nothing is repainted for a map nobody sees. */
.tb-world.is-offscreen .tb-pin-ring{animation-play-state:paused}
@keyframes tb-pulse{from{transform:scale(.35);opacity:.85}to{transform:scale(1.55);opacity:0}}
.tb-map-tip{position:absolute;left:0;top:0;z-index:3;display:flex;flex-direction:column;gap:3px;width:max-content;max-width:min(250px,78vw);padding:10px 14px 11px;border-radius:14px;background:#10181c;color:#e6ebed;font-size:14px;line-height:1.3;pointer-events:none;opacity:0;visibility:hidden;transform:translateY(6px) scale(.97);transition:opacity .2s,transform .28s cubic-bezier(.16,1,.3,1),visibility 0s .2s;box-shadow:0 0 0 1px #ffffff24,0 16px 44px #000a}
.tb-map-tip.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .28s cubic-bezier(.16,1,.3,1)}
.tb-map-tip b{font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:#8e9aa0}
/* A country with clients answers in the light card, so it stands out over the blue. */
.tb-map-tip.is-client{background:#f2f1ed;color:#080d0f;box-shadow:0 16px 44px #000a}
.tb-map-tip.is-client b{color:var(--tb-blue)}
.tb-map-legend{display:flex;flex-wrap:wrap;gap:8px 24px;margin:20px 0 0;font-size:12px;line-height:1.4;color:#8e9aa0}
.tb-map-legend span{display:inline-flex;align-items:center;gap:9px}
.tb-map-legend span:before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--tb-land-hi)}
.tb-map-legend .is-client:before{background:var(--tb-blue)}

/* Countries: chips and cards */
.tb-world-side{min-width:0}
.tb-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.tb-chip{font:inherit;font-size:13px;line-height:1.2;min-height:40px;padding:9px 16px;border:0;border-radius:30px;background:#ffffff0d;color:#dfe5e8;cursor:pointer;transition:background .25s,color .25s}
.tb-chip:hover{background:#ffffff1f}
.tb-chip[aria-pressed=true]{background:var(--tb-blue);color:#fff}
.tb-chip:focus-visible,.tb-map-link:focus-visible{outline:2px solid #c7dafc;outline-offset:3px}
.tb-cards{display:grid;gap:14px}
.tb-card{background:#0f171b;border-radius:var(--lx-r,20px);overflow:hidden;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .3s}
.tb-card[hidden]{display:none}
.tb-card-media{aspect-ratio:16/7;overflow:hidden;background:var(--tb-land)}
.tb-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.tb-card-media picture{display:block;min-width:0;min-height:0;height:100%}
/* Two brands in one country: both photographs, side by side. */
.tb-card-media.is-duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px;aspect-ratio:2/1}
.tb-card-media.is-duo img{min-height:0}
.tb-card-media.is-logo{background:#000}
.tb-card-copy{padding:clamp(22px,2.4vw,34px)}
.tb-card-copy .eyebrow{margin:0}
.tb-card h3{font-size:clamp(28px,2.7vw,46px);font-weight:300;letter-spacing:-.04em;line-height:1.08;margin:12px 0 16px;text-transform:none}
.tb-card-copy>p:not(.eyebrow){margin:0;font-size:15px;line-height:1.65;color:#a9b4b9}
.tb-card-copy>p:not(.eyebrow)+p{margin-top:12px}
.tb-card-copy>.tb-card-links{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:22px}
.tb-map-link{display:inline-block;color:#f2f1ed;font-size:13px;line-height:1.5;text-decoration:none;border-bottom:1px solid #ffffff55;padding:4px 0 2px;transition:border-color .25s,color .25s}
.tb-map-link:hover{color:#abc7ff;border-color:#abc7ff}
.tb-world-more{margin:24px 0 0}
/* One country at a time (home and Nosotros). */
.tb-world.is-ready[data-world=single] .tb-cards{display:block}
@media(prefers-reduced-motion:no-preference){
 .tb-world[data-world=single] .tb-card.is-entering{animation:tb-card-in .55s cubic-bezier(.16,1,.3,1) both}
}
@keyframes tb-card-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* Every country listed next to a map that stays in view (Exportación). */
.tb-world[data-world=list] .tb-world-body{align-items:start}
.tb-world[data-world=list] .tb-map{position:sticky;top:112px}
.tb-world[data-world=list] .tb-card.is-active{box-shadow:inset 0 0 0 1px var(--tb-blue-hi)}
.tb-world[data-world=list] .tb-card h3{font-size:clamp(26px,2.3vw,38px)}

@media(max-width:900px){
 .tb-world-home{padding:20px var(--gutter) 90px}
 .tb-world-top{grid-template-columns:1fr;align-items:start;gap:22px;margin-bottom:30px}
 .tb-world-top h2{font-size:clamp(40px,10vw,64px)}
 .tb-world-body{grid-template-columns:1fr;gap:30px}
 .tb-map{max-width:460px}
 .tb-world[data-world=list] .tb-map{position:relative;top:auto}
 .tb-chip{min-height:44px}
 .tb-card h3{font-size:30px}
}
@media(prefers-reduced-motion:reduce){.tb-land,.tb-map-tip,.tb-chip,.tb-card{transition:none}}
