:root {
  --ux-primary: #2E8BCA;
  --ux-primary-strong: #2E8BCA;
  --ux-accent: #F48634;
  --ux-bg: #f6f9fc;
  --ux-surface: #ffffff;
  --ux-text: #152536;
  --ux-muted: #5d6c7b;
  --ux-border: #dbe5ef;
  --ux-success: #0b8a5a;
  --ux-danger: #bf1d2d;
  --ux-shadow-sm: 0 4px 18px rgba(21, 37, 54, 0.08);
  --ux-shadow-lg: 0 12px 30px rgba(21, 37, 54, 0.14);
  --ux-radius-md: 12px;
  --ux-radius-lg: 18px;
  --ux-transition: 220ms ease;
  --ux-brand-blue: #2E8BCA;
  --ux-brand-orange: #F48634;
  --ast-global-color-0: #2E8BCA;
  --ast-global-color-1: #F48634;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ux-bg);
  color: var(--ux-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p,
li,
label,
input,
textarea,
select {
  line-height: 1.62;
}

a {
  color: var(--ux-primary);
  transition: color var(--ux-transition), opacity var(--ux-transition);
}

a:hover {
  color: var(--ux-accent);
}

.site-header,
#ast-desktop-header,
#ast-mobile-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(8px);
}

.site-header .main-header-bar,
.ast-primary-header-bar {
  box-shadow: var(--ux-shadow-sm);
}

/* Fuerza de layout del header para evitar mezcla desktop/mobile en escritorio */
@media (min-width: 922px) {
  #ast-desktop-header {
    display: block !important;
  }
  #ast-mobile-header,
  .ast-mobile-header-content {
    display: none !important;
  }

  /* Header desktop: logo izquierda + menu derecha (como original) */
  #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  #ast-desktop-header .site-header-primary-section-left {
    flex: 0 0 auto !important;
  }

  #ast-desktop-header .site-header-primary-section-right {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  #ast-desktop-header .ast-builder-menu-1,
  #ast-desktop-header .ast-main-header-bar-alignment,
  #ast-desktop-header .main-header-bar-navigation {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  #primary-site-navigation-desktop .main-navigation,
  #primary-site-navigation-desktop .main-header-menu {
    width: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
  }

  /* Barra superior: texto izquierda, boton+redes siempre a la derecha */
  .site-above-header-wrap .ast-builder-grid-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px;
  }

  .site-header-above-section-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .site-header-above-section-right {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    white-space: nowrap;
  }

  .site-header-above-section-right .ast-builder-layout-element,
  .site-header-above-section-right .ast-header-social-wrap,
  .site-header-above-section-right .header-social-inner-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
}

@media (max-width: 921px) {
  #ast-desktop-header {
    display: none !important;
  }
  #ast-mobile-header {
    display: block !important;
  }

  /* En móvil, mantener redes alineadas a la derecha en la barra superior */
  .site-header-above-section-right,
  .site-header-above-section-right .ast-builder-layout-element,
  .site-header-above-section-right .ast-header-social-wrap,
  .site-header-above-section-right .header-social-inner-wrap {
    justify-content: flex-end !important;
  }
}

.main-header-menu .menu-link,
.main-header-menu .sub-menu .menu-link {
  border-radius: 10px;
  transition: background-color var(--ux-transition), color var(--ux-transition);
}

.main-header-menu .menu-link:hover,
.main-header-menu .menu-link:focus-visible {
  background: rgba(15, 124, 198, 0.11);
  color: var(--ux-primary);
}

.site-content,
.entry-content {
  max-width: 100%;
}

.ast-container,
.elementor-section.elementor-section-boxed > .elementor-container {
  width: min(1240px, 100%);
}

.elementor-widget-wrap > .elementor-element,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.woocommerce .products .product {
  border-radius: var(--ux-radius-lg);
}

.elementor-widget-container {
  border-radius: var(--ux-radius-md);
}

img {
  border-radius: 10px;
}

.ast-button,
.ast-custom-button,
.elementor-button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"] {
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--ux-transition), box-shadow var(--ux-transition),
    background-color var(--ux-transition), color var(--ux-transition);
}

.ast-button:hover,
.ast-custom-button:hover,
.elementor-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--ux-shadow-sm);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
  border-radius: 12px;
  border: 1px solid var(--ux-border);
  background: var(--ux-surface);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ux-primary);
  box-shadow: 0 0 0 3px rgba(15, 124, 198, 0.16);
}

.frm_error,
.woocommerce-error {
  border-left: 4px solid var(--ux-danger);
}

.frm_message,
.woocommerce-message {
  border-left: 4px solid var(--ux-success);
}

.site-footer {
  border-top: 0 !important;
}

.site-footer a {
  color: inherit !important;
  opacity: 1 !important;
}

.site-footer a:hover {
  color: inherit !important;
}

.skip-link:focus,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ux-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: #0b2f4d;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}

