/* MK10 V5.4 — Header de dos filas; bandera siempre <=32px. Solo interfaz. */
:root{--mk54-gold:#dfb36c;--mk54-navy:#071727}
.mk10-v54-upper{background:linear-gradient(105deg,#07192c 0%,#0c2037 100%);color:#fff;border-bottom:1px solid rgba(232,191,116,.20);position:relative;z-index:1100}
.mk10-v54-top-inner{width:min(1390px,calc(100% - 88px));margin:0 auto;display:flex;align-items:center;gap:30px;min-height:105px}
.mk10-v54-upper .mk10-v54-brand{width:270px;min-width:0;max-width:270px;display:inline-flex;flex:0 0 270px;align-items:center}
.mk10-v54-upper .mk10-v54-brand img{width:100%;height:auto;max-height:90px;object-fit:contain;display:block;border:none;background:none;border-radius:0}
.mk10-v54-country{position:relative;min-width:0;max-width:370px;z-index:1150}
.mk10-v54-country summary{display:flex;align-items:center;gap:11px;min-height:50px;padding:8px 13px 8px 10px;border:1px solid #d9a7569a;border-radius:999px;cursor:pointer;list-style:none;color:#fff;line-height:1.25;white-space:nowrap;transition:border-color .2s,background .2s}
.mk10-v54-country summary::-webkit-details-marker{display:none}
.mk10-v54-country summary:hover,.mk10-v54-country[open] summary{background:#e2b66b17;border-color:var(--mk54-gold)}
.mk10-v54-country summary:focus-visible,.mk10-v54-country a:focus-visible,.mk10-v54-auth a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.mk10-v54-country strong{font-size:14px;font-weight:900;letter-spacing:.02em}
.mk10-v54-country small{font-size:12px;color:#dae2ed;font-weight:600}
.mk10-v54-chevron{width:9px;height:9px;border-right:2px solid var(--mk54-gold);border-bottom:2px solid var(--mk54-gold);transform:rotate(45deg);margin:-5px 3px 0 9px;flex:0 0 auto;transition:transform .2s}
.mk10-v54-country[open] .mk10-v54-chevron{transform:rotate(225deg);margin-top:4px}
/* Dimensión estricta del icono de bandera en encabezado y desplegable. */
.mk10-v54-upper img.mk10-v54-flag{display:block!important;width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;max-height:32px!important;object-fit:contain!important;flex:0 0 32px!important;border-radius:50%;margin:0!important}
.mk10-v54-options{position:absolute;top:calc(100% + 8px);left:0;min-width:100%;width:max-content;max-width:min(370px,calc(100vw - 40px));padding:8px;background:#0b1d31;border:1px solid #d9ae6f77;border-radius:15px;box-shadow:0 18px 40px #0008;display:grid;gap:3px}
.mk10-v54-options a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:9px;color:#f6f0e2!important;text-decoration:none!important;font-size:14px;font-weight:700;white-space:nowrap}
.mk10-v54-options a:hover,.mk10-v54-options a[aria-current="page"]{background:#ddb36d1d}
.mk10-v54-options small{display:block;font-size:11px;color:#c1d1dd;font-weight:500;margin-top:1px}
.mk10-v54-auth{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:15px;flex:0 0 auto}
.mk10-v54-auth a{display:inline-flex;align-items:center;min-height:40px;color:var(--mk54-gold);text-decoration:none;white-space:nowrap;font-weight:800;font-size:14px;padding:6px 2px;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.mk10-v54-auth a:hover{color:#fff;border-bottom-color:var(--mk54-gold)}
.mk10-v54-auth .mk10-v54-separator{width:1px;height:22px;background:#ead8ba5c}
/* La segunda fila utiliza la navegación original, pero sin el menú Sedes. */
body .site-header.mk10-v54-lower{background:#081827;top:0;z-index:1000}
body .site-header.mk10-v54-lower .header-inner{height:85px;gap:18px;justify-content:space-between}
body .site-header.mk10-v54-lower .desktop-nav{margin-left:0;justify-content:flex-start}
body .site-header.mk10-v54-lower .mk10-v53-header-actions{gap:14px}
body .site-header.mk10-v54-lower .mk10-v53-header-actions a{min-height:47px;padding:11px 19px;font-size:13px;letter-spacing:0;white-space:nowrap}
body .site-header.mk10-v54-lower .mk10-v53-header-actions .mk10-v53-secondary{background:transparent}
body .site-header.mk10-v54-lower .mk10-v53-header-actions .mk10-v53-primary{background:var(--mk54-gold)}
/* Menú móvil ya operativo en V5.3; permitir botón sin logo duplicado. */
@media(max-width:1300px){.mk10-v54-top-inner{width:calc(100% - 60px)}body .site-header.mk10-v54-lower .header-inner{gap:8px}body .site-header.mk10-v54-lower .mk10-v53-header-actions{gap:8px}body .site-header.mk10-v54-lower .mk10-v53-header-actions a{padding:10px 12px;font-size:12px}}
@media(max-width:1030px){.mk10-v54-top-inner{min-height:84px}.mk10-v54-upper .mk10-v54-brand{flex:0 0 205px;width:205px}.mk10-v54-country summary{min-height:45px}.mk10-v54-country strong{font-size:12px}.mk10-v54-country small{font-size:11px}body .site-header.mk10-v54-lower .header-inner{height:65px;justify-content:flex-end}body .site-header.mk10-v54-lower .menu-toggle{margin-left:auto}}
@media(max-width:730px){.mk10-v54-top-inner{width:calc(100% - 34px);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:13px 0}.mk10-v54-upper .mk10-v54-brand{grid-column:1;grid-row:1;width:175px;max-width:100%;flex:auto}.mk10-v54-auth{grid-column:2;grid-row:1;gap:9px}.mk10-v54-auth a{font-size:12px}.mk10-v54-country{grid-column:1/-1;grid-row:2;width:max-content;max-width:100%}.mk10-v54-country summary{min-height:43px;padding:6px 12px;gap:8px}.mk10-v54-country small{font-size:11px}.mk10-v54-country strong{font-size:12px}body .site-header.mk10-v54-lower .header-inner{height:54px}}
@media(max-width:410px){.mk10-v54-upper .mk10-v54-brand{width:140px}.mk10-v54-auth{gap:7px}.mk10-v54-auth a{font-size:11px;min-height:33px}.mk10-v54-country small{font-size:10px}}

/* MK10-019A: extender solo la navegacion del header SSI hasta 1460px. */
@media (min-width:1031px) and (max-width:1460px){
body .site-header.mk10-v54-lower .desktop-nav-mega,body .site-header.mk10-v54-lower .mk10-v53-header-actions{display:none!important}
body .site-header.mk10-v54-lower .header-inner{height:65px!important;justify-content:flex-end!important}
body .site-header.mk10-v54-lower .menu-toggle{display:flex;flex-direction:column;gap:6px;margin-left:auto;background:none;border:0;padding:10px}
body .site-header.mk10-v54-lower .menu-toggle span{width:24px;height:2px;background:white}
body .site-header.mk10-v54-lower .mobile-nav{display:block;position:absolute;left:0;right:0;top:100%;max-height:calc(100dvh - 88px);overflow:auto;padding:14px max(28px,6vw) 25px;background:#0a1a2c;box-shadow:0 22px 45px #0006}
body .site-header.mk10-v54-lower .mobile-nav[hidden]{display:none!important}
body .site-header.mk10-v54-lower .mob-nav-group{border-bottom:1px solid #ffffff26}
body .site-header.mk10-v54-lower .mob-nav-group>summary{list-style:none;font-size:17px;font-weight:800;color:#f1f4f8;padding:13px 0;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
body .site-header.mk10-v54-lower .mob-nav-group>summary::-webkit-details-marker{display:none}
body .site-header.mk10-v54-lower .mob-nav-group>div{padding:0 0 12px 12px}
body .site-header.mk10-v54-lower .mob-nav-group a{display:block!important;padding:10px;color:#c9d4df!important;font-size:15px!important;font-weight:550}
}
/* Un panel abierto no debe duplicar la navegacion al pasar a escritorio. */
@media (min-width:1461px){
body .site-header.mk10-v54-lower .menu-toggle,body .site-header.mk10-v54-lower .mobile-nav{display:none!important}
}