/* 
 * Global stylesheet for BYA theme
 * Put here shared utilities, tokens and layout helpers.
 */

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Tahoma", "Geneva", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.side-padding {
  padding-left: 104px;
  padding-right: 104px;
}

.blue-text {
  color: #2BA1FF;
}

/* Oculta títulos de plantilla cuando hay Hero */
.has-hero .page-title,
.has-hero .wp-block-post-title {
  display: none;
}

@media(max-width: 808px) {
  .side-padding {
    padding-left: 24px;
    padding-right: 24px;
  }
}



/* Clases generales de Padding */
.pt-0 { padding-top: 0 !important; }
.pt-10 { padding-top: 10px !important; }
.pt-20 { padding-top: 20px !important; }
.pt-30 { padding-top: 30px !important; }
.pt-40 { padding-top: 40px !important; }
.pt-50 { padding-top: 50px !important; }
.pt-60 { padding-top: 60px !important; }
.pt-70 { padding-top: 70px !important; }
.pt-80 { padding-top: 80px !important; }
.pt-90 { padding-top: 90px !important; }
.pt-100 { padding-top: 100px !important; }
.pt-110 { padding-top: 110px !important; }
.pt-120 { padding-top: 120px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-10 { padding-bottom: 10px !important; }
.pb-20 { padding-bottom: 20px !important; }
.pb-30 { padding-bottom: 30px !important; }
.pb-40 { padding-bottom: 40px !important; }
.pb-50 { padding-bottom: 50px !important; }
.pb-60 { padding-bottom: 60px !important; }
.pb-70 { padding-bottom: 70px !important; }
.pb-80 { padding-bottom: 80px !important; }
.pb-90 { padding-bottom: 90px !important; }
.pb-100 { padding-bottom: 100px !important; }
.pb-110 { padding-bottom: 110px !important; }
.pb-120 { padding-bottom: 120px !important; }




/* ============================
   HEADER PRINCIPAL
============================ */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 10000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  padding-top: 32px;
}

.site-header--scrolled {
  background: rgba(0, 48, 86, 0.94);
}

.site-header__bar {
  margin-inline: auto;
  padding-block: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0rem;
}

.site-header__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-header__brand img {
  display: block;
  height: 32px;
  width: auto;
}