.ux-fab-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99;
  display: grid;
  gap: 10px;
}

.ux-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 15px;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--ux-shadow-lg);
  text-decoration: none;
  white-space: nowrap;
}

.ux-fab--whatsapp {
  background: #1fae63;
}

.ux-fab--quote {
  background: var(--ux-primary);
}


.ux-fab:hover {
  color: #fff;
  transform: translateY(-1px);
}

.ux-backtop {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #1c2f45;
  color: #fff;
  box-shadow: var(--ux-shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--ux-transition), transform var(--ux-transition);
}

.ux-backtop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.error404,
.ux-404,
.ux-thanks {
  max-width: 760px;
  margin: 40px auto;
  background: var(--ux-surface);
  border: 1px solid var(--ux-border);
  border-radius: var(--ux-radius-lg);
  padding: 28px;
  box-shadow: var(--ux-shadow-sm);
}

.ux-meta-chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 124, 198, 0.1);
  color: var(--ux-primary);
}

@media (max-width: 921px) {
  body {
    font-size: 15px;
  }

  .ast-mobile-popup-content,
  .ast-mobile-header-content {
    background: #fff;
  }

  .main-header-menu .menu-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ux-fab-wrap {
    right: 12px;
    bottom: 12px;
  }

  .ux-fab {
    padding: 10px 12px;
    font-size: 0.86rem;
  }
}


.main-header-menu a.is-current,
.main-header-menu .current-menu-item > .menu-link {
  background: rgba(15, 124, 198, 0.16);
  color: var(--ux-primary) !important;
  font-weight: 700;
}

.entry-content,
.entry-content * {
  min-width: 0;
}

.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.sbs-6310-template-1-title,
.sbs-6310-template-1-description,
.sbs-6310-template-4-title,
.sbs-6310-template-4-description,
.elementor-flip-box__layer__title,
.elementor-flip-box__layer__description,
.ast-footer-copyright p,
.ast-builder-html-element p {
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Footer: dejar solo la versión correcta y comportamiento responsive limpio */
#colophon .footer-widget-area[data-section="section-fb-html-1"] {
  display: none !important;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] footer {
  background: transparent !important;
  padding: 0 !important;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] td {
  vertical-align: top;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

#colophon .ast-footer-copyright {
  padding-top: 4px;
}

#colophon .ast-footer-copyright p {
  margin: 0 0 8px 0 !important;
  line-height: 1.45 !important;
}

@media (max-width: 921px) {
  #colophon .footer-widget-area[data-section="section-fb-html-2"] table,
  #colophon .footer-widget-area[data-section="section-fb-html-2"] tbody,
  #colophon .footer-widget-area[data-section="section-fb-html-2"] tr,
  #colophon .footer-widget-area[data-section="section-fb-html-2"] td {
    display: block;
    width: 100%;
  }

  #colophon .ast-footer-copyright {
    margin-top: 12px;
  }
}

/* Mapa en ancho completo sin desbordar viewport */
.elementor-element-8a20abe .elementor-widget-container,
.elementor-element-8a20abe .elementor-custom-embed {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.elementor-element-8a20abe iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 460px !important;
  display: block !important;
  border: 0;
}

@media (max-width: 921px) {
  .elementor-element-8a20abe iframe {
    height: 340px !important;
  }
}










.ux-quote-float {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Desactivar popups heredados de WP que quedaron incrustados en el HTML */
#pum-2873,
#popmake-2873,
#um_upload_single,
#um_view_photo,
.pum,
.popmake,
.pum-overlay,
.elementor-location-popup {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* === Home + Footer hard fixes (2026-04-12) === */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#page,
#content,
.site,
.site-content,
.entry-content,
.elementor,
.e-con,
.e-con-inner {
  max-width: 100%;
  box-sizing: border-box;
}

/* Evita traslape en bloque Trayectoria/Compromiso */
.elementor-element-eef07f1 {
  margin-top: 0 !important;
}

.elementor-element-5569d1b > .elementor-widget-container {
  margin: 0 !important;
}

.elementor-element-5569d1b .elementor-flip-box {
  min-height: 460px;
}

.elementor-element-5569d1b .elementor-flip-box__layer,
.elementor-element-5569d1b .elementor-flip-box__layer__overlay,
.elementor-element-5569d1b .elementor-flip-box__layer__inner {
  width: 100%;
  box-sizing: border-box;
}

.elementor-element-5569d1b .elementor-flip-box__layer__inner {
  padding: 26px !important;
}

.elementor-element-5569d1b .elementor-flip-box__layer__description {
  max-width: 100%;
  line-height: 1.6 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
/* Footer: logos equilibrados + texto de contacto a la derecha */
#colophon .footer-widget-area[data-section="section-fb-html-2"] table {
  width: 100% !important;
  border: 0 !important;
  border-collapse: separate !important;
  table-layout: fixed;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] tbody,
#colophon .footer-widget-area[data-section="section-fb-html-2"] tr {
  display: contents;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] td {
  border: 0 !important;
  padding: 6px !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] td > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] td p {
  margin: 0 !important;
  text-align: center !important;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] td img {
  width: min(190px, 100%);
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto;
}

