/* Sindicalización 20+ | Encabezado institucional unificado v1
   Basado en la Biblioteca Derecho Laboral aprobada.
   Aplicación limitada a páginas con <body class="s20-header-page">.
   No modifica los estilos generales del resto del sitio.
*/

.s20-header-page .site-header {

  position: sticky;
  top: 0;

  z-index: 1000;

  background: rgba(255,255,255,.97);

  backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(4,31,73,.08);

}

.s20-header-page .site-header .nav {

  width: min(1760px, calc(100% - 32px));

  max-width: 1760px;

  min-height: 82px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: clamp(10px, 1vw, 18px);

  flex-wrap: nowrap;

}

.s20-header-page .site-header .brand {

  display: flex;

  align-items: center;

  gap: 9px;

  flex: 0 0 auto;

  min-width: 0;

  text-decoration: none;

}

.s20-header-page .site-header .brand-logo {

  width: 50px;

  height: 50px;

  flex: 0 0 50px;

  object-fit: contain;

}

.s20-header-page .site-header .brand-text {

  display: flex;

  flex-direction: column;

  min-width: 0;

}

.s20-header-page .site-header .brand-text strong {

  font-family: "Poppins", sans-serif;

  font-size: 15px;

  font-weight: 900;

  line-height: 1.2;

  color: #062B63;

  white-space: nowrap;

}

.s20-header-page .site-header .brand-text span {

  margin-top: 2px;

  font-family: "Inter", sans-serif;

  font-size: 10px;

  font-weight: 700;

  line-height: 1.3;

  color: #4B5563;

  white-space: nowrap;

}

.s20-header-page .site-header .desktop-nav {

  display: flex;

  align-items: center;

  justify-content: center;

  flex: 1 1 auto;

  min-width: 0;

  gap: clamp(9px, .8vw, 16px);

  margin: 0;

  padding: 0;

  font-family: "Inter", sans-serif;

  font-size: clamp(11.5px, .77vw, 13px);

  font-weight: 900;

}

.s20-header-page .site-header .desktop-nav a {

  position: relative;

  display: inline-flex;

  align-items: center;

  flex: 0 0 auto;

  padding: 12px 0;

  color: #062B63;

  text-decoration: none;

  white-space: nowrap;

  transition: color .2s ease;

}

.s20-header-page .site-header .desktop-nav a:hover {

  color: #E21E26;

}

.s20-header-page .site-header .desktop-nav a::after {

  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 5px;

  height: 3px;

  border-radius: 999px;

  background: #E21E26;

  transform: scaleX(0);

  transform-origin: center;

  transition: transform .2s ease;

}

.s20-header-page .site-header .desktop-nav a:hover::after {

  transform: scaleX(1);

}

.s20-header-page .site-header .header-actions {

  display: flex;

  align-items: center;

  justify-content: flex-end;

  flex: 0 0 auto;

  gap: 8px;

  min-width: 0;

  margin: 0;

}

.s20-header-page .site-header .header-actions > a {

  flex: 0 0 auto;

  text-decoration: none;

}

.s20-header-page .labor-pill {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  min-height: 52px;

  padding: 7px 12px 7px 7px;

  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #E21E26 0%,
    #C61936 55%,
    #A91232 100%
  );

  border: 1px solid rgba(255,255,255,.2);

  color: #FFFFFF;

  white-space: nowrap;

  box-shadow:
    0 10px 24px rgba(226,30,38,.18);

  transition:
    transform .2s ease,
    box-shadow .2s ease;

}

.s20-header-page .labor-pill:hover {

  transform: translateY(-2px);

  box-shadow:
    0 15px 30px rgba(226,30,38,.28);

}

.s20-header-page .labor-pill-icon {

  width: 36px;

  height: 36px;

  display: grid;

  place-items: center;

  flex: 0 0 36px;

  border-radius: 50%;

  background: #FFFFFF;

  color: #C61936;

  font-size: 18px;

}

.s20-header-page .labor-pill-text {

  display: grid;

  gap: 2px;

  line-height: 1.05;

}

.s20-header-page .labor-pill-text strong {

  font-size: 12.5px;

  font-weight: 900;

  color: #FFFFFF;

}

.s20-header-page .labor-pill-text small {

  font-size: 9.5px;

  font-weight: 700;

  color: rgba(255,255,255,.92);

}