.site-header__brand-text {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

/* Desktop nav */
.site-header__nav--desktop {
  flex: 1 1 auto;
  min-width: 0;
}

.main-menu {
  display: flex;
  justify-content: start;
  align-items: flex-start;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  padding-block: 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

.main-menu > li > a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -0.35rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: #2ea8ff;
  transition: transform 0.2s ease;
}

.main-menu > li > a:hover::after,
.main-menu > li.current-menu-item > a::after,
.main-menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* Actions desktop */
.site-header__actions--desktop {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header__mobile-utility {
  display: none;
}

/* Generic button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: #2ea8ff;
  color: #003056;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn--primary.header-cta {
  margin-right: 0;
}

.header-icon-button,
.header-lang-toggle,
.header-client-area__toggle {
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
}


.header-lang-toggle {
  position: relative;
  padding-right: 0.6rem;
}

.header-lang-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.header-lang-toggle[aria-expanded="true"]::after{
  transform: translateY(-45%) rotate(225deg);
}


/* GTranslate */
html body #gt_float_wrapper,
html body .gt_float_switcher {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Language dropdown */
.hl-lang {
  position: relative;
}

.hl-lang__menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  left: auto;
  background: #dedede;
  border: 1px solid rgba(43, 161, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: 0px;
  min-width: 60px;
  margin-top: 0;
  z-index: 30;
}

.hl-lang__item a {
  display: block;
  padding: 8px 18px;
  color: #003056;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
}

.hl-lang__item a:hover,
.hl-lang__item a:focus-visible {
  background: rgba(43, 161, 255, 0.08);
  color: #2BA1FF;
  outline: none;
}

/* Burger */
.site-header__burger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.site-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__burger span + span {
  margin-top: 4px;
}

.site-header--menu-open .site-header__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header--menu-open .site-header__burger span:nth-child(2) {
  opacity: 0;
}

.site-header--menu-open .site-header__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Desktop menu submenu */
.main-menu > li.menu-item-has-children {
  position: relative;
}

.main-menu > li.menu-item-has-children > a {
  padding-right: 0.8rem;
}

.main-menu > li.menu-item-has-children > a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.main-menu > li.menu-item-has-children:hover > a::before,
.main-menu > li.menu-item-has-children:focus-within > a::before {
  transform: translateY(-45%) rotate(225deg);
}

.main-menu .sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #dedede;
  border: 1px solid rgba(43, 161, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 20;
}

.main-menu > li.menu-item-has-children .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.main-menu > li.menu-item-has-children:hover > .sub-menu,
.main-menu > li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu .sub-menu li {
  margin: 0;
  padding: 0;
}

.main-menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: #003056;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.main-menu .sub-menu a:hover,
.main-menu .sub-menu a:focus-visible {
  background: rgba(43, 161, 255, 0.08);
  color: #2BA1FF;
  padding-left: 24px;
  outline: none;
}

.menu-submenu-toggle {
  display: none;
}

/* Client area */
.header-client-area {
  position: relative;
}

.header-client-area__menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #dedede;
  border: 1px solid rgba(43, 161, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 30;
}

.header-client-area__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.header-client-area__item {
  margin: 0;
  padding: 0;
}

.header-client-area__link {
  display: block;
  padding: 10px 20px;
  color: #003056;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.header-client-area__link:hover,
.header-client-area__link:focus-visible {
  background: rgba(43, 161, 255, 0.08);
  color: #2BA1FF;
  padding-left: 24px;
  outline: none;
}

/* Mobile panel hidden by default */
.site-header__panel {
  display: none;
}

/* ============================
   RESPONSIVE
============================ */


@media (max-width: 1366px) and (min-width: 961px) {
  .main-menu {
    gap: 1.3rem;
  }

  .main-menu > li > a {
    font-size: 0.9rem;
  }

  .site-header__actions--desktop {
    gap: 16px;
  }
}



@media (max-width: 960px) {
  .site-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
  }

  .site-header__brand {
    z-index: 3;
  }

  .site-header__nav--desktop,
  .site-header__actions--desktop {
    display: none;
  }

  .site-header__mobile-utility {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-self: end;
    z-index: 3;
  }

  .hl-lang--mobile {
    position: relative;
  }

  .header-client-area--mobile-top {
    position: relative;
    display: flex;
    align-items: center;
  }

  .header-client-area--mobile-top .header-client-area__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
  }

  .header-client-area--mobile-top .header-client-area__toggle svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: #fff;
  }

  .header-client-area--mobile-top .header-client-area__menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    left: auto;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #dedede;
    border: 1px solid rgba(43, 161, 255, 0.22);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    z-index: 30;
  }

  .header-client-area--mobile-top .header-client-area__menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
  }

  .header-client-area--mobile-top .header-client-area__link {
    display: block;
    padding: 10px 20px;
    color: #003056;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }

  .header-client-area--mobile-top .header-client-area__link:hover,
  .header-client-area--mobile-top .header-client-area__link:focus-visible {
    background: rgba(43, 161, 255, 0.08);
    color: #2BA1FF;
    padding-left: 24px;
    outline: none;
  }

  .header-client-area--mobile-top .header-client-area__toggle::after {
    display: none;
  }

  .hl-lang--mobile .header-lang-toggle {
    font-size: 0.875rem;
    line-height: 22px;
    white-space: nowrap;
  }

  .site-header__burger {
    display: block;
    margin-left: 0;
    z-index: 3;
  }

  .site-header__panel {
    position: fixed;
    inset: 0;
    background: #003056;
    z-index: 1;
    overflow-y: auto;
    padding-top: 7.5rem;
  }

  .site-header--menu-open .site-header__panel {
    display: block;
  }

  .site-header__panel-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 4rem;
  }

  .site-header__panel-search .header-search-toggle {
    width: 100%;
    justify-content: flex-start;
    border-bottom: 1px solid #2BA1FF;
    font-size: 1.25rem;
    line-height: 30px;
    padding-bottom: 8px;
  }

  .site-header__panel-search .header-icon-button__icon {
    height: 24px;
  }

  .site-header__panel-search .header-icon-button__icon svg {
    fill: #2BA1FF;
  }


  .site-header__nav--mobile .main-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .site-header__nav--mobile .main-menu > li {
    width: 100%;
  }

  .site-header__nav--mobile .main-menu > li > a {
    font-size: 0.875rem;
    line-height: 22px;
  }

  .site-header__nav--mobile .main-menu > li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }

  .site-header__nav--mobile .main-menu > li.menu-item-has-children > a {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    padding-right: 0;
  }

  .site-header__nav--mobile .main-menu > li.menu-item-has-children > a::before {
    display: none;
  }

  .menu-submenu-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    border: 0;
    background: transparent;
    color: #2BA1FF;
    cursor: pointer;
    padding: 0;
  }

  .menu-submenu-toggle::before {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .menu-item-has-children.is-submenu-open > .menu-submenu-toggle::before {
    transform: rotate(225deg);
  }

  .site-header__nav--mobile .main-menu > li.menu-item-has-children > .sub-menu {
    flex: 0 0 100%;
  }

  .site-header__nav--mobile .main-menu .sub-menu {
    position: static;
    min-width: 0;
    margin-top: 12px;
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .site-header__nav--mobile .main-menu > li.menu-item-has-children .sub-menu::before {
    display: none;
  }

  .site-header__nav--mobile .menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
  }

  .site-header__nav--mobile .main-menu .sub-menu li {
    border-top: 1px solid rgba(43, 161, 255, 0.22);
  }

  .site-header__nav--mobile .main-menu .sub-menu a {
    display: block;
    padding: 12px 0 12px 18px;
    font-size: 0.875rem;
    line-height: 22px;
    color: #E5E1E6;
    background: transparent;
  }

  .site-header__nav--mobile .main-menu .sub-menu a:hover,
  .site-header__nav--mobile .main-menu .sub-menu a:focus-visible {
    padding-left: 18px;
    color: #2BA1FF;
    background: transparent;
  }

  .site-header__panel-cta .header-cta {
    margin-top: 8px;
  }
}