#colophon .footer-widget-area[data-section="section-fb-html-2"] footer > p:last-child {
  margin-top: 14px !important;
  text-align: center !important;
}

@media (min-width: 922px) {
  #colophon .site-primary-footer-inner-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr);
    gap: 28px;
    align-items: start;
  }

  #colophon .site-footer-primary-section-1,
  #colophon .site-footer-primary-section-2 {
    width: 100% !important;
    min-width: 0;
  }

  #colophon .site-footer-primary-section-2 {
    display: flex;
    justify-content: flex-end;
  }

  #colophon .site-footer-primary-section-2 .ast-footer-copyright {
    width: 100%;
    max-width: 380px;
  }

#colophon .site-footer-primary-section-2 .ast-footer-copyright,
#colophon .site-footer-primary-section-2 .ast-footer-copyright p {
  text-align: left !important;
}

/* Footer derecho: interlineado compacto */
#colophon .site-footer-primary-section-2 .ast-footer-copyright,
#colophon .site-footer-primary-section-2 .ast-footer-copyright p,
#colophon .site-footer-primary-section-2 .ast-builder-html-element,
#colophon .site-footer-primary-section-2 .ast-builder-html-element p {
  line-height: 1.18 !important;
}

#colophon .site-footer-primary-section-2 .ast-footer-copyright p,
#colophon .site-footer-primary-section-2 .ast-builder-html-element p {
  margin: 0 0 4px 0 !important;
}
}

@media (max-width: 921px) {
  #colophon .footer-widget-area[data-section="section-fb-html-2"] table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #colophon .site-footer-primary-section-2 .ast-footer-copyright,
  #colophon .site-footer-primary-section-2 .ast-footer-copyright p {
    text-align: left !important;
  }
}

@media (max-width: 560px) {
  #colophon .footer-widget-area[data-section="section-fb-html-2"] table {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 922px) {
  #colophon .site-footer-primary-section-2 .ast-footer-copyright,
  #colophon .site-footer-primary-section-2 .ast-footer-copyright p {
    text-align: right !important;
  }
}




/* Ajuste solicitado: ocultar "Ir al contenido" */
.skip-link,
a.skip-link,
a.skip-link.screen-reader-text {
  display: none !important;
  visibility: hidden !important;
}

/* Ajuste solicitado: mensajes del slider en parte inferior izquierda */
#n2-ss-9 .n2-ss-slide,
#n2-ss-9 .n2-ss-slide .n2-ss-layers-container {
  position: absolute;
  inset: 0;
}

#n2-ss-9 .n2-ss-slide .n2-ss-layer--auto,
#n2-ss-9 .n2-ss-slide .n2-ss-layer[data-pm="absolute"] {
  position: absolute !important;
  left: 26px !important;
  right: auto !important;
  bottom: 26px !important;
  top: auto !important;
  transform: none !important;
  max-width: min(72%, 760px) !important;
  width: auto !important;
}

#n2-ss-9 .n2-ss-slide .n2-ss-item-content.n2-ss-text,
#n2-ss-9 .n2-ss-slide .n2-ss-item-content.n2-ss-text p {
  margin: 0 !important;
  text-align: left !important;
}

@media (max-width: 767px) {
  #n2-ss-9 .n2-ss-slide .n2-ss-layer--auto,
  #n2-ss-9 .n2-ss-slide .n2-ss-layer[data-pm="absolute"] {
    left: 14px !important;
    bottom: 14px !important;
    max-width: calc(100% - 28px) !important;
  }
}

/* Menú fijo al desplazarse */
:root {
  --ux-header-offset: 128px;
}

body.ux-menu-fixed #ast-desktop-header,
body.ux-menu-fixed #ast-mobile-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1100 !important;
}

body.ux-menu-fixed #content {
  padding-top: var(--ux-header-offset) !important;
}

/* Header/menu integrado y más dinámico */
@keyframes uxHeaderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#ast-desktop-header .main-header-bar,
#ast-desktop-header .ast-primary-header-bar,
#ast-mobile-header .main-header-bar,
#ast-mobile-header .ast-primary-header-bar {
  position: relative;
  background: linear-gradient(115deg, #2E8BCA 0%, #2E8BCA 62%, #F48634 100%) !important;
  background-size: 200% 200% !important;
  animation: uxHeaderFlow 14s ease infinite;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28) !important;
}

#ast-desktop-header .main-header-bar::before,
#ast-mobile-header .main-header-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.25), transparent 45%);
  pointer-events: none;
}

#ast-desktop-header .main-header-bar > .ast-builder-grid-row,
#ast-mobile-header .main-header-bar > .ast-builder-grid-row {
  position: relative;
  z-index: 1;
}

