/* CHELECH · Sucursales en portada (no forma parte del header). */
.chelech-home-branches{position:relative;z-index:15;box-sizing:border-box;width:100%;max-width:1180px;margin:0 auto 0;font-family:inherit;line-height:1.35;color:#19283b}
.chelech-home-branches,.chelech-home-branches *,.chelech-home-branches *::before,.chelech-home-branches *::after{box-sizing:border-box}
.chelech-home-branches__bar{display:flex;flex-wrap:wrap;align-items:stretch;width:100%;min-height:57px;padding:0 5px;gap:0;background:#fff;border:1px solid #e2e8ef;border-radius:10px;box-shadow:0 3px 14px rgba(24,44,63,.06)}
.chelech-home-branches__tab{appearance:none;position:relative;flex:1 0 auto;min-width:max-content;min-height:57px;display:flex;align-items:center;justify-content:center;gap:5px;padding:11px 9px;border:0;border-radius:0;background:transparent;color:#35475a;font-family:inherit;font-size:clamp(10px,1.1vw,13px);font-weight:750;line-height:1.28;white-space:nowrap;overflow-wrap:normal;word-break:normal;cursor:pointer;transition:background .12s ease,color .12s ease}
.chelech-home-branches__tab+.chelech-home-branches__tab::before{content:'';position:absolute;top:17px;bottom:17px;left:0;width:1px;background:#edf0f3}
.chelech-home-branches__tab svg{flex:0 0 11px;width:11px;height:11px;color:#8b98a7;transition:transform .12s ease}
.chelech-home-branches__tab:hover,.chelech-home-branches__tab.is-active{background:#fff8d5;color:#1b2b3a}
.chelech-home-branches__tab.is-active::after{content:'';position:absolute;left:15px;right:15px;bottom:0;height:3px;background:#e2bb00;border-radius:3px 3px 0 0}
.chelech-home-branches__tab.is-active svg{transform:rotate(180deg);color:#374252}
.chelech-home-branches__panel{position:absolute;z-index:25;top:calc(100% - 1px);left:0;right:0;padding:22px 26px 19px;background:#fff;border:1px solid #dbe4ed;border-radius:11px;box-shadow:0 18px 50px rgba(19,42,61,.18);min-width:0}
.chelech-home-branches__panel[hidden]{display:none!important}
.chelech-home-branches__panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:0 0 17px;border-bottom:1px solid #e7edf2}
.chelech-home-branches__eyebrow{display:block;margin:0 0 4px;color:#778697;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.chelech-home-branches__panel-heading h2{margin:0!important;font-size:1.3rem!important;line-height:1.35!important;font-weight:750;color:#182839}
.chelech-home-branches__panel-heading p{margin:5px 0 0;font-size:.83rem;color:#68798b;line-height:1.4}
.chelech-home-branches__close{display:grid;place-items:center;width:32px;height:32px;flex:none;padding:0;border:0;border-radius:50%;background:#f1f5f8;color:#4b627a;font-size:24px;line-height:1;cursor:pointer}
.chelech-home-branches__links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:25px;row-gap:0;margin:11px 0 0}
.chelech-home-branches__link{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 2px;background:#fff;border-bottom:1px solid #edf1f5;color:#2a4055!important;font-size:.87rem;font-weight:560;text-decoration:none!important;line-height:1.35}
.chelech-home-branches__link span:first-child{overflow-wrap:anywhere}
.chelech-home-branches__link span:last-child{font-size:21px;font-weight:300;color:#99a7b5;line-height:1}
.chelech-home-branches__link:hover{background:#fbfcfe;color:#114c7b!important}
.chelech-home-branches__panel-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:16px 0 0}
.chelech-home-branches__panel-footer small{color:#718094;font-size:.76rem;line-height:1.45}
.chelech-home-branches__panel-footer a{display:inline-flex;gap:9px;align-items:center;white-space:nowrap;min-height:39px;padding:9px 14px;border-radius:8px;background:#ffdf10;color:#162332!important;font-size:.81rem;font-weight:750;text-decoration:none!important}
.chelech-home-branches__panel-footer a:hover{background:#efd002}
.chelech-home-branches :is(button,a):focus-visible{outline:2px solid #174a85;outline-offset:2px}
/* La portada no debe heredar los 24px de blockGap entre header y main.
   Queda una separación deliberada de solo 8px entre header y barra. */
body.home .wp-site-blocks > main.chelech-main{margin-block-start:0;padding-top:8px}
body.home .chelech-main > .chelech-home-branches{width:100%;max-width:1180px;margin-block-start:0;margin-inline:auto}
@media(max-width:1020px){.chelech-home-branches__tab{font-size:11px;gap:3px;padding-inline:6px}.chelech-home-branches__tab svg{width:9px;flex-basis:9px}.chelech-home-branches__panel{padding:18px}.chelech-home-branches__links{gap:0 17px}}
/* La navegación móvil será otra solución: no se aprieta una barra de 7 columnas. */
@media(max-width:767px){.chelech-home-branches{display:none!important}body.home .chelech-main > .chelech-home-branches{display:none!important}}
@media(prefers-reduced-motion:reduce){.chelech-home-branches *{transition:none!important}}

.chelech-home-branches__link.is-category-root{font-weight:800;}
.chelech-home-branches__panel{max-height:min(75vh,620px);overflow:auto;}