/* Bloquear scroll cuando el menú móvil está abierto */
html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

/* ============================
  FIN HEADER PRINCIPAL
============================ */




/* ============================
   FOOTER
============================ */

.site-footer {
  background: #003056;
  color: #ffffff;
  padding: 120px 0 48px;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

/* Columna izquierda: logo + redes + línea + legales */
.site-footer__brand {
  flex: 1 1 45%;
}

.site-footer__logo .custom-logo {
  display: block;
  height: 32px;
  width: auto;
}

.site-footer__brand-text {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.site-footer__social {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #ffffff;
  text-decoration: none;
}

.site-footer__divider {
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Línea de legales */
.site-footer__legal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.site-footer__copy {
  white-space: nowrap;
}

/* Menú legal en línea */
.footer-legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-menu>li {
  position: relative;
  padding-inline: 0.75rem;
}

.footer-legal-menu>li:first-child {
  padding-inline-start: 0;
}

.footer-legal-menu>li+li::before {
  content: "|";
  position: absolute;
  inset-inline-start: -0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal-menu a {
  color: #ffffff;
  text-decoration: none;
}

/* Columnas de menús */
.site-footer__menus {
  flex: 1 1 55%;
  display: flex;
  justify-content: flex-end;
  gap: 4rem;
}

.site-footer__col {
  min-width: 140px;
}

.site-footer__col-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2ea8ff;
  /* azul más claro para los encabezados */
}

/* Menús de columna */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 0.35rem;
}

.footer-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-menu a:hover {
  opacity: 1;
}

.header-socials__link {
  color: #E5E1E6;
  text-decoration: none;
}

/* Noticias */
.nl-archive__section {
  background: #003056;
}

.nl-archive-filters {
  margin-bottom: 136px;
}

.nl-archive__empty {
  margin: 0;
  color: white;
}

.nl-archive-filters__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 70px;
}

.nl-archive-filters__label {
  display: block;
  margin-bottom: 4px;
  color: #D5D5CB;
  font-size: .87rem;
  font-weight: 400;
  line-height: 22px;
}

.nl-archive__empty-actions {
  margin-bottom: 0;
}

.nl-archive__reset {
  color: #2ea8ff;
  text-decoration: none;
}

.nl-archive-filters__control {
  border: none;
  border-bottom: 1px solid #2BA1FF;
  width: 100%;
  color: #E5E1E6;
  font-size: 1rem;
  line-height: 26px;
  padding: 8px 0;
  position: relative;
  background: #003056;
}

.nl-archive-filters__control:focus-visible {
  outline: none;
  border-color: #2ba1ff;
}

select#nl_filter_category {
  margin-top: 9px;
  background: #003056;
}