#ast-desktop-header .site-header-primary-section-left,
#ast-desktop-header .site-header-primary-section-right,
#ast-desktop-header .ast-builder-menu-1,
#ast-desktop-header .main-header-bar-navigation,
#ast-desktop-header .ast-main-header-bar-alignment,
#primary-site-navigation-desktop,
#primary-site-navigation-desktop .main-navigation,
#primary-site-navigation-desktop .main-header-menu {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

#ast-desktop-header .main-header-menu,
#ast-mobile-header .main-header-menu {
  background: transparent !important;
}

body.ux-menu-fixed #ast-desktop-header .main-header-bar,
body.ux-menu-fixed #ast-mobile-header .main-header-bar {
  box-shadow: 0 10px 26px rgba(4, 35, 61, 0.28) !important;
}

@media (max-width: 921px) {
  #ast-mobile-header .main-header-menu .ux-menu-link {
    color: #ffffff !important;
    border-color: rgba(244, 134, 52, 0.65) !important;
    background: rgba(46, 139, 202, 0.24) !important;
  }
}



/* Ajuste de desborde: menu desktop y mapa */
@media (min-width: 922px) {
  #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) !important;
    column-gap: 14px;
    align-items: center !important;
  }

  #ast-desktop-header .site-header-primary-section-left,
  #ast-desktop-header .site-header-primary-section-right,
  #ast-desktop-header .ast-builder-menu-1,
  #ast-desktop-header .ast-main-header-bar-alignment,
  #ast-desktop-header .main-header-bar-navigation,
  #primary-site-navigation-desktop,
  #primary-site-navigation-desktop .main-navigation {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  #primary-site-navigation-desktop .main-header-menu {
    max-width: 100% !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  #primary-site-navigation-desktop .main-header-menu .ux-menu-link {
    padding: 9px 11px !important;
    border-radius: 12px !important;
    font-size: clamp(0.88rem, 0.32vw + 0.70rem, 0.98rem) !important;
    white-space: nowrap;
  }
}

/* Home: tarjetas de servicios y valores más legibles */
body.home .sbs-6310-template-1-icon-wrapper .sbs-6310-template-1-icon {
  width: clamp(146px, 12.5vw, 198px) !important;
  height: clamp(96px, 8.2vw, 132px) !important;
  font-size: clamp(72px, 6.4vw, 94px) !important;
  line-height: 0 !important;
}

body.home .sbs-6310-template-1-icon-wrapper .sbs-6310-template-1-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 20px rgba(12, 45, 76, 0.2) !important;
}

body.home .sbs-6310-template-1-icon-wrapper {
  height: auto !important;
  min-height: 0 !important;
  margin-top: 14px !important;
  margin-bottom: 16px !important;
}

body.home .sbs-6310-template-1-icon-wrapper i {
  line-height: 0 !important;
}

body.home .sbs-6310-template-1-title {
  position: relative !important;
  z-index: 2;
  margin-top: 6px !important;
  padding-top: 0 !important;
}

body.home .sbs-6310-template-1-description {
  position: relative !important;
  z-index: 2;
  margin-top: 4px !important;
}

body.home .sbs-6310-template-4-icon-wrapper .sbs-6310-template-4-icon {
  min-height: 84px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Valores: iconos todos de color (uniformes) */
body.home .sbs-6310-noslider-4 .sbs-6310-template-4-icon i,
body.home .sbs-6310-noslider-4 .sbs-6310-template-4-icon img {
  display: none !important;
}

/* Evita duplicado: no pintar pseudo-elemento en todos los contenedores */
body.home .sbs-6310-noslider-4 .sbs-6310-template-4-icon::before {
  content: none !important;
}

/* Pintar el icono solo en el contenedor interno */
body.home .sbs-6310-noslider-4 .sbs-6310-template-4-icon-wrapper > .sbs-6310-template-4-icon::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  font-size: 40px;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(7, 35, 58, 0.24);
}