.s20-header-page .resources-pill {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  min-height: 52px;

  padding: 7px 12px 7px 8px;

  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #FFFFFF,
    #FFF2AE
  );

  border: 1px solid rgba(255,212,59,.75);

  color: #062B63;

  white-space: nowrap;

  box-shadow:
    0 10px 24px rgba(4,31,73,.09);

  transition:
    transform .2s ease,
    box-shadow .2s ease;

}

.s20-header-page .resources-pill:hover {

  transform: translateY(-2px);

  box-shadow:
    0 15px 30px rgba(4,31,73,.15);

}

.s20-header-page .resources-pill-icon {

  width: 36px;

  height: 36px;

  display: grid;

  place-items: center;

  flex: 0 0 36px;

  border-radius: 50%;

  background: #062B63;

  color: #FFFFFF;

  font-size: 18px;

}

.s20-header-page .resources-pill-text {

  display: grid;

  gap: 2px;

  line-height: 1.05;

}

.s20-header-page .resources-pill-text strong {

  font-size: 12.5px;

  font-weight: 900;

  color: #062B63;

}

.s20-header-page .resources-pill-text small {

  font-size: 9.5px;

  font-weight: 800;

  color: #4B5563;

}

.s20-header-page .site-header .header-actions .btn-blue {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 52px;

  padding: 12px 18px;

  border-radius: 999px;

  background: #003C8F;

  color: #FFFFFF;

  font-size: 13px;

  font-weight: 900;

  white-space: nowrap;

  text-decoration: none;

  transition:
    transform .2s ease,
    background .2s ease;

}

.s20-header-page .site-header .header-actions .btn-blue:hover {

  background: #062B63;

  transform: translateY(-2px);

}

.s20-header-page .dlb-more {

  display: none;

  position: relative;

  flex: 0 0 auto;

}

.s20-header-page .dlb-more > summary {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  min-height: 43px;

  padding: 9px 15px;

  border: 1px solid rgba(0,60,143,.16);

  border-radius: 13px;

  background: #F6F8FB;

  color: #062B63;

  font-family: "Inter", sans-serif;

  font-size: 13px;

  font-weight: 900;

  cursor: pointer;

  list-style: none;

}

.s20-header-page .dlb-more > summary::-webkit-details-marker {

  display: none;

}

.s20-header-page .dlb-more > summary::after {

  content: "⌄";

  font-size: 18px;

  line-height: 1;

}

.s20-header-page .dlb-more[open] > summary {

  background: #E8F8FF;

}

.s20-header-page .dlb-more[open] > summary::after {

  transform: rotate(180deg);

}

.s20-header-page .dlb-more__panel {

  position: absolute;

  top: calc(100% + 10px);

  left: 0;

  width: 250px;

  display: grid;

  gap: 3px;

  padding: 10px;

  border: 1px solid rgba(4,31,73,.12);

  border-radius: 16px;

  background: #FFFFFF;

  box-shadow:
    0 18px 42px rgba(4,31,73,.17);

  z-index: 2000;

}

.s20-header-page .dlb-more__panel a {

  display: block;

  padding: 11px 13px;

  border-radius: 9px;

  color: #062B63;

  font-size: 13px;

  font-weight: 800;

  text-decoration: none;

}

.s20-header-page .dlb-more__panel a:hover {

  background: #E8F8FF;

}

.s20-header-page .mobile-menu-button {

  display: none;

}

.s20-header-page .mobile-nav-inner {

  max-height: min(72vh, 620px);

  overflow-y: auto;

}

.s20-header-page .mobile-labor-link {

  display: grid !important;

  gap: 4px;

  padding: 15px 17px !important;

  border-radius: 16px !important;

  background: linear-gradient(
    135deg,
    #E21E26,
    #A91232
  ) !important;

  color: #FFFFFF !important;

}

.s20-header-page .mobile-labor-link span {

  font-weight: 900;

}

.s20-header-page .mobile-labor-link small {

  font-size: 12px;

  font-weight: 700;

  color: rgba(255,255,255,.9);

}

@media (min-width: 1420px) {
.s20-header-page .site-header .desktop-nav {

    display: flex !important;

  }
.s20-header-page .site-header .header-actions {

    display: flex !important;

  }
.s20-header-page .site-header .header-actions .btn-blue {

    display: inline-flex !important;

  }
.s20-header-page .dlb-more {

    display: none !important;

  }
.s20-header-page .mobile-menu-button {

    display: none !important;

  }
.s20-header-page .mobile-nav {

    display: none !important;

  }
}