#nl_filter_date_from::-webkit-calendar-picker-indicator,
#nl_filter_date_to::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

#nl_filter_date_from:after,
#nl_filter_date_to:after {
  content: "›";
  position: absolute;
  right: 0;
  top: 37%;
  width: 10px;
  height: 10px;
  transform: rotate(90deg);
  pointer-events: none;
  color: #E5E1E6;
  font-size: 25px;
  text-align: right;
}

.nl-card__link {
  text-decoration: none;
}

.nl-archive-filters__control::placeholder {
  color: #E5E1E6;
  font-size: 1rem;
  line-height: 26px;
}

.nl-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 62px;
  row-gap: 100px;
}

.nl-featured__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 72px;
  row-gap: 100px;
  padding-bottom: 143px;
  background: #003056;
}

.nl-card--featured {
  overflow: hidden;
}

.nl-card--featured .nl-card__overlay {
  position: absolute;
  bottom: 0;
  padding: 40px;
  z-index: 1;
  transition: transform 0.5s ease;
  transform: translateY(49.9%);
}

.nl-card--featured:hover .nl-card__overlay {
  transform: translateY(0);
}

.nl-featured__grid .nl-card__excerpt--featured {
  color: white;
  margin-top: 5px;
  text-align: justify;
}

.nl-featured__grid .nl-card__read-more--featured {
  padding: 3px 5px;
  border: 1px solid #2BA1FF;
  border-radius: 8px;
  width: 116px;
  text-align: center;
  color: white;
  font-weight: 700;
  margin-top: 31px;
}

.nl-featured__grid .nl-card__read-more--featured:after {
  display: none;
}

.nl-featured__grid .nl-card__excerpt--featured,
.nl-featured__grid .nl-card__read-more--featured {
  overflow: hidden;
  display: block;
  opacity: 0;
}

.nl-featured__grid .nl-card:hover .nl-card__excerpt--featured {
  opacity: 1;
}

.nl-featured__grid .nl-card__meta {
  font-size: .875rem;
  line-height: 18px;
  margin-bottom: 12px;
  color: #E5E1E6;
}

.nl-featured__grid .nl-card__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 46px;
  margin: 0;
}

.nl-featured .nl-card__link:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.5s ease;
  z-index: 0;
}

.nl-featured .nl-card--featured:hover .nl-card__link:after {
  background: #003056;
}

.nl-featured .nl-card__media img {
  width: 100%;
  margin-bottom: 0;
}

