.af-header-bar {
  width: 100%;
  background: var(--af-header-white);
}

.af-header-inner {
  display: flex;
  align-items: center;
  height: 84px;
}

/* desktop */

.af-header-logo {
  width: 20%;
  display: flex;
  align-items: center;
}

.af-logo-link {
  display: inline-flex;
  align-items: center;
}

.af-logo-img {
  height: 48px;
  width: auto;
  display: block;
  margin-right: 24px;
}

.af-header-search {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-header-pay {
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* buscador */

.af-search {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 999px;
  border: 1px solid var(--af-border-soft);
  padding: 4px 6px 4px 18px;
}

.af-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--af-text-main);
}

.af-search input::placeholder {
  color: var(--af-text-muted);
}

.af-search button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.af-card-logo {
  height: 26px;
  object-fit: contain;
}

/* TABLET */

@media (max-width: 1024px) {
  .af-header-inner {
    height: auto;
    padding: 10px 0 12px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .af-header-logo {
    width: 30%;
  }

  .af-header-search {
    width: 70%;
  }

  .af-search {
    max-width: none;
  }

  .af-header-pay {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }
}

/* MÓVIL */

@media (max-width: 768px) {
  .af-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .af-header-logo,
  .af-header-search,
  .af-header-pay {
    width: 100%;
  }

  .af-header-logo {
    justify-content: center;
    margin-top: 6px;
  }

  .af-logo-img {
    margin-right: 0;
  }

  /* buscador con más aire lateral */

  .af-header-search {
    order: 2;
    padding: 0 16px;   /* 16–20px a cada lado */
  }

  .af-search {
    width: 100%;
  }

  .af-search input {
    font-size: 0.86rem;
  }

  .af-header-pay {
    order: 3;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .af-header-pay {
    display: none;
  }
}