/* ✅ AJUSTE MINIMO: usa el nombre real de tu font-face + fallback */
body{
    font-family: 'Flexo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ========= Base ========= */
.site-header, .promo-bar { font-family: inherit; }

/* ========= Promo bar ========= */
.promo-bar{
  position: relative;
  background: linear-gradient(89deg, #0030B3 35.42%, #D3017F 100%);
  min-height: 60px;
}

.promo-bar__link{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
}

.svgclass{
  right: 5px; 
  position: relative; 
  width: 90px; 
  height: 24px;
}

.promo-bar__text{
  flex: 1;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.promo-bar__icon{
  width: 28px;
  height: 28px;
  opacity: .95;
}

.promo-bar__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.promo-bar__close:hover{ background: rgba(255,255,255,.28); }

@media (max-width: 420px){
  .promo-bar__text{ font-size: 14px; }
}

/* ========= Header ========= */
.site-header{
  background: #fff;
  box-shadow: 0 0 28px rgba(175,193,223,.30);
}

.site-header__inner{
  height: 55px;
  max-width: 980px;
  
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #202E44;
}

.brand__mark{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #FF7800, #0A47F0);
}

.brand__name{
  font-weight: 800;
  letter-spacing: .6px;
}

/* ========= Search con BORDE degradado (como tu 1ra imagen) ========= */
/* Wrapper = borde */
.search-wrap{
  flex: 1;
  max-width: 247px;

  display: inline-flex;
  padding: 3px;                 /* grosor del borde degradado */
  border-radius: 999px;

  background: linear-gradient(60deg, #F43C46, #6D3ACD, #0A47F0, #F43C46, #5073b8);
  background-size: 300% 100%;
  animation: gradientBorder 4s cubic-bezier(0.45, 0.05, 0, 0.93) infinite alternate;

  /* ✅ NECESARIO para before/after */
  position: relative;
  overflow: visible;
}

/* Botón interior = fondo blanco (NO borde) */
.search-btn{
  gap: 10px;
  border: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 247px;
  padding: 5px 10px;
  background: white;
  border-radius: 30px;
  text-decoration: none;

  /* ✅ PARA QUE NO TAPE A LOS ::before/::after */
  z-index: 1;
}

.ml5{
  margin-left: 5px;
}

.search-btn__text{
  color: #527094;
  font-family: 'Flexo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; /* ✅ */
  line-height: 1.5;
  font-size: 16px;
  font-weight: 600;
  position: relative;
}

/* ✅ ESTRELLITAS (solo agregamos esto) */
.search-wrap.lupa-con-estrellas::before,
.search-wrap.lupa-con-estrellas::after{
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;

  /* ✅ mejor para svg pequeños */
  background-size: contain;

  opacity: 0;
  animation: parpadeo-estrellas 2s ease-in-out infinite;

  /* ✅ CLAVE: encima del botón */
  z-index: 2;

  /* micro perf */
  will-change: opacity, transform;
}

/* ⭐ before */
.search-wrap.lupa-con-estrellas::before{
  background-image: url('../img/before.svg');
  width: 7px;
  height: 7px;
  top: 6px;
  left: 14px;
  animation-delay: 0s;
}

/* ⭐ after */
.search-wrap.lupa-con-estrellas::after{
  background-image: url('../img/after.svg');
  width: 4.5px;
  height: 4.5px;
  top: 15px;
  left: 11px;
  animation-delay: 1s;
}

@keyframes parpadeo-estrellas{
  0%   { opacity: 0; transform: scale(0.9); }
  40%  { opacity: 1; transform: scale(1.25); }
  60%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(0.9); }
}

.search-btn:focus-visible{
  outline: 3px solid rgba(10,71,240,.25);
  outline-offset: 2px;
}

@keyframes gradientBorder{
  0%   { background-position:   0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Burger */
.burger{
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
/* ============================= */
/* < 380px */
/* ============================= */
@media (max-width: 379px){

  .search-wrap{
    max-width: 210px;
  }

  .promo-bar__close{
    display: none;
  }

}


/* ============================= */
/* < 340px */
/* ============================= */
@media (max-width: 339px){

  .search-wrap{
    max-width: 170px;
  }

  .promo-bar__close{
    display: none;
  }

}


/* ============================= */
/* < 295px */
/* ============================= */
@media (max-width: 294px){

  .search-wrap{
    max-width: 130px;
  }

  .promo-bar__text{
    font-size: 12px;
  }

  .promo-bar__close{
    display: none;
  }

}
/* ============================= */
/* > 410px */
/* ============================= */
@media (min-width: 411px){

  .svgclass{
    right: 10px;
    position: relative; /* por si acaso */
  }

}


/* ============================= */
/* > 430px */
/* ============================= */
@media (min-width: 431px){

  .svgclass{
    right: 15px;
  }

}

