.busqueda-app {
  padding-top: var(--mp-header-offset);
  padding-bottom: 108px;
}

.busqueda-section {
  padding: 2px 0 10px;
}

.busqueda-shell {
  max-width: 980px;
}

.busqueda-context-card {
  margin-bottom: 12px;
}

.busqueda-search-card {
  background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%);
  border: 1px solid rgba(123, 47, 190, 0.2);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(95, 34, 148, .1);
  padding: 20px;
  display: grid;
  gap: 18px;
}

.busqueda-hero {
  display: grid;
  gap: 6px;
}

.busqueda-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--mp-text);
}

.busqueda-subtitle {
  margin: 0;
  color: var(--mp-text-muted);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.45;
}

.busqueda-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.busqueda-field .form-label {
  margin-bottom: 8px;
  color: var(--mp-text);
  font-size: .9rem;
  font-weight: 700;
}

.busqueda-select-wrapper {
  position: relative;
}

.busqueda-select-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mp-text-muted);
  pointer-events: none;
}

.busqueda-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(123, 47, 190, .22);
  background-color: #fff;
  color: var(--mp-text);
  padding: .88rem 2.6rem .88rem 2.35rem;
  font-size: .95rem;
  font-weight: 600;
  background-image: linear-gradient(45deg, transparent 50%, #7462a1 50%), linear-gradient(135deg, #7462a1 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(96, 62, 139, .08);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.busqueda-select:focus {
  outline: none;
  border-color: rgba(123, 47, 190, .48);
  box-shadow: 0 0 0 3px rgba(123, 47, 190, .12);
}

.busqueda-submit {
  border: 0;
  min-height: 54px;
  border-radius: 16px;
  padding: 0 1.25rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #7b2fbe 0%, #5f2294 100%);
  box-shadow: 0 8px 16px rgba(95, 34, 148, .24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.busqueda-submit:hover {
  filter: saturate(1.06);
}

.busqueda-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.busqueda-header-login-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(95, 34, 148, .22);
  white-space: nowrap;
}

.header.modern-header .busqueda-header-actions .busqueda-header-login-btn {
  display: inline-flex !important;
}

@media (max-width: 991px) {
  .header.modern-header .busqueda-header-actions .busqueda-header-login-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {

  .busqueda-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .busqueda-submit {
    width: 100%;
  }

  .busqueda-search-card {
    padding: 16px;
    border-radius: 20px;
    gap: 14px;
  }

  .busqueda-title {
    font-size: 1.08rem;
  }

  .busqueda-subtitle {
    font-size: .84rem;
  }

  .busqueda-header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .busqueda-header-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    line-height: 1;
    padding: 9px 12px;
    min-height: 36px;
    margin: 0;
  }

  .busqueda-header-actions .mobile-nav-toggle {
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  .busqueda-header-login-btn {
    font-size: .73rem;
    padding: 8px 10px;
    min-height: 34px;
  }
}
