#masthead {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
	background: #f9f7f1d1;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	
}

/* ejemplo de barra visual */
#masthead::after {
  content: "";
  position: fixed;
  left: 0;
  height: 3px;
  width: var(--nav-progress);
  background: #B0361D;
  transition: width 0.1s linear;
  z-index: 9999999;
}

#masthead {
  overflow: visible !important;
}

#masthead::after {
  bottom: 0px !important;
}

.ast-custom-button {
    font-size: 13.6px !important;
    font-weight: 550 !important;
    padding: 9px 18px;
    border: 1px solid #0F1115;
    border-radius: 100px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link {
    color: #B0361D !important;
    line-height: 2 !important;
    text-decoration: underline !important;
    text-decoration-color: #B0361D !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 7px !important;
}

/* ==========================================
   HEADER RIGHT SECTION
========================================== */

.site-header-primary-section-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;

    gap:0 !important;
}

/* Elimina el espacio violeta de Astra */

.site-header-primary-section-right-center.site-header-section.ast-flex.ast-grid-right-center-section{
    flex:0 0 auto !important;

    width:auto !important;
    max-width:none !important;

    margin:0 !important;
    padding:0 !important;
}

/* Elimina espacios internos automáticos */

.site-header-primary-section-right .ast-builder-layout-element{
    margin:0 !important;
    padding:0 !important;
}


/* ==========================================
   SELECTOR DE IDIOMAS
========================================== */

.ff-lang-switcher{
    display:inline-flex;
    align-items:center;
    gap:6px;

    margin-right:20px;

    font-family:'Inter Tight', sans-serif;
    font-size:13.6px;
    font-weight:500;
    line-height:1;

    white-space:nowrap;
}

/* Links */

.ff-lang-switcher a{
    color:#0F11158C;
    text-decoration:none;

    transition:color .2s ease;
}

/* Hover + idioma activo */

.ff-lang-switcher a:hover,
.ff-lang-switcher a.is-active{
    color:#0F1115;
}

/* Slash */

.ff-lang-switcher span{
    color:#0F111538;
}

body {
  transition: background-color 0.6s ease;
}

/* ==========================================
   HEADER EN SECCIONES DARK
========================================== */

#masthead.ff-menu-light {
  background: rgba(15, 17, 21, 0.75);
}

/* Links del menú */
#masthead.ff-menu-light .main-header-menu .menu-link {
  color: #F9F7F1 !important;
}

/* Item activo */
#masthead.ff-menu-light .main-header-menu .current-menu-item > .menu-link,
#masthead.ff-menu-light .main-header-menu .current_page_item > .menu-link {
  color: #F9F7F1 !important;
  text-decoration-color: #F9F7F1 !important;
}

/* Nombre FlowFlamingo */
#masthead.ff-menu-light .site-title a {
  color: #F9F7F1 !important;
}

/* Selector idiomas */
#masthead.ff-menu-light .ff-lang-switcher a,
#masthead.ff-menu-light .ff-lang-switcher span {
  color: #F9F7F1 !important;
}

/* Botón Hablemos */
#masthead.ff-menu-light .ast-custom-button {
  color: #F9F7F1 !important;
  border-color: #F9F7F1 !important;
}


/* Navegación fija */
body #masthead {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
}

/* Ajuste cuando está visible la barra de WordPress */
body.admin-bar #masthead {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar #masthead {
        top: 46px;
    }
}

@media (max-width: 600px) {
    body.admin-bar #wpadminbar {
        position: fixed;
    }
}