/* Selector de idiomas con banderas originales (licencia en assets/flags/LICENSE).
   Las banderas indican los mercados atendidos, no 3 idiomas distintos. */
.language-switch{display:flex;flex:0 0 auto;align-items:center;gap:4px;border-left:1px solid #DDE5EE;padding-left:12px;margin-left:1px}
.language-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:76px;min-height:48px;padding:6px 7px 5px;border:1px solid transparent;border-radius:9px;color:#405570;text-decoration:none;line-height:1.15;transition:background .16s,border-color .16s,color .16s}
.language-choice.is-current{background:#F0F5FC;border-color:#C5D8F0;color:#004AAD}
.language-switch a.language-choice:hover{background:#F7FAFE;border-color:#DAE5F3;color:#004AAD}
.language-switch a.language-choice:focus-visible{outline:3px solid #FF2D25;outline-offset:2px}
.language-flags{display:flex;justify-content:center;align-items:center;gap:3px;height:16px;white-space:nowrap}
.language-flags img{display:block;flex:none;width:20px;height:15px;object-fit:cover;border-radius:2px;border:1px solid #D5DCE5;box-shadow:0 1px 1px #10234214}
.language-name{font-size:11.5px;font-weight:650;line-height:1.1;white-space:nowrap;letter-spacing:0}
@media(min-width:1061px) and (max-width:1199px){
 .nav{gap:11px}
 .header-inner{gap:12px}
 .brand-name{font-size:13.25px;max-width:248px}
 .nav>a{font-size:12.75px}
 .language-switch{padding-left:8px;gap:2px}
 .language-choice{min-width:70px;padding-inline:5px}
}
@media(max-width:1060px){
 .menu-btn{display:flex;width:42px;height:42px;flex:none;border:1px solid var(--line);border-radius:9px;background:#fff;flex-direction:column;align-items:center;justify-content:center;gap:5px}
 .menu-btn span{display:block;width:21px;height:2px;background:var(--blue)}
 .nav{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;align-items:stretch;gap:0;background:#fff;padding:12px 22px 22px;border-bottom:1px solid var(--line);box-shadow:0 15px 24px #12294717}
 .nav.open{display:flex}
 .nav>a{font-size:14px;padding:11px 5px}
 .nav>a.nav-btn{margin-top:7px;align-self:stretch}
 .language-switch{margin:12px 0 0;padding:13px 0 0;border-left:0;border-top:1px solid #DDE5EE;justify-content:flex-start;gap:10px}
 .language-choice{min-width:93px;min-height:52px}
}
@media(max-width:460px){
 .language-switch{gap:8px}
 .language-choice{min-width:90px}
}

/* Selector segmentado premium · 29 oct 2026
   Conserva banderas MX/US/CA, textos legibles, rutas y selección manual.
   Selectores de alta especificidad para no ser anulados por type-legibility-v1.css. */
.site-header .nav .language-switch{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:2px;
  width:max-content;
  max-width:100%;
  min-height:44px;
  margin:0;
  padding:3px;
  background:#f4f7fb;
  border:1px solid #d9e4f1;
  border-radius:12px;
  box-shadow:0 1px 2px rgba(11,42,84,.045);
}
.site-header .nav .language-switch .language-choice{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex:0 0 auto;
  min-width:0;
  min-height:36px;
  height:36px;
  padding:0 8px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#384e6a;
  text-decoration:none;
  white-space:nowrap;
  line-height:1;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.site-header .nav .language-switch .language-choice.is-current{
  color:#004aad;
  background:#fff;
  border-color:#e1e8f3;
  box-shadow:0 1px 3px rgba(7,36,75,.095);
  cursor:default;
}
.site-header .nav .language-switch a.language-choice:hover{
  color:#004aad;
  border-color:#dce8f5;
  background:rgba(255,255,255,.72);
}
.site-header .nav .language-switch a.language-choice:focus-visible{
  outline:2px solid #004aad;
  outline-offset:2px;
}
.site-header .nav .language-switch .language-flags{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:0;
  height:15px;
}
.site-header .nav .language-switch .language-flags img{
  display:block;
  flex:none;
  width:17px;
  height:13px;
  border:1px solid #d3dce8;
  border-radius:2px;
  object-fit:cover;
  box-shadow:0 1px 1px rgba(9,37,74,.11);
}
.site-header .nav .language-switch .language-flags img + img{
  margin-left:4px;
  box-shadow:0 1px 2px rgba(9,37,74,.16);
}
.site-header .nav .language-switch .language-name{
  font-size:13px;
  font-weight:680;
  line-height:1.1;
  letter-spacing:-.01em;
  white-space:nowrap;
}
@media(max-width:1350px){
  .site-header .nav .language-switch{
    margin:13px 0 0;
    padding:3px;
    border:1px solid #d9e4f1;
    border-radius:12px;
    align-self:flex-start;
  }
  .site-header .nav .language-switch .language-choice{
    min-width:0;
    min-height:38px;
    height:38px;
    padding:0 11px;
  }
}
@media(max-width:430px){
  .site-header .nav .language-switch .language-choice{padding:0 9px}
  .site-header .nav .language-switch .language-name{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  .site-header .nav .language-switch .language-choice{transition:none}
}
