/* Encabezado del sitio (jala/site-header): carga después de assets/blocks.css (variables y piezas compartidas). */
/* Encabezado: valores de Next.js (Common/Header, HeaderDesktop, HeaderMobile, ButtonV3/LinkHeader, themeV2.css). */
.jb-header { position: sticky; top: 0; z-index: 50; width: 100%; font-family: var(--jb-font); opacity: 1; transition: opacity .5s linear; }
.jb-header.is-hidden { opacity: 0; pointer-events: none; }
/* La plantilla de bloques envuelve el encabezado en un div de su misma altura: sin esto, sticky no tiene recorrido. */
.wp-block-template-part:has(> .jb-header) { display: contents; }
.admin-bar .jb-header { top: 46px; } /* barra de administración de WordPress (sesión iniciada) */
@media (min-width: 783px) { .admin-bar .jb-header { top: 32px; } }
:where(.jb-header *) { margin: 0; padding: 0; box-sizing: border-box; } /* el reinicio global de Next.js, sin ganar a ninguna regla */
.jb-header__bar { position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: stretch; gap: 16px;
  min-height: 80px; padding: 0 16px; background: var(--jb-n0); box-shadow: var(--jb-card-shadow); }
.jb-brand { display: flex; align-items: center; flex: none; width: 107px; text-decoration: none; color: var(--jb-n1000); font-weight: 800; }
.jb-brand img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.jb-header__cta { align-self: center; margin-left: auto; }
.jb-header__cta.jb-btn--medium { padding: 8px 25px; } /* en móvil, tamaño small como Next.js */
.jb-header__toggle { align-self: center; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--jb-n1000); }
.jb-header__toggle .jb-icon--close, .jb-header.is-menu-open .jb-header__toggle .jb-icon--menu { display: none; }
.jb-header.is-menu-open .jb-header__toggle .jb-icon--close { display: block; }
.jb-header.is-menu-open .jb-header__cta { display: none; }
.jb-header.is-menu-open .jb-header__toggle { margin-left: auto; }

/* Móvil (< 990 px): menú a pantalla completa bajo la barra, con acordeón. */
.jb-nav { position: absolute; top: 80px; right: 0; width: 100%; height: calc(100vh - 80px); display: flex; flex-direction: column; overflow: auto;
  background: var(--jb-n0); clip-path: inset(0 0 0 100%); visibility: hidden;
  transition: clip-path .5s cubic-bezier(.77, .2, .05, 1), visibility 0s linear .5s; }
.jb-header.is-menu-open .jb-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s cubic-bezier(.77, .2, .05, 1), visibility 0s; }
.jb-nav__list { display: flex; flex-direction: column; gap: 12px; list-style: none; flex-grow: 1; overflow-y: auto; }
.jb-nav__row { height: 48px; display: flex; align-items: center; padding-right: 8px; cursor: pointer; }
.jb-nav__item.is-open > .jb-nav__row::before,
.jb-nav__item.is-current > .jb-nav__row::before { content: ""; flex: none; width: 2px; height: 48px; background: var(--jb-red); } /* is-current: sección de la página actual */
.jb-nav__link { display: flex; align-items: center; justify-content: flex-start; flex: 1; padding: 12px 16px; border: 0; border-radius: 0; background: var(--jb-n0);
  font: 800 1rem/1.125rem var(--jb-font); color: var(--jb-n900); text-decoration: none; text-align: left; cursor: pointer; }
.jb-nav__toggle { display: flex; background: none; border: 0; cursor: pointer; color: var(--jb-n500); }
.jb-nav__toggle .jb-icon--up, .jb-nav__item.is-open .jb-nav__toggle .jb-icon--down { display: none; }
.jb-nav__item.is-open .jb-nav__toggle { color: var(--jb-red); }
.jb-nav__item.is-open .jb-nav__toggle .jb-icon--up { display: block; }
.jb-nav__panel { display: none; flex-direction: column; gap: 12px; background: var(--jb-n200); }
.jb-nav__item.is-open > .jb-nav__panel { display: flex; }
.jb-nav__groups, .jb-nav__group, .jb-nav__links { display: contents; }
.jb-nav__entry { list-style: none; display: contents; }
.jb-nav__sublink, .jb-nav__group-title, .jb-nav__seeall { display: flex; align-items: center; width: 100%; height: 48px; padding-left: 32px; background: none; border: 0;
  text-decoration: none; text-align: left; font: 400 .813rem/1rem var(--jb-font); color: var(--jb-n800); }
.jb-nav__group-title { font: 800 1rem/1.125rem var(--jb-font); color: var(--jb-n900); border-bottom: .5px solid var(--jb-n300); }
.jb-nav__sublink[aria-current="page"], .jb-nav__group-title[aria-current="page"] { color: var(--jb-red); }
.jb-nav__info { display: none; }
.jb-nav__seeall { display: none; color: var(--jb-cyan-700); cursor: pointer; }
.jb-nav__links[data-more5]:not(.is-all) .jb-nav__x5 { display: none; }
.jb-nav__links[data-more5]:not(.is-all) .jb-nav__seeall { display: flex; }
.jb-nav__seeall-item { display: contents; }
.jb-nav__cta { display: flex; padding: 16px; background: var(--jb-n0);
  box-shadow: 0 -8.57px 17.14px 1px rgba(138, 151, 178, .25), 0 -8.57px 25.71px 8.57px rgba(138, 151, 178, .15); }