.nl-archive-results {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.nl-archive-results.nl-archive-results--loading {
  opacity: 0.3;
}

/* Tarjetas: animación de entrada al aparecer */
.nl-card {
  opacity: 0;
  transform: translateY(10px);
  animation: nl-card-fade-in 0.35s ease forwards;
}

@keyframes nl-card-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nl-card__media {
  position: relative;
}

.nl-card__media img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.nl-card__media::after {
  content: "";
  background: #003056;
  width: 50px;
  height: 50px;
  position: absolute;
  right: -35px;
  top: calc(50% - 25px);
  z-index: 1;
  transform: rotate(45deg);
}

.nl-card__body {
  padding: 16px 12px;
  color: #E5E1E6;
  transition: padding-top 0.3s ease;
}

.nl-card__body:hover {
  padding-top: 0;
}

.nl-card__body:hover .nl-card__title {
  color: #2BA1FF;
  transition: color 0.3s ease;
}

.nl-card__read-more::after {
  content: "›";
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-left: 9px;
  display: inline-block;
  color: #E5E1E6;
  font-size: 1.2rem;
  position: absolute;
  top: -2px;
}

.nl-card__body:hover .nl-card__read-more::after {
  opacity: 1;
  transform: translateX(0);
}

.nl-card__meta {
  font-size: .75rem;
  line-height: 18px;
  margin-bottom: 24px;
}

.nl-card__title {
  font-size: 1.5rem;
  line-height: 34px;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 400;
}

.nl-card__title:hover {
  text-decoration: underline;
}

.nl-card__excerpt {
  font-size: 1rem;
  line-height: 26px;
  margin-bottom: 24px;
  text-align: justify;
}

.nl-card__read-more {
  font-size: .87rem;
  color: #2BA1FF;
  line-height: 22px;
  position: relative;
}

.nav-links {
  text-align: center;
  font-size: .75rem;
  color: #E5E1E6;
  padding: 60px 0 40px 0;
  line-height: 20px;
}

.nav-links .page-numbers {
  height: 20px;
  width: 20px;
  display: inline-block;
  color: #E5E1E6;
  text-decoration: none;
}

.nav-links .page-numbers.current {
  border-bottom: 1px solid #2BA1FF;
  padding-bottom: 8px;
}

/* Contenedor general de la noticia */
.sn-single {
  /* asumes que el body ya tiene fondo azul corporativo aquí */
  padding-bottom: 4rem;
  color: #fff;
  /* si el fondo es oscuro; ajusta según tu escala */
  background: #003056;
}

/* Header: breadcrumbs + título + meta */
.sn-single__header {
  padding-top: 106px;
  padding-bottom: 1.5rem;
}

.sn-breadcrumbs {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 42px;
}

.sn-breadcrumbs a {
  color: white;
  text-decoration: none;
}

.sn-breadcrumbs a:hover {
  text-decoration: underline;
}

.sn-breadcrumbs__link {
  text-decoration: none;
  color: white;
  font-size: 0.75rem;
}

.sn-breadcrumbs__sep {
  margin: 0 0.35rem;
  color: #2BA1FF;
}

.sn-breadcrumbs__current {
  font-weight: 500;
}

.sn-single__title {
  font-size: 3rem;
  line-height: 66px;
  margin: 0 0 56px;
}

.sn-single__meta {
  font-size: 0.9rem;
  line-height: 22px;
  border-bottom: 1px solid #E5E1E6;
  padding-bottom: 32px;
}

/* Imagen principal */
.sn-single__hero-media {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.sn-single__hero-image-wrapper {
  overflow: hidden;
  position: relative;
}

.sn-single__hero-image-wrapper:after {
  content: "";
  background: #003056;
  width: 80px;
  height: 80px;
  position: absolute;
  right: -41px;
  top: calc(50% - 25px);
  z-index: 1;
  transform: rotate(45deg);
}

.sn-single__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Zona principal dos columnas */
.sn-single__main {
  margin-bottom: 3rem;
}

.sn-single__inner--columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 144px;
  align-items: flex-start;
}

/* Columna izquierda: cuerpo */
.sn-single__content {
  font-size: 1rem;
  line-height: 26px;
}

.sn-single__content h2 {
  font-size: 2rem;
}

.sn-single__content h3 {
  font-size: 1.5rem;
}

.sn-single__content a {
  color: #2ea8ff;
}

.sn-single__content a:hover {
  color: #fff;
}


/* Aseguramos estilos básicos de textos WYSIWYG */
.sn-single__content p {
  margin-bottom: 1rem;
}

.sn-single__content p:last-child {
  margin-bottom: 0;
}

/* Columna derecha: destacado */
.sn-single__sidebar {
  font-size: 0.98rem;
}

.sn-single__highlight {
  font-weight: 400;
  line-height: 50px;
  border-top: 1px solid #2BA1FF;
  border-bottom: 1px solid #2BA1FF;
  font-size: 2.25rem;
}

.sn-single__highlight p {
  margin: 48px 0;
}

/* Bloques inferiores (the_content) */
.sn-single__blocks {
  padding-top: 2.5rem;
}

/* Búsqueda */
#site-search-overlay .hs-overlay__inner {
  padding-left: 154px !important;
  padding-right: 154px !important;
  background: #003056 !important;
}

/* Quitar la X nativa del <input type="search"> (Chrome/Safari) */
#site-search-overlay .hs-search__input[type="search"]::-webkit-search-cancel-button,
#site-search-overlay .hs-search__input[type="search"]::-webkit-search-decoration,
#site-search-overlay .hs-search__input[type="search"]::-webkit-search-results-button,
#site-search-overlay .hs-search__input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Legacy Edge/IE (por si acaso) */
#site-search-overlay .hs-search__input[type="search"]::-ms-clear,
#site-search-overlay .hs-search__input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}


.hs-overlay__close {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #003056 !important;
  font-size: 23px;
  color: #2BA1FF !important;
  padding: 29px 0 45px;
  z-index: 9;
}

.hs-overlay__close:after {
  content: "Cerrar";
  display: block;
  margin-top: 8px;
  font-size: .75rem;
  line-height: 22px;
  color: #E5E1E6;
}

