/* Header and language UI for escaco.es: header layout, language switcher with flags, mobile menu, language note. */

/* Header layout */
@media (min-width:769px){
.nav-container{max-width:1320px;padding:0 2rem}
.nav-container>.overlay{display:none!important}
.nav-menu{gap:clamp(.9rem,1.6vw,1.75rem)!important;margin-inline-start:2.5rem}
.nav-menu .nav-link{white-space:nowrap}
.nav-dropdown{display:flex;align-items:center}
.nav-menu .lang-switcher{padding:0!important;margin-inline-start:.25rem}
}
@media (min-width:769px) and (max-width:1199px){
.nav-container{padding:0 1.25rem}
.nav-menu{gap:.9rem!important;margin-inline-start:1.25rem}
.nav-menu .nav-link{font-size:.82rem}
.nav-brand .nav-logo{width:160px;height:auto}
}

/* Language switcher and language note */
.lang-switcher .lang-option{font-size:0!important;flex-direction:column!important;gap:4px!important}
.lang-switcher .lang-option::before{font-size:13px;font-weight:600;letter-spacing:.02em;line-height:1;order:0}
.lang-switcher .lang-option .nav-flag{order:1;display:inline-block!important;width:20px!important;height:14px!important;box-shadow:0 0 0 1px rgba(15,23,42,.12)}
.lang-switcher .lang-option[data-lang="es"]::before{content:"ES"}
.lang-switcher .lang-option[data-lang="en"]::before{content:"EN"}
.lang-switcher .lang-option[data-lang="fr"]::before{content:"FR"}
.lang-switcher .lang-option[data-lang="ar"]::before{content:"عربي";font-size:14px;letter-spacing:0}
.lang-switcher .lang-switcher__menu li:has(.lang-option[data-lang="es"]){order:-1}
.lang-switcher .nav-flag.nav-flag-us{background:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 60 30%27%3E%3CclipPath id=%27t%27%3E%3Cpath d=%27M30 15h30v15zv15H0zH0V0zV0h30z%27/%3E%3C/clipPath%3E%3Cpath d=%27M0 0v30h60V0z%27 fill=%27%23012169%27/%3E%3Cpath d=%27M0 0l60 30m0-30L0 30%27 stroke=%27%23fff%27 stroke-width=%276%27/%3E%3Cpath d=%27M0 0l60 30m0-30L0 30%27 clip-path=%27url(%23t)%27 stroke=%27%23C8102E%27 stroke-width=%274%27/%3E%3Cpath d=%27M30 0v30M0 15h60%27 stroke=%27%23fff%27 stroke-width=%2710%27/%3E%3Cpath d=%27M30 0v30M0 15h60%27 stroke=%27%23C8102E%27 stroke-width=%276%27/%3E%3C/svg%3E") center/100% 100% no-repeat!important}
.lang-switcher .lang-option[data-lang="ar"] .nav-flag{display:none!important}
.lang-switcher .lang-option[data-lang="ar"]::before{font-size:15px!important}
@media (max-width:768px){.nav-menu .nav-link.nav-cta{color:#fff!important;justify-content:center}
}
@media (min-width:1200px){.lang-switcher .lang-switcher__btn{display:none!important}
.lang-switcher .lang-switcher__menu{display:flex!important;position:static!important;flex-direction:row;align-items:center;gap:2px;background:#f1f6fb!important;border:1px solid #dbe7f3!important;border-radius:12px!important;box-shadow:none!important;padding:3px!important;min-width:0!important;animation:none!important}
.lang-switcher .lang-switcher__menu li{list-style:none}
.lang-switcher .lang-option{padding:6px 10px!important;min-height:0!important;border-radius:9px!important;color:#1e3a5f!important;border:0!important;background:transparent!important}
.lang-switcher .lang-option:hover{background:#fff!important}
.lang-switcher .lang-option.active{background:#1f5f93!important;color:#fff!important}
.lang-switcher .lang-option.active .nav-flag{box-shadow:0 0 0 1px rgba(255,255,255,.7)}
}
@media (min-width:769px) and (max-width:1199px){.lang-switcher.open .lang-switcher__menu{display:flex!important;flex-direction:row;gap:4px;min-width:0!important}
.lang-switcher .lang-switcher__menu li{list-style:none}
.lang-switcher .lang-option{padding:8px 10px!important}
}
@media (max-width:768px){.nav-menu .lang-switcher{order:-1;margin:0!important;padding:12px 16px!important;border-top:0!important;border-bottom:1px solid #e5e7eb;width:100%;box-sizing:border-box}
.nav-menu .lang-switcher .lang-switcher__btn{display:none!important}
.nav-menu .lang-switcher .lang-switcher__menu{display:flex!important;flex-direction:row!important;gap:8px!important;position:static!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important;min-width:0!important;animation:none!important}
.nav-menu .lang-switcher .lang-switcher__menu li{list-style:none;flex:1}
.nav-menu .lang-switcher .lang-option{width:100%;padding:9px 4px!important;min-height:52px!important;border:1px solid #dbe7f3!important;background:#fff!important;border-radius:10px!important;color:#1e3a5f!important}
.nav-menu .lang-switcher .lang-option.active{background:#1f5f93!important;border-color:#1f5f93!important;color:#fff!important}
}
.esca-lh{position:fixed;left:50%;bottom:22px;transform:translate(-50%,16px);opacity:0;z-index:1450;display:flex;align-items:center;gap:12px;max-width:calc(100% - 120px);background:#fff;border:1px solid #dbe7f3;border-radius:14px;box-shadow:0 14px 34px rgba(15,23,42,.18);padding:10px 10px 10px 16px;font-family:Inter,sans-serif;font-size:14px;color:#1e293b;transition:opacity .25s,transform .25s}
.esca-lh.is-in{opacity:1;transform:translate(-50%,0)}
.esca-lh[dir="rtl"]{padding:10px 16px 10px 10px}
.esca-lh__globe{flex-shrink:0;color:#1f5f93}
.esca-lh__text{line-height:1.35}
.esca-lh__go{flex-shrink:0;background:#1f5f93;color:#fff;text-decoration:none;font-weight:600;font-size:13px;padding:8px 14px;border-radius:9px;white-space:nowrap}
.esca-lh__go:hover{background:#174a73}
.esca-lh__go:focus-visible,.esca-lh__x:focus-visible{outline:3px solid #37a8e5;outline-offset:2px}
.esca-lh__x{flex-shrink:0;background:none;border:0;width:32px;height:32px;border-radius:8px;cursor:pointer;color:#64748b;font-size:20px;line-height:1}
.esca-lh__x:hover{background:#f1f5f9}
.esca-lh .ar{font-family:Tahoma,"Segoe UI",Arial,sans-serif}
@media (max-width:600px){.esca-lh{left:12px;right:84px;bottom:22px;max-width:none;transform:translateY(16px);flex-wrap:wrap;gap:8px 10px}
.esca-lh.is-in{transform:translateY(0)}
.esca-lh__text{flex:1 1 100%;order:1}
.esca-lh__globe{display:none}
.esca-lh__go{order:2}
.esca-lh__x{order:3;margin-inline-start:auto}
}
@media (prefers-reduced-motion:reduce){.esca-lh{transition:none}
}
