/* 
 * 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;
  }
}



/* ============================
   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;
}

/* Estado al hacer scroll (se activa desde JS) */
.site-header--scrolled {
  background: rgba(0, 48, 86, 0.94);
  /*box-shadow: 0 6px 20px rgba(0, 48, 86, 0.4);*/
}

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

/* Logo */
.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;
}

/* NAV desktop */
.site-header__nav {
  flex: 1 1 auto;
}

.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: 0.9rem;
  font-weight: 400;
  padding-block: 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

/* subrayado al hover / activo */
.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);
}

/* Acciones derecha: CTA + buscador + idioma */
.site-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Botón genérico */
.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: 12px 28px;
  font-size: 0.9rem;
}

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

/* Iconos de buscador / idioma */
.header-icon-button,
.header-lang-toggle {
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

#hl-lang-menu {
  position: absolute;
  background: #aba8a8;
  padding: 5px 10px;
  margin-top: 5px;
}

span.header-icon-button__icon {
  margin-right: 6px;
}

/* Hamburguesa (solo se ve en móvil) */
.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;
}

/* Estado abierto de la hamburguesa */
.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);
}

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

@media (max-width: 960px) {
  .site-header__inner {
    gap: 1rem;
  }

  /* En móvil ocultamos nav + acciones por defecto */
  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .site-header__burger {
    display: block;
  }

  /* Menú cuando está abierto (clase puesta por JS) */
  .site-header--menu-open .site-header__nav {
    display: block;
    position: fixed;
    inset-inline: 0;
    inset-block-start: 100%;
    background: #003056;
    padding: 12rem 24px 8rem;
    top: 0;
    z-index: 0;
    height: 100%;
  }

  .site-header--menu-open .main-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .header-lang-toggle {
    z-index: 1;
    position: absolute;
    right: 5rem;
    top: 3.2rem;
  }

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

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

  .main-menu>li>a {
    font-size: .875rem;
    line-height: 22px;
  }

  .site-header--menu-open .site-header__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.98);
  }

  .header-cta {
    justify-content: left;
    position: absolute;
    top: 38rem;
    left: 19px;
  }

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

  .site-header__actions .header-search-toggle {
    position: absolute;
    left: 0;
    width: calc(100% - 48px);
    border-bottom: 1px solid #2BA1FF;
    margin: 0 24px;
    font-size: 1.25rem;
    line-height: 30px;
    top: 7.5rem;
    padding-bottom: 8px;
  }
}

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


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


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

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

.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;
  }

  .nl-featured__grid {
    grid-template-columns: 1fr;
  }

  .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__row {
    grid-template-columns: 1fr;
  }

  .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
============================ */