.jb-nav__cta .jb-btn { width: 100%; }

/* With the 150 px minimum of .jb-btn the bar needs 339 px (16 padding + 107 brand + 16 gap + 150 CTA + 16 gap + 18
   toggle + 16 padding). The page only scrolls by what goes past the viewport's edge, not the padding: at 320 px the
   toggle ended at 323 px, 3 px past it, and the page scrolled sideways (WCAG 1.4.10 Reflow). Let the CTA shrink and
   wrap; the query stops at 359 px so no common phone width (360 px and up) changes. */
@media (max-width: 359px) {
  .jb-header__cta { min-width: 0; }
}

@media (min-width: 769px) {
  .jb-header__bar { padding: 0 24px; }
}

/* Escritorio (>= 990 px): opciones centradas; cada panel se abre al pasar el ratón o con el teclado. */
@media (min-width: 990px) {
  .jb-header__bar { justify-content: space-between; }
  .jb-brand { width: 170px; }
  .jb-header__cta { margin-left: 0; }
  .jb-header__cta.jb-btn--medium { padding: 14px 25px; }
  .jb-header__toggle, .jb-nav__toggle, .jb-nav__cta { display: none; }
  .jb-nav { position: static; width: auto; height: auto; overflow: visible; clip-path: none; visibility: visible; transition: none; background: none; flex-direction: row; }
  .jb-nav__list { flex-direction: row; justify-content: center; gap: 24px; flex-grow: 0; overflow: visible; height: 100%; }
  .jb-nav__item { position: relative; height: 100%; }
  .jb-nav__item::after { content: " "; display: block; width: 0; height: 0; background: var(--jb-red); transition: width .3s; }
  .jb-nav__item:hover::after, .jb-nav__item.is-current::after { width: 100%; height: 4px; margin-top: -4px; border-radius: 4px; }
  .jb-nav__row { height: 100%; padding: 0; cursor: default; }
  .jb-nav__item.is-open > .jb-nav__row::before, .jb-nav__item.is-current > .jb-nav__row::before { display: none; }
  .jb-nav__link { flex: none; min-width: 0; padding: 12px 16px; }
  .jb-nav__item.is-open .jb-nav__link { background: var(--jb-n200); border-radius: 40px; }
  .jb-nav__panel { position: absolute; top: 100%; left: 0; z-index: 1; flex-direction: column; gap: 12px; min-width: 316px; padding: 32px 24px;
    border-radius: 0 0 48px 48px; box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, .15); }
  .jb-nav__groups { display: flex; flex-direction: row; gap: 24px; }
  .jb-nav__group { display: flex; flex-direction: column; gap: 12px; min-width: 236px; }
  .jb-nav__links { display: flex; flex-direction: column; gap: 12px; list-style: none; }
  .jb-nav__entry { display: block; }
  .jb-nav__sublink, .jb-nav__group-title, .jb-nav__seeall { width: auto; height: 32px; padding-left: 0; border-bottom: 0; font: 800 1rem/1.5rem var(--jb-font); color: var(--jb-n800); }
  .jb-nav__group-title { color: var(--jb-n900); height: auto; }
  a.jb-nav__group-title { height: 32px; margin-bottom: 10px; } /* solo el título con enlace (clase Subitem de Next.js) */
  .jb-nav__group .jb-nav__sublink, .jb-nav__group .jb-nav__seeall { padding-left: 12px; }
  a.jb-nav__sublink:hover, a.jb-nav__group-title:hover { text-decoration: underline; }
  a.jb-nav__sublink:active, a.jb-nav__group-title:active { text-decoration: none; color: var(--jb-red); }
  .jb-nav__info { display: block; max-width: 224px; font: 400 .813rem/1.25rem var(--jb-font); color: var(--jb-n700); }
  .jb-nav__group .jb-nav__info { padding-left: 12px; }
  .jb-nav__seeall { font: 400 .813rem/1rem var(--jb-font); color: var(--jb-cyan-700); }
  .jb-nav__links[data-more5]:not(.is-all) .jb-nav__x5 { display: block; }
  .jb-nav__links[data-more5]:not(.is-all) .jb-nav__seeall { display: none; }
  .jb-nav__links[data-more10]:not(.is-all) .jb-nav__x10 { display: none; }
  .jb-nav__links[data-more10]:not(.is-all) .jb-nav__seeall { display: flex; }
}
@media (min-width: 1171px) {
  .jb-nav__link { justify-content: center; border-radius: 40px; padding: 8px 16px; }
  .jb-nav__link:hover { background: var(--jb-n200); }
}
@media (min-width: 1399px) {
  .jb-header__bar { padding: 0 72px; min-height: 96px; }
}
/*# sourceURL=jala-blocks/blocks/site-header/style.css */