body.home .sbs-6310-noslider-4 .sbs-6310-col-list:nth-child(1) .sbs-6310-template-4-icon-wrapper > .sbs-6310-template-4-icon::before {
  content: "🤝";
  background: linear-gradient(135deg, #ffd27a, #f48634);
}

body.home .sbs-6310-noslider-4 .sbs-6310-col-list:nth-child(2) .sbs-6310-template-4-icon-wrapper > .sbs-6310-template-4-icon::before {
  content: "🛡️";
  background: linear-gradient(135deg, #95d0ff, #2e8bca);
}

body.home .sbs-6310-noslider-4 .sbs-6310-col-list:nth-child(3) .sbs-6310-template-4-icon-wrapper > .sbs-6310-template-4-icon::before {
  content: "💡";
  background: linear-gradient(135deg, #ffe58f, #f9be2c);
}

body.home .sbs-6310-noslider-4 .sbs-6310-col-list:nth-child(4) .sbs-6310-template-4-icon-wrapper > .sbs-6310-template-4-icon::before {
  content: "✅";
  background: linear-gradient(135deg, #9de8c0, #35b36a);
}

@media (min-width: 922px) and (max-width: 1320px) {
  #ast-desktop-header .custom-logo-link img,
  #ast-desktop-header .astra-logo-svg {
    width: 250px !important;
    max-width: 250px !important;
  }
}

@media (min-width: 922px) and (max-width: 1140px) {
  #primary-site-navigation-desktop .main-header-menu {
    flex-wrap: wrap !important;
    row-gap: 6px;
  }
}

/* Mapa sin recorte lateral izquierdo */
.elementor-element-8a20abe .elementor-widget-container,
.elementor-element-8a20abe .elementor-custom-embed {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.elementor-element-8a20abe iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* Refuerzo: header siempre visible durante todo el scroll */
body.ux-menu-fixed .site-header,
body.ux-menu-fixed #masthead {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483000 !important;
  transform: translateZ(0);
}

body.ux-menu-fixed #ast-desktop-header,
body.ux-menu-fixed #ast-mobile-header {
  z-index: 2147483001 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (min-width: 922px) {
  body.ux-menu-fixed #ast-desktop-header { display: block !important; }
  body.ux-menu-fixed #ast-mobile-header { display: none !important; }
}

@media (max-width: 921px) {
  body.ux-menu-fixed #ast-desktop-header { display: none !important; }
  body.ux-menu-fixed #ast-mobile-header { display: block !important; }
}

/* Header final estable (override definitivo) */
#masthead,
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2600 !important;
}

#ast-desktop-header,
#ast-mobile-header {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#content {
  padding-top: 0 !important;
}

.site-above-header-wrap .ast-builder-grid-row,
#ast-desktop-header .main-header-bar > .ast-builder-grid-row,
#ast-mobile-header .main-header-bar > .ast-builder-grid-row {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

@media (min-width: 922px) {
  #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: center !important;
  }

  #ast-desktop-header .site-header-primary-section-left,
  #ast-desktop-header .site-header-primary-section-right,
  #ast-desktop-header .ast-builder-menu-1,
  #ast-desktop-header .ast-main-header-bar-alignment,
  #ast-desktop-header .main-header-bar-navigation,
  #primary-site-navigation-desktop,
  #primary-site-navigation-desktop .main-navigation {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #ast-desktop-header .custom-logo-link img,
  #ast-desktop-header .astra-logo-svg {
    width: 100% !important;
    max-width: 260px !important;
    height: auto !important;
  }

  #primary-site-navigation-desktop .main-header-menu {
    width: 100% !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  #primary-site-navigation-desktop .main-header-menu .menu-item {
    flex: 0 1 auto;
    min-width: 0;
  }

  #primary-site-navigation-desktop .main-header-menu .ux-menu-link {
    padding: 9px 12px !important;
    font-size: clamp(0.88rem, 0.24vw + 0.76rem, 0.96rem) !important;
    border-radius: 12px !important;
  }
}

@media (min-width: 922px) and (max-width: 1140px) {
  #primary-site-navigation-desktop .main-header-menu {
    flex-wrap: wrap !important;
    row-gap: 6px;
  }
}

@media (max-width: 921px) {
  #ast-mobile-header .main-header-menu {
    gap: 6px !important;
  }

  #ast-mobile-header .main-header-menu .ux-menu-link {
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
  }
}

/* Header limpio definitivo (sin deformación) */
#masthead,
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2600 !important;
}

#ast-desktop-header,
#ast-mobile-header,
#ast-desktop-header .ast-primary-header-bar,
#ast-mobile-header .ast-primary-header-bar,
#ast-desktop-header .main-header-bar,
#ast-mobile-header .main-header-bar {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#ast-desktop-header .main-header-bar,
#ast-mobile-header .main-header-bar {
  animation: none !important;
  background: #2E8BCA !important;
  background-image: linear-gradient(115deg, #2E8BCA 0%, #2E8BCA 72%, #F48634 100%) !important;
}

#ast-desktop-header .main-header-bar::before,
#ast-mobile-header .main-header-bar::before {
  display: none !important;
}

#content {
  padding-top: 0 !important;
}

@media (min-width: 922px) {
  #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
  }

  #ast-desktop-header .custom-logo-link img,
  #ast-desktop-header .astra-logo-svg {
    max-width: 250px !important;
    width: 100% !important;
    height: auto !important;
  }

  #ast-desktop-header .site-header-primary-section-right,
  #ast-desktop-header .ast-builder-menu-1,
  #ast-desktop-header .ast-main-header-bar-alignment,
  #ast-desktop-header .main-header-bar-navigation,
  #primary-site-navigation-desktop,
  #primary-site-navigation-desktop .main-navigation {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #primary-site-navigation-desktop .main-header-menu {
    width: 100% !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    row-gap: 6px !important;
    overflow: hidden !important;
  }

  #primary-site-navigation-desktop .main-header-menu .ux-menu-link {
    padding: 8px 11px !important;
    font-size: 0.92rem !important;
    line-height: 1.05 !important;
    border-radius: 11px !important;
  }
}