#site-search-overlay .hs-overlay__top {
  width: 100%;
  display: block !important;
  padding-top: 78px;
}

#site-search-overlay .hs-search {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
  border-bottom: 1px solid #2BA1FF !important;
  padding-bottom: 20px !important;
}

.hs-search__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BA1FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
}

#site-search-overlay .hs-search__input {
  font-size: 2.5rem !important;
}

.hs-search__clear {
  font-size: .875rem;
  position: relative;
}

.hs-search__clear:before {
  content: "✕";
  position: absolute;
  left: -10px;
  bottom: 2px;
  color: #2BA1FF;
}

#site-search-overlay .hs-results__list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  max-width: 900px;
  padding-bottom: 150px !important;
}

#site-search-overlay .hs-result {
  padding: 32px 0 24px 0 !important;
  border-top: none !important;
  border-bottom: 1px solid #2BA1FF;
}

#site-search-overlay .hs-result__meta {
  color: #E5E1E6 !important;
  margin-bottom: 16px !important;
}

#site-search-overlay .hs-result__title {
  font-size: 1.25rem !important;
}

#site-search-overlay .hs-result__title:hover {
  color: #2BA1FF;
  text-decoration: none !important;
}

#site-search-overlay .hs-result__arrow {
  color: #2BA1FF !important;
}

#site-search-overlay .hs-overlay__content::-webkit-scrollbar {
  width: 2px;
}

#site-search-overlay .hs-overlay__content::-webkit-scrollbar-track {
  background: #D5D5CB;
}

#site-search-overlay .hs-overlay__content::-webkit-scrollbar-thumb {
  background-color: #2BA1FF;
  border-radius: 4px;
}

#site-search-overlay .hs-overlay__content::-webkit-scrollbar-thumb:hover {
  background-color: #1a7fcc;
}

.status-publish .wp-block-group,
.status-publish .wp-block-columns {
  background: #003056;
  color: white;
  padding-top: 2.25rem;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 2.25rem;
}

#cmplz-cookies-overview .cmplz-dropdown summary,
#cmplz-document .cmplz-dropdown summary,
.editor-styles-wrapper .cmplz-unlinked-mode .cmplz-dropdown summary {
  background: transparent;
}

#cmplz-document{
      max-width: none;
}

.wp-block-column-cookies{
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
}

#cmplz-document p{
      font-size: 16px;
}

#cmplz-document .cookies-per-purpose, #cmplz-document .cookies-per-purpose a{
  color: #333;
}

.status-publish .wp-block-group a,
.status-publish .wp-block-columns a {
  color: white;
}

/* =========================
   SEARCH OVERLAY (SCOPED)
   Solo afecta a #site-search-overlay
   ========================= */

#site-search-overlay[hidden] {
  display: none;
}

#site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .75);
}

#site-search-overlay .hs-overlay__inner {
  height: 100%;
  background: #0b2b45;
  /* ajustaremos a tu azul real */
  padding: 32px 24px;
}

#site-search-overlay .hs-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#site-search-overlay .hs-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(820px, 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding-bottom: 10px;
}

#site-search-overlay .hs-search__input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 22px;
}

#site-search-overlay .hs-overlay__close,
#site-search-overlay .hs-overlay__bottom-close,
#site-search-overlay .hs-search__clear {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

#site-search-overlay .hs-overlay__content {
  margin-top: 28px;
}

#site-search-overlay .hs-overlay__hint {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

#site-search-overlay .hs-overlay__bottom-close {
  margin-top: 32px;
  opacity: .8;
}

/* Bloqueo scroll (global, pero solo se activa con JS del buscador) */
body.hs-overlay-open {
  overflow: hidden;
}

/* =========================
      RESULTS (SCOPED)
      ========================= */

#site-search-overlay .hs-results {
  margin-top: 22px;
}

#site-search-overlay .hs-results__loading,
#site-search-overlay .hs-results__empty {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  margin: 18px 0 0;
}

#site-search-overlay .hs-results__list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  max-width: 900px;
}

#site-search-overlay .hs-result {
  position: relative;
  padding: 18px 48px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

#site-search-overlay .hs-result__meta {
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  margin-bottom: 8px;
}

#site-search-overlay .hs-result__title {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.25;
}

#site-search-overlay .hs-result__title:hover {
  text-decoration: underline;
}

#site-search-overlay .hs-result__excerpt {
  margin-top: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.45;
  max-width: 75ch;
}

