/* ============================================================
   HEADER GLOBAL
   ============================================================ */
.site-header {
    background: transparent;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(6px);
    margin-bottom: -100px;
    max-height: 76px;
}
.site-header.scrolled {
  background: #01224d8f; /* azul con transparencia */
  transition: background 0.3s ease;
  position: sticky;
  top: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

@media (max-width:1260px){
  .header-inner{
    padding: 10px 20px;
  }
}

.logo img {
  height: 56px;
  width: auto;
}

/* === MENÚ DESKTOP === */
.main-nav .menu-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
}

.main-nav a {
  color: #fff;
  font-weight: 400;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.main-nav li.menu-item a.menu-link:hover {
  color: #e6e6e6;
}

/* === BUSCADOR === */
.header-search form {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 50px;
    padding: 6px 12px;
    border: 1px solid #fff;
    height: 36px;
}

.header-search input {
    border: none;
    background: transparent;
    color: #fff;
    width: 130px;
    outline: none;
    font-size: 14px;
}

.header-search button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

/* === BOTONES === */
.header-buttons {
  display: flex;
  gap: 12px;
}

/* === GOOGLE TRANSLATE === */
.header-lang {
  display: flex;
  align-items: center;
}

/* === BOTÓN MOBILE === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
    height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
    height: 2px;
    width: 40px;
    background: #fff;
    border-radius: 2px;
    left: -20px;
    position: relative;
}
/* ============================================================
   MENÚ MÓVIL
   ============================================================ */
.mobile-menu,
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  transition: all 0.3s ease;
  visibility: hidden;
  opacity: 0;
}

/* Overlay oscuro */
.mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* Panel del menú */
.mobile-menu {
  width: 320px;
  max-width: 85%;
  background: var(--azul-corporativo, #01224D);
  color: #fff;
  transform: translateX(-100%);
  padding: 50px 30px;
  overflow-y: auto;
}

/* Estado activo */
.mobile-menu.active,
.mobile-menu-overlay.active {
  visibility: visible;
  opacity: 1;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Botón cerrar */
.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
    transition: .3s;
}

/* Listado */
.mobile-menu-list {
  list-style: none;
  padding: 70px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu-list a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu-list a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .main-nav,
  .header-search,
  .header-buttons,
  .header-lang {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
  .logo {
    width: 100%;
    text-align: center;
}
  .header-inner {
    justify-content: space-between;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
  }
  .header-inner.logo {
    text-align: center;
    }
}
/* === MODAL DE BÚSQUEDA === */
button.mobile-search-toggle {
    display: none;
    background: none;
}
@media (max-width:992px) {
    button.mobile-search-toggle {
        display: block;
        justify-self: end;
    }
}
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.search-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

/* ====== Toggle visible solo en móvil ====== */
.mobile-search-toggle{ display:none; }
@media (max-width:992px){ .mobile-search-toggle{ display:block; } }

/* ====== Search fullscreen ====== */
.searchfs{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.searchfs.active{
  display:block;
  opacity:1;
  pointer-events:auto;
}

/* Fondo / overlay */
.searchfs__backdrop{
  position:absolute;
  inset:0;
  background:rgba(1,34,77,.92);           /* #01224D con transparencia */
  backdrop-filter:saturate(120%) blur(6px);
}

/* Stage centrado */
.searchfs__stage{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(20px,5vw,60px);
}

/* Form stylin’ */
.searchfs__form{
  width:min(900px,92vw);
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 6px;
  border-bottom:2px solid rgba(255,255,255,.35);
  transform:translateY(24px);
  opacity:0;
  animation:sf-in .35s ease .05s forwards;
}
@keyframes sf-in{
  to{ transform:translateY(0); opacity:1; }
}

.searchfs__icon{
  color:#fff;
  font-size:clamp(22px,2.6vw,28px);
  line-height:1;
}

.searchfs__form input[type="search"]{
  flex:1;
  background:transparent;
  border:0;
  outline:none;
  color:#fff;
  caret-color:#fff;
  font-size:clamp(22px,3.2vw,40px);
  letter-spacing:.2px;
}
.searchfs__form input::placeholder{
  color:rgba(255,255,255,.55);
}

/* Botón de cerrar */ 
.searchfs__close {
    position: absolute;
    top: 20px;
    right: 45px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: .9;
    transition: transform .18s ease, opacity .18s ease;
    transform-origin: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.searchfs__close:hover {
  transform: scale(1.05);
  opacity: 1;
  background: transparent;
}