/* Estabilidad global de layout: evita corrimiento a la izquierda */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  margin: 0 !important;
}

#page,
.site,
#content,
.site-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ast-container,
.elementor-section.elementor-section-boxed > .elementor-container,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row {
  width: min(1240px, calc(100% - 24px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.entry-content > .alignfull,
.entry-content[data-ast-blocks-layout] > .alignfull,
.ast-plain-container.ast-no-sidebar .entry-content > .alignfull,
.ast-page-builder-template .ast-no-sidebar .entry-content > .alignfull,
.ast-separate-container .entry-content > .alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#n2-ss-9,
#n2-ss-9 .n2-ss-slider-1,
#n2-ss-9 .n2-ss-slider-2,
#n2-ss-9 .n2-ss-slider-3,
#n2-ss-9 .n2-ss-slider-4 {
  max-width: 100% !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* Header fijo + ajustes visuales solicitados */
:root {
  --ux-header-offset: 130px;
}

body.ux-menu-fixed #masthead,
body.ux-menu-fixed .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483000 !important;
  transform: none !important;
}

body.ux-menu-fixed #content {
  padding-top: var(--ux-header-offset) !important;
}

body.ux-menu-fixed #ast-desktop-header,
body.ux-menu-fixed #ast-mobile-header {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

@media (min-width: 922px) {
  body.ux-menu-fixed #ast-desktop-header {
    display: block !important;
  }

  body.ux-menu-fixed #ast-mobile-header {
    display: none !important;
  }
}

@media (max-width: 921px) {
  body.ux-menu-fixed #ast-desktop-header {
    display: none !important;
  }

  body.ux-menu-fixed #ast-mobile-header {
    display: block !important;
  }
}

#masthead,
#ast-desktop-header .ast-above-header-bar,
#ast-desktop-header .main-header-bar,
#ast-desktop-header .ast-primary-header-bar,
#ast-mobile-header .main-header-bar,
#ast-mobile-header .ast-primary-header-bar {
  background: #2E8BCA !important;
  background-image: none !important;
}

#ast-desktop-header .main-header-bar::before,
#ast-mobile-header .main-header-bar::before {
  display: none !important;
}

/* Evita texto suelto por nodos de menu malformados */
#primary-site-navigation-desktop .main-navigation > .menu-item {
  display: none !important;
}

/* Boton Ingresar legible en hover */
.ast-header-button-1 .ast-custom-button {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
}

.ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button,
.ast-header-button-1 .ast-custom-button-link:focus-visible .ast-custom-button {
  background: #F48634 !important;
  border-color: #F48634 !important;
  color: #ffffff !important;
}

.ast-header-button-1 .menu-link {
  display: none !important;
}

/* Iconos de redes en naranja institucional */
.ast-header-social-wrap .ast-builder-social-element,
.ast-header-social-wrap .ast-builder-social-element .ahfb-svg-iconset {
  color: #F48634 !important;
}

.ast-header-social-wrap .ast-builder-social-element svg {
  fill: #F48634 !important;
  stroke: #F48634 !important;
}

.ast-header-social-wrap .ast-builder-social-element:hover {
  background: rgba(244, 134, 52, 0.18) !important;
}

/* Alineacion final del header: mismo ancho y margen en ambos lados */
#masthead {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

#masthead .site-above-header-wrap,
#masthead .site-primary-header-wrap {
  width: min(1240px, calc(100% - 24px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

#masthead .site-above-header-wrap .ast-builder-grid-row,
#masthead .site-primary-header-wrap .ast-builder-grid-row,
#masthead #ast-mobile-header .ast-primary-header-bar > .ast-builder-grid-row {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 922px) {
  #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: center !important;
  }

  #ast-desktop-header .site-header-primary-section-left,
  #ast-desktop-header .site-header-primary-section-right {
    min-width: 0 !important;
  }

  #ast-desktop-header .site-header-primary-section-right {
    justify-content: flex-end !important;
  }

  #ast-desktop-header .main-header-bar-navigation,
  #primary-site-navigation-desktop,
  #primary-site-navigation-desktop .main-navigation,
  #primary-site-navigation-desktop .main-header-menu {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
}

/* Footer legal links centrados (Politica / Cookies / Tratamiento / Terminos y condiciones / Aviso legal) */
.site-below-footer-wrap,
.site-below-footer-wrap .ast-builder-grid-row,
.site-below-footer-wrap .site-footer-section,
.site-below-footer-wrap .site-footer-section p,
.site-below-footer-wrap .site-footer-section .menu,
.site-below-footer-wrap .site-footer-section .menu li,
.site-below-footer-wrap .site-footer-section .menu a,
#astra-footer-menu,
#astra-footer-menu .menu-item,
#astra-footer-menu .menu-link {
  text-align: center !important;
  justify-content: center !important;
}