#site-search-overlay .hs-result__arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  opacity: .7;
}


/* 1) Estructura general: top fijo, content en medio, bottom fijo */
#site-search-overlay .hs-overlay__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* top no se encoge */
#site-search-overlay .hs-overlay__top {
  flex: 0 0 auto;
}

/* bottom no se encoge y queda siempre visible */
#site-search-overlay .hs-overlay__bottom-close {
  flex: 0 0 auto;
  margin-top: 18px;
  /* ajusta a gusto */
}

/* 2) El content ocupa el resto, pero NO scrollea (scrollea .hs-results) */
#site-search-overlay .hs-overlay__content {
  flex: 1 1 auto;
  min-height: 0;
  /* CLAVE para que el overflow del hijo funcione */
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}

/* El hint queda arriba y no scrollea */
#site-search-overlay .hs-overlay__hint {
  flex: 0 0 auto;
}

/* 3) SOLO los resultados scrollean */
#site-search-overlay .hs-results {
  flex: 1 1 auto;
  min-height: 0;
  /* CLAVE */
  overflow: auto;
  margin-top: 16px;
  /* antes tenías 22px, ajusta si quieres */
  padding-right: 6px;
  /* opcional, separa del scrollbar */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}



/* Layout: top fijo, contenido scrolleable, bottom fijo */
#site-search-overlay .hs-overlay__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* El bloque superior no debe encogerse */
#site-search-overlay .hs-overlay__top {
  flex: 0 0 auto;
}

/* El contenido ocupa el resto y permite scroll interno */
#site-search-overlay .hs-overlay__content {
  flex: 1 1 auto;
  min-height: 0;
  /* clave para que overflow funcione en flex */
  overflow: auto;
  /* aquí aparece el scroll */
  margin-top: 28px;
  padding-right: 6px;
  /* opcional: separa del scrollbar */
}

/* El botón inferior siempre visible */
#site-search-overlay .hs-overlay__bottom-close {
  flex: 0 0 auto;
  margin-top: 18px;
  /* ajusta si quieres */
}

/* ============================
   FOOTER RESPONSIVE
   ============================ */

@media (max-width: 960px) {
  .site-footer {
    padding: 2.5rem 0 2rem;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .site-footer__menus {
    width: 100%;
    justify-content: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
  }

  .site-footer__col {
    flex: 1 1 45%;
  }
}

@media(max-width: 768px) {
  .nl-archive__grid {
    grid-template-columns: 1fr;
        row-gap: 56px;
  }

  .nl-featured__grid {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
    column-gap: 48px;
    row-gap: 48px;
  }

  .nl-featured__grid .nl-card__excerpt--featured {
    display: none;
  }

  .nl-card--featured .nl-card__overlay {
    padding: 20px;
    bottom: 0;
    top: auto;
    transform: translateY(35.9%);
  }

  .nl-featured__grid .nl-card__read-more--featured {
    color: white;
    background: transparent;
  }

  .nl-featured__grid .nl-card__title {
    font-size: 1.5rem;
    line-height: 31px;
  }

  .nl-card__media {
    height: auto;
  }

  .nl-featured .nl-card__media img {
    width: auto;
    height: 100%;
  }

  .nl-archive-filters{
        margin-bottom: 80px;
  }

  .nl-archive-filters__row {
    grid-template-columns: 1fr;
            gap: 35px;
  }

  .sn-single__inner--columns {
    grid-template-columns: 1fr;
  }

  #site-search-overlay {
    z-index: 99999 !important;
  }

  #site-search-overlay .hs-overlay__inner {
    padding: 25px !important;
  }

  #site-search-overlay .hs-search__input {
    font-size: 1.5rem !important;
  }

  .sn-single__hero-image-wrapper:after {
    width: 50px;
    height: 50px;
  }

  .sn-single__title {
    font-size: 2.25rem;
    line-height: 46px;
  }
}

@media (max-width: 600px) {
  .site-footer__menus {
    flex-direction: column;
    gap: 1.75rem;
  }

  .site-footer__col {
    flex: 1 1 100%;
  }

  .site-footer__legal-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal-menu {
    padding-left: 0;
  }

  .footer-legal-menu>li {
    padding-inline: 0;
  }

  .footer-legal-menu>li+li::before {
    content: "";
  }
}


/* ============================
   FIN FOOTER
============================ */