/* Site language: the header switcher and the «Choose your language» screen (js/lang.js) */
.lf { display: block; flex: none; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(36, 48, 77, .15); }
.lf svg { display: block; }

.lang-sw { position: relative; flex: none; margin-right: 8px; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(36, 48, 77, .18); background: rgba(255, 255, 255, .8); color: #24304D; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
.lang-btn:hover { border-color: #24304D; }
.lang-btn:focus-visible { outline: 3px solid #24304D; outline-offset: 2px; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 210px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(36, 48, 77, .18); }
.lang-pop[hidden] { display: none; }
.lang-pop a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: #24304D; text-decoration: none; font-size: 15px; }
.lang-pop a:hover, .lang-pop a:focus-visible { background: #F7F3EE; }
.lang-pop a[aria-current] { font-weight: 700; }
.lang-ok { margin-left: auto; color: #3F9B5A; }

.lang-choose { position: fixed; inset: 0; z-index: 200; overflow: auto; background: #E9876F; color: #24304D; }
.lang-choose .lc-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lang-choose .lc-hill { position: absolute; right: 0; bottom: 0; width: 62%; max-width: 980px; pointer-events: none; }
.lang-choose .lc-town { position: absolute; right: 2%; bottom: 34%; width: 34%; max-width: 520px; pointer-events: none; }
.lc-top { position: relative; display: flex; align-items: center; gap: 10px; max-width: 1280px; margin: 0 auto; padding: 20px 32px; font-size: 17px; font-weight: 800; }
.lc-top b { font-weight: 800; }
.lc-body { position: relative; max-width: 1280px; margin: 0 auto; padding: 12vh 32px 200px; }
.lc-body h1 { margin: 0 0 28px; max-width: 760px; font-size: 64px; line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.lc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
.lc-lang { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 20px 28px; border-radius: 24px; background: #fff; border: 1px solid #E6DDD2; color: #24304D; text-decoration: none; }
.lc-lang:hover { border-color: #24304D; }
.lc-lang:focus-visible { outline: 3px solid #24304D; outline-offset: 3px; }
.lc-lang .lf { border-radius: 8px; }
.lc-lang b { font-size: 22px; }
body.lang-choosing { overflow: hidden; }

@media (max-width: 719px) {
  .lc-top { padding: 14px 16px; font-size: 15px; }
  .lc-body { padding: 48px 16px 160px; }
  .lc-body h1 { font-size: 40px; margin-bottom: 20px; }
  .lc-list { grid-template-columns: 1fr; gap: 12px; }
  .lc-lang { flex-direction: row; gap: 16px; min-height: 76px; padding: 14px 18px; border-radius: 20px; }
  .lc-lang .lf { border-radius: 6px; }
  .lc-lang .lf svg { width: 54px; height: 36px; }
  .lc-lang b { font-size: 19px; }
  .lang-choose .lc-hill { right: -60px; width: 470px; max-width: none; }
  .lang-choose .lc-town { right: -10px; bottom: 150px; width: 220px; }
  .lang-btn > span:not(.lf) { display: none; }
  .lang-btn { padding: 0 10px; gap: 5px; }
}
@media (max-width: 560px) { body.guest .lang-sw { margin-left: auto; } body.guest .lang-sw + #account-btn { margin-left: 0; } }
@media (prefers-reduced-motion: no-preference) { .lang-pop:not([hidden]) { animation: lang-pop .14s ease-out; } }
@keyframes lang-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .lang-btn > svg { display: none; } .lang-btn { padding: 0 8px; } .lang-sw { margin-right: 6px; } .top .account-btn { white-space: nowrap; } } /* «Iniciar sesión» fits beside the logo */