.site-below-footer-wrap .ast-builder-grid-row,
.site-below-footer-wrap .site-footer-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#astra-footer-menu {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 14px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

#astra-footer-menu .menu-item {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#astra-footer-menu .menu-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* === Unificacion global de menu (igual a Servicios) === */
:root {
  --fho-menu-blue: #2E8BCA;
  --fho-menu-orange: #F48634;
}

#masthead,
#ast-desktop-header .main-header-bar,
#ast-mobile-header .main-header-bar,
#ast-desktop-header .ast-primary-header-bar,
#ast-mobile-header .ast-primary-header-bar {
  background: var(--fho-menu-blue) !important;
}

@media (min-width: 922px) {
  #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 14px !important;
  }

  #ast-desktop-header .site-header-primary-section-right,
  #ast-desktop-header .ast-builder-menu-1,
  #ast-desktop-header .ast-main-header-bar-alignment,
  #ast-desktop-header .main-header-bar-navigation,
  #primary-site-navigation-desktop,
  #primary-site-navigation-desktop .main-navigation {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }

  #primary-site-navigation-desktop .main-header-menu {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #primary-site-navigation-desktop .main-header-menu > .menu-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  #primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    background: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    text-decoration: none !important;
  }

  #primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link i {
    display: none !important;
  }

  #primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    line-height: 1;
    font-size: 0.95rem;
  }

  #primary-site-navigation-desktop .main-header-menu > .menu-item:nth-child(1) > .menu-link::before { content: "⌂"; }
  #primary-site-navigation-desktop .main-header-menu > .menu-item:nth-child(2) > .menu-link::before { content: "≡"; }
  #primary-site-navigation-desktop .main-header-menu > .menu-item:nth-child(3) > .menu-link::before { content: "⬡"; }
  #primary-site-navigation-desktop .main-header-menu > .menu-item:nth-child(4) > .menu-link::before { content: "⌘"; }
  #primary-site-navigation-desktop .main-header-menu > .menu-item:nth-child(5) > .menu-link::before { content: "✉"; }

  #primary-site-navigation-desktop .main-header-menu > .menu-item.current-menu-item > .menu-link,
  #primary-site-navigation-desktop .main-header-menu > .menu-item.current_page_item > .menu-link {
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.36) 0%, rgba(244, 134, 52, 0.95) 100%) !important;
    border-color: rgba(255, 255, 255, 0.62) !important;
    color: #ffffff !important;
  }

  #primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link:hover,
  #primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link:focus-visible {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
  }
}

/* === Tamaño unificado de botones de menu (mismo tamaño que Servicios) === */
:root {
  --fho-menu-btn-font: 0.92rem;
  --fho-menu-btn-pad-y: 10px;
  --fho-menu-btn-pad-x: 14px;
  --fho-menu-btn-min-h: 42px;
}

@media (min-width: 922px) {
  #ast-desktop-header #primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link,
  #ast-desktop-header #primary-site-navigation-desktop .main-header-menu > .menu-item > .ux-menu-link {
    padding: var(--fho-menu-btn-pad-y) var(--fho-menu-btn-pad-x) !important;
    min-height: var(--fho-menu-btn-min-h) !important;
    font-size: var(--fho-menu-btn-font) !important;
    line-height: 1 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  #ast-desktop-header #primary-site-navigation-desktop .main-header-menu > .menu-item {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }

  #ast-desktop-header #primary-site-navigation-desktop .main-header-menu {
    gap: 8px !important;
    align-items: center !important;
  }
}

/* === Footer legal: centrado en una sola linea === */
.site-below-footer-wrap,
.site-below-footer-wrap .ast-builder-grid-row-container,
.site-below-footer-wrap .ast-builder-grid-row,
.site-below-footer-wrap .site-footer-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.site-below-footer-wrap {
  overflow-x: auto !important;
}

#astra-footer-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: 12px !important;
}

#astra-footer-menu .menu-item {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

#astra-footer-menu .menu-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 0.98rem !important;
  line-height: 1.1 !important;
  padding: 0 2px !important;
}

/* Slider header home: igual al resto de paginas + pase estable */
#n2-ss-9 .n2-ss-slider-2 {
  background: #0b1f2e !important;
}

#n2-ss-9 .n2-ss-slide-background-image,
#n2-ss-9 .n2-ss-slide-background-image picture,
#n2-ss-9 .n2-ss-slide-background-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

#n2-ss-9 .n2-ss-slide-background-image img {
  object-fit: cover !important;
  object-position: center center !important;
}

#n2-ss-9 .n2-ss-slide-background {
  background: #0b1f2e !important;
}