@media (min-width: 1121px) and (max-width: 1419px) {
.s20-header-page .site-header .nav {

    gap: 14px;

  }
.s20-header-page .site-header .desktop-nav {

    display: none !important;

  }
.s20-header-page .dlb-more {

    display: block !important;

    margin-left: clamp(15px, 3vw, 45px);

  }
.s20-header-page .site-header .header-actions {

    display: flex !important;

    margin-left: auto;

  }
.s20-header-page .site-header .header-actions .btn-blue {

    display: inline-flex !important;

  }
.s20-header-page .mobile-menu-button {

    display: none !important;

  }
.s20-header-page .mobile-nav {

    display: none !important;

  }
}

@media (max-width: 1120px) {
.s20-header-page .site-header .nav {

    width: calc(100% - 28px);

    min-height: 76px;

  }
.s20-header-page .site-header .desktop-nav {

    display: none !important;

  }
.s20-header-page .dlb-more {

    display: none !important;

  }
.s20-header-page .site-header .header-actions {

    display: none !important;

  }
.s20-header-page .site-header .header-actions .btn-blue {

    display: none !important;

  }
.s20-header-page .mobile-menu-button {

    display: flex !important;

    flex: 0 0 auto;

    margin-left: auto;

  }
}

@media (max-width: 430px) {
.s20-header-page .site-header .brand-logo {

    width: 44px;

    height: 44px;

    flex-basis: 44px;

  }
.s20-header-page .site-header .brand-text strong {

    font-size: 13px;

  }
.s20-header-page .site-header .brand-text span {

    font-size: 9px;

    white-space: normal;

  }
}

@media (min-width: 1600px) {
.s20-header-page .site-header .desktop-nav {

    display: flex !important;

    flex: 1 1 auto;

    align-items: center;

    justify-content: space-evenly !important;

    gap: 12px !important;

    font-size: clamp(16px, 1vw, 18px) !important;

  }
.s20-header-page .site-header .desktop-nav a {

    font-size: inherit !important;

    font-weight: 900 !important;

    letter-spacing: -0.2px;

    white-space: nowrap;

  }
}

@media (min-width: 1420px) and (max-width: 1599px) {
.s20-header-page .site-header .desktop-nav {

    display: flex !important;

    flex: 1 1 auto;

    align-items: center;

    justify-content: space-evenly !important;

    gap: 8px !important;

    font-size: clamp(12.5px, 0.9vw, 14.5px) !important;

  }
.s20-header-page .site-header .desktop-nav a {

    font-size: inherit !important;

    font-weight: 900 !important;

    white-space: nowrap;

  }
}

@media (max-width: 1120px) {
.s20-header-page .site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255,255,255,.98);

    border-bottom: 1px solid rgba(4,31,73,.08);

  }
.s20-header-page .site-header .nav {

    width: calc(100% - 28px);

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

  }
.s20-header-page .site-header .brand {

    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 0;

    flex: 0 1 auto;

  }
.s20-header-page .site-header .brand-logo {

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    object-fit: contain;

  }
.s20-header-page .site-header .brand-text strong {

    font-size: 14px;

    line-height: 1.15;

  }
.s20-header-page .site-header .brand-text span {

    font-size: 10px;

    line-height: 1.3;

    white-space: normal;

  }
.s20-header-page .mobile-menu-button {

    display: flex !important;

    width: 46px;

    height: 46px;

    min-width: 46px;

    flex: 0 0 46px;

    margin-left: auto;

    border-radius: 14px;

    background: #062B63;

    box-shadow:
      0 6px 18px rgba(4,31,73,.14);

    transition:
      background .2s ease,
      transform .2s ease;

  }
.s20-header-page .mobile-menu-button:hover {

    background: #003C8F;

  }
.s20-header-page .site-header .mobile-nav {

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    width: 100%;

    padding: 8px 12px 14px;

    background: transparent;

    max-height: calc(100vh - 82px);

    max-height: calc(100dvh - 82px);

    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;

    z-index: 1001;

  }
.s20-header-page .mobile-nav > .container {

    width: 100%;

    max-width: 540px;

    margin: 0 auto;

    padding: 0;

  }
