/* BricoDato language selector · ES/EN · v3 */
.language-switcher{
  display:inline-flex;align-items:center;gap:3px;padding:3px;
  border:1px solid rgba(255,255,255,.20);border-radius:999px;
  background:rgba(255,255,255,.08);font-size:.78rem;font-weight:850;
  line-height:1;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.08)
}
.language-switcher a{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-width:52px;padding:7px 9px;border-radius:999px;color:inherit;
  text-decoration:none;opacity:.78;transition:background .16s ease,opacity .16s ease,transform .16s ease
}
.language-switcher a:hover{opacity:1;background:rgba(255,255,255,.10);transform:translateY(-1px)}
.language-switcher a:focus-visible{outline:2px solid #ff7a2f;outline-offset:2px;opacity:1}
.language-switcher a[aria-current="true"]{opacity:1;background:#fff;color:#081f49;box-shadow:0 2px 8px rgba(0,0,0,.10)}
.language-switcher .lang-flag{
  display:inline-block;flex:0 0 auto;width:14px;height:10px;border-radius:2px;
  box-shadow:0 0 0 1px rgba(8,31,73,.12),0 1px 2px rgba(0,0,0,.12);
  background-repeat:no-repeat;background-position:center;background-size:cover;
  font-size:0;line-height:0;overflow:hidden;transform:translateY(.5px)
}
.language-switcher a[lang="es"] .lang-flag{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Crect width='24' height='16' fill='%23c60b1e'/%3E%3Crect y='4' width='24' height='8' fill='%23ffc400'/%3E%3C/svg%3E")}
.language-switcher a[lang="en"] .lang-flag{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cg stroke='%23fff' stroke-width='6' clip-path='url(%23a)'%3E%3Cpath d='m0 0 60 30m0-30L0 30'/%3E%3C/g%3E%3Cg stroke='%23C8102E' stroke-width='4' clip-path='url(%23a)'%3E%3Cpath d='m0 0 60 30m0-30L0 30'/%3E%3C/g%3E%3Cg stroke='%23fff' stroke-width='10'%3E%3Cpath d='M30 0v30M0 15h60'/%3E%3C/g%3E%3Cg stroke='%23C8102E' stroke-width='6'%3E%3Cpath d='M30 0v30M0 15h60'/%3E%3C/g%3E%3C/svg%3E")}
.language-switcher .lang-code{letter-spacing:.02em}
.site-header .language-switcher{margin-left:auto;flex:0 0 auto}
@media(max-width:980px){
  .site-header .language-switcher{margin-left:auto;margin-right:8px}
  .language-switcher a{min-width:48px;padding:6px 7px;gap:5px}
  .main-nav+.language-switcher{order:2}
}
@media(max-width:640px){
  .language-switcher{font-size:.71rem;padding:2px;gap:2px}
  .language-switcher a{min-width:43px;padding:5px 6px;gap:4px}
  .language-switcher .lang-flag{width:12px;height:9px}
}
@media(max-width:360px){
  .language-switcher a{min-width:39px;padding:5px}
  .language-switcher .lang-flag{width:11px;height:8px}
}