#n2-ss-9 .n2-ss-slider-controls {
  z-index: 6 !important;
}

#n2-ss-9 .n2-ss-slider-controls * {
  pointer-events: auto !important;
}
/* Footer contacto: direccion en una sola linea */
@media (min-width: 922px) {
  #colophon .site-footer-primary-section-2 .ast-footer-copyright {
    max-width: 540px !important;
  }

  #colophon .site-footer-primary-section-2 .ast-footer-copyright p:nth-of-type(2),
  #colophon .site-footer-primary-section-2 .ast-footer-copyright p:nth-of-type(2) span {
    white-space: nowrap !important;
  }
}

/* === Footer compacto: menos espacio entre lineas === */
#colophon .ast-footer-copyright,
#colophon .ast-footer-copyright p,
#colophon .ast-builder-html-element,
#colophon .ast-builder-html-element p {
  line-height: 1.06 !important;
}

#colophon .ast-footer-copyright p,
#colophon .ast-builder-html-element p {
  margin: 0 0 2px 0 !important;
}

#colophon .site-footer-primary-section-2 .ast-footer-copyright p:empty,
#colophon .site-footer-primary-section-2 .ast-footer-copyright p:has(> span:empty) {
  display: none !important;
}

.site-below-footer-wrap,
.site-below-footer-wrap p,
.site-below-footer-wrap a,
#astra-footer-menu .menu-link {
  line-height: 1.05 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* === Footer alineado al mismo contenedor del sitio === */
#colophon .site-primary-footer-wrap[data-section="section-primary-footer-builder"],
#colophon .site-below-footer-wrap {
  width: min(1240px, calc(100% - 24px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

#colophon .site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
#colophon .site-below-footer-wrap .ast-builder-grid-row {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  box-sizing: border-box !important;
}

@media (max-width: 921px) {
  #colophon .site-primary-footer-wrap[data-section="section-primary-footer-builder"],
  #colophon .site-below-footer-wrap {
    width: calc(100% - 16px) !important;
  }

  #colophon .site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
  #colophon .site-below-footer-wrap .ast-builder-grid-row {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* === Mobile header hard fix: menu funcional + logo completo (2026-04-27) === */
@media (max-width: 921px) {
  #ast-mobile-header {
    display: block !important;
    overflow: visible !important;
  }

  #ast-mobile-header .main-header-bar,
  #ast-mobile-header .ast-primary-header-bar,
  #ast-mobile-header .site-primary-header-wrap {
    background: #2E8BCA !important;
  }

  #ast-mobile-header .site-primary-header-wrap .ast-builder-grid-row,
  #ast-mobile-header .main-header-bar > .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 10px !important;
  }

  #ast-mobile-header .site-header-primary-section-left,
  #ast-mobile-header .ast-builder-layout-element[data-section="title_tagline"] {
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  #ast-mobile-header .site-branding,
  #ast-mobile-header .site-logo-img,
  #ast-mobile-header .custom-logo-link {
    display: block !important;
    width: min(190px, 100%) !important;
    max-width: 190px !important;
    overflow: visible !important;
  }

  #ast-mobile-header .site-branding,
  #ast-mobile-header .site-logo-img {
    line-height: 0 !important;
  }

  #ast-mobile-header .custom-logo-link img,
  #ast-mobile-header .custom-logo,
  #ast-mobile-header .astra-logo-svg {
    display: block !important;
    width: 100% !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  #ast-mobile-header .ast-button-wrap,
  #ast-mobile-header .main-header-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #ast-mobile-header .main-header-menu-toggle {
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  .ast-mobile-header-content {
    display: none !important;
    padding: 0 12px 12px !important;
    background: #2E8BCA !important;
  }

  .ast-mobile-header-content.is-open,
  body.ast-main-header-nav-open .ast-mobile-header-content {
    display: block !important;
  }

  #ast-mobile-site-navigation,
  #ast-mobile-site-navigation .main-navigation,
  #ast-mobile-site-navigation .main-header-menu {
    width: 100% !important;
    max-width: 100% !important;
  }

  #ast-mobile-site-navigation .main-header-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px 0 0 !important;
    list-style: none !important;
    border: 0 !important;
  }

  #ast-mobile-site-navigation .main-header-menu > li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #ast-mobile-site-navigation .main-header-menu > li.ux-menu-item-hidden {
    display: none !important;
  }

  #ast-mobile-site-navigation .main-header-menu > li > a.menu-link,
  #ast-mobile-site-navigation .main-header-menu > li > a.ux-menu-link {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(46, 139, 202, 0.34) !important;
    background: #ffffff !important;
    color: #16324a !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
  }

  #ast-mobile-site-navigation .main-header-menu .ux-menu-icon {
    display: none !important;
  }

  #ast-mobile-site-navigation .main-header-menu .ux-menu-text {
    display: inline !important;
  }
}