.s20-header-page .mobile-nav-inner {

    display: grid;

    grid-template-columns: 1fr;

    gap: 6px;

    padding: 12px;

    max-height: none;

    overflow: visible;

    border-radius: 20px;

    background: #FFFFFF;

    border: 1px solid rgba(4,31,73,.1);

    box-shadow:
      0 18px 45px rgba(4,31,73,.18);

  }
.s20-header-page .mobile-nav-inner > a {

    display: flex;

    align-items: center;

    min-height: 42px;

    padding: 10px 14px;

    border-radius: 12px;

    background: #F6F8FB;

    color: #062B63;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    font-weight: 800;

    line-height: 1.3;

    text-decoration: none;

    transition:
      background .2s ease,
      color .2s ease;

  }
.s20-header-page .mobile-nav-inner > a:hover {

    background: #E8F8FF;

    color: #003C8F;

  }
.s20-header-page .mobile-nav-inner > .mobile-labor-link {

    display: grid !important;

    align-content: center;

    gap: 4px;

    min-height: 65px;

    padding: 12px 15px !important;

    border-radius: 14px !important;

    background: linear-gradient(
      135deg,
      #E21E26 0%,
      #B81035 100%
    ) !important;

    color: #FFFFFF !important;

    box-shadow:
      0 6px 15px rgba(226,30,38,.12);

  }
.s20-header-page .mobile-labor-link span {

    font-size: 15px;

    font-weight: 900;

    line-height: 1.25;

    color: #FFFFFF;

  }
.s20-header-page .mobile-labor-link small {

    font-size: 11px;

    font-weight: 700;

    line-height: 1.3;

    color: rgba(255,255,255,.9);

  }
.s20-header-page .mobile-nav-inner > .mobile-resource-link {

    display: grid !important;

    align-content: center;

    gap: 4px;

    min-height: 65px;

    padding: 12px 15px !important;

    border-radius: 14px !important;

    background: linear-gradient(
      135deg,
      #FFF4B8 0%,
      #FFFFFF 100%
    ) !important;

    border: 1px solid #FFD43B;

    color: #062B63 !important;

    box-shadow:
      0 5px 14px rgba(4,31,73,.05);

  }
.s20-header-page .mobile-resource-link span {

    font-size: 15px;

    font-weight: 900;

    line-height: 1.25;

    color: #062B63;

  }
.s20-header-page .mobile-resource-link small {

    font-size: 11px;

    font-weight: 700;

    line-height: 1.3;

    color: #4B5563;

  }
.s20-header-page .mobile-nav-inner a:focus-visible,
  .s20-header-page .mobile-menu-button:focus-visible {

    outline: 3px solid #22B8E8;

    outline-offset: 3px;

  }
}

@media (max-width: 600px) {
.s20-header-page .site-header .nav {

    min-height: 68px;

  }
.s20-header-page .site-header .brand-logo {

    width: 43px;

    height: 43px;

    flex-basis: 43px;

  }
.s20-header-page .site-header .brand-text strong {

    font-size: 13px;

  }
.s20-header-page .site-header .brand-text span {

    font-size: 9px;

  }
.s20-header-page .mobile-menu-button {

    width: 43px;

    height: 43px;

    min-width: 43px;

    flex-basis: 43px;

    border-radius: 13px;

  }
.s20-header-page .site-header .mobile-nav {

    padding: 6px 10px 12px;

    max-height: calc(100vh - 74px);

    max-height: calc(100dvh - 74px);

  }
.s20-header-page .mobile-nav-inner {

    padding: 10px;

    gap: 5px;

    border-radius: 18px;

  }
.s20-header-page .mobile-nav-inner > a {

    min-height: 40px;

    padding: 9px 12px;

    font-size: 13.5px;

    border-radius: 11px;

  }
.s20-header-page .mobile-nav-inner > .mobile-labor-link,
  .s20-header-page .mobile-nav-inner > .mobile-resource-link {

    min-height: 60px;

    padding: 10px 13px !important;

  }
}

@media (max-width: 390px) {
.s20-header-page .site-header .brand-text strong {

    font-size: 12px;

  }
.s20-header-page .site-header .brand-text span {

    font-size: 8.5px;

  }
.s20-header-page .mobile-nav-inner > a {

    font-size: 13px;

  }
}

/* Estado del menú móvil: el botón flotante no tapa la navegación. */
@media (max-width: 1120px) {
  .s20-header-page:has(#mobile-menu:checked) .whatsapp-float {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
